ImpulseVisionAppDataSet.Designer.cs 380 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. // Runtime Version:4.0.30319.42000
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace ImpulseVision {
  12. /// <summary>
  13. ///Represents a strongly typed in-memory cache of data.
  14. ///</summary>
  15. [global::System.Serializable()]
  16. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  17. [global::System.ComponentModel.ToolboxItem(true)]
  18. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
  19. [global::System.Xml.Serialization.XmlRootAttribute("ImpulseVisionAppDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class ImpulseVisionAppDataSet : global::System.Data.DataSet {
  22. private FaceImagesDataTable tableFaceImages;
  23. private HistoryLoginDataTable tableHistoryLogin;
  24. private StaffsDataTable tableStaffs;
  25. private UsersDataTable tableUsers;
  26. private UserTrafficDataTable tableUserTraffic;
  27. private UserTypeDataTable tableUserType;
  28. private global::System.Data.DataRelation relationFK_FaceImages_Users;
  29. private global::System.Data.DataRelation relationFK_HistoryLogin_Staffs;
  30. private global::System.Data.DataRelation relationFK_Staffs_UserType;
  31. private global::System.Data.DataRelation relationFK_Users_UserType;
  32. private global::System.Data.DataRelation relationFK_UserTraffic_Users;
  33. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  34. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  35. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  36. public ImpulseVisionAppDataSet() {
  37. this.BeginInit();
  38. this.InitClass();
  39. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  40. base.Tables.CollectionChanged += schemaChangedHandler;
  41. base.Relations.CollectionChanged += schemaChangedHandler;
  42. this.EndInit();
  43. this.InitExpressions();
  44. }
  45. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  46. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  47. protected ImpulseVisionAppDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  48. base(info, context, false) {
  49. if ((this.IsBinarySerialized(info, context) == true)) {
  50. this.InitVars(false);
  51. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  52. this.Tables.CollectionChanged += schemaChangedHandler1;
  53. this.Relations.CollectionChanged += schemaChangedHandler1;
  54. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.ExcludeSchema)) {
  55. this.InitExpressions();
  56. }
  57. return;
  58. }
  59. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  60. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  61. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  62. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  63. if ((ds.Tables["FaceImages"] != null)) {
  64. base.Tables.Add(new FaceImagesDataTable(ds.Tables["FaceImages"]));
  65. }
  66. if ((ds.Tables["HistoryLogin"] != null)) {
  67. base.Tables.Add(new HistoryLoginDataTable(ds.Tables["HistoryLogin"]));
  68. }
  69. if ((ds.Tables["Staffs"] != null)) {
  70. base.Tables.Add(new StaffsDataTable(ds.Tables["Staffs"]));
  71. }
  72. if ((ds.Tables["Users"] != null)) {
  73. base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
  74. }
  75. if ((ds.Tables["UserTraffic"] != null)) {
  76. base.Tables.Add(new UserTrafficDataTable(ds.Tables["UserTraffic"]));
  77. }
  78. if ((ds.Tables["UserType"] != null)) {
  79. base.Tables.Add(new UserTypeDataTable(ds.Tables["UserType"]));
  80. }
  81. this.DataSetName = ds.DataSetName;
  82. this.Prefix = ds.Prefix;
  83. this.Namespace = ds.Namespace;
  84. this.Locale = ds.Locale;
  85. this.CaseSensitive = ds.CaseSensitive;
  86. this.EnforceConstraints = ds.EnforceConstraints;
  87. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  88. this.InitVars();
  89. }
  90. else {
  91. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  92. this.InitExpressions();
  93. }
  94. this.GetSerializationData(info, context);
  95. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  96. base.Tables.CollectionChanged += schemaChangedHandler;
  97. this.Relations.CollectionChanged += schemaChangedHandler;
  98. }
  99. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  101. [global::System.ComponentModel.Browsable(false)]
  102. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  103. public FaceImagesDataTable FaceImages {
  104. get {
  105. return this.tableFaceImages;
  106. }
  107. }
  108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  110. [global::System.ComponentModel.Browsable(false)]
  111. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  112. public HistoryLoginDataTable HistoryLogin {
  113. get {
  114. return this.tableHistoryLogin;
  115. }
  116. }
  117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  119. [global::System.ComponentModel.Browsable(false)]
  120. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  121. public StaffsDataTable Staffs {
  122. get {
  123. return this.tableStaffs;
  124. }
  125. }
  126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  128. [global::System.ComponentModel.Browsable(false)]
  129. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  130. public UsersDataTable Users {
  131. get {
  132. return this.tableUsers;
  133. }
  134. }
  135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  137. [global::System.ComponentModel.Browsable(false)]
  138. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  139. public UserTrafficDataTable UserTraffic {
  140. get {
  141. return this.tableUserTraffic;
  142. }
  143. }
  144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  146. [global::System.ComponentModel.Browsable(false)]
  147. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  148. public UserTypeDataTable UserType {
  149. get {
  150. return this.tableUserType;
  151. }
  152. }
  153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  155. [global::System.ComponentModel.BrowsableAttribute(true)]
  156. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  157. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  158. get {
  159. return this._schemaSerializationMode;
  160. }
  161. set {
  162. this._schemaSerializationMode = value;
  163. }
  164. }
  165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  167. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  168. public new global::System.Data.DataTableCollection Tables {
  169. get {
  170. return base.Tables;
  171. }
  172. }
  173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  175. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  176. public new global::System.Data.DataRelationCollection Relations {
  177. get {
  178. return base.Relations;
  179. }
  180. }
  181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  183. protected override void InitializeDerivedDataSet() {
  184. this.BeginInit();
  185. this.InitClass();
  186. this.EndInit();
  187. }
  188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  190. public override global::System.Data.DataSet Clone() {
  191. ImpulseVisionAppDataSet cln = ((ImpulseVisionAppDataSet)(base.Clone()));
  192. cln.InitVars();
  193. cln.InitExpressions();
  194. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  195. return cln;
  196. }
  197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  199. protected override bool ShouldSerializeTables() {
  200. return false;
  201. }
  202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  204. protected override bool ShouldSerializeRelations() {
  205. return false;
  206. }
  207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  209. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  210. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  211. this.Reset();
  212. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  213. ds.ReadXml(reader);
  214. if ((ds.Tables["FaceImages"] != null)) {
  215. base.Tables.Add(new FaceImagesDataTable(ds.Tables["FaceImages"]));
  216. }
  217. if ((ds.Tables["HistoryLogin"] != null)) {
  218. base.Tables.Add(new HistoryLoginDataTable(ds.Tables["HistoryLogin"]));
  219. }
  220. if ((ds.Tables["Staffs"] != null)) {
  221. base.Tables.Add(new StaffsDataTable(ds.Tables["Staffs"]));
  222. }
  223. if ((ds.Tables["Users"] != null)) {
  224. base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
  225. }
  226. if ((ds.Tables["UserTraffic"] != null)) {
  227. base.Tables.Add(new UserTrafficDataTable(ds.Tables["UserTraffic"]));
  228. }
  229. if ((ds.Tables["UserType"] != null)) {
  230. base.Tables.Add(new UserTypeDataTable(ds.Tables["UserType"]));
  231. }
  232. this.DataSetName = ds.DataSetName;
  233. this.Prefix = ds.Prefix;
  234. this.Namespace = ds.Namespace;
  235. this.Locale = ds.Locale;
  236. this.CaseSensitive = ds.CaseSensitive;
  237. this.EnforceConstraints = ds.EnforceConstraints;
  238. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  239. this.InitVars();
  240. }
  241. else {
  242. this.ReadXml(reader);
  243. this.InitVars();
  244. }
  245. }
  246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  248. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  249. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  250. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  251. stream.Position = 0;
  252. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  253. }
  254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  256. internal void InitVars() {
  257. this.InitVars(true);
  258. }
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  261. internal void InitVars(bool initTable) {
  262. this.tableFaceImages = ((FaceImagesDataTable)(base.Tables["FaceImages"]));
  263. if ((initTable == true)) {
  264. if ((this.tableFaceImages != null)) {
  265. this.tableFaceImages.InitVars();
  266. }
  267. }
  268. this.tableHistoryLogin = ((HistoryLoginDataTable)(base.Tables["HistoryLogin"]));
  269. if ((initTable == true)) {
  270. if ((this.tableHistoryLogin != null)) {
  271. this.tableHistoryLogin.InitVars();
  272. }
  273. }
  274. this.tableStaffs = ((StaffsDataTable)(base.Tables["Staffs"]));
  275. if ((initTable == true)) {
  276. if ((this.tableStaffs != null)) {
  277. this.tableStaffs.InitVars();
  278. }
  279. }
  280. this.tableUsers = ((UsersDataTable)(base.Tables["Users"]));
  281. if ((initTable == true)) {
  282. if ((this.tableUsers != null)) {
  283. this.tableUsers.InitVars();
  284. }
  285. }
  286. this.tableUserTraffic = ((UserTrafficDataTable)(base.Tables["UserTraffic"]));
  287. if ((initTable == true)) {
  288. if ((this.tableUserTraffic != null)) {
  289. this.tableUserTraffic.InitVars();
  290. }
  291. }
  292. this.tableUserType = ((UserTypeDataTable)(base.Tables["UserType"]));
  293. if ((initTable == true)) {
  294. if ((this.tableUserType != null)) {
  295. this.tableUserType.InitVars();
  296. }
  297. }
  298. this.relationFK_FaceImages_Users = this.Relations["FK_FaceImages_Users"];
  299. this.relationFK_HistoryLogin_Staffs = this.Relations["FK_HistoryLogin_Staffs"];
  300. this.relationFK_Staffs_UserType = this.Relations["FK_Staffs_UserType"];
  301. this.relationFK_Users_UserType = this.Relations["FK_Users_UserType"];
  302. this.relationFK_UserTraffic_Users = this.Relations["FK_UserTraffic_Users"];
  303. }
  304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  306. private void InitClass() {
  307. this.DataSetName = "ImpulseVisionAppDataSet";
  308. this.Prefix = "";
  309. this.Namespace = "http://tempuri.org/ImpulseVisionAppDataSet.xsd";
  310. this.EnforceConstraints = true;
  311. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  312. this.tableFaceImages = new FaceImagesDataTable();
  313. base.Tables.Add(this.tableFaceImages);
  314. this.tableHistoryLogin = new HistoryLoginDataTable();
  315. base.Tables.Add(this.tableHistoryLogin);
  316. this.tableStaffs = new StaffsDataTable(false);
  317. base.Tables.Add(this.tableStaffs);
  318. this.tableUsers = new UsersDataTable();
  319. base.Tables.Add(this.tableUsers);
  320. this.tableUserTraffic = new UserTrafficDataTable();
  321. base.Tables.Add(this.tableUserTraffic);
  322. this.tableUserType = new UserTypeDataTable();
  323. base.Tables.Add(this.tableUserType);
  324. this.relationFK_FaceImages_Users = new global::System.Data.DataRelation("FK_FaceImages_Users", new global::System.Data.DataColumn[] {
  325. this.tableUsers.IDColumn}, new global::System.Data.DataColumn[] {
  326. this.tableFaceImages.UserIDColumn}, false);
  327. this.Relations.Add(this.relationFK_FaceImages_Users);
  328. this.relationFK_HistoryLogin_Staffs = new global::System.Data.DataRelation("FK_HistoryLogin_Staffs", new global::System.Data.DataColumn[] {
  329. this.tableStaffs.IDColumn}, new global::System.Data.DataColumn[] {
  330. this.tableHistoryLogin.StaffsIDColumn}, false);
  331. this.Relations.Add(this.relationFK_HistoryLogin_Staffs);
  332. this.relationFK_Staffs_UserType = new global::System.Data.DataRelation("FK_Staffs_UserType", new global::System.Data.DataColumn[] {
  333. this.tableUserType.IDColumn}, new global::System.Data.DataColumn[] {
  334. this.tableStaffs.IDStaffsTypeColumn}, false);
  335. this.Relations.Add(this.relationFK_Staffs_UserType);
  336. this.relationFK_Users_UserType = new global::System.Data.DataRelation("FK_Users_UserType", new global::System.Data.DataColumn[] {
  337. this.tableUserType.IDColumn}, new global::System.Data.DataColumn[] {
  338. this.tableUsers.IDUserTypeColumn}, false);
  339. this.Relations.Add(this.relationFK_Users_UserType);
  340. this.relationFK_UserTraffic_Users = new global::System.Data.DataRelation("FK_UserTraffic_Users", new global::System.Data.DataColumn[] {
  341. this.tableUsers.IDColumn}, new global::System.Data.DataColumn[] {
  342. this.tableUserTraffic.UserIDColumn}, false);
  343. this.Relations.Add(this.relationFK_UserTraffic_Users);
  344. }
  345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  347. private bool ShouldSerializeFaceImages() {
  348. return false;
  349. }
  350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  352. private bool ShouldSerializeHistoryLogin() {
  353. return false;
  354. }
  355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  357. private bool ShouldSerializeStaffs() {
  358. return false;
  359. }
  360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  362. private bool ShouldSerializeUsers() {
  363. return false;
  364. }
  365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  367. private bool ShouldSerializeUserTraffic() {
  368. return false;
  369. }
  370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  372. private bool ShouldSerializeUserType() {
  373. return false;
  374. }
  375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  377. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  378. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  379. this.InitVars();
  380. }
  381. }
  382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  384. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  385. ImpulseVisionAppDataSet ds = new ImpulseVisionAppDataSet();
  386. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  387. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  388. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  389. any.Namespace = ds.Namespace;
  390. sequence.Items.Add(any);
  391. type.Particle = sequence;
  392. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  393. if (xs.Contains(dsSchema.TargetNamespace)) {
  394. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  395. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  396. try {
  397. global::System.Xml.Schema.XmlSchema schema = null;
  398. dsSchema.Write(s1);
  399. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  400. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  401. s2.SetLength(0);
  402. schema.Write(s2);
  403. if ((s1.Length == s2.Length)) {
  404. s1.Position = 0;
  405. s2.Position = 0;
  406. for (; ((s1.Position != s1.Length)
  407. && (s1.ReadByte() == s2.ReadByte())); ) {
  408. ;
  409. }
  410. if ((s1.Position == s1.Length)) {
  411. return type;
  412. }
  413. }
  414. }
  415. }
  416. finally {
  417. if ((s1 != null)) {
  418. s1.Close();
  419. }
  420. if ((s2 != null)) {
  421. s2.Close();
  422. }
  423. }
  424. }
  425. xs.Add(dsSchema);
  426. return type;
  427. }
  428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  430. private void InitExpressions() {
  431. this.Staffs.FIOColumn.Expression = "Lastname+\' \'+Firstname+\' \'+Patronymic";
  432. }
  433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  434. public delegate void FaceImagesRowChangeEventHandler(object sender, FaceImagesRowChangeEvent e);
  435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  436. public delegate void HistoryLoginRowChangeEventHandler(object sender, HistoryLoginRowChangeEvent e);
  437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  438. public delegate void StaffsRowChangeEventHandler(object sender, StaffsRowChangeEvent e);
  439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  440. public delegate void UsersRowChangeEventHandler(object sender, UsersRowChangeEvent e);
  441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  442. public delegate void UserTrafficRowChangeEventHandler(object sender, UserTrafficRowChangeEvent e);
  443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  444. public delegate void UserTypeRowChangeEventHandler(object sender, UserTypeRowChangeEvent e);
  445. /// <summary>
  446. ///Represents the strongly named DataTable class.
  447. ///</summary>
  448. [global::System.Serializable()]
  449. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  450. public partial class FaceImagesDataTable : global::System.Data.TypedTableBase<FaceImagesRow> {
  451. private global::System.Data.DataColumn columnID;
  452. private global::System.Data.DataColumn columnUserID;
  453. private global::System.Data.DataColumn columnPicture;
  454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  456. public FaceImagesDataTable() {
  457. this.TableName = "FaceImages";
  458. this.BeginInit();
  459. this.InitClass();
  460. this.EndInit();
  461. }
  462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  464. internal FaceImagesDataTable(global::System.Data.DataTable table) {
  465. this.TableName = table.TableName;
  466. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  467. this.CaseSensitive = table.CaseSensitive;
  468. }
  469. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  470. this.Locale = table.Locale;
  471. }
  472. if ((table.Namespace != table.DataSet.Namespace)) {
  473. this.Namespace = table.Namespace;
  474. }
  475. this.Prefix = table.Prefix;
  476. this.MinimumCapacity = table.MinimumCapacity;
  477. }
  478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  480. protected FaceImagesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  481. base(info, context) {
  482. this.InitVars();
  483. }
  484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  486. public global::System.Data.DataColumn IDColumn {
  487. get {
  488. return this.columnID;
  489. }
  490. }
  491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  493. public global::System.Data.DataColumn UserIDColumn {
  494. get {
  495. return this.columnUserID;
  496. }
  497. }
  498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  500. public global::System.Data.DataColumn PictureColumn {
  501. get {
  502. return this.columnPicture;
  503. }
  504. }
  505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  507. [global::System.ComponentModel.Browsable(false)]
  508. public int Count {
  509. get {
  510. return this.Rows.Count;
  511. }
  512. }
  513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  515. public FaceImagesRow this[int index] {
  516. get {
  517. return ((FaceImagesRow)(this.Rows[index]));
  518. }
  519. }
  520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  521. public event FaceImagesRowChangeEventHandler FaceImagesRowChanging;
  522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  523. public event FaceImagesRowChangeEventHandler FaceImagesRowChanged;
  524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  525. public event FaceImagesRowChangeEventHandler FaceImagesRowDeleting;
  526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  527. public event FaceImagesRowChangeEventHandler FaceImagesRowDeleted;
  528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  530. public void AddFaceImagesRow(FaceImagesRow row) {
  531. this.Rows.Add(row);
  532. }
  533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  535. public FaceImagesRow AddFaceImagesRow(int ID, UsersRow parentUsersRowByFK_FaceImages_Users, string Picture) {
  536. FaceImagesRow rowFaceImagesRow = ((FaceImagesRow)(this.NewRow()));
  537. object[] columnValuesArray = new object[] {
  538. ID,
  539. null,
  540. Picture};
  541. if ((parentUsersRowByFK_FaceImages_Users != null)) {
  542. columnValuesArray[1] = parentUsersRowByFK_FaceImages_Users[0];
  543. }
  544. rowFaceImagesRow.ItemArray = columnValuesArray;
  545. this.Rows.Add(rowFaceImagesRow);
  546. return rowFaceImagesRow;
  547. }
  548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  550. public FaceImagesRow FindByID(int ID) {
  551. return ((FaceImagesRow)(this.Rows.Find(new object[] {
  552. ID})));
  553. }
  554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  556. public override global::System.Data.DataTable Clone() {
  557. FaceImagesDataTable cln = ((FaceImagesDataTable)(base.Clone()));
  558. cln.InitVars();
  559. return cln;
  560. }
  561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  563. protected override global::System.Data.DataTable CreateInstance() {
  564. return new FaceImagesDataTable();
  565. }
  566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  568. internal void InitVars() {
  569. this.columnID = base.Columns["ID"];
  570. this.columnUserID = base.Columns["UserID"];
  571. this.columnPicture = base.Columns["Picture"];
  572. }
  573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  575. private void InitClass() {
  576. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  577. base.Columns.Add(this.columnID);
  578. this.columnUserID = new global::System.Data.DataColumn("UserID", typeof(int), null, global::System.Data.MappingType.Element);
  579. base.Columns.Add(this.columnUserID);
  580. this.columnPicture = new global::System.Data.DataColumn("Picture", typeof(string), null, global::System.Data.MappingType.Element);
  581. base.Columns.Add(this.columnPicture);
  582. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  583. this.columnID}, true));
  584. this.columnID.AllowDBNull = false;
  585. this.columnID.Unique = true;
  586. this.columnUserID.AllowDBNull = false;
  587. this.columnPicture.AllowDBNull = false;
  588. this.columnPicture.MaxLength = 2147483647;
  589. }
  590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  592. public FaceImagesRow NewFaceImagesRow() {
  593. return ((FaceImagesRow)(this.NewRow()));
  594. }
  595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  597. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  598. return new FaceImagesRow(builder);
  599. }
  600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  602. protected override global::System.Type GetRowType() {
  603. return typeof(FaceImagesRow);
  604. }
  605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  607. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  608. base.OnRowChanged(e);
  609. if ((this.FaceImagesRowChanged != null)) {
  610. this.FaceImagesRowChanged(this, new FaceImagesRowChangeEvent(((FaceImagesRow)(e.Row)), e.Action));
  611. }
  612. }
  613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  615. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  616. base.OnRowChanging(e);
  617. if ((this.FaceImagesRowChanging != null)) {
  618. this.FaceImagesRowChanging(this, new FaceImagesRowChangeEvent(((FaceImagesRow)(e.Row)), e.Action));
  619. }
  620. }
  621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  623. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  624. base.OnRowDeleted(e);
  625. if ((this.FaceImagesRowDeleted != null)) {
  626. this.FaceImagesRowDeleted(this, new FaceImagesRowChangeEvent(((FaceImagesRow)(e.Row)), e.Action));
  627. }
  628. }
  629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  631. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  632. base.OnRowDeleting(e);
  633. if ((this.FaceImagesRowDeleting != null)) {
  634. this.FaceImagesRowDeleting(this, new FaceImagesRowChangeEvent(((FaceImagesRow)(e.Row)), e.Action));
  635. }
  636. }
  637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  639. public void RemoveFaceImagesRow(FaceImagesRow row) {
  640. this.Rows.Remove(row);
  641. }
  642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  644. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  645. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  646. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  647. ImpulseVisionAppDataSet ds = new ImpulseVisionAppDataSet();
  648. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  649. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  650. any1.MinOccurs = new decimal(0);
  651. any1.MaxOccurs = decimal.MaxValue;
  652. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  653. sequence.Items.Add(any1);
  654. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  655. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  656. any2.MinOccurs = new decimal(1);
  657. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  658. sequence.Items.Add(any2);
  659. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  660. attribute1.Name = "namespace";
  661. attribute1.FixedValue = ds.Namespace;
  662. type.Attributes.Add(attribute1);
  663. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  664. attribute2.Name = "tableTypeName";
  665. attribute2.FixedValue = "FaceImagesDataTable";
  666. type.Attributes.Add(attribute2);
  667. type.Particle = sequence;
  668. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  669. if (xs.Contains(dsSchema.TargetNamespace)) {
  670. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  671. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  672. try {
  673. global::System.Xml.Schema.XmlSchema schema = null;
  674. dsSchema.Write(s1);
  675. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  676. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  677. s2.SetLength(0);
  678. schema.Write(s2);
  679. if ((s1.Length == s2.Length)) {
  680. s1.Position = 0;
  681. s2.Position = 0;
  682. for (; ((s1.Position != s1.Length)
  683. && (s1.ReadByte() == s2.ReadByte())); ) {
  684. ;
  685. }
  686. if ((s1.Position == s1.Length)) {
  687. return type;
  688. }
  689. }
  690. }
  691. }
  692. finally {
  693. if ((s1 != null)) {
  694. s1.Close();
  695. }
  696. if ((s2 != null)) {
  697. s2.Close();
  698. }
  699. }
  700. }
  701. xs.Add(dsSchema);
  702. return type;
  703. }
  704. }
  705. /// <summary>
  706. ///Represents the strongly named DataTable class.
  707. ///</summary>
  708. [global::System.Serializable()]
  709. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  710. public partial class HistoryLoginDataTable : global::System.Data.TypedTableBase<HistoryLoginRow> {
  711. private global::System.Data.DataColumn columnID;
  712. private global::System.Data.DataColumn columnStaffsID;
  713. private global::System.Data.DataColumn columnTimeLogin;
  714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  716. public HistoryLoginDataTable() {
  717. this.TableName = "HistoryLogin";
  718. this.BeginInit();
  719. this.InitClass();
  720. this.EndInit();
  721. }
  722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  724. internal HistoryLoginDataTable(global::System.Data.DataTable table) {
  725. this.TableName = table.TableName;
  726. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  727. this.CaseSensitive = table.CaseSensitive;
  728. }
  729. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  730. this.Locale = table.Locale;
  731. }
  732. if ((table.Namespace != table.DataSet.Namespace)) {
  733. this.Namespace = table.Namespace;
  734. }
  735. this.Prefix = table.Prefix;
  736. this.MinimumCapacity = table.MinimumCapacity;
  737. }
  738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  740. protected HistoryLoginDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  741. base(info, context) {
  742. this.InitVars();
  743. }
  744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  746. public global::System.Data.DataColumn IDColumn {
  747. get {
  748. return this.columnID;
  749. }
  750. }
  751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  753. public global::System.Data.DataColumn StaffsIDColumn {
  754. get {
  755. return this.columnStaffsID;
  756. }
  757. }
  758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  760. public global::System.Data.DataColumn TimeLoginColumn {
  761. get {
  762. return this.columnTimeLogin;
  763. }
  764. }
  765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  767. [global::System.ComponentModel.Browsable(false)]
  768. public int Count {
  769. get {
  770. return this.Rows.Count;
  771. }
  772. }
  773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  775. public HistoryLoginRow this[int index] {
  776. get {
  777. return ((HistoryLoginRow)(this.Rows[index]));
  778. }
  779. }
  780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  781. public event HistoryLoginRowChangeEventHandler HistoryLoginRowChanging;
  782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  783. public event HistoryLoginRowChangeEventHandler HistoryLoginRowChanged;
  784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  785. public event HistoryLoginRowChangeEventHandler HistoryLoginRowDeleting;
  786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  787. public event HistoryLoginRowChangeEventHandler HistoryLoginRowDeleted;
  788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  790. public void AddHistoryLoginRow(HistoryLoginRow row) {
  791. this.Rows.Add(row);
  792. }
  793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  795. public HistoryLoginRow AddHistoryLoginRow(StaffsRow parentStaffsRowByFK_HistoryLogin_Staffs, System.DateTime TimeLogin) {
  796. HistoryLoginRow rowHistoryLoginRow = ((HistoryLoginRow)(this.NewRow()));
  797. object[] columnValuesArray = new object[] {
  798. null,
  799. null,
  800. TimeLogin};
  801. if ((parentStaffsRowByFK_HistoryLogin_Staffs != null)) {
  802. columnValuesArray[1] = parentStaffsRowByFK_HistoryLogin_Staffs[0];
  803. }
  804. rowHistoryLoginRow.ItemArray = columnValuesArray;
  805. this.Rows.Add(rowHistoryLoginRow);
  806. return rowHistoryLoginRow;
  807. }
  808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  810. public HistoryLoginRow FindByID(int ID) {
  811. return ((HistoryLoginRow)(this.Rows.Find(new object[] {
  812. ID})));
  813. }
  814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  816. public override global::System.Data.DataTable Clone() {
  817. HistoryLoginDataTable cln = ((HistoryLoginDataTable)(base.Clone()));
  818. cln.InitVars();
  819. return cln;
  820. }
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  823. protected override global::System.Data.DataTable CreateInstance() {
  824. return new HistoryLoginDataTable();
  825. }
  826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  828. internal void InitVars() {
  829. this.columnID = base.Columns["ID"];
  830. this.columnStaffsID = base.Columns["StaffsID"];
  831. this.columnTimeLogin = base.Columns["TimeLogin"];
  832. }
  833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  835. private void InitClass() {
  836. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  837. base.Columns.Add(this.columnID);
  838. this.columnStaffsID = new global::System.Data.DataColumn("StaffsID", typeof(int), null, global::System.Data.MappingType.Element);
  839. base.Columns.Add(this.columnStaffsID);
  840. this.columnTimeLogin = new global::System.Data.DataColumn("TimeLogin", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  841. base.Columns.Add(this.columnTimeLogin);
  842. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  843. this.columnID}, true));
  844. this.columnID.AutoIncrement = true;
  845. this.columnID.AutoIncrementSeed = -1;
  846. this.columnID.AutoIncrementStep = -1;
  847. this.columnID.AllowDBNull = false;
  848. this.columnID.ReadOnly = true;
  849. this.columnID.Unique = true;
  850. this.columnStaffsID.AllowDBNull = false;
  851. this.columnTimeLogin.AllowDBNull = false;
  852. }
  853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  855. public HistoryLoginRow NewHistoryLoginRow() {
  856. return ((HistoryLoginRow)(this.NewRow()));
  857. }
  858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  860. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  861. return new HistoryLoginRow(builder);
  862. }
  863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  865. protected override global::System.Type GetRowType() {
  866. return typeof(HistoryLoginRow);
  867. }
  868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  870. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  871. base.OnRowChanged(e);
  872. if ((this.HistoryLoginRowChanged != null)) {
  873. this.HistoryLoginRowChanged(this, new HistoryLoginRowChangeEvent(((HistoryLoginRow)(e.Row)), e.Action));
  874. }
  875. }
  876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  878. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  879. base.OnRowChanging(e);
  880. if ((this.HistoryLoginRowChanging != null)) {
  881. this.HistoryLoginRowChanging(this, new HistoryLoginRowChangeEvent(((HistoryLoginRow)(e.Row)), e.Action));
  882. }
  883. }
  884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  886. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  887. base.OnRowDeleted(e);
  888. if ((this.HistoryLoginRowDeleted != null)) {
  889. this.HistoryLoginRowDeleted(this, new HistoryLoginRowChangeEvent(((HistoryLoginRow)(e.Row)), e.Action));
  890. }
  891. }
  892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  894. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  895. base.OnRowDeleting(e);
  896. if ((this.HistoryLoginRowDeleting != null)) {
  897. this.HistoryLoginRowDeleting(this, new HistoryLoginRowChangeEvent(((HistoryLoginRow)(e.Row)), e.Action));
  898. }
  899. }
  900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  902. public void RemoveHistoryLoginRow(HistoryLoginRow row) {
  903. this.Rows.Remove(row);
  904. }
  905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  907. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  908. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  909. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  910. ImpulseVisionAppDataSet ds = new ImpulseVisionAppDataSet();
  911. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  912. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  913. any1.MinOccurs = new decimal(0);
  914. any1.MaxOccurs = decimal.MaxValue;
  915. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  916. sequence.Items.Add(any1);
  917. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  918. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  919. any2.MinOccurs = new decimal(1);
  920. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  921. sequence.Items.Add(any2);
  922. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  923. attribute1.Name = "namespace";
  924. attribute1.FixedValue = ds.Namespace;
  925. type.Attributes.Add(attribute1);
  926. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  927. attribute2.Name = "tableTypeName";
  928. attribute2.FixedValue = "HistoryLoginDataTable";
  929. type.Attributes.Add(attribute2);
  930. type.Particle = sequence;
  931. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  932. if (xs.Contains(dsSchema.TargetNamespace)) {
  933. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  934. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  935. try {
  936. global::System.Xml.Schema.XmlSchema schema = null;
  937. dsSchema.Write(s1);
  938. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  939. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  940. s2.SetLength(0);
  941. schema.Write(s2);
  942. if ((s1.Length == s2.Length)) {
  943. s1.Position = 0;
  944. s2.Position = 0;
  945. for (; ((s1.Position != s1.Length)
  946. && (s1.ReadByte() == s2.ReadByte())); ) {
  947. ;
  948. }
  949. if ((s1.Position == s1.Length)) {
  950. return type;
  951. }
  952. }
  953. }
  954. }
  955. finally {
  956. if ((s1 != null)) {
  957. s1.Close();
  958. }
  959. if ((s2 != null)) {
  960. s2.Close();
  961. }
  962. }
  963. }
  964. xs.Add(dsSchema);
  965. return type;
  966. }
  967. }
  968. /// <summary>
  969. ///Represents the strongly named DataTable class.
  970. ///</summary>
  971. [global::System.Serializable()]
  972. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  973. public partial class StaffsDataTable : global::System.Data.TypedTableBase<StaffsRow> {
  974. private global::System.Data.DataColumn columnID;
  975. private global::System.Data.DataColumn columnLastname;
  976. private global::System.Data.DataColumn columnFirstname;
  977. private global::System.Data.DataColumn columnPatronymic;
  978. private global::System.Data.DataColumn columnPassportSeria;
  979. private global::System.Data.DataColumn columnPassportNum;
  980. private global::System.Data.DataColumn columnLogin;
  981. private global::System.Data.DataColumn columnPassword;
  982. private global::System.Data.DataColumn columnIDStaffsType;
  983. private global::System.Data.DataColumn columnFIO;
  984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  986. public StaffsDataTable() :
  987. this(false) {
  988. }
  989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  991. public StaffsDataTable(bool initExpressions) {
  992. this.TableName = "Staffs";
  993. this.BeginInit();
  994. this.InitClass();
  995. if ((initExpressions == true)) {
  996. this.InitExpressions();
  997. }
  998. this.EndInit();
  999. }
  1000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1002. internal StaffsDataTable(global::System.Data.DataTable table) {
  1003. this.TableName = table.TableName;
  1004. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1005. this.CaseSensitive = table.CaseSensitive;
  1006. }
  1007. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1008. this.Locale = table.Locale;
  1009. }
  1010. if ((table.Namespace != table.DataSet.Namespace)) {
  1011. this.Namespace = table.Namespace;
  1012. }
  1013. this.Prefix = table.Prefix;
  1014. this.MinimumCapacity = table.MinimumCapacity;
  1015. }
  1016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1018. protected StaffsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1019. base(info, context) {
  1020. this.InitVars();
  1021. }
  1022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1024. public global::System.Data.DataColumn IDColumn {
  1025. get {
  1026. return this.columnID;
  1027. }
  1028. }
  1029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1031. public global::System.Data.DataColumn LastnameColumn {
  1032. get {
  1033. return this.columnLastname;
  1034. }
  1035. }
  1036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1038. public global::System.Data.DataColumn FirstnameColumn {
  1039. get {
  1040. return this.columnFirstname;
  1041. }
  1042. }
  1043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1045. public global::System.Data.DataColumn PatronymicColumn {
  1046. get {
  1047. return this.columnPatronymic;
  1048. }
  1049. }
  1050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1052. public global::System.Data.DataColumn PassportSeriaColumn {
  1053. get {
  1054. return this.columnPassportSeria;
  1055. }
  1056. }
  1057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1059. public global::System.Data.DataColumn PassportNumColumn {
  1060. get {
  1061. return this.columnPassportNum;
  1062. }
  1063. }
  1064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1066. public global::System.Data.DataColumn LoginColumn {
  1067. get {
  1068. return this.columnLogin;
  1069. }
  1070. }
  1071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1073. public global::System.Data.DataColumn PasswordColumn {
  1074. get {
  1075. return this.columnPassword;
  1076. }
  1077. }
  1078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1080. public global::System.Data.DataColumn IDStaffsTypeColumn {
  1081. get {
  1082. return this.columnIDStaffsType;
  1083. }
  1084. }
  1085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1087. public global::System.Data.DataColumn FIOColumn {
  1088. get {
  1089. return this.columnFIO;
  1090. }
  1091. }
  1092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1094. [global::System.ComponentModel.Browsable(false)]
  1095. public int Count {
  1096. get {
  1097. return this.Rows.Count;
  1098. }
  1099. }
  1100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1102. public StaffsRow this[int index] {
  1103. get {
  1104. return ((StaffsRow)(this.Rows[index]));
  1105. }
  1106. }
  1107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1108. public event StaffsRowChangeEventHandler StaffsRowChanging;
  1109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1110. public event StaffsRowChangeEventHandler StaffsRowChanged;
  1111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1112. public event StaffsRowChangeEventHandler StaffsRowDeleting;
  1113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1114. public event StaffsRowChangeEventHandler StaffsRowDeleted;
  1115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1117. public void AddStaffsRow(StaffsRow row) {
  1118. this.Rows.Add(row);
  1119. }
  1120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1122. public StaffsRow AddStaffsRow(string Lastname, string Firstname, string Patronymic, string PassportSeria, string PassportNum, string Login, string Password, UserTypeRow parentUserTypeRowByFK_Staffs_UserType, string FIO) {
  1123. StaffsRow rowStaffsRow = ((StaffsRow)(this.NewRow()));
  1124. object[] columnValuesArray = new object[] {
  1125. null,
  1126. Lastname,
  1127. Firstname,
  1128. Patronymic,
  1129. PassportSeria,
  1130. PassportNum,
  1131. Login,
  1132. Password,
  1133. null,
  1134. FIO};
  1135. if ((parentUserTypeRowByFK_Staffs_UserType != null)) {
  1136. columnValuesArray[8] = parentUserTypeRowByFK_Staffs_UserType[0];
  1137. }
  1138. rowStaffsRow.ItemArray = columnValuesArray;
  1139. this.Rows.Add(rowStaffsRow);
  1140. return rowStaffsRow;
  1141. }
  1142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1144. public StaffsRow AddStaffsRow(string Lastname, string Firstname, string Patronymic, string PassportSeria, string PassportNum, string Login, string Password, UserTypeRow parentUserTypeRowByFK_Staffs_UserType) {
  1145. StaffsRow rowStaffsRow = ((StaffsRow)(this.NewRow()));
  1146. object[] columnValuesArray = new object[] {
  1147. null,
  1148. Lastname,
  1149. Firstname,
  1150. Patronymic,
  1151. PassportSeria,
  1152. PassportNum,
  1153. Login,
  1154. Password,
  1155. null,
  1156. null};
  1157. if ((parentUserTypeRowByFK_Staffs_UserType != null)) {
  1158. columnValuesArray[8] = parentUserTypeRowByFK_Staffs_UserType[0];
  1159. }
  1160. rowStaffsRow.ItemArray = columnValuesArray;
  1161. this.Rows.Add(rowStaffsRow);
  1162. return rowStaffsRow;
  1163. }
  1164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1166. public StaffsRow FindByID(int ID) {
  1167. return ((StaffsRow)(this.Rows.Find(new object[] {
  1168. ID})));
  1169. }
  1170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1172. public override global::System.Data.DataTable Clone() {
  1173. StaffsDataTable cln = ((StaffsDataTable)(base.Clone()));
  1174. cln.InitVars();
  1175. return cln;
  1176. }
  1177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1179. protected override global::System.Data.DataTable CreateInstance() {
  1180. return new StaffsDataTable();
  1181. }
  1182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1184. internal void InitVars() {
  1185. this.columnID = base.Columns["ID"];
  1186. this.columnLastname = base.Columns["Lastname"];
  1187. this.columnFirstname = base.Columns["Firstname"];
  1188. this.columnPatronymic = base.Columns["Patronymic"];
  1189. this.columnPassportSeria = base.Columns["PassportSeria"];
  1190. this.columnPassportNum = base.Columns["PassportNum"];
  1191. this.columnLogin = base.Columns["Login"];
  1192. this.columnPassword = base.Columns["Password"];
  1193. this.columnIDStaffsType = base.Columns["IDStaffsType"];
  1194. this.columnFIO = base.Columns["FIO"];
  1195. }
  1196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1198. private void InitClass() {
  1199. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1200. base.Columns.Add(this.columnID);
  1201. this.columnLastname = new global::System.Data.DataColumn("Lastname", typeof(string), null, global::System.Data.MappingType.Element);
  1202. base.Columns.Add(this.columnLastname);
  1203. this.columnFirstname = new global::System.Data.DataColumn("Firstname", typeof(string), null, global::System.Data.MappingType.Element);
  1204. base.Columns.Add(this.columnFirstname);
  1205. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  1206. base.Columns.Add(this.columnPatronymic);
  1207. this.columnPassportSeria = new global::System.Data.DataColumn("PassportSeria", typeof(string), null, global::System.Data.MappingType.Element);
  1208. base.Columns.Add(this.columnPassportSeria);
  1209. this.columnPassportNum = new global::System.Data.DataColumn("PassportNum", typeof(string), null, global::System.Data.MappingType.Element);
  1210. base.Columns.Add(this.columnPassportNum);
  1211. this.columnLogin = new global::System.Data.DataColumn("Login", typeof(string), null, global::System.Data.MappingType.Element);
  1212. base.Columns.Add(this.columnLogin);
  1213. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  1214. base.Columns.Add(this.columnPassword);
  1215. this.columnIDStaffsType = new global::System.Data.DataColumn("IDStaffsType", typeof(int), null, global::System.Data.MappingType.Element);
  1216. base.Columns.Add(this.columnIDStaffsType);
  1217. this.columnFIO = new global::System.Data.DataColumn("FIO", typeof(string), null, global::System.Data.MappingType.Element);
  1218. base.Columns.Add(this.columnFIO);
  1219. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1220. this.columnID}, true));
  1221. this.columnID.AutoIncrement = true;
  1222. this.columnID.AutoIncrementSeed = -1;
  1223. this.columnID.AutoIncrementStep = -1;
  1224. this.columnID.AllowDBNull = false;
  1225. this.columnID.ReadOnly = true;
  1226. this.columnID.Unique = true;
  1227. this.columnLastname.AllowDBNull = false;
  1228. this.columnLastname.MaxLength = 50;
  1229. this.columnFirstname.AllowDBNull = false;
  1230. this.columnFirstname.MaxLength = 50;
  1231. this.columnPatronymic.MaxLength = 50;
  1232. this.columnPassportSeria.AllowDBNull = false;
  1233. this.columnPassportSeria.MaxLength = 4;
  1234. this.columnPassportNum.AllowDBNull = false;
  1235. this.columnPassportNum.MaxLength = 6;
  1236. this.columnLogin.AllowDBNull = false;
  1237. this.columnLogin.MaxLength = 50;
  1238. this.columnPassword.AllowDBNull = false;
  1239. this.columnPassword.MaxLength = 50;
  1240. this.columnIDStaffsType.AllowDBNull = false;
  1241. this.columnFIO.ReadOnly = true;
  1242. }
  1243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1245. public StaffsRow NewStaffsRow() {
  1246. return ((StaffsRow)(this.NewRow()));
  1247. }
  1248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1250. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1251. return new StaffsRow(builder);
  1252. }
  1253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1255. protected override global::System.Type GetRowType() {
  1256. return typeof(StaffsRow);
  1257. }
  1258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1260. private void InitExpressions() {
  1261. this.FIOColumn.Expression = "Lastname+\' \'+Firstname+\' \'+Patronymic";
  1262. }
  1263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1265. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1266. base.OnRowChanged(e);
  1267. if ((this.StaffsRowChanged != null)) {
  1268. this.StaffsRowChanged(this, new StaffsRowChangeEvent(((StaffsRow)(e.Row)), e.Action));
  1269. }
  1270. }
  1271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1273. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1274. base.OnRowChanging(e);
  1275. if ((this.StaffsRowChanging != null)) {
  1276. this.StaffsRowChanging(this, new StaffsRowChangeEvent(((StaffsRow)(e.Row)), e.Action));
  1277. }
  1278. }
  1279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1281. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1282. base.OnRowDeleted(e);
  1283. if ((this.StaffsRowDeleted != null)) {
  1284. this.StaffsRowDeleted(this, new StaffsRowChangeEvent(((StaffsRow)(e.Row)), e.Action));
  1285. }
  1286. }
  1287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1289. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1290. base.OnRowDeleting(e);
  1291. if ((this.StaffsRowDeleting != null)) {
  1292. this.StaffsRowDeleting(this, new StaffsRowChangeEvent(((StaffsRow)(e.Row)), e.Action));
  1293. }
  1294. }
  1295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1297. public void RemoveStaffsRow(StaffsRow row) {
  1298. this.Rows.Remove(row);
  1299. }
  1300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1302. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1303. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1304. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1305. ImpulseVisionAppDataSet ds = new ImpulseVisionAppDataSet();
  1306. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1307. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1308. any1.MinOccurs = new decimal(0);
  1309. any1.MaxOccurs = decimal.MaxValue;
  1310. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1311. sequence.Items.Add(any1);
  1312. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1313. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1314. any2.MinOccurs = new decimal(1);
  1315. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1316. sequence.Items.Add(any2);
  1317. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1318. attribute1.Name = "namespace";
  1319. attribute1.FixedValue = ds.Namespace;
  1320. type.Attributes.Add(attribute1);
  1321. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1322. attribute2.Name = "tableTypeName";
  1323. attribute2.FixedValue = "StaffsDataTable";
  1324. type.Attributes.Add(attribute2);
  1325. type.Particle = sequence;
  1326. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1327. if (xs.Contains(dsSchema.TargetNamespace)) {
  1328. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1329. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1330. try {
  1331. global::System.Xml.Schema.XmlSchema schema = null;
  1332. dsSchema.Write(s1);
  1333. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1334. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1335. s2.SetLength(0);
  1336. schema.Write(s2);
  1337. if ((s1.Length == s2.Length)) {
  1338. s1.Position = 0;
  1339. s2.Position = 0;
  1340. for (; ((s1.Position != s1.Length)
  1341. && (s1.ReadByte() == s2.ReadByte())); ) {
  1342. ;
  1343. }
  1344. if ((s1.Position == s1.Length)) {
  1345. return type;
  1346. }
  1347. }
  1348. }
  1349. }
  1350. finally {
  1351. if ((s1 != null)) {
  1352. s1.Close();
  1353. }
  1354. if ((s2 != null)) {
  1355. s2.Close();
  1356. }
  1357. }
  1358. }
  1359. xs.Add(dsSchema);
  1360. return type;
  1361. }
  1362. }
  1363. /// <summary>
  1364. ///Represents the strongly named DataTable class.
  1365. ///</summary>
  1366. [global::System.Serializable()]
  1367. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1368. public partial class UsersDataTable : global::System.Data.TypedTableBase<UsersRow> {
  1369. private global::System.Data.DataColumn columnID;
  1370. private global::System.Data.DataColumn columnLastname;
  1371. private global::System.Data.DataColumn columnFirstname;
  1372. private global::System.Data.DataColumn columnPatronymic;
  1373. private global::System.Data.DataColumn columnPassportSeria;
  1374. private global::System.Data.DataColumn columnPassportNum;
  1375. private global::System.Data.DataColumn columnIDUserType;
  1376. private global::System.Data.DataColumn columnPhone;
  1377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1379. public UsersDataTable() {
  1380. this.TableName = "Users";
  1381. this.BeginInit();
  1382. this.InitClass();
  1383. this.EndInit();
  1384. }
  1385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1387. internal UsersDataTable(global::System.Data.DataTable table) {
  1388. this.TableName = table.TableName;
  1389. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1390. this.CaseSensitive = table.CaseSensitive;
  1391. }
  1392. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1393. this.Locale = table.Locale;
  1394. }
  1395. if ((table.Namespace != table.DataSet.Namespace)) {
  1396. this.Namespace = table.Namespace;
  1397. }
  1398. this.Prefix = table.Prefix;
  1399. this.MinimumCapacity = table.MinimumCapacity;
  1400. }
  1401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1403. protected UsersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1404. base(info, context) {
  1405. this.InitVars();
  1406. }
  1407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1409. public global::System.Data.DataColumn IDColumn {
  1410. get {
  1411. return this.columnID;
  1412. }
  1413. }
  1414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1416. public global::System.Data.DataColumn LastnameColumn {
  1417. get {
  1418. return this.columnLastname;
  1419. }
  1420. }
  1421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1423. public global::System.Data.DataColumn FirstnameColumn {
  1424. get {
  1425. return this.columnFirstname;
  1426. }
  1427. }
  1428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1430. public global::System.Data.DataColumn PatronymicColumn {
  1431. get {
  1432. return this.columnPatronymic;
  1433. }
  1434. }
  1435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1437. public global::System.Data.DataColumn PassportSeriaColumn {
  1438. get {
  1439. return this.columnPassportSeria;
  1440. }
  1441. }
  1442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1444. public global::System.Data.DataColumn PassportNumColumn {
  1445. get {
  1446. return this.columnPassportNum;
  1447. }
  1448. }
  1449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1451. public global::System.Data.DataColumn IDUserTypeColumn {
  1452. get {
  1453. return this.columnIDUserType;
  1454. }
  1455. }
  1456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1458. public global::System.Data.DataColumn PhoneColumn {
  1459. get {
  1460. return this.columnPhone;
  1461. }
  1462. }
  1463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1465. [global::System.ComponentModel.Browsable(false)]
  1466. public int Count {
  1467. get {
  1468. return this.Rows.Count;
  1469. }
  1470. }
  1471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1473. public UsersRow this[int index] {
  1474. get {
  1475. return ((UsersRow)(this.Rows[index]));
  1476. }
  1477. }
  1478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1479. public event UsersRowChangeEventHandler UsersRowChanging;
  1480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1481. public event UsersRowChangeEventHandler UsersRowChanged;
  1482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1483. public event UsersRowChangeEventHandler UsersRowDeleting;
  1484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1485. public event UsersRowChangeEventHandler UsersRowDeleted;
  1486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1488. public void AddUsersRow(UsersRow row) {
  1489. this.Rows.Add(row);
  1490. }
  1491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1493. public UsersRow AddUsersRow(string Lastname, string Firstname, string Patronymic, string PassportSeria, string PassportNum, UserTypeRow parentUserTypeRowByFK_Users_UserType, string Phone) {
  1494. UsersRow rowUsersRow = ((UsersRow)(this.NewRow()));
  1495. object[] columnValuesArray = new object[] {
  1496. null,
  1497. Lastname,
  1498. Firstname,
  1499. Patronymic,
  1500. PassportSeria,
  1501. PassportNum,
  1502. null,
  1503. Phone};
  1504. if ((parentUserTypeRowByFK_Users_UserType != null)) {
  1505. columnValuesArray[6] = parentUserTypeRowByFK_Users_UserType[0];
  1506. }
  1507. rowUsersRow.ItemArray = columnValuesArray;
  1508. this.Rows.Add(rowUsersRow);
  1509. return rowUsersRow;
  1510. }
  1511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1513. public UsersRow FindByID(int ID) {
  1514. return ((UsersRow)(this.Rows.Find(new object[] {
  1515. ID})));
  1516. }
  1517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1519. public override global::System.Data.DataTable Clone() {
  1520. UsersDataTable cln = ((UsersDataTable)(base.Clone()));
  1521. cln.InitVars();
  1522. return cln;
  1523. }
  1524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1526. protected override global::System.Data.DataTable CreateInstance() {
  1527. return new UsersDataTable();
  1528. }
  1529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1531. internal void InitVars() {
  1532. this.columnID = base.Columns["ID"];
  1533. this.columnLastname = base.Columns["Lastname"];
  1534. this.columnFirstname = base.Columns["Firstname"];
  1535. this.columnPatronymic = base.Columns["Patronymic"];
  1536. this.columnPassportSeria = base.Columns["PassportSeria"];
  1537. this.columnPassportNum = base.Columns["PassportNum"];
  1538. this.columnIDUserType = base.Columns["IDUserType"];
  1539. this.columnPhone = base.Columns["Phone"];
  1540. }
  1541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1543. private void InitClass() {
  1544. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1545. base.Columns.Add(this.columnID);
  1546. this.columnLastname = new global::System.Data.DataColumn("Lastname", typeof(string), null, global::System.Data.MappingType.Element);
  1547. base.Columns.Add(this.columnLastname);
  1548. this.columnFirstname = new global::System.Data.DataColumn("Firstname", typeof(string), null, global::System.Data.MappingType.Element);
  1549. base.Columns.Add(this.columnFirstname);
  1550. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  1551. base.Columns.Add(this.columnPatronymic);
  1552. this.columnPassportSeria = new global::System.Data.DataColumn("PassportSeria", typeof(string), null, global::System.Data.MappingType.Element);
  1553. base.Columns.Add(this.columnPassportSeria);
  1554. this.columnPassportNum = new global::System.Data.DataColumn("PassportNum", typeof(string), null, global::System.Data.MappingType.Element);
  1555. base.Columns.Add(this.columnPassportNum);
  1556. this.columnIDUserType = new global::System.Data.DataColumn("IDUserType", typeof(int), null, global::System.Data.MappingType.Element);
  1557. base.Columns.Add(this.columnIDUserType);
  1558. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  1559. base.Columns.Add(this.columnPhone);
  1560. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1561. this.columnID}, true));
  1562. this.columnID.AutoIncrement = true;
  1563. this.columnID.AutoIncrementSeed = -1;
  1564. this.columnID.AutoIncrementStep = -1;
  1565. this.columnID.AllowDBNull = false;
  1566. this.columnID.ReadOnly = true;
  1567. this.columnID.Unique = true;
  1568. this.columnLastname.AllowDBNull = false;
  1569. this.columnLastname.MaxLength = 50;
  1570. this.columnFirstname.AllowDBNull = false;
  1571. this.columnFirstname.MaxLength = 50;
  1572. this.columnPatronymic.MaxLength = 50;
  1573. this.columnPassportSeria.AllowDBNull = false;
  1574. this.columnPassportSeria.MaxLength = 4;
  1575. this.columnPassportNum.AllowDBNull = false;
  1576. this.columnPassportNum.MaxLength = 6;
  1577. this.columnIDUserType.AllowDBNull = false;
  1578. this.columnPhone.AllowDBNull = false;
  1579. this.columnPhone.MaxLength = 30;
  1580. }
  1581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1583. public UsersRow NewUsersRow() {
  1584. return ((UsersRow)(this.NewRow()));
  1585. }
  1586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1588. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1589. return new UsersRow(builder);
  1590. }
  1591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1593. protected override global::System.Type GetRowType() {
  1594. return typeof(UsersRow);
  1595. }
  1596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1598. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1599. base.OnRowChanged(e);
  1600. if ((this.UsersRowChanged != null)) {
  1601. this.UsersRowChanged(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  1602. }
  1603. }
  1604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1606. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1607. base.OnRowChanging(e);
  1608. if ((this.UsersRowChanging != null)) {
  1609. this.UsersRowChanging(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  1610. }
  1611. }
  1612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1614. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1615. base.OnRowDeleted(e);
  1616. if ((this.UsersRowDeleted != null)) {
  1617. this.UsersRowDeleted(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  1618. }
  1619. }
  1620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1622. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1623. base.OnRowDeleting(e);
  1624. if ((this.UsersRowDeleting != null)) {
  1625. this.UsersRowDeleting(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  1626. }
  1627. }
  1628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1630. public void RemoveUsersRow(UsersRow row) {
  1631. this.Rows.Remove(row);
  1632. }
  1633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1635. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1636. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1637. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1638. ImpulseVisionAppDataSet ds = new ImpulseVisionAppDataSet();
  1639. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1640. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1641. any1.MinOccurs = new decimal(0);
  1642. any1.MaxOccurs = decimal.MaxValue;
  1643. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1644. sequence.Items.Add(any1);
  1645. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1646. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1647. any2.MinOccurs = new decimal(1);
  1648. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1649. sequence.Items.Add(any2);
  1650. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1651. attribute1.Name = "namespace";
  1652. attribute1.FixedValue = ds.Namespace;
  1653. type.Attributes.Add(attribute1);
  1654. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1655. attribute2.Name = "tableTypeName";
  1656. attribute2.FixedValue = "UsersDataTable";
  1657. type.Attributes.Add(attribute2);
  1658. type.Particle = sequence;
  1659. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1660. if (xs.Contains(dsSchema.TargetNamespace)) {
  1661. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1662. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1663. try {
  1664. global::System.Xml.Schema.XmlSchema schema = null;
  1665. dsSchema.Write(s1);
  1666. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1667. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1668. s2.SetLength(0);
  1669. schema.Write(s2);
  1670. if ((s1.Length == s2.Length)) {
  1671. s1.Position = 0;
  1672. s2.Position = 0;
  1673. for (; ((s1.Position != s1.Length)
  1674. && (s1.ReadByte() == s2.ReadByte())); ) {
  1675. ;
  1676. }
  1677. if ((s1.Position == s1.Length)) {
  1678. return type;
  1679. }
  1680. }
  1681. }
  1682. }
  1683. finally {
  1684. if ((s1 != null)) {
  1685. s1.Close();
  1686. }
  1687. if ((s2 != null)) {
  1688. s2.Close();
  1689. }
  1690. }
  1691. }
  1692. xs.Add(dsSchema);
  1693. return type;
  1694. }
  1695. }
  1696. /// <summary>
  1697. ///Represents the strongly named DataTable class.
  1698. ///</summary>
  1699. [global::System.Serializable()]
  1700. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1701. public partial class UserTrafficDataTable : global::System.Data.TypedTableBase<UserTrafficRow> {
  1702. private global::System.Data.DataColumn columnID;
  1703. private global::System.Data.DataColumn columnUserID;
  1704. private global::System.Data.DataColumn columnTimeEntrance;
  1705. private global::System.Data.DataColumn columnTimeExit;
  1706. private global::System.Data.DataColumn columnIdentification;
  1707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1709. public UserTrafficDataTable() {
  1710. this.TableName = "UserTraffic";
  1711. this.BeginInit();
  1712. this.InitClass();
  1713. this.EndInit();
  1714. }
  1715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1717. internal UserTrafficDataTable(global::System.Data.DataTable table) {
  1718. this.TableName = table.TableName;
  1719. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1720. this.CaseSensitive = table.CaseSensitive;
  1721. }
  1722. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1723. this.Locale = table.Locale;
  1724. }
  1725. if ((table.Namespace != table.DataSet.Namespace)) {
  1726. this.Namespace = table.Namespace;
  1727. }
  1728. this.Prefix = table.Prefix;
  1729. this.MinimumCapacity = table.MinimumCapacity;
  1730. }
  1731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1733. protected UserTrafficDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1734. base(info, context) {
  1735. this.InitVars();
  1736. }
  1737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1739. public global::System.Data.DataColumn IDColumn {
  1740. get {
  1741. return this.columnID;
  1742. }
  1743. }
  1744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1746. public global::System.Data.DataColumn UserIDColumn {
  1747. get {
  1748. return this.columnUserID;
  1749. }
  1750. }
  1751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1753. public global::System.Data.DataColumn TimeEntranceColumn {
  1754. get {
  1755. return this.columnTimeEntrance;
  1756. }
  1757. }
  1758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1760. public global::System.Data.DataColumn TimeExitColumn {
  1761. get {
  1762. return this.columnTimeExit;
  1763. }
  1764. }
  1765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1767. public global::System.Data.DataColumn IdentificationColumn {
  1768. get {
  1769. return this.columnIdentification;
  1770. }
  1771. }
  1772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1774. [global::System.ComponentModel.Browsable(false)]
  1775. public int Count {
  1776. get {
  1777. return this.Rows.Count;
  1778. }
  1779. }
  1780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1782. public UserTrafficRow this[int index] {
  1783. get {
  1784. return ((UserTrafficRow)(this.Rows[index]));
  1785. }
  1786. }
  1787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1788. public event UserTrafficRowChangeEventHandler UserTrafficRowChanging;
  1789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1790. public event UserTrafficRowChangeEventHandler UserTrafficRowChanged;
  1791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1792. public event UserTrafficRowChangeEventHandler UserTrafficRowDeleting;
  1793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1794. public event UserTrafficRowChangeEventHandler UserTrafficRowDeleted;
  1795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1797. public void AddUserTrafficRow(UserTrafficRow row) {
  1798. this.Rows.Add(row);
  1799. }
  1800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1802. public UserTrafficRow AddUserTrafficRow(UsersRow parentUsersRowByFK_UserTraffic_Users, System.DateTime TimeEntrance, System.DateTime TimeExit, bool Identification) {
  1803. UserTrafficRow rowUserTrafficRow = ((UserTrafficRow)(this.NewRow()));
  1804. object[] columnValuesArray = new object[] {
  1805. null,
  1806. null,
  1807. TimeEntrance,
  1808. TimeExit,
  1809. Identification};
  1810. if ((parentUsersRowByFK_UserTraffic_Users != null)) {
  1811. columnValuesArray[1] = parentUsersRowByFK_UserTraffic_Users[0];
  1812. }
  1813. rowUserTrafficRow.ItemArray = columnValuesArray;
  1814. this.Rows.Add(rowUserTrafficRow);
  1815. return rowUserTrafficRow;
  1816. }
  1817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1819. public UserTrafficRow FindByID(int ID) {
  1820. return ((UserTrafficRow)(this.Rows.Find(new object[] {
  1821. ID})));
  1822. }
  1823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1825. public override global::System.Data.DataTable Clone() {
  1826. UserTrafficDataTable cln = ((UserTrafficDataTable)(base.Clone()));
  1827. cln.InitVars();
  1828. return cln;
  1829. }
  1830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1832. protected override global::System.Data.DataTable CreateInstance() {
  1833. return new UserTrafficDataTable();
  1834. }
  1835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1837. internal void InitVars() {
  1838. this.columnID = base.Columns["ID"];
  1839. this.columnUserID = base.Columns["UserID"];
  1840. this.columnTimeEntrance = base.Columns["TimeEntrance"];
  1841. this.columnTimeExit = base.Columns["TimeExit"];
  1842. this.columnIdentification = base.Columns["Identification"];
  1843. }
  1844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1846. private void InitClass() {
  1847. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1848. base.Columns.Add(this.columnID);
  1849. this.columnUserID = new global::System.Data.DataColumn("UserID", typeof(int), null, global::System.Data.MappingType.Element);
  1850. base.Columns.Add(this.columnUserID);
  1851. this.columnTimeEntrance = new global::System.Data.DataColumn("TimeEntrance", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1852. base.Columns.Add(this.columnTimeEntrance);
  1853. this.columnTimeExit = new global::System.Data.DataColumn("TimeExit", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1854. base.Columns.Add(this.columnTimeExit);
  1855. this.columnIdentification = new global::System.Data.DataColumn("Identification", typeof(bool), null, global::System.Data.MappingType.Element);
  1856. base.Columns.Add(this.columnIdentification);
  1857. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1858. this.columnID}, true));
  1859. this.columnID.AutoIncrement = true;
  1860. this.columnID.AutoIncrementSeed = -1;
  1861. this.columnID.AutoIncrementStep = -1;
  1862. this.columnID.AllowDBNull = false;
  1863. this.columnID.ReadOnly = true;
  1864. this.columnID.Unique = true;
  1865. this.columnUserID.AllowDBNull = false;
  1866. this.columnIdentification.AllowDBNull = false;
  1867. }
  1868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1870. public UserTrafficRow NewUserTrafficRow() {
  1871. return ((UserTrafficRow)(this.NewRow()));
  1872. }
  1873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1875. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1876. return new UserTrafficRow(builder);
  1877. }
  1878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1880. protected override global::System.Type GetRowType() {
  1881. return typeof(UserTrafficRow);
  1882. }
  1883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1885. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1886. base.OnRowChanged(e);
  1887. if ((this.UserTrafficRowChanged != null)) {
  1888. this.UserTrafficRowChanged(this, new UserTrafficRowChangeEvent(((UserTrafficRow)(e.Row)), e.Action));
  1889. }
  1890. }
  1891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1893. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1894. base.OnRowChanging(e);
  1895. if ((this.UserTrafficRowChanging != null)) {
  1896. this.UserTrafficRowChanging(this, new UserTrafficRowChangeEvent(((UserTrafficRow)(e.Row)), e.Action));
  1897. }
  1898. }
  1899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1901. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1902. base.OnRowDeleted(e);
  1903. if ((this.UserTrafficRowDeleted != null)) {
  1904. this.UserTrafficRowDeleted(this, new UserTrafficRowChangeEvent(((UserTrafficRow)(e.Row)), e.Action));
  1905. }
  1906. }
  1907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1909. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1910. base.OnRowDeleting(e);
  1911. if ((this.UserTrafficRowDeleting != null)) {
  1912. this.UserTrafficRowDeleting(this, new UserTrafficRowChangeEvent(((UserTrafficRow)(e.Row)), e.Action));
  1913. }
  1914. }
  1915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1917. public void RemoveUserTrafficRow(UserTrafficRow row) {
  1918. this.Rows.Remove(row);
  1919. }
  1920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1922. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1923. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1924. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1925. ImpulseVisionAppDataSet ds = new ImpulseVisionAppDataSet();
  1926. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1927. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1928. any1.MinOccurs = new decimal(0);
  1929. any1.MaxOccurs = decimal.MaxValue;
  1930. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1931. sequence.Items.Add(any1);
  1932. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1933. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1934. any2.MinOccurs = new decimal(1);
  1935. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1936. sequence.Items.Add(any2);
  1937. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1938. attribute1.Name = "namespace";
  1939. attribute1.FixedValue = ds.Namespace;
  1940. type.Attributes.Add(attribute1);
  1941. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1942. attribute2.Name = "tableTypeName";
  1943. attribute2.FixedValue = "UserTrafficDataTable";
  1944. type.Attributes.Add(attribute2);
  1945. type.Particle = sequence;
  1946. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1947. if (xs.Contains(dsSchema.TargetNamespace)) {
  1948. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1949. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1950. try {
  1951. global::System.Xml.Schema.XmlSchema schema = null;
  1952. dsSchema.Write(s1);
  1953. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1954. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1955. s2.SetLength(0);
  1956. schema.Write(s2);
  1957. if ((s1.Length == s2.Length)) {
  1958. s1.Position = 0;
  1959. s2.Position = 0;
  1960. for (; ((s1.Position != s1.Length)
  1961. && (s1.ReadByte() == s2.ReadByte())); ) {
  1962. ;
  1963. }
  1964. if ((s1.Position == s1.Length)) {
  1965. return type;
  1966. }
  1967. }
  1968. }
  1969. }
  1970. finally {
  1971. if ((s1 != null)) {
  1972. s1.Close();
  1973. }
  1974. if ((s2 != null)) {
  1975. s2.Close();
  1976. }
  1977. }
  1978. }
  1979. xs.Add(dsSchema);
  1980. return type;
  1981. }
  1982. }
  1983. /// <summary>
  1984. ///Represents the strongly named DataTable class.
  1985. ///</summary>
  1986. [global::System.Serializable()]
  1987. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1988. public partial class UserTypeDataTable : global::System.Data.TypedTableBase<UserTypeRow> {
  1989. private global::System.Data.DataColumn columnID;
  1990. private global::System.Data.DataColumn columnUserType;
  1991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1993. public UserTypeDataTable() {
  1994. this.TableName = "UserType";
  1995. this.BeginInit();
  1996. this.InitClass();
  1997. this.EndInit();
  1998. }
  1999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2001. internal UserTypeDataTable(global::System.Data.DataTable table) {
  2002. this.TableName = table.TableName;
  2003. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2004. this.CaseSensitive = table.CaseSensitive;
  2005. }
  2006. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2007. this.Locale = table.Locale;
  2008. }
  2009. if ((table.Namespace != table.DataSet.Namespace)) {
  2010. this.Namespace = table.Namespace;
  2011. }
  2012. this.Prefix = table.Prefix;
  2013. this.MinimumCapacity = table.MinimumCapacity;
  2014. }
  2015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2017. protected UserTypeDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2018. base(info, context) {
  2019. this.InitVars();
  2020. }
  2021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2023. public global::System.Data.DataColumn IDColumn {
  2024. get {
  2025. return this.columnID;
  2026. }
  2027. }
  2028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2030. public global::System.Data.DataColumn UserTypeColumn {
  2031. get {
  2032. return this.columnUserType;
  2033. }
  2034. }
  2035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2037. [global::System.ComponentModel.Browsable(false)]
  2038. public int Count {
  2039. get {
  2040. return this.Rows.Count;
  2041. }
  2042. }
  2043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2045. public UserTypeRow this[int index] {
  2046. get {
  2047. return ((UserTypeRow)(this.Rows[index]));
  2048. }
  2049. }
  2050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2051. public event UserTypeRowChangeEventHandler UserTypeRowChanging;
  2052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2053. public event UserTypeRowChangeEventHandler UserTypeRowChanged;
  2054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2055. public event UserTypeRowChangeEventHandler UserTypeRowDeleting;
  2056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2057. public event UserTypeRowChangeEventHandler UserTypeRowDeleted;
  2058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2060. public void AddUserTypeRow(UserTypeRow row) {
  2061. this.Rows.Add(row);
  2062. }
  2063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2065. public UserTypeRow AddUserTypeRow(string UserType) {
  2066. UserTypeRow rowUserTypeRow = ((UserTypeRow)(this.NewRow()));
  2067. object[] columnValuesArray = new object[] {
  2068. null,
  2069. UserType};
  2070. rowUserTypeRow.ItemArray = columnValuesArray;
  2071. this.Rows.Add(rowUserTypeRow);
  2072. return rowUserTypeRow;
  2073. }
  2074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2076. public UserTypeRow FindByID(int ID) {
  2077. return ((UserTypeRow)(this.Rows.Find(new object[] {
  2078. ID})));
  2079. }
  2080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2082. public override global::System.Data.DataTable Clone() {
  2083. UserTypeDataTable cln = ((UserTypeDataTable)(base.Clone()));
  2084. cln.InitVars();
  2085. return cln;
  2086. }
  2087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2089. protected override global::System.Data.DataTable CreateInstance() {
  2090. return new UserTypeDataTable();
  2091. }
  2092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2094. internal void InitVars() {
  2095. this.columnID = base.Columns["ID"];
  2096. this.columnUserType = base.Columns["UserType"];
  2097. }
  2098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2100. private void InitClass() {
  2101. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2102. base.Columns.Add(this.columnID);
  2103. this.columnUserType = new global::System.Data.DataColumn("UserType", typeof(string), null, global::System.Data.MappingType.Element);
  2104. base.Columns.Add(this.columnUserType);
  2105. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2106. this.columnID}, true));
  2107. this.columnID.AutoIncrement = true;
  2108. this.columnID.AutoIncrementSeed = -1;
  2109. this.columnID.AutoIncrementStep = -1;
  2110. this.columnID.AllowDBNull = false;
  2111. this.columnID.ReadOnly = true;
  2112. this.columnID.Unique = true;
  2113. this.columnUserType.AllowDBNull = false;
  2114. this.columnUserType.MaxLength = 50;
  2115. }
  2116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2118. public UserTypeRow NewUserTypeRow() {
  2119. return ((UserTypeRow)(this.NewRow()));
  2120. }
  2121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2123. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2124. return new UserTypeRow(builder);
  2125. }
  2126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2128. protected override global::System.Type GetRowType() {
  2129. return typeof(UserTypeRow);
  2130. }
  2131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2133. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2134. base.OnRowChanged(e);
  2135. if ((this.UserTypeRowChanged != null)) {
  2136. this.UserTypeRowChanged(this, new UserTypeRowChangeEvent(((UserTypeRow)(e.Row)), e.Action));
  2137. }
  2138. }
  2139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2141. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2142. base.OnRowChanging(e);
  2143. if ((this.UserTypeRowChanging != null)) {
  2144. this.UserTypeRowChanging(this, new UserTypeRowChangeEvent(((UserTypeRow)(e.Row)), e.Action));
  2145. }
  2146. }
  2147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2149. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2150. base.OnRowDeleted(e);
  2151. if ((this.UserTypeRowDeleted != null)) {
  2152. this.UserTypeRowDeleted(this, new UserTypeRowChangeEvent(((UserTypeRow)(e.Row)), e.Action));
  2153. }
  2154. }
  2155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2157. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2158. base.OnRowDeleting(e);
  2159. if ((this.UserTypeRowDeleting != null)) {
  2160. this.UserTypeRowDeleting(this, new UserTypeRowChangeEvent(((UserTypeRow)(e.Row)), e.Action));
  2161. }
  2162. }
  2163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2165. public void RemoveUserTypeRow(UserTypeRow row) {
  2166. this.Rows.Remove(row);
  2167. }
  2168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2170. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2171. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2172. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2173. ImpulseVisionAppDataSet ds = new ImpulseVisionAppDataSet();
  2174. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2175. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2176. any1.MinOccurs = new decimal(0);
  2177. any1.MaxOccurs = decimal.MaxValue;
  2178. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2179. sequence.Items.Add(any1);
  2180. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2181. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2182. any2.MinOccurs = new decimal(1);
  2183. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2184. sequence.Items.Add(any2);
  2185. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2186. attribute1.Name = "namespace";
  2187. attribute1.FixedValue = ds.Namespace;
  2188. type.Attributes.Add(attribute1);
  2189. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2190. attribute2.Name = "tableTypeName";
  2191. attribute2.FixedValue = "UserTypeDataTable";
  2192. type.Attributes.Add(attribute2);
  2193. type.Particle = sequence;
  2194. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2195. if (xs.Contains(dsSchema.TargetNamespace)) {
  2196. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2197. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2198. try {
  2199. global::System.Xml.Schema.XmlSchema schema = null;
  2200. dsSchema.Write(s1);
  2201. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2202. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2203. s2.SetLength(0);
  2204. schema.Write(s2);
  2205. if ((s1.Length == s2.Length)) {
  2206. s1.Position = 0;
  2207. s2.Position = 0;
  2208. for (; ((s1.Position != s1.Length)
  2209. && (s1.ReadByte() == s2.ReadByte())); ) {
  2210. ;
  2211. }
  2212. if ((s1.Position == s1.Length)) {
  2213. return type;
  2214. }
  2215. }
  2216. }
  2217. }
  2218. finally {
  2219. if ((s1 != null)) {
  2220. s1.Close();
  2221. }
  2222. if ((s2 != null)) {
  2223. s2.Close();
  2224. }
  2225. }
  2226. }
  2227. xs.Add(dsSchema);
  2228. return type;
  2229. }
  2230. }
  2231. /// <summary>
  2232. ///Represents strongly named DataRow class.
  2233. ///</summary>
  2234. public partial class FaceImagesRow : global::System.Data.DataRow {
  2235. private FaceImagesDataTable tableFaceImages;
  2236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2238. internal FaceImagesRow(global::System.Data.DataRowBuilder rb) :
  2239. base(rb) {
  2240. this.tableFaceImages = ((FaceImagesDataTable)(this.Table));
  2241. }
  2242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2244. public int ID {
  2245. get {
  2246. return ((int)(this[this.tableFaceImages.IDColumn]));
  2247. }
  2248. set {
  2249. this[this.tableFaceImages.IDColumn] = value;
  2250. }
  2251. }
  2252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2254. public int UserID {
  2255. get {
  2256. return ((int)(this[this.tableFaceImages.UserIDColumn]));
  2257. }
  2258. set {
  2259. this[this.tableFaceImages.UserIDColumn] = value;
  2260. }
  2261. }
  2262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2264. public string Picture {
  2265. get {
  2266. return ((string)(this[this.tableFaceImages.PictureColumn]));
  2267. }
  2268. set {
  2269. this[this.tableFaceImages.PictureColumn] = value;
  2270. }
  2271. }
  2272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2274. public UsersRow UsersRow {
  2275. get {
  2276. return ((UsersRow)(this.GetParentRow(this.Table.ParentRelations["FK_FaceImages_Users"])));
  2277. }
  2278. set {
  2279. this.SetParentRow(value, this.Table.ParentRelations["FK_FaceImages_Users"]);
  2280. }
  2281. }
  2282. }
  2283. /// <summary>
  2284. ///Represents strongly named DataRow class.
  2285. ///</summary>
  2286. public partial class HistoryLoginRow : global::System.Data.DataRow {
  2287. private HistoryLoginDataTable tableHistoryLogin;
  2288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2290. internal HistoryLoginRow(global::System.Data.DataRowBuilder rb) :
  2291. base(rb) {
  2292. this.tableHistoryLogin = ((HistoryLoginDataTable)(this.Table));
  2293. }
  2294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2296. public int ID {
  2297. get {
  2298. return ((int)(this[this.tableHistoryLogin.IDColumn]));
  2299. }
  2300. set {
  2301. this[this.tableHistoryLogin.IDColumn] = value;
  2302. }
  2303. }
  2304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2306. public int StaffsID {
  2307. get {
  2308. return ((int)(this[this.tableHistoryLogin.StaffsIDColumn]));
  2309. }
  2310. set {
  2311. this[this.tableHistoryLogin.StaffsIDColumn] = value;
  2312. }
  2313. }
  2314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2316. public System.DateTime TimeLogin {
  2317. get {
  2318. return ((global::System.DateTime)(this[this.tableHistoryLogin.TimeLoginColumn]));
  2319. }
  2320. set {
  2321. this[this.tableHistoryLogin.TimeLoginColumn] = value;
  2322. }
  2323. }
  2324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2326. public StaffsRow StaffsRow {
  2327. get {
  2328. return ((StaffsRow)(this.GetParentRow(this.Table.ParentRelations["FK_HistoryLogin_Staffs"])));
  2329. }
  2330. set {
  2331. this.SetParentRow(value, this.Table.ParentRelations["FK_HistoryLogin_Staffs"]);
  2332. }
  2333. }
  2334. }
  2335. /// <summary>
  2336. ///Represents strongly named DataRow class.
  2337. ///</summary>
  2338. public partial class StaffsRow : global::System.Data.DataRow {
  2339. private StaffsDataTable tableStaffs;
  2340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2342. internal StaffsRow(global::System.Data.DataRowBuilder rb) :
  2343. base(rb) {
  2344. this.tableStaffs = ((StaffsDataTable)(this.Table));
  2345. }
  2346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2348. public int ID {
  2349. get {
  2350. return ((int)(this[this.tableStaffs.IDColumn]));
  2351. }
  2352. set {
  2353. this[this.tableStaffs.IDColumn] = value;
  2354. }
  2355. }
  2356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2358. public string Lastname {
  2359. get {
  2360. return ((string)(this[this.tableStaffs.LastnameColumn]));
  2361. }
  2362. set {
  2363. this[this.tableStaffs.LastnameColumn] = value;
  2364. }
  2365. }
  2366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2368. public string Firstname {
  2369. get {
  2370. return ((string)(this[this.tableStaffs.FirstnameColumn]));
  2371. }
  2372. set {
  2373. this[this.tableStaffs.FirstnameColumn] = value;
  2374. }
  2375. }
  2376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2378. public string Patronymic {
  2379. get {
  2380. try {
  2381. return ((string)(this[this.tableStaffs.PatronymicColumn]));
  2382. }
  2383. catch (global::System.InvalidCastException e) {
  2384. throw new global::System.Data.StrongTypingException("The value for column \'Patronymic\' in table \'Staffs\' is DBNull.", e);
  2385. }
  2386. }
  2387. set {
  2388. this[this.tableStaffs.PatronymicColumn] = value;
  2389. }
  2390. }
  2391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2393. public string PassportSeria {
  2394. get {
  2395. return ((string)(this[this.tableStaffs.PassportSeriaColumn]));
  2396. }
  2397. set {
  2398. this[this.tableStaffs.PassportSeriaColumn] = value;
  2399. }
  2400. }
  2401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2403. public string PassportNum {
  2404. get {
  2405. return ((string)(this[this.tableStaffs.PassportNumColumn]));
  2406. }
  2407. set {
  2408. this[this.tableStaffs.PassportNumColumn] = value;
  2409. }
  2410. }
  2411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2413. public string Login {
  2414. get {
  2415. return ((string)(this[this.tableStaffs.LoginColumn]));
  2416. }
  2417. set {
  2418. this[this.tableStaffs.LoginColumn] = value;
  2419. }
  2420. }
  2421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2423. public string Password {
  2424. get {
  2425. return ((string)(this[this.tableStaffs.PasswordColumn]));
  2426. }
  2427. set {
  2428. this[this.tableStaffs.PasswordColumn] = value;
  2429. }
  2430. }
  2431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2433. public int IDStaffsType {
  2434. get {
  2435. return ((int)(this[this.tableStaffs.IDStaffsTypeColumn]));
  2436. }
  2437. set {
  2438. this[this.tableStaffs.IDStaffsTypeColumn] = value;
  2439. }
  2440. }
  2441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2443. public string FIO {
  2444. get {
  2445. try {
  2446. return ((string)(this[this.tableStaffs.FIOColumn]));
  2447. }
  2448. catch (global::System.InvalidCastException e) {
  2449. throw new global::System.Data.StrongTypingException("The value for column \'FIO\' in table \'Staffs\' is DBNull.", e);
  2450. }
  2451. }
  2452. set {
  2453. this[this.tableStaffs.FIOColumn] = value;
  2454. }
  2455. }
  2456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2458. public UserTypeRow UserTypeRow {
  2459. get {
  2460. return ((UserTypeRow)(this.GetParentRow(this.Table.ParentRelations["FK_Staffs_UserType"])));
  2461. }
  2462. set {
  2463. this.SetParentRow(value, this.Table.ParentRelations["FK_Staffs_UserType"]);
  2464. }
  2465. }
  2466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2468. public bool IsPatronymicNull() {
  2469. return this.IsNull(this.tableStaffs.PatronymicColumn);
  2470. }
  2471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2473. public void SetPatronymicNull() {
  2474. this[this.tableStaffs.PatronymicColumn] = global::System.Convert.DBNull;
  2475. }
  2476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2478. public bool IsFIONull() {
  2479. return this.IsNull(this.tableStaffs.FIOColumn);
  2480. }
  2481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2483. public void SetFIONull() {
  2484. this[this.tableStaffs.FIOColumn] = global::System.Convert.DBNull;
  2485. }
  2486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2488. public HistoryLoginRow[] GetHistoryLoginRows() {
  2489. if ((this.Table.ChildRelations["FK_HistoryLogin_Staffs"] == null)) {
  2490. return new HistoryLoginRow[0];
  2491. }
  2492. else {
  2493. return ((HistoryLoginRow[])(base.GetChildRows(this.Table.ChildRelations["FK_HistoryLogin_Staffs"])));
  2494. }
  2495. }
  2496. }
  2497. /// <summary>
  2498. ///Represents strongly named DataRow class.
  2499. ///</summary>
  2500. public partial class UsersRow : global::System.Data.DataRow {
  2501. private UsersDataTable tableUsers;
  2502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2504. internal UsersRow(global::System.Data.DataRowBuilder rb) :
  2505. base(rb) {
  2506. this.tableUsers = ((UsersDataTable)(this.Table));
  2507. }
  2508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2510. public int ID {
  2511. get {
  2512. return ((int)(this[this.tableUsers.IDColumn]));
  2513. }
  2514. set {
  2515. this[this.tableUsers.IDColumn] = value;
  2516. }
  2517. }
  2518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2520. public string Lastname {
  2521. get {
  2522. return ((string)(this[this.tableUsers.LastnameColumn]));
  2523. }
  2524. set {
  2525. this[this.tableUsers.LastnameColumn] = value;
  2526. }
  2527. }
  2528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2530. public string Firstname {
  2531. get {
  2532. return ((string)(this[this.tableUsers.FirstnameColumn]));
  2533. }
  2534. set {
  2535. this[this.tableUsers.FirstnameColumn] = value;
  2536. }
  2537. }
  2538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2540. public string Patronymic {
  2541. get {
  2542. try {
  2543. return ((string)(this[this.tableUsers.PatronymicColumn]));
  2544. }
  2545. catch (global::System.InvalidCastException e) {
  2546. throw new global::System.Data.StrongTypingException("The value for column \'Patronymic\' in table \'Users\' is DBNull.", e);
  2547. }
  2548. }
  2549. set {
  2550. this[this.tableUsers.PatronymicColumn] = value;
  2551. }
  2552. }
  2553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2555. public string PassportSeria {
  2556. get {
  2557. return ((string)(this[this.tableUsers.PassportSeriaColumn]));
  2558. }
  2559. set {
  2560. this[this.tableUsers.PassportSeriaColumn] = value;
  2561. }
  2562. }
  2563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2565. public string PassportNum {
  2566. get {
  2567. return ((string)(this[this.tableUsers.PassportNumColumn]));
  2568. }
  2569. set {
  2570. this[this.tableUsers.PassportNumColumn] = value;
  2571. }
  2572. }
  2573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2575. public int IDUserType {
  2576. get {
  2577. return ((int)(this[this.tableUsers.IDUserTypeColumn]));
  2578. }
  2579. set {
  2580. this[this.tableUsers.IDUserTypeColumn] = value;
  2581. }
  2582. }
  2583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2585. public string Phone {
  2586. get {
  2587. return ((string)(this[this.tableUsers.PhoneColumn]));
  2588. }
  2589. set {
  2590. this[this.tableUsers.PhoneColumn] = value;
  2591. }
  2592. }
  2593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2595. public UserTypeRow UserTypeRow {
  2596. get {
  2597. return ((UserTypeRow)(this.GetParentRow(this.Table.ParentRelations["FK_Users_UserType"])));
  2598. }
  2599. set {
  2600. this.SetParentRow(value, this.Table.ParentRelations["FK_Users_UserType"]);
  2601. }
  2602. }
  2603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2605. public bool IsPatronymicNull() {
  2606. return this.IsNull(this.tableUsers.PatronymicColumn);
  2607. }
  2608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2610. public void SetPatronymicNull() {
  2611. this[this.tableUsers.PatronymicColumn] = global::System.Convert.DBNull;
  2612. }
  2613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2615. public FaceImagesRow[] GetFaceImagesRows() {
  2616. if ((this.Table.ChildRelations["FK_FaceImages_Users"] == null)) {
  2617. return new FaceImagesRow[0];
  2618. }
  2619. else {
  2620. return ((FaceImagesRow[])(base.GetChildRows(this.Table.ChildRelations["FK_FaceImages_Users"])));
  2621. }
  2622. }
  2623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2625. public UserTrafficRow[] GetUserTrafficRows() {
  2626. if ((this.Table.ChildRelations["FK_UserTraffic_Users"] == null)) {
  2627. return new UserTrafficRow[0];
  2628. }
  2629. else {
  2630. return ((UserTrafficRow[])(base.GetChildRows(this.Table.ChildRelations["FK_UserTraffic_Users"])));
  2631. }
  2632. }
  2633. }
  2634. /// <summary>
  2635. ///Represents strongly named DataRow class.
  2636. ///</summary>
  2637. public partial class UserTrafficRow : global::System.Data.DataRow {
  2638. private UserTrafficDataTable tableUserTraffic;
  2639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2641. internal UserTrafficRow(global::System.Data.DataRowBuilder rb) :
  2642. base(rb) {
  2643. this.tableUserTraffic = ((UserTrafficDataTable)(this.Table));
  2644. }
  2645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2647. public int ID {
  2648. get {
  2649. return ((int)(this[this.tableUserTraffic.IDColumn]));
  2650. }
  2651. set {
  2652. this[this.tableUserTraffic.IDColumn] = value;
  2653. }
  2654. }
  2655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2657. public int UserID {
  2658. get {
  2659. return ((int)(this[this.tableUserTraffic.UserIDColumn]));
  2660. }
  2661. set {
  2662. this[this.tableUserTraffic.UserIDColumn] = value;
  2663. }
  2664. }
  2665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2667. public System.DateTime TimeEntrance {
  2668. get {
  2669. try {
  2670. return ((global::System.DateTime)(this[this.tableUserTraffic.TimeEntranceColumn]));
  2671. }
  2672. catch (global::System.InvalidCastException e) {
  2673. throw new global::System.Data.StrongTypingException("The value for column \'TimeEntrance\' in table \'UserTraffic\' is DBNull.", e);
  2674. }
  2675. }
  2676. set {
  2677. this[this.tableUserTraffic.TimeEntranceColumn] = value;
  2678. }
  2679. }
  2680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2682. public System.DateTime TimeExit {
  2683. get {
  2684. try {
  2685. return ((global::System.DateTime)(this[this.tableUserTraffic.TimeExitColumn]));
  2686. }
  2687. catch (global::System.InvalidCastException e) {
  2688. throw new global::System.Data.StrongTypingException("The value for column \'TimeExit\' in table \'UserTraffic\' is DBNull.", e);
  2689. }
  2690. }
  2691. set {
  2692. this[this.tableUserTraffic.TimeExitColumn] = value;
  2693. }
  2694. }
  2695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2697. public bool Identification {
  2698. get {
  2699. return ((bool)(this[this.tableUserTraffic.IdentificationColumn]));
  2700. }
  2701. set {
  2702. this[this.tableUserTraffic.IdentificationColumn] = value;
  2703. }
  2704. }
  2705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2707. public UsersRow UsersRow {
  2708. get {
  2709. return ((UsersRow)(this.GetParentRow(this.Table.ParentRelations["FK_UserTraffic_Users"])));
  2710. }
  2711. set {
  2712. this.SetParentRow(value, this.Table.ParentRelations["FK_UserTraffic_Users"]);
  2713. }
  2714. }
  2715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2717. public bool IsTimeEntranceNull() {
  2718. return this.IsNull(this.tableUserTraffic.TimeEntranceColumn);
  2719. }
  2720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2722. public void SetTimeEntranceNull() {
  2723. this[this.tableUserTraffic.TimeEntranceColumn] = global::System.Convert.DBNull;
  2724. }
  2725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2727. public bool IsTimeExitNull() {
  2728. return this.IsNull(this.tableUserTraffic.TimeExitColumn);
  2729. }
  2730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2732. public void SetTimeExitNull() {
  2733. this[this.tableUserTraffic.TimeExitColumn] = global::System.Convert.DBNull;
  2734. }
  2735. }
  2736. /// <summary>
  2737. ///Represents strongly named DataRow class.
  2738. ///</summary>
  2739. public partial class UserTypeRow : global::System.Data.DataRow {
  2740. private UserTypeDataTable tableUserType;
  2741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2743. internal UserTypeRow(global::System.Data.DataRowBuilder rb) :
  2744. base(rb) {
  2745. this.tableUserType = ((UserTypeDataTable)(this.Table));
  2746. }
  2747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2749. public int ID {
  2750. get {
  2751. return ((int)(this[this.tableUserType.IDColumn]));
  2752. }
  2753. set {
  2754. this[this.tableUserType.IDColumn] = value;
  2755. }
  2756. }
  2757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2759. public string UserType {
  2760. get {
  2761. return ((string)(this[this.tableUserType.UserTypeColumn]));
  2762. }
  2763. set {
  2764. this[this.tableUserType.UserTypeColumn] = value;
  2765. }
  2766. }
  2767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2769. public StaffsRow[] GetStaffsRows() {
  2770. if ((this.Table.ChildRelations["FK_Staffs_UserType"] == null)) {
  2771. return new StaffsRow[0];
  2772. }
  2773. else {
  2774. return ((StaffsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Staffs_UserType"])));
  2775. }
  2776. }
  2777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2779. public UsersRow[] GetUsersRows() {
  2780. if ((this.Table.ChildRelations["FK_Users_UserType"] == null)) {
  2781. return new UsersRow[0];
  2782. }
  2783. else {
  2784. return ((UsersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Users_UserType"])));
  2785. }
  2786. }
  2787. }
  2788. /// <summary>
  2789. ///Row event argument class
  2790. ///</summary>
  2791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2792. public class FaceImagesRowChangeEvent : global::System.EventArgs {
  2793. private FaceImagesRow eventRow;
  2794. private global::System.Data.DataRowAction eventAction;
  2795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2797. public FaceImagesRowChangeEvent(FaceImagesRow row, global::System.Data.DataRowAction action) {
  2798. this.eventRow = row;
  2799. this.eventAction = action;
  2800. }
  2801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2803. public FaceImagesRow Row {
  2804. get {
  2805. return this.eventRow;
  2806. }
  2807. }
  2808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2810. public global::System.Data.DataRowAction Action {
  2811. get {
  2812. return this.eventAction;
  2813. }
  2814. }
  2815. }
  2816. /// <summary>
  2817. ///Row event argument class
  2818. ///</summary>
  2819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2820. public class HistoryLoginRowChangeEvent : global::System.EventArgs {
  2821. private HistoryLoginRow eventRow;
  2822. private global::System.Data.DataRowAction eventAction;
  2823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2825. public HistoryLoginRowChangeEvent(HistoryLoginRow row, global::System.Data.DataRowAction action) {
  2826. this.eventRow = row;
  2827. this.eventAction = action;
  2828. }
  2829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2831. public HistoryLoginRow Row {
  2832. get {
  2833. return this.eventRow;
  2834. }
  2835. }
  2836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2838. public global::System.Data.DataRowAction Action {
  2839. get {
  2840. return this.eventAction;
  2841. }
  2842. }
  2843. }
  2844. /// <summary>
  2845. ///Row event argument class
  2846. ///</summary>
  2847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2848. public class StaffsRowChangeEvent : global::System.EventArgs {
  2849. private StaffsRow eventRow;
  2850. private global::System.Data.DataRowAction eventAction;
  2851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2853. public StaffsRowChangeEvent(StaffsRow row, global::System.Data.DataRowAction action) {
  2854. this.eventRow = row;
  2855. this.eventAction = action;
  2856. }
  2857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2859. public StaffsRow Row {
  2860. get {
  2861. return this.eventRow;
  2862. }
  2863. }
  2864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2866. public global::System.Data.DataRowAction Action {
  2867. get {
  2868. return this.eventAction;
  2869. }
  2870. }
  2871. }
  2872. /// <summary>
  2873. ///Row event argument class
  2874. ///</summary>
  2875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2876. public class UsersRowChangeEvent : global::System.EventArgs {
  2877. private UsersRow eventRow;
  2878. private global::System.Data.DataRowAction eventAction;
  2879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2881. public UsersRowChangeEvent(UsersRow row, global::System.Data.DataRowAction action) {
  2882. this.eventRow = row;
  2883. this.eventAction = action;
  2884. }
  2885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2887. public UsersRow Row {
  2888. get {
  2889. return this.eventRow;
  2890. }
  2891. }
  2892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2894. public global::System.Data.DataRowAction Action {
  2895. get {
  2896. return this.eventAction;
  2897. }
  2898. }
  2899. }
  2900. /// <summary>
  2901. ///Row event argument class
  2902. ///</summary>
  2903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2904. public class UserTrafficRowChangeEvent : global::System.EventArgs {
  2905. private UserTrafficRow eventRow;
  2906. private global::System.Data.DataRowAction eventAction;
  2907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2909. public UserTrafficRowChangeEvent(UserTrafficRow row, global::System.Data.DataRowAction action) {
  2910. this.eventRow = row;
  2911. this.eventAction = action;
  2912. }
  2913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2915. public UserTrafficRow Row {
  2916. get {
  2917. return this.eventRow;
  2918. }
  2919. }
  2920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2922. public global::System.Data.DataRowAction Action {
  2923. get {
  2924. return this.eventAction;
  2925. }
  2926. }
  2927. }
  2928. /// <summary>
  2929. ///Row event argument class
  2930. ///</summary>
  2931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2932. public class UserTypeRowChangeEvent : global::System.EventArgs {
  2933. private UserTypeRow eventRow;
  2934. private global::System.Data.DataRowAction eventAction;
  2935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2937. public UserTypeRowChangeEvent(UserTypeRow row, global::System.Data.DataRowAction action) {
  2938. this.eventRow = row;
  2939. this.eventAction = action;
  2940. }
  2941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2943. public UserTypeRow Row {
  2944. get {
  2945. return this.eventRow;
  2946. }
  2947. }
  2948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2950. public global::System.Data.DataRowAction Action {
  2951. get {
  2952. return this.eventAction;
  2953. }
  2954. }
  2955. }
  2956. }
  2957. }
  2958. namespace ImpulseVision.ImpulseVisionAppDataSetTableAdapters {
  2959. /// <summary>
  2960. ///Represents the connection and commands used to retrieve and save data.
  2961. ///</summary>
  2962. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2963. [global::System.ComponentModel.ToolboxItem(true)]
  2964. [global::System.ComponentModel.DataObjectAttribute(true)]
  2965. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2966. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2967. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2968. public partial class FaceImagesTableAdapter : global::System.ComponentModel.Component {
  2969. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2970. private global::System.Data.SqlClient.SqlConnection _connection;
  2971. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2972. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2973. private bool _clearBeforeFill;
  2974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2976. public FaceImagesTableAdapter() {
  2977. this.ClearBeforeFill = true;
  2978. }
  2979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2981. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2982. get {
  2983. if ((this._adapter == null)) {
  2984. this.InitAdapter();
  2985. }
  2986. return this._adapter;
  2987. }
  2988. }
  2989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2991. internal global::System.Data.SqlClient.SqlConnection Connection {
  2992. get {
  2993. if ((this._connection == null)) {
  2994. this.InitConnection();
  2995. }
  2996. return this._connection;
  2997. }
  2998. set {
  2999. this._connection = value;
  3000. if ((this.Adapter.InsertCommand != null)) {
  3001. this.Adapter.InsertCommand.Connection = value;
  3002. }
  3003. if ((this.Adapter.DeleteCommand != null)) {
  3004. this.Adapter.DeleteCommand.Connection = value;
  3005. }
  3006. if ((this.Adapter.UpdateCommand != null)) {
  3007. this.Adapter.UpdateCommand.Connection = value;
  3008. }
  3009. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3010. if ((this.CommandCollection[i] != null)) {
  3011. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3012. }
  3013. }
  3014. }
  3015. }
  3016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3018. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3019. get {
  3020. return this._transaction;
  3021. }
  3022. set {
  3023. this._transaction = value;
  3024. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3025. this.CommandCollection[i].Transaction = this._transaction;
  3026. }
  3027. if (((this.Adapter != null)
  3028. && (this.Adapter.DeleteCommand != null))) {
  3029. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3030. }
  3031. if (((this.Adapter != null)
  3032. && (this.Adapter.InsertCommand != null))) {
  3033. this.Adapter.InsertCommand.Transaction = this._transaction;
  3034. }
  3035. if (((this.Adapter != null)
  3036. && (this.Adapter.UpdateCommand != null))) {
  3037. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3038. }
  3039. }
  3040. }
  3041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3043. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3044. get {
  3045. if ((this._commandCollection == null)) {
  3046. this.InitCommandCollection();
  3047. }
  3048. return this._commandCollection;
  3049. }
  3050. }
  3051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3053. public bool ClearBeforeFill {
  3054. get {
  3055. return this._clearBeforeFill;
  3056. }
  3057. set {
  3058. this._clearBeforeFill = value;
  3059. }
  3060. }
  3061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3063. private void InitAdapter() {
  3064. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3065. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3066. tableMapping.SourceTable = "Table";
  3067. tableMapping.DataSetTable = "FaceImages";
  3068. tableMapping.ColumnMappings.Add("ID", "ID");
  3069. tableMapping.ColumnMappings.Add("UserID", "UserID");
  3070. tableMapping.ColumnMappings.Add("Picture", "Picture");
  3071. this._adapter.TableMappings.Add(tableMapping);
  3072. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3073. this._adapter.DeleteCommand.Connection = this.Connection;
  3074. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[FaceImages] WHERE (([ID] = @Original_ID) AND ([UserID] = @Orig" +
  3075. "inal_UserID))";
  3076. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3077. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3078. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3079. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3080. this._adapter.InsertCommand.Connection = this.Connection;
  3081. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[FaceImages] ([ID], [UserID], [Picture]) VALUES (@ID, @UserID, " +
  3082. "@Picture);\r\nSELECT ID, UserID, Picture FROM FaceImages WHERE (ID = @ID)";
  3083. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3084. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3085. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3086. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Picture", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Picture", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3087. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3088. this._adapter.UpdateCommand.Connection = this.Connection;
  3089. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[FaceImages] SET [ID] = @ID, [UserID] = @UserID, [Picture] = @Pictur" +
  3090. "e WHERE (([ID] = @Original_ID) AND ([UserID] = @Original_UserID));\r\nSELECT ID, U" +
  3091. "serID, Picture FROM FaceImages WHERE (ID = @ID)";
  3092. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3093. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3094. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3095. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Picture", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Picture", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3096. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3097. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3098. }
  3099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3101. private void InitConnection() {
  3102. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3103. this._connection.ConnectionString = global::ImpulseVision.Properties.Settings.Default.ImpulseVisionAppConnectionString;
  3104. }
  3105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3107. private void InitCommandCollection() {
  3108. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3109. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3110. this._commandCollection[0].Connection = this.Connection;
  3111. this._commandCollection[0].CommandText = "SELECT ID, UserID, Picture FROM dbo.FaceImages";
  3112. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3113. }
  3114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3116. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3117. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3118. public virtual int Fill(ImpulseVisionAppDataSet.FaceImagesDataTable dataTable) {
  3119. this.Adapter.SelectCommand = this.CommandCollection[0];
  3120. if ((this.ClearBeforeFill == true)) {
  3121. dataTable.Clear();
  3122. }
  3123. int returnValue = this.Adapter.Fill(dataTable);
  3124. return returnValue;
  3125. }
  3126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3128. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3129. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3130. public virtual ImpulseVisionAppDataSet.FaceImagesDataTable GetData() {
  3131. this.Adapter.SelectCommand = this.CommandCollection[0];
  3132. ImpulseVisionAppDataSet.FaceImagesDataTable dataTable = new ImpulseVisionAppDataSet.FaceImagesDataTable();
  3133. this.Adapter.Fill(dataTable);
  3134. return dataTable;
  3135. }
  3136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3138. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3139. public virtual int Update(ImpulseVisionAppDataSet.FaceImagesDataTable dataTable) {
  3140. return this.Adapter.Update(dataTable);
  3141. }
  3142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3144. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3145. public virtual int Update(ImpulseVisionAppDataSet dataSet) {
  3146. return this.Adapter.Update(dataSet, "FaceImages");
  3147. }
  3148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3150. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3151. public virtual int Update(global::System.Data.DataRow dataRow) {
  3152. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3153. dataRow});
  3154. }
  3155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3157. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3158. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3159. return this.Adapter.Update(dataRows);
  3160. }
  3161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3163. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3164. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3165. public virtual int Delete(int Original_ID, int Original_UserID) {
  3166. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  3167. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_UserID));
  3168. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3169. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3170. != global::System.Data.ConnectionState.Open)) {
  3171. this.Adapter.DeleteCommand.Connection.Open();
  3172. }
  3173. try {
  3174. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3175. return returnValue;
  3176. }
  3177. finally {
  3178. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3179. this.Adapter.DeleteCommand.Connection.Close();
  3180. }
  3181. }
  3182. }
  3183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3185. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3186. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3187. public virtual int Insert(int ID, int UserID, string Picture) {
  3188. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID));
  3189. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(UserID));
  3190. if ((Picture == null)) {
  3191. throw new global::System.ArgumentNullException("Picture");
  3192. }
  3193. else {
  3194. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Picture));
  3195. }
  3196. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3197. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3198. != global::System.Data.ConnectionState.Open)) {
  3199. this.Adapter.InsertCommand.Connection.Open();
  3200. }
  3201. try {
  3202. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3203. return returnValue;
  3204. }
  3205. finally {
  3206. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3207. this.Adapter.InsertCommand.Connection.Close();
  3208. }
  3209. }
  3210. }
  3211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3213. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3214. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3215. public virtual int Update(int ID, int UserID, string Picture, int Original_ID, int Original_UserID) {
  3216. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID));
  3217. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(UserID));
  3218. if ((Picture == null)) {
  3219. throw new global::System.ArgumentNullException("Picture");
  3220. }
  3221. else {
  3222. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Picture));
  3223. }
  3224. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID));
  3225. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_UserID));
  3226. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3227. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3228. != global::System.Data.ConnectionState.Open)) {
  3229. this.Adapter.UpdateCommand.Connection.Open();
  3230. }
  3231. try {
  3232. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3233. return returnValue;
  3234. }
  3235. finally {
  3236. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3237. this.Adapter.UpdateCommand.Connection.Close();
  3238. }
  3239. }
  3240. }
  3241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3243. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3244. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3245. public virtual int Update(int UserID, string Picture, int Original_ID, int Original_UserID) {
  3246. return this.Update(Original_ID, UserID, Picture, Original_ID, Original_UserID);
  3247. }
  3248. }
  3249. /// <summary>
  3250. ///Represents the connection and commands used to retrieve and save data.
  3251. ///</summary>
  3252. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3253. [global::System.ComponentModel.ToolboxItem(true)]
  3254. [global::System.ComponentModel.DataObjectAttribute(true)]
  3255. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3256. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3257. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3258. public partial class HistoryLoginTableAdapter : global::System.ComponentModel.Component {
  3259. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3260. private global::System.Data.SqlClient.SqlConnection _connection;
  3261. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3262. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3263. private bool _clearBeforeFill;
  3264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3266. public HistoryLoginTableAdapter() {
  3267. this.ClearBeforeFill = true;
  3268. }
  3269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3271. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3272. get {
  3273. if ((this._adapter == null)) {
  3274. this.InitAdapter();
  3275. }
  3276. return this._adapter;
  3277. }
  3278. }
  3279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3281. internal global::System.Data.SqlClient.SqlConnection Connection {
  3282. get {
  3283. if ((this._connection == null)) {
  3284. this.InitConnection();
  3285. }
  3286. return this._connection;
  3287. }
  3288. set {
  3289. this._connection = value;
  3290. if ((this.Adapter.InsertCommand != null)) {
  3291. this.Adapter.InsertCommand.Connection = value;
  3292. }
  3293. if ((this.Adapter.DeleteCommand != null)) {
  3294. this.Adapter.DeleteCommand.Connection = value;
  3295. }
  3296. if ((this.Adapter.UpdateCommand != null)) {
  3297. this.Adapter.UpdateCommand.Connection = value;
  3298. }
  3299. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3300. if ((this.CommandCollection[i] != null)) {
  3301. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3302. }
  3303. }
  3304. }
  3305. }
  3306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3308. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3309. get {
  3310. return this._transaction;
  3311. }
  3312. set {
  3313. this._transaction = value;
  3314. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3315. this.CommandCollection[i].Transaction = this._transaction;
  3316. }
  3317. if (((this.Adapter != null)
  3318. && (this.Adapter.DeleteCommand != null))) {
  3319. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3320. }
  3321. if (((this.Adapter != null)
  3322. && (this.Adapter.InsertCommand != null))) {
  3323. this.Adapter.InsertCommand.Transaction = this._transaction;
  3324. }
  3325. if (((this.Adapter != null)
  3326. && (this.Adapter.UpdateCommand != null))) {
  3327. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3328. }
  3329. }
  3330. }
  3331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3333. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3334. get {
  3335. if ((this._commandCollection == null)) {
  3336. this.InitCommandCollection();
  3337. }
  3338. return this._commandCollection;
  3339. }
  3340. }
  3341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3343. public bool ClearBeforeFill {
  3344. get {
  3345. return this._clearBeforeFill;
  3346. }
  3347. set {
  3348. this._clearBeforeFill = value;
  3349. }
  3350. }
  3351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3353. private void InitAdapter() {
  3354. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3355. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3356. tableMapping.SourceTable = "Table";
  3357. tableMapping.DataSetTable = "HistoryLogin";
  3358. tableMapping.ColumnMappings.Add("ID", "ID");
  3359. tableMapping.ColumnMappings.Add("StaffsID", "StaffsID");
  3360. tableMapping.ColumnMappings.Add("TimeLogin", "TimeLogin");
  3361. this._adapter.TableMappings.Add(tableMapping);
  3362. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3363. this._adapter.DeleteCommand.Connection = this.Connection;
  3364. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[HistoryLogin] WHERE (([ID] = @Original_ID) AND ([StaffsID] = @" +
  3365. "Original_StaffsID) AND ([TimeLogin] = @Original_TimeLogin))";
  3366. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3367. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3368. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StaffsID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StaffsID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3369. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TimeLogin", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeLogin", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3370. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3371. this._adapter.InsertCommand.Connection = this.Connection;
  3372. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[HistoryLogin] ([StaffsID], [TimeLogin]) VALUES (@StaffsID, @Ti" +
  3373. "meLogin);\r\nSELECT ID, StaffsID, TimeLogin FROM HistoryLogin WHERE (ID = SCOPE_ID" +
  3374. "ENTITY())";
  3375. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3376. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StaffsID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StaffsID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3377. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TimeLogin", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeLogin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3378. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3379. this._adapter.UpdateCommand.Connection = this.Connection;
  3380. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[HistoryLogin] SET [StaffsID] = @StaffsID, [TimeLogin] = @TimeLogin WHERE (([ID] = @Original_ID) AND ([StaffsID] = @Original_StaffsID) AND ([TimeLogin] = @Original_TimeLogin));
  3381. SELECT ID, StaffsID, TimeLogin FROM HistoryLogin WHERE (ID = @ID)";
  3382. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3383. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StaffsID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StaffsID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3384. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TimeLogin", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeLogin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3385. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3386. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StaffsID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StaffsID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3387. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TimeLogin", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeLogin", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3388. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3389. }
  3390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3392. private void InitConnection() {
  3393. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3394. this._connection.ConnectionString = global::ImpulseVision.Properties.Settings.Default.ImpulseVisionAppConnectionString;
  3395. }
  3396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3398. private void InitCommandCollection() {
  3399. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3400. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3401. this._commandCollection[0].Connection = this.Connection;
  3402. this._commandCollection[0].CommandText = "SELECT ID, StaffsID, TimeLogin FROM dbo.HistoryLogin";
  3403. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3404. }
  3405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3407. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3408. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3409. public virtual int Fill(ImpulseVisionAppDataSet.HistoryLoginDataTable dataTable) {
  3410. this.Adapter.SelectCommand = this.CommandCollection[0];
  3411. if ((this.ClearBeforeFill == true)) {
  3412. dataTable.Clear();
  3413. }
  3414. int returnValue = this.Adapter.Fill(dataTable);
  3415. return returnValue;
  3416. }
  3417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3419. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3420. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3421. public virtual ImpulseVisionAppDataSet.HistoryLoginDataTable GetData() {
  3422. this.Adapter.SelectCommand = this.CommandCollection[0];
  3423. ImpulseVisionAppDataSet.HistoryLoginDataTable dataTable = new ImpulseVisionAppDataSet.HistoryLoginDataTable();
  3424. this.Adapter.Fill(dataTable);
  3425. return dataTable;
  3426. }
  3427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3429. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3430. public virtual int Update(ImpulseVisionAppDataSet.HistoryLoginDataTable dataTable) {
  3431. return this.Adapter.Update(dataTable);
  3432. }
  3433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3435. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3436. public virtual int Update(ImpulseVisionAppDataSet dataSet) {
  3437. return this.Adapter.Update(dataSet, "HistoryLogin");
  3438. }
  3439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3441. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3442. public virtual int Update(global::System.Data.DataRow dataRow) {
  3443. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3444. dataRow});
  3445. }
  3446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3448. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3449. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3450. return this.Adapter.Update(dataRows);
  3451. }
  3452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3454. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3455. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3456. public virtual int Delete(int Original_ID, int Original_StaffsID, System.DateTime Original_TimeLogin) {
  3457. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  3458. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_StaffsID));
  3459. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_TimeLogin));
  3460. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3461. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3462. != global::System.Data.ConnectionState.Open)) {
  3463. this.Adapter.DeleteCommand.Connection.Open();
  3464. }
  3465. try {
  3466. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3467. return returnValue;
  3468. }
  3469. finally {
  3470. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3471. this.Adapter.DeleteCommand.Connection.Close();
  3472. }
  3473. }
  3474. }
  3475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3477. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3478. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3479. public virtual int Insert(int StaffsID, System.DateTime TimeLogin) {
  3480. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(StaffsID));
  3481. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(TimeLogin));
  3482. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3483. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3484. != global::System.Data.ConnectionState.Open)) {
  3485. this.Adapter.InsertCommand.Connection.Open();
  3486. }
  3487. try {
  3488. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3489. return returnValue;
  3490. }
  3491. finally {
  3492. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3493. this.Adapter.InsertCommand.Connection.Close();
  3494. }
  3495. }
  3496. }
  3497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3499. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3500. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3501. public virtual int Update(int StaffsID, System.DateTime TimeLogin, int Original_ID, int Original_StaffsID, System.DateTime Original_TimeLogin, int ID) {
  3502. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(StaffsID));
  3503. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(TimeLogin));
  3504. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  3505. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_StaffsID));
  3506. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(Original_TimeLogin));
  3507. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  3508. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3509. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3510. != global::System.Data.ConnectionState.Open)) {
  3511. this.Adapter.UpdateCommand.Connection.Open();
  3512. }
  3513. try {
  3514. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3515. return returnValue;
  3516. }
  3517. finally {
  3518. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3519. this.Adapter.UpdateCommand.Connection.Close();
  3520. }
  3521. }
  3522. }
  3523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3525. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3526. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3527. public virtual int Update(int StaffsID, System.DateTime TimeLogin, int Original_ID, int Original_StaffsID, System.DateTime Original_TimeLogin) {
  3528. return this.Update(StaffsID, TimeLogin, Original_ID, Original_StaffsID, Original_TimeLogin, Original_ID);
  3529. }
  3530. }
  3531. /// <summary>
  3532. ///Represents the connection and commands used to retrieve and save data.
  3533. ///</summary>
  3534. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3535. [global::System.ComponentModel.ToolboxItem(true)]
  3536. [global::System.ComponentModel.DataObjectAttribute(true)]
  3537. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3538. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3539. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3540. public partial class StaffsTableAdapter : global::System.ComponentModel.Component {
  3541. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3542. private global::System.Data.SqlClient.SqlConnection _connection;
  3543. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3544. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3545. private bool _clearBeforeFill;
  3546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3548. public StaffsTableAdapter() {
  3549. this.ClearBeforeFill = true;
  3550. }
  3551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3553. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3554. get {
  3555. if ((this._adapter == null)) {
  3556. this.InitAdapter();
  3557. }
  3558. return this._adapter;
  3559. }
  3560. }
  3561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3563. internal global::System.Data.SqlClient.SqlConnection Connection {
  3564. get {
  3565. if ((this._connection == null)) {
  3566. this.InitConnection();
  3567. }
  3568. return this._connection;
  3569. }
  3570. set {
  3571. this._connection = value;
  3572. if ((this.Adapter.InsertCommand != null)) {
  3573. this.Adapter.InsertCommand.Connection = value;
  3574. }
  3575. if ((this.Adapter.DeleteCommand != null)) {
  3576. this.Adapter.DeleteCommand.Connection = value;
  3577. }
  3578. if ((this.Adapter.UpdateCommand != null)) {
  3579. this.Adapter.UpdateCommand.Connection = value;
  3580. }
  3581. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3582. if ((this.CommandCollection[i] != null)) {
  3583. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3584. }
  3585. }
  3586. }
  3587. }
  3588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3590. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3591. get {
  3592. return this._transaction;
  3593. }
  3594. set {
  3595. this._transaction = value;
  3596. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3597. this.CommandCollection[i].Transaction = this._transaction;
  3598. }
  3599. if (((this.Adapter != null)
  3600. && (this.Adapter.DeleteCommand != null))) {
  3601. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3602. }
  3603. if (((this.Adapter != null)
  3604. && (this.Adapter.InsertCommand != null))) {
  3605. this.Adapter.InsertCommand.Transaction = this._transaction;
  3606. }
  3607. if (((this.Adapter != null)
  3608. && (this.Adapter.UpdateCommand != null))) {
  3609. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3610. }
  3611. }
  3612. }
  3613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3615. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3616. get {
  3617. if ((this._commandCollection == null)) {
  3618. this.InitCommandCollection();
  3619. }
  3620. return this._commandCollection;
  3621. }
  3622. }
  3623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3625. public bool ClearBeforeFill {
  3626. get {
  3627. return this._clearBeforeFill;
  3628. }
  3629. set {
  3630. this._clearBeforeFill = value;
  3631. }
  3632. }
  3633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3635. private void InitAdapter() {
  3636. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3637. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3638. tableMapping.SourceTable = "Table";
  3639. tableMapping.DataSetTable = "Staffs";
  3640. tableMapping.ColumnMappings.Add("ID", "ID");
  3641. tableMapping.ColumnMappings.Add("Lastname", "Lastname");
  3642. tableMapping.ColumnMappings.Add("Firstname", "Firstname");
  3643. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  3644. tableMapping.ColumnMappings.Add("PassportSeria", "PassportSeria");
  3645. tableMapping.ColumnMappings.Add("PassportNum", "PassportNum");
  3646. tableMapping.ColumnMappings.Add("Login", "Login");
  3647. tableMapping.ColumnMappings.Add("Password", "Password");
  3648. tableMapping.ColumnMappings.Add("IDStaffsType", "IDStaffsType");
  3649. this._adapter.TableMappings.Add(tableMapping);
  3650. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3651. this._adapter.DeleteCommand.Connection = this.Connection;
  3652. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Staffs] WHERE (([ID] = @Original_ID) AND ([Lastname] = @Original_Lastname) AND ([Firstname] = @Original_Firstname) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ([PassportSeria] = @Original_PassportSeria) AND ([PassportNum] = @Original_PassportNum) AND ([Login] = @Original_Login) AND ([Password] = @Original_Password) AND ([IDStaffsType] = @Original_IDStaffsType))";
  3653. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3654. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3655. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3656. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3657. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3658. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3659. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportSeria", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportSeria", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3660. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportNum", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNum", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3661. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3662. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3663. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDStaffsType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDStaffsType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3664. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3665. this._adapter.InsertCommand.Connection = this.Connection;
  3666. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Staffs] ([Lastname], [Firstname], [Patronymic], [PassportSeria], [PassportNum], [Login], [Password], [IDStaffsType]) VALUES (@Lastname, @Firstname, @Patronymic, @PassportSeria, @PassportNum, @Login, @Password, @IDStaffsType);
  3667. SELECT ID, Lastname, Firstname, Patronymic, PassportSeria, PassportNum, Login, Password, IDStaffsType FROM Staffs WHERE (ID = SCOPE_IDENTITY())";
  3668. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3669. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3670. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3671. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3672. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportSeria", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportSeria", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3673. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportNum", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNum", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3674. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3675. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3676. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDStaffsType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDStaffsType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3677. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3678. this._adapter.UpdateCommand.Connection = this.Connection;
  3679. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Staffs] SET [Lastname] = @Lastname, [Firstname] = @Firstname, [Patronymic] = @Patronymic, [PassportSeria] = @PassportSeria, [PassportNum] = @PassportNum, [Login] = @Login, [Password] = @Password, [IDStaffsType] = @IDStaffsType WHERE (([ID] = @Original_ID) AND ([Lastname] = @Original_Lastname) AND ([Firstname] = @Original_Firstname) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ([PassportSeria] = @Original_PassportSeria) AND ([PassportNum] = @Original_PassportNum) AND ([Login] = @Original_Login) AND ([Password] = @Original_Password) AND ([IDStaffsType] = @Original_IDStaffsType));
  3680. SELECT ID, Lastname, Firstname, Patronymic, PassportSeria, PassportNum, Login, Password, IDStaffsType FROM Staffs WHERE (ID = @ID)";
  3681. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3682. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3683. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3684. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3685. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportSeria", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportSeria", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3686. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportNum", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNum", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3687. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3688. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3689. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDStaffsType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDStaffsType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3690. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3691. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3692. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3693. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3694. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3695. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportSeria", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportSeria", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3696. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportNum", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNum", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3697. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3698. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3699. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDStaffsType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDStaffsType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3700. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3701. }
  3702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3704. private void InitConnection() {
  3705. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3706. this._connection.ConnectionString = global::ImpulseVision.Properties.Settings.Default.ImpulseVisionAppConnectionString;
  3707. }
  3708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3710. private void InitCommandCollection() {
  3711. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3712. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3713. this._commandCollection[0].Connection = this.Connection;
  3714. this._commandCollection[0].CommandText = "SELECT ID, Lastname, Firstname, Patronymic, PassportSeria, PassportNum, Login, Pa" +
  3715. "ssword, IDStaffsType FROM dbo.Staffs";
  3716. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3717. }
  3718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3720. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3721. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3722. public virtual int Fill(ImpulseVisionAppDataSet.StaffsDataTable dataTable) {
  3723. this.Adapter.SelectCommand = this.CommandCollection[0];
  3724. if ((this.ClearBeforeFill == true)) {
  3725. dataTable.Clear();
  3726. }
  3727. int returnValue = this.Adapter.Fill(dataTable);
  3728. return returnValue;
  3729. }
  3730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3732. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3733. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3734. public virtual ImpulseVisionAppDataSet.StaffsDataTable GetData() {
  3735. this.Adapter.SelectCommand = this.CommandCollection[0];
  3736. ImpulseVisionAppDataSet.StaffsDataTable dataTable = new ImpulseVisionAppDataSet.StaffsDataTable(true);
  3737. this.Adapter.Fill(dataTable);
  3738. return dataTable;
  3739. }
  3740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3742. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3743. public virtual int Update(ImpulseVisionAppDataSet.StaffsDataTable dataTable) {
  3744. return this.Adapter.Update(dataTable);
  3745. }
  3746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3748. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3749. public virtual int Update(ImpulseVisionAppDataSet dataSet) {
  3750. return this.Adapter.Update(dataSet, "Staffs");
  3751. }
  3752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3754. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3755. public virtual int Update(global::System.Data.DataRow dataRow) {
  3756. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3757. dataRow});
  3758. }
  3759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3761. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3762. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3763. return this.Adapter.Update(dataRows);
  3764. }
  3765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3767. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3768. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3769. public virtual int Delete(int Original_ID, string Original_Lastname, string Original_Firstname, string Original_Patronymic, string Original_PassportSeria, string Original_PassportNum, string Original_Login, string Original_Password, int Original_IDStaffsType) {
  3770. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  3771. if ((Original_Lastname == null)) {
  3772. throw new global::System.ArgumentNullException("Original_Lastname");
  3773. }
  3774. else {
  3775. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Lastname));
  3776. }
  3777. if ((Original_Firstname == null)) {
  3778. throw new global::System.ArgumentNullException("Original_Firstname");
  3779. }
  3780. else {
  3781. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Firstname));
  3782. }
  3783. if ((Original_Patronymic == null)) {
  3784. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  3785. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  3786. }
  3787. else {
  3788. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  3789. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Patronymic));
  3790. }
  3791. if ((Original_PassportSeria == null)) {
  3792. throw new global::System.ArgumentNullException("Original_PassportSeria");
  3793. }
  3794. else {
  3795. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_PassportSeria));
  3796. }
  3797. if ((Original_PassportNum == null)) {
  3798. throw new global::System.ArgumentNullException("Original_PassportNum");
  3799. }
  3800. else {
  3801. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_PassportNum));
  3802. }
  3803. if ((Original_Login == null)) {
  3804. throw new global::System.ArgumentNullException("Original_Login");
  3805. }
  3806. else {
  3807. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_Login));
  3808. }
  3809. if ((Original_Password == null)) {
  3810. throw new global::System.ArgumentNullException("Original_Password");
  3811. }
  3812. else {
  3813. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Password));
  3814. }
  3815. this.Adapter.DeleteCommand.Parameters[9].Value = ((int)(Original_IDStaffsType));
  3816. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3817. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3818. != global::System.Data.ConnectionState.Open)) {
  3819. this.Adapter.DeleteCommand.Connection.Open();
  3820. }
  3821. try {
  3822. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3823. return returnValue;
  3824. }
  3825. finally {
  3826. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3827. this.Adapter.DeleteCommand.Connection.Close();
  3828. }
  3829. }
  3830. }
  3831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3833. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3834. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3835. public virtual int Insert(string Lastname, string Firstname, string Patronymic, string PassportSeria, string PassportNum, string Login, string Password, int IDStaffsType) {
  3836. if ((Lastname == null)) {
  3837. throw new global::System.ArgumentNullException("Lastname");
  3838. }
  3839. else {
  3840. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Lastname));
  3841. }
  3842. if ((Firstname == null)) {
  3843. throw new global::System.ArgumentNullException("Firstname");
  3844. }
  3845. else {
  3846. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Firstname));
  3847. }
  3848. if ((Patronymic == null)) {
  3849. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3850. }
  3851. else {
  3852. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  3853. }
  3854. if ((PassportSeria == null)) {
  3855. throw new global::System.ArgumentNullException("PassportSeria");
  3856. }
  3857. else {
  3858. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(PassportSeria));
  3859. }
  3860. if ((PassportNum == null)) {
  3861. throw new global::System.ArgumentNullException("PassportNum");
  3862. }
  3863. else {
  3864. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(PassportNum));
  3865. }
  3866. if ((Login == null)) {
  3867. throw new global::System.ArgumentNullException("Login");
  3868. }
  3869. else {
  3870. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Login));
  3871. }
  3872. if ((Password == null)) {
  3873. throw new global::System.ArgumentNullException("Password");
  3874. }
  3875. else {
  3876. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Password));
  3877. }
  3878. this.Adapter.InsertCommand.Parameters[7].Value = ((int)(IDStaffsType));
  3879. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3880. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3881. != global::System.Data.ConnectionState.Open)) {
  3882. this.Adapter.InsertCommand.Connection.Open();
  3883. }
  3884. try {
  3885. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3886. return returnValue;
  3887. }
  3888. finally {
  3889. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3890. this.Adapter.InsertCommand.Connection.Close();
  3891. }
  3892. }
  3893. }
  3894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3896. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3897. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3898. public virtual int Update(
  3899. string Lastname,
  3900. string Firstname,
  3901. string Patronymic,
  3902. string PassportSeria,
  3903. string PassportNum,
  3904. string Login,
  3905. string Password,
  3906. int IDStaffsType,
  3907. int Original_ID,
  3908. string Original_Lastname,
  3909. string Original_Firstname,
  3910. string Original_Patronymic,
  3911. string Original_PassportSeria,
  3912. string Original_PassportNum,
  3913. string Original_Login,
  3914. string Original_Password,
  3915. int Original_IDStaffsType,
  3916. int ID) {
  3917. if ((Lastname == null)) {
  3918. throw new global::System.ArgumentNullException("Lastname");
  3919. }
  3920. else {
  3921. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Lastname));
  3922. }
  3923. if ((Firstname == null)) {
  3924. throw new global::System.ArgumentNullException("Firstname");
  3925. }
  3926. else {
  3927. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Firstname));
  3928. }
  3929. if ((Patronymic == null)) {
  3930. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  3931. }
  3932. else {
  3933. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  3934. }
  3935. if ((PassportSeria == null)) {
  3936. throw new global::System.ArgumentNullException("PassportSeria");
  3937. }
  3938. else {
  3939. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(PassportSeria));
  3940. }
  3941. if ((PassportNum == null)) {
  3942. throw new global::System.ArgumentNullException("PassportNum");
  3943. }
  3944. else {
  3945. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(PassportNum));
  3946. }
  3947. if ((Login == null)) {
  3948. throw new global::System.ArgumentNullException("Login");
  3949. }
  3950. else {
  3951. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Login));
  3952. }
  3953. if ((Password == null)) {
  3954. throw new global::System.ArgumentNullException("Password");
  3955. }
  3956. else {
  3957. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Password));
  3958. }
  3959. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(IDStaffsType));
  3960. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_ID));
  3961. if ((Original_Lastname == null)) {
  3962. throw new global::System.ArgumentNullException("Original_Lastname");
  3963. }
  3964. else {
  3965. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Lastname));
  3966. }
  3967. if ((Original_Firstname == null)) {
  3968. throw new global::System.ArgumentNullException("Original_Firstname");
  3969. }
  3970. else {
  3971. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Firstname));
  3972. }
  3973. if ((Original_Patronymic == null)) {
  3974. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  3975. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  3976. }
  3977. else {
  3978. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  3979. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Patronymic));
  3980. }
  3981. if ((Original_PassportSeria == null)) {
  3982. throw new global::System.ArgumentNullException("Original_PassportSeria");
  3983. }
  3984. else {
  3985. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_PassportSeria));
  3986. }
  3987. if ((Original_PassportNum == null)) {
  3988. throw new global::System.ArgumentNullException("Original_PassportNum");
  3989. }
  3990. else {
  3991. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_PassportNum));
  3992. }
  3993. if ((Original_Login == null)) {
  3994. throw new global::System.ArgumentNullException("Original_Login");
  3995. }
  3996. else {
  3997. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Login));
  3998. }
  3999. if ((Original_Password == null)) {
  4000. throw new global::System.ArgumentNullException("Original_Password");
  4001. }
  4002. else {
  4003. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Password));
  4004. }
  4005. this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_IDStaffsType));
  4006. this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(ID));
  4007. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4008. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4009. != global::System.Data.ConnectionState.Open)) {
  4010. this.Adapter.UpdateCommand.Connection.Open();
  4011. }
  4012. try {
  4013. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4014. return returnValue;
  4015. }
  4016. finally {
  4017. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4018. this.Adapter.UpdateCommand.Connection.Close();
  4019. }
  4020. }
  4021. }
  4022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4024. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4025. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4026. public virtual int Update(
  4027. string Lastname,
  4028. string Firstname,
  4029. string Patronymic,
  4030. string PassportSeria,
  4031. string PassportNum,
  4032. string Login,
  4033. string Password,
  4034. int IDStaffsType,
  4035. int Original_ID,
  4036. string Original_Lastname,
  4037. string Original_Firstname,
  4038. string Original_Patronymic,
  4039. string Original_PassportSeria,
  4040. string Original_PassportNum,
  4041. string Original_Login,
  4042. string Original_Password,
  4043. int Original_IDStaffsType) {
  4044. return this.Update(Lastname, Firstname, Patronymic, PassportSeria, PassportNum, Login, Password, IDStaffsType, Original_ID, Original_Lastname, Original_Firstname, Original_Patronymic, Original_PassportSeria, Original_PassportNum, Original_Login, Original_Password, Original_IDStaffsType, Original_ID);
  4045. }
  4046. }
  4047. /// <summary>
  4048. ///Represents the connection and commands used to retrieve and save data.
  4049. ///</summary>
  4050. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4051. [global::System.ComponentModel.ToolboxItem(true)]
  4052. [global::System.ComponentModel.DataObjectAttribute(true)]
  4053. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4054. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4055. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4056. public partial class UsersTableAdapter : global::System.ComponentModel.Component {
  4057. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4058. private global::System.Data.SqlClient.SqlConnection _connection;
  4059. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4060. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4061. private bool _clearBeforeFill;
  4062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4064. public UsersTableAdapter() {
  4065. this.ClearBeforeFill = true;
  4066. }
  4067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4069. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4070. get {
  4071. if ((this._adapter == null)) {
  4072. this.InitAdapter();
  4073. }
  4074. return this._adapter;
  4075. }
  4076. }
  4077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4079. internal global::System.Data.SqlClient.SqlConnection Connection {
  4080. get {
  4081. if ((this._connection == null)) {
  4082. this.InitConnection();
  4083. }
  4084. return this._connection;
  4085. }
  4086. set {
  4087. this._connection = value;
  4088. if ((this.Adapter.InsertCommand != null)) {
  4089. this.Adapter.InsertCommand.Connection = value;
  4090. }
  4091. if ((this.Adapter.DeleteCommand != null)) {
  4092. this.Adapter.DeleteCommand.Connection = value;
  4093. }
  4094. if ((this.Adapter.UpdateCommand != null)) {
  4095. this.Adapter.UpdateCommand.Connection = value;
  4096. }
  4097. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4098. if ((this.CommandCollection[i] != null)) {
  4099. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4100. }
  4101. }
  4102. }
  4103. }
  4104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4106. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4107. get {
  4108. return this._transaction;
  4109. }
  4110. set {
  4111. this._transaction = value;
  4112. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4113. this.CommandCollection[i].Transaction = this._transaction;
  4114. }
  4115. if (((this.Adapter != null)
  4116. && (this.Adapter.DeleteCommand != null))) {
  4117. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4118. }
  4119. if (((this.Adapter != null)
  4120. && (this.Adapter.InsertCommand != null))) {
  4121. this.Adapter.InsertCommand.Transaction = this._transaction;
  4122. }
  4123. if (((this.Adapter != null)
  4124. && (this.Adapter.UpdateCommand != null))) {
  4125. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4126. }
  4127. }
  4128. }
  4129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4131. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4132. get {
  4133. if ((this._commandCollection == null)) {
  4134. this.InitCommandCollection();
  4135. }
  4136. return this._commandCollection;
  4137. }
  4138. }
  4139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4141. public bool ClearBeforeFill {
  4142. get {
  4143. return this._clearBeforeFill;
  4144. }
  4145. set {
  4146. this._clearBeforeFill = value;
  4147. }
  4148. }
  4149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4151. private void InitAdapter() {
  4152. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4153. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4154. tableMapping.SourceTable = "Table";
  4155. tableMapping.DataSetTable = "Users";
  4156. tableMapping.ColumnMappings.Add("ID", "ID");
  4157. tableMapping.ColumnMappings.Add("Lastname", "Lastname");
  4158. tableMapping.ColumnMappings.Add("Firstname", "Firstname");
  4159. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  4160. tableMapping.ColumnMappings.Add("PassportSeria", "PassportSeria");
  4161. tableMapping.ColumnMappings.Add("PassportNum", "PassportNum");
  4162. tableMapping.ColumnMappings.Add("IDUserType", "IDUserType");
  4163. tableMapping.ColumnMappings.Add("Phone", "Phone");
  4164. this._adapter.TableMappings.Add(tableMapping);
  4165. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4166. this._adapter.DeleteCommand.Connection = this.Connection;
  4167. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Users] WHERE (([ID] = @Original_ID) AND ([Lastname] = @Original_Lastname) AND ([Firstname] = @Original_Firstname) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ([PassportSeria] = @Original_PassportSeria) AND ([PassportNum] = @Original_PassportNum) AND ([Phone] = @Original_Phone) AND ([IDUserType] = @Original_IDUserType))";
  4168. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4169. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4170. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4171. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4172. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4173. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4174. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportSeria", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportSeria", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4175. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportNum", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNum", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4176. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4177. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDUserType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDUserType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4178. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4179. this._adapter.InsertCommand.Connection = this.Connection;
  4180. this._adapter.InsertCommand.CommandText = @"INSERT INTO [Users] ([Lastname], [Firstname], [Patronymic], [PassportSeria], [PassportNum], [Phone], [IDUserType]) VALUES (@Lastname, @Firstname, @Patronymic, @PassportSeria, @PassportNum, @Phone, @IDUserType);
  4181. SELECT ID, Lastname, Firstname, Patronymic, PassportSeria, PassportNum, Phone, IDUserType FROM Users WHERE (ID = SCOPE_IDENTITY())";
  4182. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4183. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4184. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4185. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4186. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportSeria", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportSeria", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4187. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportNum", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNum", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4188. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4189. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDUserType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDUserType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4190. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4191. this._adapter.UpdateCommand.Connection = this.Connection;
  4192. this._adapter.UpdateCommand.CommandText = @"UPDATE [Users] SET [Lastname] = @Lastname, [Firstname] = @Firstname, [Patronymic] = @Patronymic, [PassportSeria] = @PassportSeria, [PassportNum] = @PassportNum, [Phone] = @Phone, [IDUserType] = @IDUserType WHERE (([ID] = @Original_ID) AND ([Lastname] = @Original_Lastname) AND ([Firstname] = @Original_Firstname) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ([PassportSeria] = @Original_PassportSeria) AND ([PassportNum] = @Original_PassportNum) AND ([Phone] = @Original_Phone) AND ([IDUserType] = @Original_IDUserType));
  4193. SELECT ID, Lastname, Firstname, Patronymic, PassportSeria, PassportNum, Phone, IDUserType FROM Users WHERE (ID = @ID)";
  4194. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4195. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4196. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4197. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4198. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportSeria", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportSeria", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4199. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PassportNum", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNum", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4200. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4201. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDUserType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDUserType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4202. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4203. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Lastname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lastname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4204. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Firstname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Firstname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4205. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4206. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4207. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportSeria", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportSeria", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4208. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PassportNum", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PassportNum", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4209. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4210. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDUserType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDUserType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4211. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4212. }
  4213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4215. private void InitConnection() {
  4216. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4217. this._connection.ConnectionString = global::ImpulseVision.Properties.Settings.Default.ImpulseVisionAppConnectionString;
  4218. }
  4219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4221. private void InitCommandCollection() {
  4222. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4223. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4224. this._commandCollection[0].Connection = this.Connection;
  4225. this._commandCollection[0].CommandText = "SELECT ID, Lastname, Firstname, Patronymic, PassportSeria, PassportNum, Ph" +
  4226. "one, IDUserType\r\nFROM Users";
  4227. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4228. }
  4229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4231. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4232. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4233. public virtual int Fill(ImpulseVisionAppDataSet.UsersDataTable dataTable) {
  4234. this.Adapter.SelectCommand = this.CommandCollection[0];
  4235. if ((this.ClearBeforeFill == true)) {
  4236. dataTable.Clear();
  4237. }
  4238. int returnValue = this.Adapter.Fill(dataTable);
  4239. return returnValue;
  4240. }
  4241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4243. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4244. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4245. public virtual ImpulseVisionAppDataSet.UsersDataTable GetData() {
  4246. this.Adapter.SelectCommand = this.CommandCollection[0];
  4247. ImpulseVisionAppDataSet.UsersDataTable dataTable = new ImpulseVisionAppDataSet.UsersDataTable();
  4248. this.Adapter.Fill(dataTable);
  4249. return dataTable;
  4250. }
  4251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4253. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4254. public virtual int Update(ImpulseVisionAppDataSet.UsersDataTable dataTable) {
  4255. return this.Adapter.Update(dataTable);
  4256. }
  4257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4259. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4260. public virtual int Update(ImpulseVisionAppDataSet dataSet) {
  4261. return this.Adapter.Update(dataSet, "Users");
  4262. }
  4263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4265. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4266. public virtual int Update(global::System.Data.DataRow dataRow) {
  4267. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4268. dataRow});
  4269. }
  4270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4272. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4273. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4274. return this.Adapter.Update(dataRows);
  4275. }
  4276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4278. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4279. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4280. public virtual int Delete(int Original_ID, string Original_Lastname, string Original_Firstname, string Original_Patronymic, string Original_PassportSeria, string Original_PassportNum, string Original_Phone, int Original_IDUserType) {
  4281. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  4282. if ((Original_Lastname == null)) {
  4283. throw new global::System.ArgumentNullException("Original_Lastname");
  4284. }
  4285. else {
  4286. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Lastname));
  4287. }
  4288. if ((Original_Firstname == null)) {
  4289. throw new global::System.ArgumentNullException("Original_Firstname");
  4290. }
  4291. else {
  4292. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Firstname));
  4293. }
  4294. if ((Original_Patronymic == null)) {
  4295. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4296. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4297. }
  4298. else {
  4299. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4300. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Patronymic));
  4301. }
  4302. if ((Original_PassportSeria == null)) {
  4303. throw new global::System.ArgumentNullException("Original_PassportSeria");
  4304. }
  4305. else {
  4306. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_PassportSeria));
  4307. }
  4308. if ((Original_PassportNum == null)) {
  4309. throw new global::System.ArgumentNullException("Original_PassportNum");
  4310. }
  4311. else {
  4312. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_PassportNum));
  4313. }
  4314. if ((Original_Phone == null)) {
  4315. throw new global::System.ArgumentNullException("Original_Phone");
  4316. }
  4317. else {
  4318. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_Phone));
  4319. }
  4320. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_IDUserType));
  4321. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4322. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4323. != global::System.Data.ConnectionState.Open)) {
  4324. this.Adapter.DeleteCommand.Connection.Open();
  4325. }
  4326. try {
  4327. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4328. return returnValue;
  4329. }
  4330. finally {
  4331. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4332. this.Adapter.DeleteCommand.Connection.Close();
  4333. }
  4334. }
  4335. }
  4336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4338. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4339. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4340. public virtual int Insert(string Lastname, string Firstname, string Patronymic, string PassportSeria, string PassportNum, string Phone, int IDUserType) {
  4341. if ((Lastname == null)) {
  4342. throw new global::System.ArgumentNullException("Lastname");
  4343. }
  4344. else {
  4345. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Lastname));
  4346. }
  4347. if ((Firstname == null)) {
  4348. throw new global::System.ArgumentNullException("Firstname");
  4349. }
  4350. else {
  4351. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Firstname));
  4352. }
  4353. if ((Patronymic == null)) {
  4354. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4355. }
  4356. else {
  4357. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  4358. }
  4359. if ((PassportSeria == null)) {
  4360. throw new global::System.ArgumentNullException("PassportSeria");
  4361. }
  4362. else {
  4363. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(PassportSeria));
  4364. }
  4365. if ((PassportNum == null)) {
  4366. throw new global::System.ArgumentNullException("PassportNum");
  4367. }
  4368. else {
  4369. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(PassportNum));
  4370. }
  4371. if ((Phone == null)) {
  4372. throw new global::System.ArgumentNullException("Phone");
  4373. }
  4374. else {
  4375. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Phone));
  4376. }
  4377. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(IDUserType));
  4378. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4379. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4380. != global::System.Data.ConnectionState.Open)) {
  4381. this.Adapter.InsertCommand.Connection.Open();
  4382. }
  4383. try {
  4384. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4385. return returnValue;
  4386. }
  4387. finally {
  4388. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4389. this.Adapter.InsertCommand.Connection.Close();
  4390. }
  4391. }
  4392. }
  4393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4395. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4396. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4397. public virtual int Update(
  4398. string Lastname,
  4399. string Firstname,
  4400. string Patronymic,
  4401. string PassportSeria,
  4402. string PassportNum,
  4403. string Phone,
  4404. int IDUserType,
  4405. int Original_ID,
  4406. string Original_Lastname,
  4407. string Original_Firstname,
  4408. string Original_Patronymic,
  4409. string Original_PassportSeria,
  4410. string Original_PassportNum,
  4411. string Original_Phone,
  4412. int Original_IDUserType,
  4413. int ID) {
  4414. if ((Lastname == null)) {
  4415. throw new global::System.ArgumentNullException("Lastname");
  4416. }
  4417. else {
  4418. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Lastname));
  4419. }
  4420. if ((Firstname == null)) {
  4421. throw new global::System.ArgumentNullException("Firstname");
  4422. }
  4423. else {
  4424. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Firstname));
  4425. }
  4426. if ((Patronymic == null)) {
  4427. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4428. }
  4429. else {
  4430. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  4431. }
  4432. if ((PassportSeria == null)) {
  4433. throw new global::System.ArgumentNullException("PassportSeria");
  4434. }
  4435. else {
  4436. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(PassportSeria));
  4437. }
  4438. if ((PassportNum == null)) {
  4439. throw new global::System.ArgumentNullException("PassportNum");
  4440. }
  4441. else {
  4442. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(PassportNum));
  4443. }
  4444. if ((Phone == null)) {
  4445. throw new global::System.ArgumentNullException("Phone");
  4446. }
  4447. else {
  4448. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Phone));
  4449. }
  4450. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(IDUserType));
  4451. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_ID));
  4452. if ((Original_Lastname == null)) {
  4453. throw new global::System.ArgumentNullException("Original_Lastname");
  4454. }
  4455. else {
  4456. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Lastname));
  4457. }
  4458. if ((Original_Firstname == null)) {
  4459. throw new global::System.ArgumentNullException("Original_Firstname");
  4460. }
  4461. else {
  4462. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Firstname));
  4463. }
  4464. if ((Original_Patronymic == null)) {
  4465. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  4466. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  4467. }
  4468. else {
  4469. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  4470. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Patronymic));
  4471. }
  4472. if ((Original_PassportSeria == null)) {
  4473. throw new global::System.ArgumentNullException("Original_PassportSeria");
  4474. }
  4475. else {
  4476. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_PassportSeria));
  4477. }
  4478. if ((Original_PassportNum == null)) {
  4479. throw new global::System.ArgumentNullException("Original_PassportNum");
  4480. }
  4481. else {
  4482. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_PassportNum));
  4483. }
  4484. if ((Original_Phone == null)) {
  4485. throw new global::System.ArgumentNullException("Original_Phone");
  4486. }
  4487. else {
  4488. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Phone));
  4489. }
  4490. this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_IDUserType));
  4491. this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(ID));
  4492. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4493. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4494. != global::System.Data.ConnectionState.Open)) {
  4495. this.Adapter.UpdateCommand.Connection.Open();
  4496. }
  4497. try {
  4498. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4499. return returnValue;
  4500. }
  4501. finally {
  4502. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4503. this.Adapter.UpdateCommand.Connection.Close();
  4504. }
  4505. }
  4506. }
  4507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4509. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4510. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4511. public virtual int Update(string Lastname, string Firstname, string Patronymic, string PassportSeria, string PassportNum, string Phone, int IDUserType, int Original_ID, string Original_Lastname, string Original_Firstname, string Original_Patronymic, string Original_PassportSeria, string Original_PassportNum, string Original_Phone, int Original_IDUserType) {
  4512. return this.Update(Lastname, Firstname, Patronymic, PassportSeria, PassportNum, Phone, IDUserType, Original_ID, Original_Lastname, Original_Firstname, Original_Patronymic, Original_PassportSeria, Original_PassportNum, Original_Phone, Original_IDUserType, Original_ID);
  4513. }
  4514. }
  4515. /// <summary>
  4516. ///Represents the connection and commands used to retrieve and save data.
  4517. ///</summary>
  4518. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4519. [global::System.ComponentModel.ToolboxItem(true)]
  4520. [global::System.ComponentModel.DataObjectAttribute(true)]
  4521. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4522. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4523. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4524. public partial class UserTrafficTableAdapter : global::System.ComponentModel.Component {
  4525. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4526. private global::System.Data.SqlClient.SqlConnection _connection;
  4527. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4528. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4529. private bool _clearBeforeFill;
  4530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4532. public UserTrafficTableAdapter() {
  4533. this.ClearBeforeFill = true;
  4534. }
  4535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4537. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4538. get {
  4539. if ((this._adapter == null)) {
  4540. this.InitAdapter();
  4541. }
  4542. return this._adapter;
  4543. }
  4544. }
  4545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4547. internal global::System.Data.SqlClient.SqlConnection Connection {
  4548. get {
  4549. if ((this._connection == null)) {
  4550. this.InitConnection();
  4551. }
  4552. return this._connection;
  4553. }
  4554. set {
  4555. this._connection = value;
  4556. if ((this.Adapter.InsertCommand != null)) {
  4557. this.Adapter.InsertCommand.Connection = value;
  4558. }
  4559. if ((this.Adapter.DeleteCommand != null)) {
  4560. this.Adapter.DeleteCommand.Connection = value;
  4561. }
  4562. if ((this.Adapter.UpdateCommand != null)) {
  4563. this.Adapter.UpdateCommand.Connection = value;
  4564. }
  4565. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4566. if ((this.CommandCollection[i] != null)) {
  4567. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4568. }
  4569. }
  4570. }
  4571. }
  4572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4574. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4575. get {
  4576. return this._transaction;
  4577. }
  4578. set {
  4579. this._transaction = value;
  4580. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4581. this.CommandCollection[i].Transaction = this._transaction;
  4582. }
  4583. if (((this.Adapter != null)
  4584. && (this.Adapter.DeleteCommand != null))) {
  4585. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4586. }
  4587. if (((this.Adapter != null)
  4588. && (this.Adapter.InsertCommand != null))) {
  4589. this.Adapter.InsertCommand.Transaction = this._transaction;
  4590. }
  4591. if (((this.Adapter != null)
  4592. && (this.Adapter.UpdateCommand != null))) {
  4593. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4594. }
  4595. }
  4596. }
  4597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4599. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4600. get {
  4601. if ((this._commandCollection == null)) {
  4602. this.InitCommandCollection();
  4603. }
  4604. return this._commandCollection;
  4605. }
  4606. }
  4607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4609. public bool ClearBeforeFill {
  4610. get {
  4611. return this._clearBeforeFill;
  4612. }
  4613. set {
  4614. this._clearBeforeFill = value;
  4615. }
  4616. }
  4617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4619. private void InitAdapter() {
  4620. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4621. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4622. tableMapping.SourceTable = "Table";
  4623. tableMapping.DataSetTable = "UserTraffic";
  4624. tableMapping.ColumnMappings.Add("ID", "ID");
  4625. tableMapping.ColumnMappings.Add("UserID", "UserID");
  4626. tableMapping.ColumnMappings.Add("TimeEntrance", "TimeEntrance");
  4627. tableMapping.ColumnMappings.Add("TimeExit", "TimeExit");
  4628. tableMapping.ColumnMappings.Add("Identification", "Identification");
  4629. this._adapter.TableMappings.Add(tableMapping);
  4630. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4631. this._adapter.DeleteCommand.Connection = this.Connection;
  4632. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[UserTraffic] WHERE (([ID] = @Original_ID) AND ([UserID] = @Original_UserID) AND ((@IsNull_TimeEntrance = 1 AND [TimeEntrance] IS NULL) OR ([TimeEntrance] = @Original_TimeEntrance)) AND ((@IsNull_TimeExit = 1 AND [TimeExit] IS NULL) OR ([TimeExit] = @Original_TimeExit)) AND ([Identification] = @Original_Identification))";
  4633. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4634. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4635. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4636. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TimeEntrance", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeEntrance", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4637. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TimeEntrance", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeEntrance", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4638. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TimeExit", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeExit", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4639. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TimeExit", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeExit", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4640. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Identification", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Identification", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4641. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4642. this._adapter.InsertCommand.Connection = this.Connection;
  4643. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[UserTraffic] ([UserID], [TimeEntrance], [TimeExit], [Identific" +
  4644. "ation]) VALUES (@UserID, @TimeEntrance, @TimeExit, @Identification);\r\nSELECT ID," +
  4645. " UserID, TimeEntrance, TimeExit, Identification FROM UserTraffic WHERE (ID = SCO" +
  4646. "PE_IDENTITY())";
  4647. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4648. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4649. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TimeEntrance", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeEntrance", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4650. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TimeExit", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeExit", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4651. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Identification", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Identification", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4652. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4653. this._adapter.UpdateCommand.Connection = this.Connection;
  4654. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[UserTraffic] SET [UserID] = @UserID, [TimeEntrance] = @TimeEntrance, [TimeExit] = @TimeExit, [Identification] = @Identification WHERE (([ID] = @Original_ID) AND ([UserID] = @Original_UserID) AND ((@IsNull_TimeEntrance = 1 AND [TimeEntrance] IS NULL) OR ([TimeEntrance] = @Original_TimeEntrance)) AND ((@IsNull_TimeExit = 1 AND [TimeExit] IS NULL) OR ([TimeExit] = @Original_TimeExit)) AND ([Identification] = @Original_Identification));
  4655. SELECT ID, UserID, TimeEntrance, TimeExit, Identification FROM UserTraffic WHERE (ID = @ID)";
  4656. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4657. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4658. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TimeEntrance", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeEntrance", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4659. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TimeExit", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeExit", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4660. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Identification", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Identification", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4661. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4662. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4663. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TimeEntrance", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeEntrance", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4664. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TimeEntrance", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeEntrance", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4665. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TimeExit", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeExit", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4666. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TimeExit", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimeExit", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4667. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Identification", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Identification", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4668. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4669. }
  4670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4672. private void InitConnection() {
  4673. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4674. this._connection.ConnectionString = global::ImpulseVision.Properties.Settings.Default.ImpulseVisionAppConnectionString;
  4675. }
  4676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4678. private void InitCommandCollection() {
  4679. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4680. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4681. this._commandCollection[0].Connection = this.Connection;
  4682. this._commandCollection[0].CommandText = "SELECT ID, UserID, TimeEntrance, TimeExit, Identification FROM dbo.UserTraffic";
  4683. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4684. }
  4685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4687. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4688. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4689. public virtual int Fill(ImpulseVisionAppDataSet.UserTrafficDataTable dataTable) {
  4690. this.Adapter.SelectCommand = this.CommandCollection[0];
  4691. if ((this.ClearBeforeFill == true)) {
  4692. dataTable.Clear();
  4693. }
  4694. int returnValue = this.Adapter.Fill(dataTable);
  4695. return returnValue;
  4696. }
  4697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4699. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4700. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4701. public virtual ImpulseVisionAppDataSet.UserTrafficDataTable GetData() {
  4702. this.Adapter.SelectCommand = this.CommandCollection[0];
  4703. ImpulseVisionAppDataSet.UserTrafficDataTable dataTable = new ImpulseVisionAppDataSet.UserTrafficDataTable();
  4704. this.Adapter.Fill(dataTable);
  4705. return dataTable;
  4706. }
  4707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4709. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4710. public virtual int Update(ImpulseVisionAppDataSet.UserTrafficDataTable dataTable) {
  4711. return this.Adapter.Update(dataTable);
  4712. }
  4713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4715. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4716. public virtual int Update(ImpulseVisionAppDataSet dataSet) {
  4717. return this.Adapter.Update(dataSet, "UserTraffic");
  4718. }
  4719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4721. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4722. public virtual int Update(global::System.Data.DataRow dataRow) {
  4723. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4724. dataRow});
  4725. }
  4726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4728. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4729. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4730. return this.Adapter.Update(dataRows);
  4731. }
  4732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4734. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4735. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4736. public virtual int Delete(int Original_ID, int Original_UserID, global::System.Nullable<global::System.DateTime> Original_TimeEntrance, global::System.Nullable<global::System.DateTime> Original_TimeExit, bool Original_Identification) {
  4737. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  4738. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_UserID));
  4739. if ((Original_TimeEntrance.HasValue == true)) {
  4740. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  4741. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_TimeEntrance.Value));
  4742. }
  4743. else {
  4744. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  4745. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  4746. }
  4747. if ((Original_TimeExit.HasValue == true)) {
  4748. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  4749. this.Adapter.DeleteCommand.Parameters[5].Value = ((System.DateTime)(Original_TimeExit.Value));
  4750. }
  4751. else {
  4752. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  4753. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  4754. }
  4755. this.Adapter.DeleteCommand.Parameters[6].Value = ((bool)(Original_Identification));
  4756. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4757. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4758. != global::System.Data.ConnectionState.Open)) {
  4759. this.Adapter.DeleteCommand.Connection.Open();
  4760. }
  4761. try {
  4762. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4763. return returnValue;
  4764. }
  4765. finally {
  4766. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4767. this.Adapter.DeleteCommand.Connection.Close();
  4768. }
  4769. }
  4770. }
  4771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4773. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4774. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4775. public virtual int Insert(int UserID, global::System.Nullable<global::System.DateTime> TimeEntrance, global::System.Nullable<global::System.DateTime> TimeExit, bool Identification) {
  4776. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(UserID));
  4777. if ((TimeEntrance.HasValue == true)) {
  4778. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(TimeEntrance.Value));
  4779. }
  4780. else {
  4781. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4782. }
  4783. if ((TimeExit.HasValue == true)) {
  4784. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(TimeExit.Value));
  4785. }
  4786. else {
  4787. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4788. }
  4789. this.Adapter.InsertCommand.Parameters[3].Value = ((bool)(Identification));
  4790. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4791. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4792. != global::System.Data.ConnectionState.Open)) {
  4793. this.Adapter.InsertCommand.Connection.Open();
  4794. }
  4795. try {
  4796. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4797. return returnValue;
  4798. }
  4799. finally {
  4800. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4801. this.Adapter.InsertCommand.Connection.Close();
  4802. }
  4803. }
  4804. }
  4805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4807. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4808. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4809. public virtual int Update(int UserID, global::System.Nullable<global::System.DateTime> TimeEntrance, global::System.Nullable<global::System.DateTime> TimeExit, bool Identification, int Original_ID, int Original_UserID, global::System.Nullable<global::System.DateTime> Original_TimeEntrance, global::System.Nullable<global::System.DateTime> Original_TimeExit, bool Original_Identification, int ID) {
  4810. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(UserID));
  4811. if ((TimeEntrance.HasValue == true)) {
  4812. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(TimeEntrance.Value));
  4813. }
  4814. else {
  4815. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4816. }
  4817. if ((TimeExit.HasValue == true)) {
  4818. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(TimeExit.Value));
  4819. }
  4820. else {
  4821. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4822. }
  4823. this.Adapter.UpdateCommand.Parameters[3].Value = ((bool)(Identification));
  4824. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  4825. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_UserID));
  4826. if ((Original_TimeEntrance.HasValue == true)) {
  4827. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  4828. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_TimeEntrance.Value));
  4829. }
  4830. else {
  4831. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  4832. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  4833. }
  4834. if ((Original_TimeExit.HasValue == true)) {
  4835. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  4836. this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(Original_TimeExit.Value));
  4837. }
  4838. else {
  4839. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  4840. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  4841. }
  4842. this.Adapter.UpdateCommand.Parameters[10].Value = ((bool)(Original_Identification));
  4843. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(ID));
  4844. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4845. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4846. != global::System.Data.ConnectionState.Open)) {
  4847. this.Adapter.UpdateCommand.Connection.Open();
  4848. }
  4849. try {
  4850. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4851. return returnValue;
  4852. }
  4853. finally {
  4854. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4855. this.Adapter.UpdateCommand.Connection.Close();
  4856. }
  4857. }
  4858. }
  4859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4861. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4862. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4863. public virtual int Update(int UserID, global::System.Nullable<global::System.DateTime> TimeEntrance, global::System.Nullable<global::System.DateTime> TimeExit, bool Identification, int Original_ID, int Original_UserID, global::System.Nullable<global::System.DateTime> Original_TimeEntrance, global::System.Nullable<global::System.DateTime> Original_TimeExit, bool Original_Identification) {
  4864. return this.Update(UserID, TimeEntrance, TimeExit, Identification, Original_ID, Original_UserID, Original_TimeEntrance, Original_TimeExit, Original_Identification, Original_ID);
  4865. }
  4866. }
  4867. /// <summary>
  4868. ///Represents the connection and commands used to retrieve and save data.
  4869. ///</summary>
  4870. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4871. [global::System.ComponentModel.ToolboxItem(true)]
  4872. [global::System.ComponentModel.DataObjectAttribute(true)]
  4873. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4874. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4875. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4876. public partial class UserTypeTableAdapter : global::System.ComponentModel.Component {
  4877. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4878. private global::System.Data.SqlClient.SqlConnection _connection;
  4879. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4880. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4881. private bool _clearBeforeFill;
  4882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4884. public UserTypeTableAdapter() {
  4885. this.ClearBeforeFill = true;
  4886. }
  4887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4889. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4890. get {
  4891. if ((this._adapter == null)) {
  4892. this.InitAdapter();
  4893. }
  4894. return this._adapter;
  4895. }
  4896. }
  4897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4899. internal global::System.Data.SqlClient.SqlConnection Connection {
  4900. get {
  4901. if ((this._connection == null)) {
  4902. this.InitConnection();
  4903. }
  4904. return this._connection;
  4905. }
  4906. set {
  4907. this._connection = value;
  4908. if ((this.Adapter.InsertCommand != null)) {
  4909. this.Adapter.InsertCommand.Connection = value;
  4910. }
  4911. if ((this.Adapter.DeleteCommand != null)) {
  4912. this.Adapter.DeleteCommand.Connection = value;
  4913. }
  4914. if ((this.Adapter.UpdateCommand != null)) {
  4915. this.Adapter.UpdateCommand.Connection = value;
  4916. }
  4917. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4918. if ((this.CommandCollection[i] != null)) {
  4919. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4920. }
  4921. }
  4922. }
  4923. }
  4924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4926. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4927. get {
  4928. return this._transaction;
  4929. }
  4930. set {
  4931. this._transaction = value;
  4932. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4933. this.CommandCollection[i].Transaction = this._transaction;
  4934. }
  4935. if (((this.Adapter != null)
  4936. && (this.Adapter.DeleteCommand != null))) {
  4937. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4938. }
  4939. if (((this.Adapter != null)
  4940. && (this.Adapter.InsertCommand != null))) {
  4941. this.Adapter.InsertCommand.Transaction = this._transaction;
  4942. }
  4943. if (((this.Adapter != null)
  4944. && (this.Adapter.UpdateCommand != null))) {
  4945. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4946. }
  4947. }
  4948. }
  4949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4951. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4952. get {
  4953. if ((this._commandCollection == null)) {
  4954. this.InitCommandCollection();
  4955. }
  4956. return this._commandCollection;
  4957. }
  4958. }
  4959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4961. public bool ClearBeforeFill {
  4962. get {
  4963. return this._clearBeforeFill;
  4964. }
  4965. set {
  4966. this._clearBeforeFill = value;
  4967. }
  4968. }
  4969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4971. private void InitAdapter() {
  4972. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4973. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4974. tableMapping.SourceTable = "Table";
  4975. tableMapping.DataSetTable = "UserType";
  4976. tableMapping.ColumnMappings.Add("ID", "ID");
  4977. tableMapping.ColumnMappings.Add("UserType", "UserType");
  4978. this._adapter.TableMappings.Add(tableMapping);
  4979. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4980. this._adapter.DeleteCommand.Connection = this.Connection;
  4981. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[UserType] WHERE (([ID] = @Original_ID) AND ([UserType] = @Orig" +
  4982. "inal_UserType))";
  4983. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4984. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4985. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4986. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4987. this._adapter.InsertCommand.Connection = this.Connection;
  4988. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[UserType] ([UserType]) VALUES (@UserType);\r\nSELECT ID, UserTyp" +
  4989. "e FROM UserType WHERE (ID = SCOPE_IDENTITY())";
  4990. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4991. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4992. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4993. this._adapter.UpdateCommand.Connection = this.Connection;
  4994. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[UserType] SET [UserType] = @UserType WHERE (([ID] = @Original_ID) A" +
  4995. "ND ([UserType] = @Original_UserType));\r\nSELECT ID, UserType FROM UserType WHERE " +
  4996. "(ID = @ID)";
  4997. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4998. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4999. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5000. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5001. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5002. }
  5003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5005. private void InitConnection() {
  5006. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5007. this._connection.ConnectionString = global::ImpulseVision.Properties.Settings.Default.ImpulseVisionAppConnectionString;
  5008. }
  5009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5011. private void InitCommandCollection() {
  5012. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5013. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5014. this._commandCollection[0].Connection = this.Connection;
  5015. this._commandCollection[0].CommandText = "SELECT ID, UserType FROM dbo.UserType";
  5016. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5017. }
  5018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5020. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5021. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5022. public virtual int Fill(ImpulseVisionAppDataSet.UserTypeDataTable dataTable) {
  5023. this.Adapter.SelectCommand = this.CommandCollection[0];
  5024. if ((this.ClearBeforeFill == true)) {
  5025. dataTable.Clear();
  5026. }
  5027. int returnValue = this.Adapter.Fill(dataTable);
  5028. return returnValue;
  5029. }
  5030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5032. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5033. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5034. public virtual ImpulseVisionAppDataSet.UserTypeDataTable GetData() {
  5035. this.Adapter.SelectCommand = this.CommandCollection[0];
  5036. ImpulseVisionAppDataSet.UserTypeDataTable dataTable = new ImpulseVisionAppDataSet.UserTypeDataTable();
  5037. this.Adapter.Fill(dataTable);
  5038. return dataTable;
  5039. }
  5040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5042. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5043. public virtual int Update(ImpulseVisionAppDataSet.UserTypeDataTable dataTable) {
  5044. return this.Adapter.Update(dataTable);
  5045. }
  5046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5048. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5049. public virtual int Update(ImpulseVisionAppDataSet dataSet) {
  5050. return this.Adapter.Update(dataSet, "UserType");
  5051. }
  5052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5054. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5055. public virtual int Update(global::System.Data.DataRow dataRow) {
  5056. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5057. dataRow});
  5058. }
  5059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5061. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5062. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5063. return this.Adapter.Update(dataRows);
  5064. }
  5065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5067. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5068. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5069. public virtual int Delete(int Original_ID, string Original_UserType) {
  5070. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  5071. if ((Original_UserType == null)) {
  5072. throw new global::System.ArgumentNullException("Original_UserType");
  5073. }
  5074. else {
  5075. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_UserType));
  5076. }
  5077. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5078. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5079. != global::System.Data.ConnectionState.Open)) {
  5080. this.Adapter.DeleteCommand.Connection.Open();
  5081. }
  5082. try {
  5083. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5084. return returnValue;
  5085. }
  5086. finally {
  5087. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5088. this.Adapter.DeleteCommand.Connection.Close();
  5089. }
  5090. }
  5091. }
  5092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5094. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5095. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5096. public virtual int Insert(string UserType) {
  5097. if ((UserType == null)) {
  5098. throw new global::System.ArgumentNullException("UserType");
  5099. }
  5100. else {
  5101. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(UserType));
  5102. }
  5103. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5104. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5105. != global::System.Data.ConnectionState.Open)) {
  5106. this.Adapter.InsertCommand.Connection.Open();
  5107. }
  5108. try {
  5109. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5110. return returnValue;
  5111. }
  5112. finally {
  5113. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5114. this.Adapter.InsertCommand.Connection.Close();
  5115. }
  5116. }
  5117. }
  5118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5120. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5121. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5122. public virtual int Update(string UserType, int Original_ID, string Original_UserType, int ID) {
  5123. if ((UserType == null)) {
  5124. throw new global::System.ArgumentNullException("UserType");
  5125. }
  5126. else {
  5127. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(UserType));
  5128. }
  5129. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_ID));
  5130. if ((Original_UserType == null)) {
  5131. throw new global::System.ArgumentNullException("Original_UserType");
  5132. }
  5133. else {
  5134. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_UserType));
  5135. }
  5136. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ID));
  5137. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5138. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5139. != global::System.Data.ConnectionState.Open)) {
  5140. this.Adapter.UpdateCommand.Connection.Open();
  5141. }
  5142. try {
  5143. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5144. return returnValue;
  5145. }
  5146. finally {
  5147. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5148. this.Adapter.UpdateCommand.Connection.Close();
  5149. }
  5150. }
  5151. }
  5152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5154. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5155. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5156. public virtual int Update(string UserType, int Original_ID, string Original_UserType) {
  5157. return this.Update(UserType, Original_ID, Original_UserType, Original_ID);
  5158. }
  5159. }
  5160. /// <summary>
  5161. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  5162. ///</summary>
  5163. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5164. [global::System.ComponentModel.ToolboxItem(true)]
  5165. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  5166. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5167. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  5168. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  5169. private UpdateOrderOption _updateOrder;
  5170. private FaceImagesTableAdapter _faceImagesTableAdapter;
  5171. private HistoryLoginTableAdapter _historyLoginTableAdapter;
  5172. private StaffsTableAdapter _staffsTableAdapter;
  5173. private UsersTableAdapter _usersTableAdapter;
  5174. private UserTrafficTableAdapter _userTrafficTableAdapter;
  5175. private UserTypeTableAdapter _userTypeTableAdapter;
  5176. private bool _backupDataSetBeforeUpdate;
  5177. private global::System.Data.IDbConnection _connection;
  5178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5180. public UpdateOrderOption UpdateOrder {
  5181. get {
  5182. return this._updateOrder;
  5183. }
  5184. set {
  5185. this._updateOrder = value;
  5186. }
  5187. }
  5188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5190. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5191. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5192. "a", "System.Drawing.Design.UITypeEditor")]
  5193. public FaceImagesTableAdapter FaceImagesTableAdapter {
  5194. get {
  5195. return this._faceImagesTableAdapter;
  5196. }
  5197. set {
  5198. this._faceImagesTableAdapter = value;
  5199. }
  5200. }
  5201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5203. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5204. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5205. "a", "System.Drawing.Design.UITypeEditor")]
  5206. public HistoryLoginTableAdapter HistoryLoginTableAdapter {
  5207. get {
  5208. return this._historyLoginTableAdapter;
  5209. }
  5210. set {
  5211. this._historyLoginTableAdapter = value;
  5212. }
  5213. }
  5214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5216. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5217. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5218. "a", "System.Drawing.Design.UITypeEditor")]
  5219. public StaffsTableAdapter StaffsTableAdapter {
  5220. get {
  5221. return this._staffsTableAdapter;
  5222. }
  5223. set {
  5224. this._staffsTableAdapter = value;
  5225. }
  5226. }
  5227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5229. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5230. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5231. "a", "System.Drawing.Design.UITypeEditor")]
  5232. public UsersTableAdapter UsersTableAdapter {
  5233. get {
  5234. return this._usersTableAdapter;
  5235. }
  5236. set {
  5237. this._usersTableAdapter = value;
  5238. }
  5239. }
  5240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5242. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5243. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5244. "a", "System.Drawing.Design.UITypeEditor")]
  5245. public UserTrafficTableAdapter UserTrafficTableAdapter {
  5246. get {
  5247. return this._userTrafficTableAdapter;
  5248. }
  5249. set {
  5250. this._userTrafficTableAdapter = value;
  5251. }
  5252. }
  5253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5255. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5256. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5257. "a", "System.Drawing.Design.UITypeEditor")]
  5258. public UserTypeTableAdapter UserTypeTableAdapter {
  5259. get {
  5260. return this._userTypeTableAdapter;
  5261. }
  5262. set {
  5263. this._userTypeTableAdapter = value;
  5264. }
  5265. }
  5266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5268. public bool BackupDataSetBeforeUpdate {
  5269. get {
  5270. return this._backupDataSetBeforeUpdate;
  5271. }
  5272. set {
  5273. this._backupDataSetBeforeUpdate = value;
  5274. }
  5275. }
  5276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5278. [global::System.ComponentModel.Browsable(false)]
  5279. public global::System.Data.IDbConnection Connection {
  5280. get {
  5281. if ((this._connection != null)) {
  5282. return this._connection;
  5283. }
  5284. if (((this._faceImagesTableAdapter != null)
  5285. && (this._faceImagesTableAdapter.Connection != null))) {
  5286. return this._faceImagesTableAdapter.Connection;
  5287. }
  5288. if (((this._historyLoginTableAdapter != null)
  5289. && (this._historyLoginTableAdapter.Connection != null))) {
  5290. return this._historyLoginTableAdapter.Connection;
  5291. }
  5292. if (((this._staffsTableAdapter != null)
  5293. && (this._staffsTableAdapter.Connection != null))) {
  5294. return this._staffsTableAdapter.Connection;
  5295. }
  5296. if (((this._usersTableAdapter != null)
  5297. && (this._usersTableAdapter.Connection != null))) {
  5298. return this._usersTableAdapter.Connection;
  5299. }
  5300. if (((this._userTrafficTableAdapter != null)
  5301. && (this._userTrafficTableAdapter.Connection != null))) {
  5302. return this._userTrafficTableAdapter.Connection;
  5303. }
  5304. if (((this._userTypeTableAdapter != null)
  5305. && (this._userTypeTableAdapter.Connection != null))) {
  5306. return this._userTypeTableAdapter.Connection;
  5307. }
  5308. return null;
  5309. }
  5310. set {
  5311. this._connection = value;
  5312. }
  5313. }
  5314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5316. [global::System.ComponentModel.Browsable(false)]
  5317. public int TableAdapterInstanceCount {
  5318. get {
  5319. int count = 0;
  5320. if ((this._faceImagesTableAdapter != null)) {
  5321. count = (count + 1);
  5322. }
  5323. if ((this._historyLoginTableAdapter != null)) {
  5324. count = (count + 1);
  5325. }
  5326. if ((this._staffsTableAdapter != null)) {
  5327. count = (count + 1);
  5328. }
  5329. if ((this._usersTableAdapter != null)) {
  5330. count = (count + 1);
  5331. }
  5332. if ((this._userTrafficTableAdapter != null)) {
  5333. count = (count + 1);
  5334. }
  5335. if ((this._userTypeTableAdapter != null)) {
  5336. count = (count + 1);
  5337. }
  5338. return count;
  5339. }
  5340. }
  5341. /// <summary>
  5342. ///Update rows in top-down order.
  5343. ///</summary>
  5344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5346. private int UpdateUpdatedRows(ImpulseVisionAppDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  5347. int result = 0;
  5348. if ((this._userTypeTableAdapter != null)) {
  5349. global::System.Data.DataRow[] updatedRows = dataSet.UserType.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  5350. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  5351. if (((updatedRows != null)
  5352. && (0 < updatedRows.Length))) {
  5353. result = (result + this._userTypeTableAdapter.Update(updatedRows));
  5354. allChangedRows.AddRange(updatedRows);
  5355. }
  5356. }
  5357. if ((this._staffsTableAdapter != null)) {
  5358. global::System.Data.DataRow[] updatedRows = dataSet.Staffs.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  5359. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  5360. if (((updatedRows != null)
  5361. && (0 < updatedRows.Length))) {
  5362. result = (result + this._staffsTableAdapter.Update(updatedRows));
  5363. allChangedRows.AddRange(updatedRows);
  5364. }
  5365. }
  5366. if ((this._usersTableAdapter != null)) {
  5367. global::System.Data.DataRow[] updatedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  5368. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  5369. if (((updatedRows != null)
  5370. && (0 < updatedRows.Length))) {
  5371. result = (result + this._usersTableAdapter.Update(updatedRows));
  5372. allChangedRows.AddRange(updatedRows);
  5373. }
  5374. }
  5375. if ((this._faceImagesTableAdapter != null)) {
  5376. global::System.Data.DataRow[] updatedRows = dataSet.FaceImages.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  5377. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  5378. if (((updatedRows != null)
  5379. && (0 < updatedRows.Length))) {
  5380. result = (result + this._faceImagesTableAdapter.Update(updatedRows));
  5381. allChangedRows.AddRange(updatedRows);
  5382. }
  5383. }
  5384. if ((this._historyLoginTableAdapter != null)) {
  5385. global::System.Data.DataRow[] updatedRows = dataSet.HistoryLogin.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  5386. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  5387. if (((updatedRows != null)
  5388. && (0 < updatedRows.Length))) {
  5389. result = (result + this._historyLoginTableAdapter.Update(updatedRows));
  5390. allChangedRows.AddRange(updatedRows);
  5391. }
  5392. }
  5393. if ((this._userTrafficTableAdapter != null)) {
  5394. global::System.Data.DataRow[] updatedRows = dataSet.UserTraffic.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  5395. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  5396. if (((updatedRows != null)
  5397. && (0 < updatedRows.Length))) {
  5398. result = (result + this._userTrafficTableAdapter.Update(updatedRows));
  5399. allChangedRows.AddRange(updatedRows);
  5400. }
  5401. }
  5402. return result;
  5403. }
  5404. /// <summary>
  5405. ///Insert rows in top-down order.
  5406. ///</summary>
  5407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5409. private int UpdateInsertedRows(ImpulseVisionAppDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  5410. int result = 0;
  5411. if ((this._userTypeTableAdapter != null)) {
  5412. global::System.Data.DataRow[] addedRows = dataSet.UserType.Select(null, null, global::System.Data.DataViewRowState.Added);
  5413. if (((addedRows != null)
  5414. && (0 < addedRows.Length))) {
  5415. result = (result + this._userTypeTableAdapter.Update(addedRows));
  5416. allAddedRows.AddRange(addedRows);
  5417. }
  5418. }
  5419. if ((this._staffsTableAdapter != null)) {
  5420. global::System.Data.DataRow[] addedRows = dataSet.Staffs.Select(null, null, global::System.Data.DataViewRowState.Added);
  5421. if (((addedRows != null)
  5422. && (0 < addedRows.Length))) {
  5423. result = (result + this._staffsTableAdapter.Update(addedRows));
  5424. allAddedRows.AddRange(addedRows);
  5425. }
  5426. }
  5427. if ((this._usersTableAdapter != null)) {
  5428. global::System.Data.DataRow[] addedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Added);
  5429. if (((addedRows != null)
  5430. && (0 < addedRows.Length))) {
  5431. result = (result + this._usersTableAdapter.Update(addedRows));
  5432. allAddedRows.AddRange(addedRows);
  5433. }
  5434. }
  5435. if ((this._faceImagesTableAdapter != null)) {
  5436. global::System.Data.DataRow[] addedRows = dataSet.FaceImages.Select(null, null, global::System.Data.DataViewRowState.Added);
  5437. if (((addedRows != null)
  5438. && (0 < addedRows.Length))) {
  5439. result = (result + this._faceImagesTableAdapter.Update(addedRows));
  5440. allAddedRows.AddRange(addedRows);
  5441. }
  5442. }
  5443. if ((this._historyLoginTableAdapter != null)) {
  5444. global::System.Data.DataRow[] addedRows = dataSet.HistoryLogin.Select(null, null, global::System.Data.DataViewRowState.Added);
  5445. if (((addedRows != null)
  5446. && (0 < addedRows.Length))) {
  5447. result = (result + this._historyLoginTableAdapter.Update(addedRows));
  5448. allAddedRows.AddRange(addedRows);
  5449. }
  5450. }
  5451. if ((this._userTrafficTableAdapter != null)) {
  5452. global::System.Data.DataRow[] addedRows = dataSet.UserTraffic.Select(null, null, global::System.Data.DataViewRowState.Added);
  5453. if (((addedRows != null)
  5454. && (0 < addedRows.Length))) {
  5455. result = (result + this._userTrafficTableAdapter.Update(addedRows));
  5456. allAddedRows.AddRange(addedRows);
  5457. }
  5458. }
  5459. return result;
  5460. }
  5461. /// <summary>
  5462. ///Delete rows in bottom-up order.
  5463. ///</summary>
  5464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5466. private int UpdateDeletedRows(ImpulseVisionAppDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  5467. int result = 0;
  5468. if ((this._userTrafficTableAdapter != null)) {
  5469. global::System.Data.DataRow[] deletedRows = dataSet.UserTraffic.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5470. if (((deletedRows != null)
  5471. && (0 < deletedRows.Length))) {
  5472. result = (result + this._userTrafficTableAdapter.Update(deletedRows));
  5473. allChangedRows.AddRange(deletedRows);
  5474. }
  5475. }
  5476. if ((this._historyLoginTableAdapter != null)) {
  5477. global::System.Data.DataRow[] deletedRows = dataSet.HistoryLogin.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5478. if (((deletedRows != null)
  5479. && (0 < deletedRows.Length))) {
  5480. result = (result + this._historyLoginTableAdapter.Update(deletedRows));
  5481. allChangedRows.AddRange(deletedRows);
  5482. }
  5483. }
  5484. if ((this._faceImagesTableAdapter != null)) {
  5485. global::System.Data.DataRow[] deletedRows = dataSet.FaceImages.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5486. if (((deletedRows != null)
  5487. && (0 < deletedRows.Length))) {
  5488. result = (result + this._faceImagesTableAdapter.Update(deletedRows));
  5489. allChangedRows.AddRange(deletedRows);
  5490. }
  5491. }
  5492. if ((this._usersTableAdapter != null)) {
  5493. global::System.Data.DataRow[] deletedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5494. if (((deletedRows != null)
  5495. && (0 < deletedRows.Length))) {
  5496. result = (result + this._usersTableAdapter.Update(deletedRows));
  5497. allChangedRows.AddRange(deletedRows);
  5498. }
  5499. }
  5500. if ((this._staffsTableAdapter != null)) {
  5501. global::System.Data.DataRow[] deletedRows = dataSet.Staffs.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5502. if (((deletedRows != null)
  5503. && (0 < deletedRows.Length))) {
  5504. result = (result + this._staffsTableAdapter.Update(deletedRows));
  5505. allChangedRows.AddRange(deletedRows);
  5506. }
  5507. }
  5508. if ((this._userTypeTableAdapter != null)) {
  5509. global::System.Data.DataRow[] deletedRows = dataSet.UserType.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5510. if (((deletedRows != null)
  5511. && (0 < deletedRows.Length))) {
  5512. result = (result + this._userTypeTableAdapter.Update(deletedRows));
  5513. allChangedRows.AddRange(deletedRows);
  5514. }
  5515. }
  5516. return result;
  5517. }
  5518. /// <summary>
  5519. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  5520. ///</summary>
  5521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5523. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  5524. if (((updatedRows == null)
  5525. || (updatedRows.Length < 1))) {
  5526. return updatedRows;
  5527. }
  5528. if (((allAddedRows == null)
  5529. || (allAddedRows.Count < 1))) {
  5530. return updatedRows;
  5531. }
  5532. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  5533. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  5534. global::System.Data.DataRow row = updatedRows[i];
  5535. if ((allAddedRows.Contains(row) == false)) {
  5536. realUpdatedRows.Add(row);
  5537. }
  5538. }
  5539. return realUpdatedRows.ToArray();
  5540. }
  5541. /// <summary>
  5542. ///Update all changes to the dataset.
  5543. ///</summary>
  5544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5546. public virtual int UpdateAll(ImpulseVisionAppDataSet dataSet) {
  5547. if ((dataSet == null)) {
  5548. throw new global::System.ArgumentNullException("dataSet");
  5549. }
  5550. if ((dataSet.HasChanges() == false)) {
  5551. return 0;
  5552. }
  5553. if (((this._faceImagesTableAdapter != null)
  5554. && (this.MatchTableAdapterConnection(this._faceImagesTableAdapter.Connection) == false))) {
  5555. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  5556. "tring.");
  5557. }
  5558. if (((this._historyLoginTableAdapter != null)
  5559. && (this.MatchTableAdapterConnection(this._historyLoginTableAdapter.Connection) == false))) {
  5560. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  5561. "tring.");
  5562. }
  5563. if (((this._staffsTableAdapter != null)
  5564. && (this.MatchTableAdapterConnection(this._staffsTableAdapter.Connection) == false))) {
  5565. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  5566. "tring.");
  5567. }
  5568. if (((this._usersTableAdapter != null)
  5569. && (this.MatchTableAdapterConnection(this._usersTableAdapter.Connection) == false))) {
  5570. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  5571. "tring.");
  5572. }
  5573. if (((this._userTrafficTableAdapter != null)
  5574. && (this.MatchTableAdapterConnection(this._userTrafficTableAdapter.Connection) == false))) {
  5575. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  5576. "tring.");
  5577. }
  5578. if (((this._userTypeTableAdapter != null)
  5579. && (this.MatchTableAdapterConnection(this._userTypeTableAdapter.Connection) == false))) {
  5580. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  5581. "tring.");
  5582. }
  5583. global::System.Data.IDbConnection workConnection = this.Connection;
  5584. if ((workConnection == null)) {
  5585. throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
  5586. "ger TableAdapter property to a valid TableAdapter instance.");
  5587. }
  5588. bool workConnOpened = false;
  5589. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  5590. == global::System.Data.ConnectionState.Broken)) {
  5591. workConnection.Close();
  5592. }
  5593. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  5594. workConnection.Open();
  5595. workConnOpened = true;
  5596. }
  5597. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  5598. if ((workTransaction == null)) {
  5599. throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" +
  5600. "ctions or the current state is not allowing the transaction to begin.");
  5601. }
  5602. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  5603. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  5604. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  5605. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  5606. int result = 0;
  5607. global::System.Data.DataSet backupDataSet = null;
  5608. if (this.BackupDataSetBeforeUpdate) {
  5609. backupDataSet = new global::System.Data.DataSet();
  5610. backupDataSet.Merge(dataSet);
  5611. }
  5612. try {
  5613. // ---- Prepare for update -----------
  5614. //
  5615. if ((this._faceImagesTableAdapter != null)) {
  5616. revertConnections.Add(this._faceImagesTableAdapter, this._faceImagesTableAdapter.Connection);
  5617. this._faceImagesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5618. this._faceImagesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5619. if (this._faceImagesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5620. this._faceImagesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5621. adaptersWithAcceptChangesDuringUpdate.Add(this._faceImagesTableAdapter.Adapter);
  5622. }
  5623. }
  5624. if ((this._historyLoginTableAdapter != null)) {
  5625. revertConnections.Add(this._historyLoginTableAdapter, this._historyLoginTableAdapter.Connection);
  5626. this._historyLoginTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5627. this._historyLoginTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5628. if (this._historyLoginTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5629. this._historyLoginTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5630. adaptersWithAcceptChangesDuringUpdate.Add(this._historyLoginTableAdapter.Adapter);
  5631. }
  5632. }
  5633. if ((this._staffsTableAdapter != null)) {
  5634. revertConnections.Add(this._staffsTableAdapter, this._staffsTableAdapter.Connection);
  5635. this._staffsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5636. this._staffsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5637. if (this._staffsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5638. this._staffsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5639. adaptersWithAcceptChangesDuringUpdate.Add(this._staffsTableAdapter.Adapter);
  5640. }
  5641. }
  5642. if ((this._usersTableAdapter != null)) {
  5643. revertConnections.Add(this._usersTableAdapter, this._usersTableAdapter.Connection);
  5644. this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5645. this._usersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5646. if (this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5647. this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5648. adaptersWithAcceptChangesDuringUpdate.Add(this._usersTableAdapter.Adapter);
  5649. }
  5650. }
  5651. if ((this._userTrafficTableAdapter != null)) {
  5652. revertConnections.Add(this._userTrafficTableAdapter, this._userTrafficTableAdapter.Connection);
  5653. this._userTrafficTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5654. this._userTrafficTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5655. if (this._userTrafficTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5656. this._userTrafficTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5657. adaptersWithAcceptChangesDuringUpdate.Add(this._userTrafficTableAdapter.Adapter);
  5658. }
  5659. }
  5660. if ((this._userTypeTableAdapter != null)) {
  5661. revertConnections.Add(this._userTypeTableAdapter, this._userTypeTableAdapter.Connection);
  5662. this._userTypeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5663. this._userTypeTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5664. if (this._userTypeTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5665. this._userTypeTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5666. adaptersWithAcceptChangesDuringUpdate.Add(this._userTypeTableAdapter.Adapter);
  5667. }
  5668. }
  5669. //
  5670. //---- Perform updates -----------
  5671. //
  5672. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  5673. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  5674. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  5675. }
  5676. else {
  5677. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  5678. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  5679. }
  5680. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  5681. //
  5682. //---- Commit updates -----------
  5683. //
  5684. workTransaction.Commit();
  5685. if ((0 < allAddedRows.Count)) {
  5686. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  5687. allAddedRows.CopyTo(rows);
  5688. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  5689. global::System.Data.DataRow row = rows[i];
  5690. row.AcceptChanges();
  5691. }
  5692. }
  5693. if ((0 < allChangedRows.Count)) {
  5694. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  5695. allChangedRows.CopyTo(rows);
  5696. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  5697. global::System.Data.DataRow row = rows[i];
  5698. row.AcceptChanges();
  5699. }
  5700. }
  5701. }
  5702. catch (global::System.Exception ex) {
  5703. workTransaction.Rollback();
  5704. // ---- Restore the dataset -----------
  5705. if (this.BackupDataSetBeforeUpdate) {
  5706. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  5707. dataSet.Clear();
  5708. dataSet.Merge(backupDataSet);
  5709. }
  5710. else {
  5711. if ((0 < allAddedRows.Count)) {
  5712. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  5713. allAddedRows.CopyTo(rows);
  5714. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  5715. global::System.Data.DataRow row = rows[i];
  5716. row.AcceptChanges();
  5717. row.SetAdded();
  5718. }
  5719. }
  5720. }
  5721. throw ex;
  5722. }
  5723. finally {
  5724. if (workConnOpened) {
  5725. workConnection.Close();
  5726. }
  5727. if ((this._faceImagesTableAdapter != null)) {
  5728. this._faceImagesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._faceImagesTableAdapter]));
  5729. this._faceImagesTableAdapter.Transaction = null;
  5730. }
  5731. if ((this._historyLoginTableAdapter != null)) {
  5732. this._historyLoginTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._historyLoginTableAdapter]));
  5733. this._historyLoginTableAdapter.Transaction = null;
  5734. }
  5735. if ((this._staffsTableAdapter != null)) {
  5736. this._staffsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._staffsTableAdapter]));
  5737. this._staffsTableAdapter.Transaction = null;
  5738. }
  5739. if ((this._usersTableAdapter != null)) {
  5740. this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._usersTableAdapter]));
  5741. this._usersTableAdapter.Transaction = null;
  5742. }
  5743. if ((this._userTrafficTableAdapter != null)) {
  5744. this._userTrafficTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._userTrafficTableAdapter]));
  5745. this._userTrafficTableAdapter.Transaction = null;
  5746. }
  5747. if ((this._userTypeTableAdapter != null)) {
  5748. this._userTypeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._userTypeTableAdapter]));
  5749. this._userTypeTableAdapter.Transaction = null;
  5750. }
  5751. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  5752. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  5753. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  5754. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  5755. global::System.Data.Common.DataAdapter adapter = adapters[i];
  5756. adapter.AcceptChangesDuringUpdate = true;
  5757. }
  5758. }
  5759. }
  5760. return result;
  5761. }
  5762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5764. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  5765. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  5766. }
  5767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5769. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  5770. if ((this._connection != null)) {
  5771. return true;
  5772. }
  5773. if (((this.Connection == null)
  5774. || (inputConnection == null))) {
  5775. return true;
  5776. }
  5777. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  5778. return true;
  5779. }
  5780. return false;
  5781. }
  5782. /// <summary>
  5783. ///Update Order Option
  5784. ///</summary>
  5785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5786. public enum UpdateOrderOption {
  5787. InsertUpdateDelete = 0,
  5788. UpdateInsertDelete = 1,
  5789. }
  5790. /// <summary>
  5791. ///Used to sort self-referenced table's rows
  5792. ///</summary>
  5793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5794. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  5795. private global::System.Data.DataRelation _relation;
  5796. private int _childFirst;
  5797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5799. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  5800. this._relation = relation;
  5801. if (childFirst) {
  5802. this._childFirst = -1;
  5803. }
  5804. else {
  5805. this._childFirst = 1;
  5806. }
  5807. }
  5808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5810. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  5811. global::System.Diagnostics.Debug.Assert((row != null));
  5812. global::System.Data.DataRow root = row;
  5813. distance = 0;
  5814. global::System.Collections.Generic.IDictionary<global::System.Data.DataRow, global::System.Data.DataRow> traversedRows = new global::System.Collections.Generic.Dictionary<global::System.Data.DataRow, global::System.Data.DataRow>();
  5815. traversedRows[row] = row;
  5816. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  5817. for (
  5818. ; ((parent != null)
  5819. && (traversedRows.ContainsKey(parent) == false));
  5820. ) {
  5821. distance = (distance + 1);
  5822. root = parent;
  5823. traversedRows[parent] = parent;
  5824. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  5825. }
  5826. if ((distance == 0)) {
  5827. traversedRows.Clear();
  5828. traversedRows[row] = row;
  5829. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  5830. for (
  5831. ; ((parent != null)
  5832. && (traversedRows.ContainsKey(parent) == false));
  5833. ) {
  5834. distance = (distance + 1);
  5835. root = parent;
  5836. traversedRows[parent] = parent;
  5837. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  5838. }
  5839. }
  5840. return root;
  5841. }
  5842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5844. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  5845. if (object.ReferenceEquals(row1, row2)) {
  5846. return 0;
  5847. }
  5848. if ((row1 == null)) {
  5849. return -1;
  5850. }
  5851. if ((row2 == null)) {
  5852. return 1;
  5853. }
  5854. int distance1 = 0;
  5855. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  5856. int distance2 = 0;
  5857. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  5858. if (object.ReferenceEquals(root1, root2)) {
  5859. return (this._childFirst * distance1.CompareTo(distance2));
  5860. }
  5861. else {
  5862. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  5863. && (root2.Table != null)));
  5864. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  5865. return -1;
  5866. }
  5867. else {
  5868. return 1;
  5869. }
  5870. }
  5871. }
  5872. }
  5873. }
  5874. }
  5875. #pragma warning restore 1591