_02TradeDataSet.Designer.cs 838 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace _02Trade {
  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("_02TradeDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class _02TradeDataSet : global::System.Data.DataSet {
  22. private AttachedProductDataTable tableAttachedProduct;
  23. private ClientServiceDataTable tableClientService;
  24. private DocumentByServiceDataTable tableDocumentByService;
  25. private GenderDataTable tableGender;
  26. private ManufacturerDataTable tableManufacturer;
  27. private ProductDataTable tableProduct;
  28. private ProductPhotoDataTable tableProductPhoto;
  29. private ProductSaleDataTable tableProductSale;
  30. private ServiceDataTable tableService;
  31. private ServicePhotoDataTable tableServicePhoto;
  32. private TagDataTable tableTag;
  33. private TagOfClientDataTable tableTagOfClient;
  34. private ClientTableDataTable tableClientTable;
  35. private UserTableDataTable tableUserTable;
  36. private RoleTableDataTable tableRoleTable;
  37. private global::System.Data.DataRelation relationFK_AttachedProduct_Product;
  38. private global::System.Data.DataRelation relationFK_AttachedProduct_Product1;
  39. private global::System.Data.DataRelation relationFK_ClientService_Service;
  40. private global::System.Data.DataRelation relationFK_DocumentByService_ClientService;
  41. private global::System.Data.DataRelation relationFK_Product_Manufacturer;
  42. private global::System.Data.DataRelation relationFK_ProductPhoto_Product;
  43. private global::System.Data.DataRelation relationFK_ProductSale_ClientService;
  44. private global::System.Data.DataRelation relationFK_ProductSale_Product;
  45. private global::System.Data.DataRelation relationFK_ServicePhoto_Service;
  46. private global::System.Data.DataRelation relationFK_TagOfClient_Tag;
  47. private global::System.Data.DataRelation relationFK_ClientService_Client;
  48. private global::System.Data.DataRelation relationFK_TagOfClient_Client;
  49. private global::System.Data.DataRelation relationFK_Client_Gender;
  50. private global::System.Data.DataRelation relationFK_UserTable_RoleTable;
  51. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  52. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  53. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  54. public _02TradeDataSet() {
  55. this.BeginInit();
  56. this.InitClass();
  57. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  58. base.Tables.CollectionChanged += schemaChangedHandler;
  59. base.Relations.CollectionChanged += schemaChangedHandler;
  60. this.EndInit();
  61. }
  62. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  63. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  64. protected _02TradeDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  65. base(info, context, false) {
  66. if ((this.IsBinarySerialized(info, context) == true)) {
  67. this.InitVars(false);
  68. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  69. this.Tables.CollectionChanged += schemaChangedHandler1;
  70. this.Relations.CollectionChanged += schemaChangedHandler1;
  71. return;
  72. }
  73. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  74. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  75. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  76. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  77. if ((ds.Tables["AttachedProduct"] != null)) {
  78. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  79. }
  80. if ((ds.Tables["ClientService"] != null)) {
  81. base.Tables.Add(new ClientServiceDataTable(ds.Tables["ClientService"]));
  82. }
  83. if ((ds.Tables["DocumentByService"] != null)) {
  84. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  85. }
  86. if ((ds.Tables["Gender"] != null)) {
  87. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  88. }
  89. if ((ds.Tables["Manufacturer"] != null)) {
  90. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  91. }
  92. if ((ds.Tables["Product"] != null)) {
  93. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  94. }
  95. if ((ds.Tables["ProductPhoto"] != null)) {
  96. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  97. }
  98. if ((ds.Tables["ProductSale"] != null)) {
  99. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  100. }
  101. if ((ds.Tables["Service"] != null)) {
  102. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  103. }
  104. if ((ds.Tables["ServicePhoto"] != null)) {
  105. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  106. }
  107. if ((ds.Tables["Tag"] != null)) {
  108. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  109. }
  110. if ((ds.Tables["TagOfClient"] != null)) {
  111. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  112. }
  113. if ((ds.Tables["ClientTable"] != null)) {
  114. base.Tables.Add(new ClientTableDataTable(ds.Tables["ClientTable"]));
  115. }
  116. if ((ds.Tables["UserTable"] != null)) {
  117. base.Tables.Add(new UserTableDataTable(ds.Tables["UserTable"]));
  118. }
  119. if ((ds.Tables["RoleTable"] != null)) {
  120. base.Tables.Add(new RoleTableDataTable(ds.Tables["RoleTable"]));
  121. }
  122. this.DataSetName = ds.DataSetName;
  123. this.Prefix = ds.Prefix;
  124. this.Namespace = ds.Namespace;
  125. this.Locale = ds.Locale;
  126. this.CaseSensitive = ds.CaseSensitive;
  127. this.EnforceConstraints = ds.EnforceConstraints;
  128. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  129. this.InitVars();
  130. }
  131. else {
  132. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  133. }
  134. this.GetSerializationData(info, context);
  135. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  136. base.Tables.CollectionChanged += schemaChangedHandler;
  137. this.Relations.CollectionChanged += schemaChangedHandler;
  138. }
  139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  141. [global::System.ComponentModel.Browsable(false)]
  142. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  143. public AttachedProductDataTable AttachedProduct {
  144. get {
  145. return this.tableAttachedProduct;
  146. }
  147. }
  148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  150. [global::System.ComponentModel.Browsable(false)]
  151. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  152. public ClientServiceDataTable ClientService {
  153. get {
  154. return this.tableClientService;
  155. }
  156. }
  157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  159. [global::System.ComponentModel.Browsable(false)]
  160. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  161. public DocumentByServiceDataTable DocumentByService {
  162. get {
  163. return this.tableDocumentByService;
  164. }
  165. }
  166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  168. [global::System.ComponentModel.Browsable(false)]
  169. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  170. public GenderDataTable Gender {
  171. get {
  172. return this.tableGender;
  173. }
  174. }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  177. [global::System.ComponentModel.Browsable(false)]
  178. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  179. public ManufacturerDataTable Manufacturer {
  180. get {
  181. return this.tableManufacturer;
  182. }
  183. }
  184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  186. [global::System.ComponentModel.Browsable(false)]
  187. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  188. public ProductDataTable Product {
  189. get {
  190. return this.tableProduct;
  191. }
  192. }
  193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  195. [global::System.ComponentModel.Browsable(false)]
  196. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  197. public ProductPhotoDataTable ProductPhoto {
  198. get {
  199. return this.tableProductPhoto;
  200. }
  201. }
  202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  204. [global::System.ComponentModel.Browsable(false)]
  205. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  206. public ProductSaleDataTable ProductSale {
  207. get {
  208. return this.tableProductSale;
  209. }
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  213. [global::System.ComponentModel.Browsable(false)]
  214. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  215. public ServiceDataTable Service {
  216. get {
  217. return this.tableService;
  218. }
  219. }
  220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  222. [global::System.ComponentModel.Browsable(false)]
  223. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  224. public ServicePhotoDataTable ServicePhoto {
  225. get {
  226. return this.tableServicePhoto;
  227. }
  228. }
  229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  231. [global::System.ComponentModel.Browsable(false)]
  232. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  233. public TagDataTable Tag {
  234. get {
  235. return this.tableTag;
  236. }
  237. }
  238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  240. [global::System.ComponentModel.Browsable(false)]
  241. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  242. public TagOfClientDataTable TagOfClient {
  243. get {
  244. return this.tableTagOfClient;
  245. }
  246. }
  247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  249. [global::System.ComponentModel.Browsable(false)]
  250. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  251. public ClientTableDataTable ClientTable {
  252. get {
  253. return this.tableClientTable;
  254. }
  255. }
  256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  258. [global::System.ComponentModel.Browsable(false)]
  259. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  260. public UserTableDataTable UserTable {
  261. get {
  262. return this.tableUserTable;
  263. }
  264. }
  265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  267. [global::System.ComponentModel.Browsable(false)]
  268. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  269. public RoleTableDataTable RoleTable {
  270. get {
  271. return this.tableRoleTable;
  272. }
  273. }
  274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  276. [global::System.ComponentModel.BrowsableAttribute(true)]
  277. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  278. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  279. get {
  280. return this._schemaSerializationMode;
  281. }
  282. set {
  283. this._schemaSerializationMode = value;
  284. }
  285. }
  286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  288. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  289. public new global::System.Data.DataTableCollection Tables {
  290. get {
  291. return base.Tables;
  292. }
  293. }
  294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  296. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  297. public new global::System.Data.DataRelationCollection Relations {
  298. get {
  299. return base.Relations;
  300. }
  301. }
  302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  304. protected override void InitializeDerivedDataSet() {
  305. this.BeginInit();
  306. this.InitClass();
  307. this.EndInit();
  308. }
  309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  311. public override global::System.Data.DataSet Clone() {
  312. _02TradeDataSet cln = ((_02TradeDataSet)(base.Clone()));
  313. cln.InitVars();
  314. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  315. return cln;
  316. }
  317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  319. protected override bool ShouldSerializeTables() {
  320. return false;
  321. }
  322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  324. protected override bool ShouldSerializeRelations() {
  325. return false;
  326. }
  327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  329. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  330. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  331. this.Reset();
  332. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  333. ds.ReadXml(reader);
  334. if ((ds.Tables["AttachedProduct"] != null)) {
  335. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  336. }
  337. if ((ds.Tables["ClientService"] != null)) {
  338. base.Tables.Add(new ClientServiceDataTable(ds.Tables["ClientService"]));
  339. }
  340. if ((ds.Tables["DocumentByService"] != null)) {
  341. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  342. }
  343. if ((ds.Tables["Gender"] != null)) {
  344. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  345. }
  346. if ((ds.Tables["Manufacturer"] != null)) {
  347. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  348. }
  349. if ((ds.Tables["Product"] != null)) {
  350. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  351. }
  352. if ((ds.Tables["ProductPhoto"] != null)) {
  353. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  354. }
  355. if ((ds.Tables["ProductSale"] != null)) {
  356. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  357. }
  358. if ((ds.Tables["Service"] != null)) {
  359. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  360. }
  361. if ((ds.Tables["ServicePhoto"] != null)) {
  362. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  363. }
  364. if ((ds.Tables["Tag"] != null)) {
  365. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  366. }
  367. if ((ds.Tables["TagOfClient"] != null)) {
  368. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  369. }
  370. if ((ds.Tables["ClientTable"] != null)) {
  371. base.Tables.Add(new ClientTableDataTable(ds.Tables["ClientTable"]));
  372. }
  373. if ((ds.Tables["UserTable"] != null)) {
  374. base.Tables.Add(new UserTableDataTable(ds.Tables["UserTable"]));
  375. }
  376. if ((ds.Tables["RoleTable"] != null)) {
  377. base.Tables.Add(new RoleTableDataTable(ds.Tables["RoleTable"]));
  378. }
  379. this.DataSetName = ds.DataSetName;
  380. this.Prefix = ds.Prefix;
  381. this.Namespace = ds.Namespace;
  382. this.Locale = ds.Locale;
  383. this.CaseSensitive = ds.CaseSensitive;
  384. this.EnforceConstraints = ds.EnforceConstraints;
  385. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  386. this.InitVars();
  387. }
  388. else {
  389. this.ReadXml(reader);
  390. this.InitVars();
  391. }
  392. }
  393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  395. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  396. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  397. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  398. stream.Position = 0;
  399. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  400. }
  401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  403. internal void InitVars() {
  404. this.InitVars(true);
  405. }
  406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  408. internal void InitVars(bool initTable) {
  409. this.tableAttachedProduct = ((AttachedProductDataTable)(base.Tables["AttachedProduct"]));
  410. if ((initTable == true)) {
  411. if ((this.tableAttachedProduct != null)) {
  412. this.tableAttachedProduct.InitVars();
  413. }
  414. }
  415. this.tableClientService = ((ClientServiceDataTable)(base.Tables["ClientService"]));
  416. if ((initTable == true)) {
  417. if ((this.tableClientService != null)) {
  418. this.tableClientService.InitVars();
  419. }
  420. }
  421. this.tableDocumentByService = ((DocumentByServiceDataTable)(base.Tables["DocumentByService"]));
  422. if ((initTable == true)) {
  423. if ((this.tableDocumentByService != null)) {
  424. this.tableDocumentByService.InitVars();
  425. }
  426. }
  427. this.tableGender = ((GenderDataTable)(base.Tables["Gender"]));
  428. if ((initTable == true)) {
  429. if ((this.tableGender != null)) {
  430. this.tableGender.InitVars();
  431. }
  432. }
  433. this.tableManufacturer = ((ManufacturerDataTable)(base.Tables["Manufacturer"]));
  434. if ((initTable == true)) {
  435. if ((this.tableManufacturer != null)) {
  436. this.tableManufacturer.InitVars();
  437. }
  438. }
  439. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  440. if ((initTable == true)) {
  441. if ((this.tableProduct != null)) {
  442. this.tableProduct.InitVars();
  443. }
  444. }
  445. this.tableProductPhoto = ((ProductPhotoDataTable)(base.Tables["ProductPhoto"]));
  446. if ((initTable == true)) {
  447. if ((this.tableProductPhoto != null)) {
  448. this.tableProductPhoto.InitVars();
  449. }
  450. }
  451. this.tableProductSale = ((ProductSaleDataTable)(base.Tables["ProductSale"]));
  452. if ((initTable == true)) {
  453. if ((this.tableProductSale != null)) {
  454. this.tableProductSale.InitVars();
  455. }
  456. }
  457. this.tableService = ((ServiceDataTable)(base.Tables["Service"]));
  458. if ((initTable == true)) {
  459. if ((this.tableService != null)) {
  460. this.tableService.InitVars();
  461. }
  462. }
  463. this.tableServicePhoto = ((ServicePhotoDataTable)(base.Tables["ServicePhoto"]));
  464. if ((initTable == true)) {
  465. if ((this.tableServicePhoto != null)) {
  466. this.tableServicePhoto.InitVars();
  467. }
  468. }
  469. this.tableTag = ((TagDataTable)(base.Tables["Tag"]));
  470. if ((initTable == true)) {
  471. if ((this.tableTag != null)) {
  472. this.tableTag.InitVars();
  473. }
  474. }
  475. this.tableTagOfClient = ((TagOfClientDataTable)(base.Tables["TagOfClient"]));
  476. if ((initTable == true)) {
  477. if ((this.tableTagOfClient != null)) {
  478. this.tableTagOfClient.InitVars();
  479. }
  480. }
  481. this.tableClientTable = ((ClientTableDataTable)(base.Tables["ClientTable"]));
  482. if ((initTable == true)) {
  483. if ((this.tableClientTable != null)) {
  484. this.tableClientTable.InitVars();
  485. }
  486. }
  487. this.tableUserTable = ((UserTableDataTable)(base.Tables["UserTable"]));
  488. if ((initTable == true)) {
  489. if ((this.tableUserTable != null)) {
  490. this.tableUserTable.InitVars();
  491. }
  492. }
  493. this.tableRoleTable = ((RoleTableDataTable)(base.Tables["RoleTable"]));
  494. if ((initTable == true)) {
  495. if ((this.tableRoleTable != null)) {
  496. this.tableRoleTable.InitVars();
  497. }
  498. }
  499. this.relationFK_AttachedProduct_Product = this.Relations["FK_AttachedProduct_Product"];
  500. this.relationFK_AttachedProduct_Product1 = this.Relations["FK_AttachedProduct_Product1"];
  501. this.relationFK_ClientService_Service = this.Relations["FK_ClientService_Service"];
  502. this.relationFK_DocumentByService_ClientService = this.Relations["FK_DocumentByService_ClientService"];
  503. this.relationFK_Product_Manufacturer = this.Relations["FK_Product_Manufacturer"];
  504. this.relationFK_ProductPhoto_Product = this.Relations["FK_ProductPhoto_Product"];
  505. this.relationFK_ProductSale_ClientService = this.Relations["FK_ProductSale_ClientService"];
  506. this.relationFK_ProductSale_Product = this.Relations["FK_ProductSale_Product"];
  507. this.relationFK_ServicePhoto_Service = this.Relations["FK_ServicePhoto_Service"];
  508. this.relationFK_TagOfClient_Tag = this.Relations["FK_TagOfClient_Tag"];
  509. this.relationFK_ClientService_Client = this.Relations["FK_ClientService_Client"];
  510. this.relationFK_TagOfClient_Client = this.Relations["FK_TagOfClient_Client"];
  511. this.relationFK_Client_Gender = this.Relations["FK_Client_Gender"];
  512. this.relationFK_UserTable_RoleTable = this.Relations["FK_UserTable_RoleTable"];
  513. }
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  516. private void InitClass() {
  517. this.DataSetName = "_02TradeDataSet";
  518. this.Prefix = "";
  519. this.Namespace = "http://tempuri.org/_02TradeDataSet.xsd";
  520. this.EnforceConstraints = true;
  521. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  522. this.tableAttachedProduct = new AttachedProductDataTable();
  523. base.Tables.Add(this.tableAttachedProduct);
  524. this.tableClientService = new ClientServiceDataTable();
  525. base.Tables.Add(this.tableClientService);
  526. this.tableDocumentByService = new DocumentByServiceDataTable();
  527. base.Tables.Add(this.tableDocumentByService);
  528. this.tableGender = new GenderDataTable();
  529. base.Tables.Add(this.tableGender);
  530. this.tableManufacturer = new ManufacturerDataTable();
  531. base.Tables.Add(this.tableManufacturer);
  532. this.tableProduct = new ProductDataTable();
  533. base.Tables.Add(this.tableProduct);
  534. this.tableProductPhoto = new ProductPhotoDataTable();
  535. base.Tables.Add(this.tableProductPhoto);
  536. this.tableProductSale = new ProductSaleDataTable();
  537. base.Tables.Add(this.tableProductSale);
  538. this.tableService = new ServiceDataTable();
  539. base.Tables.Add(this.tableService);
  540. this.tableServicePhoto = new ServicePhotoDataTable();
  541. base.Tables.Add(this.tableServicePhoto);
  542. this.tableTag = new TagDataTable();
  543. base.Tables.Add(this.tableTag);
  544. this.tableTagOfClient = new TagOfClientDataTable();
  545. base.Tables.Add(this.tableTagOfClient);
  546. this.tableClientTable = new ClientTableDataTable();
  547. base.Tables.Add(this.tableClientTable);
  548. this.tableUserTable = new UserTableDataTable();
  549. base.Tables.Add(this.tableUserTable);
  550. this.tableRoleTable = new RoleTableDataTable();
  551. base.Tables.Add(this.tableRoleTable);
  552. this.relationFK_AttachedProduct_Product = new global::System.Data.DataRelation("FK_AttachedProduct_Product", new global::System.Data.DataColumn[] {
  553. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  554. this.tableAttachedProduct.MainProductIDColumn}, false);
  555. this.Relations.Add(this.relationFK_AttachedProduct_Product);
  556. this.relationFK_AttachedProduct_Product1 = new global::System.Data.DataRelation("FK_AttachedProduct_Product1", new global::System.Data.DataColumn[] {
  557. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  558. this.tableAttachedProduct.AttachedProductIDColumn}, false);
  559. this.Relations.Add(this.relationFK_AttachedProduct_Product1);
  560. this.relationFK_ClientService_Service = new global::System.Data.DataRelation("FK_ClientService_Service", new global::System.Data.DataColumn[] {
  561. this.tableService.IDColumn}, new global::System.Data.DataColumn[] {
  562. this.tableClientService.ServiceIDColumn}, false);
  563. this.Relations.Add(this.relationFK_ClientService_Service);
  564. this.relationFK_DocumentByService_ClientService = new global::System.Data.DataRelation("FK_DocumentByService_ClientService", new global::System.Data.DataColumn[] {
  565. this.tableClientService.IDColumn}, new global::System.Data.DataColumn[] {
  566. this.tableDocumentByService.ClientServiceIDColumn}, false);
  567. this.Relations.Add(this.relationFK_DocumentByService_ClientService);
  568. this.relationFK_Product_Manufacturer = new global::System.Data.DataRelation("FK_Product_Manufacturer", new global::System.Data.DataColumn[] {
  569. this.tableManufacturer.IDColumn}, new global::System.Data.DataColumn[] {
  570. this.tableProduct.ManufacturerIDColumn}, false);
  571. this.Relations.Add(this.relationFK_Product_Manufacturer);
  572. this.relationFK_ProductPhoto_Product = new global::System.Data.DataRelation("FK_ProductPhoto_Product", new global::System.Data.DataColumn[] {
  573. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  574. this.tableProductPhoto.ProductIDColumn}, false);
  575. this.Relations.Add(this.relationFK_ProductPhoto_Product);
  576. this.relationFK_ProductSale_ClientService = new global::System.Data.DataRelation("FK_ProductSale_ClientService", new global::System.Data.DataColumn[] {
  577. this.tableClientService.IDColumn}, new global::System.Data.DataColumn[] {
  578. this.tableProductSale.ClientServiceIDColumn}, false);
  579. this.Relations.Add(this.relationFK_ProductSale_ClientService);
  580. this.relationFK_ProductSale_Product = new global::System.Data.DataRelation("FK_ProductSale_Product", new global::System.Data.DataColumn[] {
  581. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  582. this.tableProductSale.ProductIDColumn}, false);
  583. this.Relations.Add(this.relationFK_ProductSale_Product);
  584. this.relationFK_ServicePhoto_Service = new global::System.Data.DataRelation("FK_ServicePhoto_Service", new global::System.Data.DataColumn[] {
  585. this.tableService.IDColumn}, new global::System.Data.DataColumn[] {
  586. this.tableServicePhoto.ServiceIDColumn}, false);
  587. this.Relations.Add(this.relationFK_ServicePhoto_Service);
  588. this.relationFK_TagOfClient_Tag = new global::System.Data.DataRelation("FK_TagOfClient_Tag", new global::System.Data.DataColumn[] {
  589. this.tableTag.IDColumn}, new global::System.Data.DataColumn[] {
  590. this.tableTagOfClient.TagIDColumn}, false);
  591. this.Relations.Add(this.relationFK_TagOfClient_Tag);
  592. this.relationFK_ClientService_Client = new global::System.Data.DataRelation("FK_ClientService_Client", new global::System.Data.DataColumn[] {
  593. this.tableClientTable.IDColumn}, new global::System.Data.DataColumn[] {
  594. this.tableClientService.ClientIDColumn}, false);
  595. this.Relations.Add(this.relationFK_ClientService_Client);
  596. this.relationFK_TagOfClient_Client = new global::System.Data.DataRelation("FK_TagOfClient_Client", new global::System.Data.DataColumn[] {
  597. this.tableClientTable.IDColumn}, new global::System.Data.DataColumn[] {
  598. this.tableTagOfClient.ClientIDColumn}, false);
  599. this.Relations.Add(this.relationFK_TagOfClient_Client);
  600. this.relationFK_Client_Gender = new global::System.Data.DataRelation("FK_Client_Gender", new global::System.Data.DataColumn[] {
  601. this.tableGender.CodeColumn}, new global::System.Data.DataColumn[] {
  602. this.tableClientTable.GenderCodeColumn}, false);
  603. this.Relations.Add(this.relationFK_Client_Gender);
  604. this.relationFK_UserTable_RoleTable = new global::System.Data.DataRelation("FK_UserTable_RoleTable", new global::System.Data.DataColumn[] {
  605. this.tableRoleTable.UserRoleColumn}, new global::System.Data.DataColumn[] {
  606. this.tableUserTable.UserRoleColumn}, false);
  607. this.Relations.Add(this.relationFK_UserTable_RoleTable);
  608. }
  609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  611. private bool ShouldSerializeAttachedProduct() {
  612. return false;
  613. }
  614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  616. private bool ShouldSerializeClientService() {
  617. return false;
  618. }
  619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  621. private bool ShouldSerializeDocumentByService() {
  622. return false;
  623. }
  624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  626. private bool ShouldSerializeGender() {
  627. return false;
  628. }
  629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  631. private bool ShouldSerializeManufacturer() {
  632. return false;
  633. }
  634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  636. private bool ShouldSerializeProduct() {
  637. return false;
  638. }
  639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  641. private bool ShouldSerializeProductPhoto() {
  642. return false;
  643. }
  644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  646. private bool ShouldSerializeProductSale() {
  647. return false;
  648. }
  649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  651. private bool ShouldSerializeService() {
  652. return false;
  653. }
  654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  656. private bool ShouldSerializeServicePhoto() {
  657. return false;
  658. }
  659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  661. private bool ShouldSerializeTag() {
  662. return false;
  663. }
  664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  666. private bool ShouldSerializeTagOfClient() {
  667. return false;
  668. }
  669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  671. private bool ShouldSerializeClientTable() {
  672. return false;
  673. }
  674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  676. private bool ShouldSerializeUserTable() {
  677. return false;
  678. }
  679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  681. private bool ShouldSerializeRoleTable() {
  682. return false;
  683. }
  684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  686. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  687. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  688. this.InitVars();
  689. }
  690. }
  691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  693. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  694. _02TradeDataSet ds = new _02TradeDataSet();
  695. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  696. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  697. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  698. any.Namespace = ds.Namespace;
  699. sequence.Items.Add(any);
  700. type.Particle = sequence;
  701. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  702. if (xs.Contains(dsSchema.TargetNamespace)) {
  703. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  704. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  705. try {
  706. global::System.Xml.Schema.XmlSchema schema = null;
  707. dsSchema.Write(s1);
  708. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  709. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  710. s2.SetLength(0);
  711. schema.Write(s2);
  712. if ((s1.Length == s2.Length)) {
  713. s1.Position = 0;
  714. s2.Position = 0;
  715. for (; ((s1.Position != s1.Length)
  716. && (s1.ReadByte() == s2.ReadByte())); ) {
  717. ;
  718. }
  719. if ((s1.Position == s1.Length)) {
  720. return type;
  721. }
  722. }
  723. }
  724. }
  725. finally {
  726. if ((s1 != null)) {
  727. s1.Close();
  728. }
  729. if ((s2 != null)) {
  730. s2.Close();
  731. }
  732. }
  733. }
  734. xs.Add(dsSchema);
  735. return type;
  736. }
  737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  738. public delegate void AttachedProductRowChangeEventHandler(object sender, AttachedProductRowChangeEvent e);
  739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  740. public delegate void ClientServiceRowChangeEventHandler(object sender, ClientServiceRowChangeEvent e);
  741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  742. public delegate void DocumentByServiceRowChangeEventHandler(object sender, DocumentByServiceRowChangeEvent e);
  743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  744. public delegate void GenderRowChangeEventHandler(object sender, GenderRowChangeEvent e);
  745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  746. public delegate void ManufacturerRowChangeEventHandler(object sender, ManufacturerRowChangeEvent e);
  747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  748. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  750. public delegate void ProductPhotoRowChangeEventHandler(object sender, ProductPhotoRowChangeEvent e);
  751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  752. public delegate void ProductSaleRowChangeEventHandler(object sender, ProductSaleRowChangeEvent e);
  753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  754. public delegate void ServiceRowChangeEventHandler(object sender, ServiceRowChangeEvent e);
  755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  756. public delegate void ServicePhotoRowChangeEventHandler(object sender, ServicePhotoRowChangeEvent e);
  757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  758. public delegate void TagRowChangeEventHandler(object sender, TagRowChangeEvent e);
  759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  760. public delegate void TagOfClientRowChangeEventHandler(object sender, TagOfClientRowChangeEvent e);
  761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  762. public delegate void ClientTableRowChangeEventHandler(object sender, ClientTableRowChangeEvent e);
  763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  764. public delegate void UserTableRowChangeEventHandler(object sender, UserTableRowChangeEvent e);
  765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  766. public delegate void RoleTableRowChangeEventHandler(object sender, RoleTableRowChangeEvent e);
  767. /// <summary>
  768. ///Represents the strongly named DataTable class.
  769. ///</summary>
  770. [global::System.Serializable()]
  771. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  772. public partial class AttachedProductDataTable : global::System.Data.TypedTableBase<AttachedProductRow> {
  773. private global::System.Data.DataColumn columnMainProductID;
  774. private global::System.Data.DataColumn columnAttachedProductID;
  775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  777. public AttachedProductDataTable() {
  778. this.TableName = "AttachedProduct";
  779. this.BeginInit();
  780. this.InitClass();
  781. this.EndInit();
  782. }
  783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  785. internal AttachedProductDataTable(global::System.Data.DataTable table) {
  786. this.TableName = table.TableName;
  787. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  788. this.CaseSensitive = table.CaseSensitive;
  789. }
  790. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  791. this.Locale = table.Locale;
  792. }
  793. if ((table.Namespace != table.DataSet.Namespace)) {
  794. this.Namespace = table.Namespace;
  795. }
  796. this.Prefix = table.Prefix;
  797. this.MinimumCapacity = table.MinimumCapacity;
  798. }
  799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  801. protected AttachedProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  802. base(info, context) {
  803. this.InitVars();
  804. }
  805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  807. public global::System.Data.DataColumn MainProductIDColumn {
  808. get {
  809. return this.columnMainProductID;
  810. }
  811. }
  812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  814. public global::System.Data.DataColumn AttachedProductIDColumn {
  815. get {
  816. return this.columnAttachedProductID;
  817. }
  818. }
  819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  821. [global::System.ComponentModel.Browsable(false)]
  822. public int Count {
  823. get {
  824. return this.Rows.Count;
  825. }
  826. }
  827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  829. public AttachedProductRow this[int index] {
  830. get {
  831. return ((AttachedProductRow)(this.Rows[index]));
  832. }
  833. }
  834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  835. public event AttachedProductRowChangeEventHandler AttachedProductRowChanging;
  836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  837. public event AttachedProductRowChangeEventHandler AttachedProductRowChanged;
  838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  839. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleting;
  840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  841. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleted;
  842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  844. public void AddAttachedProductRow(AttachedProductRow row) {
  845. this.Rows.Add(row);
  846. }
  847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  849. public AttachedProductRow AddAttachedProductRow(ProductRow parentProductRowByFK_AttachedProduct_Product, ProductRow parentProductRowByFK_AttachedProduct_Product1) {
  850. AttachedProductRow rowAttachedProductRow = ((AttachedProductRow)(this.NewRow()));
  851. object[] columnValuesArray = new object[] {
  852. null,
  853. null};
  854. if ((parentProductRowByFK_AttachedProduct_Product != null)) {
  855. columnValuesArray[0] = parentProductRowByFK_AttachedProduct_Product[0];
  856. }
  857. if ((parentProductRowByFK_AttachedProduct_Product1 != null)) {
  858. columnValuesArray[1] = parentProductRowByFK_AttachedProduct_Product1[0];
  859. }
  860. rowAttachedProductRow.ItemArray = columnValuesArray;
  861. this.Rows.Add(rowAttachedProductRow);
  862. return rowAttachedProductRow;
  863. }
  864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  866. public AttachedProductRow FindByMainProductIDAttachedProductID(int MainProductID, int AttachedProductID) {
  867. return ((AttachedProductRow)(this.Rows.Find(new object[] {
  868. MainProductID,
  869. AttachedProductID})));
  870. }
  871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  873. public override global::System.Data.DataTable Clone() {
  874. AttachedProductDataTable cln = ((AttachedProductDataTable)(base.Clone()));
  875. cln.InitVars();
  876. return cln;
  877. }
  878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  880. protected override global::System.Data.DataTable CreateInstance() {
  881. return new AttachedProductDataTable();
  882. }
  883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  885. internal void InitVars() {
  886. this.columnMainProductID = base.Columns["MainProductID"];
  887. this.columnAttachedProductID = base.Columns["AttachedProductID"];
  888. }
  889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  891. private void InitClass() {
  892. this.columnMainProductID = new global::System.Data.DataColumn("MainProductID", typeof(int), null, global::System.Data.MappingType.Element);
  893. base.Columns.Add(this.columnMainProductID);
  894. this.columnAttachedProductID = new global::System.Data.DataColumn("AttachedProductID", typeof(int), null, global::System.Data.MappingType.Element);
  895. base.Columns.Add(this.columnAttachedProductID);
  896. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  897. this.columnMainProductID,
  898. this.columnAttachedProductID}, true));
  899. this.columnMainProductID.AllowDBNull = false;
  900. this.columnAttachedProductID.AllowDBNull = false;
  901. }
  902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  904. public AttachedProductRow NewAttachedProductRow() {
  905. return ((AttachedProductRow)(this.NewRow()));
  906. }
  907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  909. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  910. return new AttachedProductRow(builder);
  911. }
  912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  914. protected override global::System.Type GetRowType() {
  915. return typeof(AttachedProductRow);
  916. }
  917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  919. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  920. base.OnRowChanged(e);
  921. if ((this.AttachedProductRowChanged != null)) {
  922. this.AttachedProductRowChanged(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  923. }
  924. }
  925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  927. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  928. base.OnRowChanging(e);
  929. if ((this.AttachedProductRowChanging != null)) {
  930. this.AttachedProductRowChanging(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  931. }
  932. }
  933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  935. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  936. base.OnRowDeleted(e);
  937. if ((this.AttachedProductRowDeleted != null)) {
  938. this.AttachedProductRowDeleted(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  939. }
  940. }
  941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  943. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  944. base.OnRowDeleting(e);
  945. if ((this.AttachedProductRowDeleting != null)) {
  946. this.AttachedProductRowDeleting(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  947. }
  948. }
  949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  951. public void RemoveAttachedProductRow(AttachedProductRow row) {
  952. this.Rows.Remove(row);
  953. }
  954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  956. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  957. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  958. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  959. _02TradeDataSet ds = new _02TradeDataSet();
  960. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  961. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  962. any1.MinOccurs = new decimal(0);
  963. any1.MaxOccurs = decimal.MaxValue;
  964. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  965. sequence.Items.Add(any1);
  966. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  967. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  968. any2.MinOccurs = new decimal(1);
  969. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  970. sequence.Items.Add(any2);
  971. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  972. attribute1.Name = "namespace";
  973. attribute1.FixedValue = ds.Namespace;
  974. type.Attributes.Add(attribute1);
  975. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  976. attribute2.Name = "tableTypeName";
  977. attribute2.FixedValue = "AttachedProductDataTable";
  978. type.Attributes.Add(attribute2);
  979. type.Particle = sequence;
  980. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  981. if (xs.Contains(dsSchema.TargetNamespace)) {
  982. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  983. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  984. try {
  985. global::System.Xml.Schema.XmlSchema schema = null;
  986. dsSchema.Write(s1);
  987. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  988. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  989. s2.SetLength(0);
  990. schema.Write(s2);
  991. if ((s1.Length == s2.Length)) {
  992. s1.Position = 0;
  993. s2.Position = 0;
  994. for (; ((s1.Position != s1.Length)
  995. && (s1.ReadByte() == s2.ReadByte())); ) {
  996. ;
  997. }
  998. if ((s1.Position == s1.Length)) {
  999. return type;
  1000. }
  1001. }
  1002. }
  1003. }
  1004. finally {
  1005. if ((s1 != null)) {
  1006. s1.Close();
  1007. }
  1008. if ((s2 != null)) {
  1009. s2.Close();
  1010. }
  1011. }
  1012. }
  1013. xs.Add(dsSchema);
  1014. return type;
  1015. }
  1016. }
  1017. /// <summary>
  1018. ///Represents the strongly named DataTable class.
  1019. ///</summary>
  1020. [global::System.Serializable()]
  1021. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1022. public partial class ClientServiceDataTable : global::System.Data.TypedTableBase<ClientServiceRow> {
  1023. private global::System.Data.DataColumn columnID;
  1024. private global::System.Data.DataColumn columnClientID;
  1025. private global::System.Data.DataColumn columnServiceID;
  1026. private global::System.Data.DataColumn columnStartTime;
  1027. private global::System.Data.DataColumn columnComment;
  1028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1030. public ClientServiceDataTable() {
  1031. this.TableName = "ClientService";
  1032. this.BeginInit();
  1033. this.InitClass();
  1034. this.EndInit();
  1035. }
  1036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1038. internal ClientServiceDataTable(global::System.Data.DataTable table) {
  1039. this.TableName = table.TableName;
  1040. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1041. this.CaseSensitive = table.CaseSensitive;
  1042. }
  1043. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1044. this.Locale = table.Locale;
  1045. }
  1046. if ((table.Namespace != table.DataSet.Namespace)) {
  1047. this.Namespace = table.Namespace;
  1048. }
  1049. this.Prefix = table.Prefix;
  1050. this.MinimumCapacity = table.MinimumCapacity;
  1051. }
  1052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1054. protected ClientServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1055. base(info, context) {
  1056. this.InitVars();
  1057. }
  1058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1060. public global::System.Data.DataColumn IDColumn {
  1061. get {
  1062. return this.columnID;
  1063. }
  1064. }
  1065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1067. public global::System.Data.DataColumn ClientIDColumn {
  1068. get {
  1069. return this.columnClientID;
  1070. }
  1071. }
  1072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1074. public global::System.Data.DataColumn ServiceIDColumn {
  1075. get {
  1076. return this.columnServiceID;
  1077. }
  1078. }
  1079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1081. public global::System.Data.DataColumn StartTimeColumn {
  1082. get {
  1083. return this.columnStartTime;
  1084. }
  1085. }
  1086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1088. public global::System.Data.DataColumn CommentColumn {
  1089. get {
  1090. return this.columnComment;
  1091. }
  1092. }
  1093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1095. [global::System.ComponentModel.Browsable(false)]
  1096. public int Count {
  1097. get {
  1098. return this.Rows.Count;
  1099. }
  1100. }
  1101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1103. public ClientServiceRow this[int index] {
  1104. get {
  1105. return ((ClientServiceRow)(this.Rows[index]));
  1106. }
  1107. }
  1108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1109. public event ClientServiceRowChangeEventHandler ClientServiceRowChanging;
  1110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1111. public event ClientServiceRowChangeEventHandler ClientServiceRowChanged;
  1112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1113. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleting;
  1114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1115. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleted;
  1116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1118. public void AddClientServiceRow(ClientServiceRow row) {
  1119. this.Rows.Add(row);
  1120. }
  1121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1123. public ClientServiceRow AddClientServiceRow(ClientTableRow parentClientTableRowByFK_ClientService_Client, ServiceRow parentServiceRowByFK_ClientService_Service, System.DateTime StartTime, string Comment) {
  1124. ClientServiceRow rowClientServiceRow = ((ClientServiceRow)(this.NewRow()));
  1125. object[] columnValuesArray = new object[] {
  1126. null,
  1127. null,
  1128. null,
  1129. StartTime,
  1130. Comment};
  1131. if ((parentClientTableRowByFK_ClientService_Client != null)) {
  1132. columnValuesArray[1] = parentClientTableRowByFK_ClientService_Client[0];
  1133. }
  1134. if ((parentServiceRowByFK_ClientService_Service != null)) {
  1135. columnValuesArray[2] = parentServiceRowByFK_ClientService_Service[0];
  1136. }
  1137. rowClientServiceRow.ItemArray = columnValuesArray;
  1138. this.Rows.Add(rowClientServiceRow);
  1139. return rowClientServiceRow;
  1140. }
  1141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1143. public ClientServiceRow FindByID(int ID) {
  1144. return ((ClientServiceRow)(this.Rows.Find(new object[] {
  1145. ID})));
  1146. }
  1147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1149. public override global::System.Data.DataTable Clone() {
  1150. ClientServiceDataTable cln = ((ClientServiceDataTable)(base.Clone()));
  1151. cln.InitVars();
  1152. return cln;
  1153. }
  1154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1156. protected override global::System.Data.DataTable CreateInstance() {
  1157. return new ClientServiceDataTable();
  1158. }
  1159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1161. internal void InitVars() {
  1162. this.columnID = base.Columns["ID"];
  1163. this.columnClientID = base.Columns["ClientID"];
  1164. this.columnServiceID = base.Columns["ServiceID"];
  1165. this.columnStartTime = base.Columns["StartTime"];
  1166. this.columnComment = base.Columns["Comment"];
  1167. }
  1168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1170. private void InitClass() {
  1171. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1172. base.Columns.Add(this.columnID);
  1173. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  1174. base.Columns.Add(this.columnClientID);
  1175. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  1176. base.Columns.Add(this.columnServiceID);
  1177. this.columnStartTime = new global::System.Data.DataColumn("StartTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1178. base.Columns.Add(this.columnStartTime);
  1179. this.columnComment = new global::System.Data.DataColumn("Comment", typeof(string), null, global::System.Data.MappingType.Element);
  1180. base.Columns.Add(this.columnComment);
  1181. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1182. this.columnID}, true));
  1183. this.columnID.AutoIncrement = true;
  1184. this.columnID.AutoIncrementSeed = -1;
  1185. this.columnID.AutoIncrementStep = -1;
  1186. this.columnID.AllowDBNull = false;
  1187. this.columnID.ReadOnly = true;
  1188. this.columnID.Unique = true;
  1189. this.columnClientID.AllowDBNull = false;
  1190. this.columnServiceID.AllowDBNull = false;
  1191. this.columnStartTime.AllowDBNull = false;
  1192. this.columnComment.MaxLength = 2147483647;
  1193. }
  1194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1196. public ClientServiceRow NewClientServiceRow() {
  1197. return ((ClientServiceRow)(this.NewRow()));
  1198. }
  1199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1201. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1202. return new ClientServiceRow(builder);
  1203. }
  1204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1206. protected override global::System.Type GetRowType() {
  1207. return typeof(ClientServiceRow);
  1208. }
  1209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1211. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1212. base.OnRowChanged(e);
  1213. if ((this.ClientServiceRowChanged != null)) {
  1214. this.ClientServiceRowChanged(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1215. }
  1216. }
  1217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1219. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1220. base.OnRowChanging(e);
  1221. if ((this.ClientServiceRowChanging != null)) {
  1222. this.ClientServiceRowChanging(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1223. }
  1224. }
  1225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1227. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1228. base.OnRowDeleted(e);
  1229. if ((this.ClientServiceRowDeleted != null)) {
  1230. this.ClientServiceRowDeleted(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1231. }
  1232. }
  1233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1235. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1236. base.OnRowDeleting(e);
  1237. if ((this.ClientServiceRowDeleting != null)) {
  1238. this.ClientServiceRowDeleting(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1239. }
  1240. }
  1241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1243. public void RemoveClientServiceRow(ClientServiceRow row) {
  1244. this.Rows.Remove(row);
  1245. }
  1246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1248. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1249. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1250. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1251. _02TradeDataSet ds = new _02TradeDataSet();
  1252. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1253. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1254. any1.MinOccurs = new decimal(0);
  1255. any1.MaxOccurs = decimal.MaxValue;
  1256. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1257. sequence.Items.Add(any1);
  1258. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1259. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1260. any2.MinOccurs = new decimal(1);
  1261. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1262. sequence.Items.Add(any2);
  1263. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1264. attribute1.Name = "namespace";
  1265. attribute1.FixedValue = ds.Namespace;
  1266. type.Attributes.Add(attribute1);
  1267. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1268. attribute2.Name = "tableTypeName";
  1269. attribute2.FixedValue = "ClientServiceDataTable";
  1270. type.Attributes.Add(attribute2);
  1271. type.Particle = sequence;
  1272. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1273. if (xs.Contains(dsSchema.TargetNamespace)) {
  1274. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1275. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1276. try {
  1277. global::System.Xml.Schema.XmlSchema schema = null;
  1278. dsSchema.Write(s1);
  1279. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1280. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1281. s2.SetLength(0);
  1282. schema.Write(s2);
  1283. if ((s1.Length == s2.Length)) {
  1284. s1.Position = 0;
  1285. s2.Position = 0;
  1286. for (; ((s1.Position != s1.Length)
  1287. && (s1.ReadByte() == s2.ReadByte())); ) {
  1288. ;
  1289. }
  1290. if ((s1.Position == s1.Length)) {
  1291. return type;
  1292. }
  1293. }
  1294. }
  1295. }
  1296. finally {
  1297. if ((s1 != null)) {
  1298. s1.Close();
  1299. }
  1300. if ((s2 != null)) {
  1301. s2.Close();
  1302. }
  1303. }
  1304. }
  1305. xs.Add(dsSchema);
  1306. return type;
  1307. }
  1308. }
  1309. /// <summary>
  1310. ///Represents the strongly named DataTable class.
  1311. ///</summary>
  1312. [global::System.Serializable()]
  1313. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1314. public partial class DocumentByServiceDataTable : global::System.Data.TypedTableBase<DocumentByServiceRow> {
  1315. private global::System.Data.DataColumn columnID;
  1316. private global::System.Data.DataColumn columnClientServiceID;
  1317. private global::System.Data.DataColumn columnDocumentPath;
  1318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1320. public DocumentByServiceDataTable() {
  1321. this.TableName = "DocumentByService";
  1322. this.BeginInit();
  1323. this.InitClass();
  1324. this.EndInit();
  1325. }
  1326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1328. internal DocumentByServiceDataTable(global::System.Data.DataTable table) {
  1329. this.TableName = table.TableName;
  1330. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1331. this.CaseSensitive = table.CaseSensitive;
  1332. }
  1333. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1334. this.Locale = table.Locale;
  1335. }
  1336. if ((table.Namespace != table.DataSet.Namespace)) {
  1337. this.Namespace = table.Namespace;
  1338. }
  1339. this.Prefix = table.Prefix;
  1340. this.MinimumCapacity = table.MinimumCapacity;
  1341. }
  1342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1344. protected DocumentByServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1345. base(info, context) {
  1346. this.InitVars();
  1347. }
  1348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1350. public global::System.Data.DataColumn IDColumn {
  1351. get {
  1352. return this.columnID;
  1353. }
  1354. }
  1355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1357. public global::System.Data.DataColumn ClientServiceIDColumn {
  1358. get {
  1359. return this.columnClientServiceID;
  1360. }
  1361. }
  1362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1364. public global::System.Data.DataColumn DocumentPathColumn {
  1365. get {
  1366. return this.columnDocumentPath;
  1367. }
  1368. }
  1369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1371. [global::System.ComponentModel.Browsable(false)]
  1372. public int Count {
  1373. get {
  1374. return this.Rows.Count;
  1375. }
  1376. }
  1377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1379. public DocumentByServiceRow this[int index] {
  1380. get {
  1381. return ((DocumentByServiceRow)(this.Rows[index]));
  1382. }
  1383. }
  1384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1385. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanging;
  1386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1387. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanged;
  1388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1389. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleting;
  1390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1391. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleted;
  1392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1394. public void AddDocumentByServiceRow(DocumentByServiceRow row) {
  1395. this.Rows.Add(row);
  1396. }
  1397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1399. public DocumentByServiceRow AddDocumentByServiceRow(ClientServiceRow parentClientServiceRowByFK_DocumentByService_ClientService, string DocumentPath) {
  1400. DocumentByServiceRow rowDocumentByServiceRow = ((DocumentByServiceRow)(this.NewRow()));
  1401. object[] columnValuesArray = new object[] {
  1402. null,
  1403. null,
  1404. DocumentPath};
  1405. if ((parentClientServiceRowByFK_DocumentByService_ClientService != null)) {
  1406. columnValuesArray[1] = parentClientServiceRowByFK_DocumentByService_ClientService[0];
  1407. }
  1408. rowDocumentByServiceRow.ItemArray = columnValuesArray;
  1409. this.Rows.Add(rowDocumentByServiceRow);
  1410. return rowDocumentByServiceRow;
  1411. }
  1412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1414. public DocumentByServiceRow FindByID(int ID) {
  1415. return ((DocumentByServiceRow)(this.Rows.Find(new object[] {
  1416. ID})));
  1417. }
  1418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1420. public override global::System.Data.DataTable Clone() {
  1421. DocumentByServiceDataTable cln = ((DocumentByServiceDataTable)(base.Clone()));
  1422. cln.InitVars();
  1423. return cln;
  1424. }
  1425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1427. protected override global::System.Data.DataTable CreateInstance() {
  1428. return new DocumentByServiceDataTable();
  1429. }
  1430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1432. internal void InitVars() {
  1433. this.columnID = base.Columns["ID"];
  1434. this.columnClientServiceID = base.Columns["ClientServiceID"];
  1435. this.columnDocumentPath = base.Columns["DocumentPath"];
  1436. }
  1437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1439. private void InitClass() {
  1440. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1441. base.Columns.Add(this.columnID);
  1442. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  1443. base.Columns.Add(this.columnClientServiceID);
  1444. this.columnDocumentPath = new global::System.Data.DataColumn("DocumentPath", typeof(string), null, global::System.Data.MappingType.Element);
  1445. base.Columns.Add(this.columnDocumentPath);
  1446. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1447. this.columnID}, true));
  1448. this.columnID.AutoIncrement = true;
  1449. this.columnID.AutoIncrementSeed = -1;
  1450. this.columnID.AutoIncrementStep = -1;
  1451. this.columnID.AllowDBNull = false;
  1452. this.columnID.ReadOnly = true;
  1453. this.columnID.Unique = true;
  1454. this.columnClientServiceID.AllowDBNull = false;
  1455. this.columnDocumentPath.AllowDBNull = false;
  1456. this.columnDocumentPath.MaxLength = 1000;
  1457. }
  1458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1460. public DocumentByServiceRow NewDocumentByServiceRow() {
  1461. return ((DocumentByServiceRow)(this.NewRow()));
  1462. }
  1463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1465. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1466. return new DocumentByServiceRow(builder);
  1467. }
  1468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1470. protected override global::System.Type GetRowType() {
  1471. return typeof(DocumentByServiceRow);
  1472. }
  1473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1475. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1476. base.OnRowChanged(e);
  1477. if ((this.DocumentByServiceRowChanged != null)) {
  1478. this.DocumentByServiceRowChanged(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1479. }
  1480. }
  1481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1483. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1484. base.OnRowChanging(e);
  1485. if ((this.DocumentByServiceRowChanging != null)) {
  1486. this.DocumentByServiceRowChanging(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1487. }
  1488. }
  1489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1491. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1492. base.OnRowDeleted(e);
  1493. if ((this.DocumentByServiceRowDeleted != null)) {
  1494. this.DocumentByServiceRowDeleted(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1495. }
  1496. }
  1497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1499. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1500. base.OnRowDeleting(e);
  1501. if ((this.DocumentByServiceRowDeleting != null)) {
  1502. this.DocumentByServiceRowDeleting(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1503. }
  1504. }
  1505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1507. public void RemoveDocumentByServiceRow(DocumentByServiceRow row) {
  1508. this.Rows.Remove(row);
  1509. }
  1510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1512. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1513. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1514. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1515. _02TradeDataSet ds = new _02TradeDataSet();
  1516. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1517. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1518. any1.MinOccurs = new decimal(0);
  1519. any1.MaxOccurs = decimal.MaxValue;
  1520. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1521. sequence.Items.Add(any1);
  1522. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1523. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1524. any2.MinOccurs = new decimal(1);
  1525. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1526. sequence.Items.Add(any2);
  1527. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1528. attribute1.Name = "namespace";
  1529. attribute1.FixedValue = ds.Namespace;
  1530. type.Attributes.Add(attribute1);
  1531. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1532. attribute2.Name = "tableTypeName";
  1533. attribute2.FixedValue = "DocumentByServiceDataTable";
  1534. type.Attributes.Add(attribute2);
  1535. type.Particle = sequence;
  1536. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1537. if (xs.Contains(dsSchema.TargetNamespace)) {
  1538. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1539. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1540. try {
  1541. global::System.Xml.Schema.XmlSchema schema = null;
  1542. dsSchema.Write(s1);
  1543. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1544. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1545. s2.SetLength(0);
  1546. schema.Write(s2);
  1547. if ((s1.Length == s2.Length)) {
  1548. s1.Position = 0;
  1549. s2.Position = 0;
  1550. for (; ((s1.Position != s1.Length)
  1551. && (s1.ReadByte() == s2.ReadByte())); ) {
  1552. ;
  1553. }
  1554. if ((s1.Position == s1.Length)) {
  1555. return type;
  1556. }
  1557. }
  1558. }
  1559. }
  1560. finally {
  1561. if ((s1 != null)) {
  1562. s1.Close();
  1563. }
  1564. if ((s2 != null)) {
  1565. s2.Close();
  1566. }
  1567. }
  1568. }
  1569. xs.Add(dsSchema);
  1570. return type;
  1571. }
  1572. }
  1573. /// <summary>
  1574. ///Represents the strongly named DataTable class.
  1575. ///</summary>
  1576. [global::System.Serializable()]
  1577. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1578. public partial class GenderDataTable : global::System.Data.TypedTableBase<GenderRow> {
  1579. private global::System.Data.DataColumn columnCode;
  1580. private global::System.Data.DataColumn columnName;
  1581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1583. public GenderDataTable() {
  1584. this.TableName = "Gender";
  1585. this.BeginInit();
  1586. this.InitClass();
  1587. this.EndInit();
  1588. }
  1589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1591. internal GenderDataTable(global::System.Data.DataTable table) {
  1592. this.TableName = table.TableName;
  1593. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1594. this.CaseSensitive = table.CaseSensitive;
  1595. }
  1596. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1597. this.Locale = table.Locale;
  1598. }
  1599. if ((table.Namespace != table.DataSet.Namespace)) {
  1600. this.Namespace = table.Namespace;
  1601. }
  1602. this.Prefix = table.Prefix;
  1603. this.MinimumCapacity = table.MinimumCapacity;
  1604. }
  1605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1607. protected GenderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1608. base(info, context) {
  1609. this.InitVars();
  1610. }
  1611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1613. public global::System.Data.DataColumn CodeColumn {
  1614. get {
  1615. return this.columnCode;
  1616. }
  1617. }
  1618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1620. public global::System.Data.DataColumn NameColumn {
  1621. get {
  1622. return this.columnName;
  1623. }
  1624. }
  1625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1627. [global::System.ComponentModel.Browsable(false)]
  1628. public int Count {
  1629. get {
  1630. return this.Rows.Count;
  1631. }
  1632. }
  1633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1635. public GenderRow this[int index] {
  1636. get {
  1637. return ((GenderRow)(this.Rows[index]));
  1638. }
  1639. }
  1640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1641. public event GenderRowChangeEventHandler GenderRowChanging;
  1642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1643. public event GenderRowChangeEventHandler GenderRowChanged;
  1644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1645. public event GenderRowChangeEventHandler GenderRowDeleting;
  1646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1647. public event GenderRowChangeEventHandler GenderRowDeleted;
  1648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1650. public void AddGenderRow(GenderRow row) {
  1651. this.Rows.Add(row);
  1652. }
  1653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1655. public GenderRow AddGenderRow(string Code, string Name) {
  1656. GenderRow rowGenderRow = ((GenderRow)(this.NewRow()));
  1657. object[] columnValuesArray = new object[] {
  1658. Code,
  1659. Name};
  1660. rowGenderRow.ItemArray = columnValuesArray;
  1661. this.Rows.Add(rowGenderRow);
  1662. return rowGenderRow;
  1663. }
  1664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1666. public GenderRow FindByCode(string Code) {
  1667. return ((GenderRow)(this.Rows.Find(new object[] {
  1668. Code})));
  1669. }
  1670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1672. public override global::System.Data.DataTable Clone() {
  1673. GenderDataTable cln = ((GenderDataTable)(base.Clone()));
  1674. cln.InitVars();
  1675. return cln;
  1676. }
  1677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1679. protected override global::System.Data.DataTable CreateInstance() {
  1680. return new GenderDataTable();
  1681. }
  1682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1684. internal void InitVars() {
  1685. this.columnCode = base.Columns["Code"];
  1686. this.columnName = base.Columns["Name"];
  1687. }
  1688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1690. private void InitClass() {
  1691. this.columnCode = new global::System.Data.DataColumn("Code", typeof(string), null, global::System.Data.MappingType.Element);
  1692. base.Columns.Add(this.columnCode);
  1693. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1694. base.Columns.Add(this.columnName);
  1695. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1696. this.columnCode}, true));
  1697. this.columnCode.AllowDBNull = false;
  1698. this.columnCode.Unique = true;
  1699. this.columnCode.MaxLength = 1;
  1700. this.columnName.MaxLength = 10;
  1701. }
  1702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1704. public GenderRow NewGenderRow() {
  1705. return ((GenderRow)(this.NewRow()));
  1706. }
  1707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1709. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1710. return new GenderRow(builder);
  1711. }
  1712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1714. protected override global::System.Type GetRowType() {
  1715. return typeof(GenderRow);
  1716. }
  1717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1719. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1720. base.OnRowChanged(e);
  1721. if ((this.GenderRowChanged != null)) {
  1722. this.GenderRowChanged(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  1723. }
  1724. }
  1725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1727. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1728. base.OnRowChanging(e);
  1729. if ((this.GenderRowChanging != null)) {
  1730. this.GenderRowChanging(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  1731. }
  1732. }
  1733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1735. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1736. base.OnRowDeleted(e);
  1737. if ((this.GenderRowDeleted != null)) {
  1738. this.GenderRowDeleted(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  1739. }
  1740. }
  1741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1743. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1744. base.OnRowDeleting(e);
  1745. if ((this.GenderRowDeleting != null)) {
  1746. this.GenderRowDeleting(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  1747. }
  1748. }
  1749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1751. public void RemoveGenderRow(GenderRow row) {
  1752. this.Rows.Remove(row);
  1753. }
  1754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1756. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1757. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1758. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1759. _02TradeDataSet ds = new _02TradeDataSet();
  1760. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1761. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1762. any1.MinOccurs = new decimal(0);
  1763. any1.MaxOccurs = decimal.MaxValue;
  1764. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1765. sequence.Items.Add(any1);
  1766. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1767. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1768. any2.MinOccurs = new decimal(1);
  1769. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1770. sequence.Items.Add(any2);
  1771. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1772. attribute1.Name = "namespace";
  1773. attribute1.FixedValue = ds.Namespace;
  1774. type.Attributes.Add(attribute1);
  1775. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1776. attribute2.Name = "tableTypeName";
  1777. attribute2.FixedValue = "GenderDataTable";
  1778. type.Attributes.Add(attribute2);
  1779. type.Particle = sequence;
  1780. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1781. if (xs.Contains(dsSchema.TargetNamespace)) {
  1782. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1783. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1784. try {
  1785. global::System.Xml.Schema.XmlSchema schema = null;
  1786. dsSchema.Write(s1);
  1787. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1788. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1789. s2.SetLength(0);
  1790. schema.Write(s2);
  1791. if ((s1.Length == s2.Length)) {
  1792. s1.Position = 0;
  1793. s2.Position = 0;
  1794. for (; ((s1.Position != s1.Length)
  1795. && (s1.ReadByte() == s2.ReadByte())); ) {
  1796. ;
  1797. }
  1798. if ((s1.Position == s1.Length)) {
  1799. return type;
  1800. }
  1801. }
  1802. }
  1803. }
  1804. finally {
  1805. if ((s1 != null)) {
  1806. s1.Close();
  1807. }
  1808. if ((s2 != null)) {
  1809. s2.Close();
  1810. }
  1811. }
  1812. }
  1813. xs.Add(dsSchema);
  1814. return type;
  1815. }
  1816. }
  1817. /// <summary>
  1818. ///Represents the strongly named DataTable class.
  1819. ///</summary>
  1820. [global::System.Serializable()]
  1821. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1822. public partial class ManufacturerDataTable : global::System.Data.TypedTableBase<ManufacturerRow> {
  1823. private global::System.Data.DataColumn columnID;
  1824. private global::System.Data.DataColumn columnName;
  1825. private global::System.Data.DataColumn columnStartDate;
  1826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1828. public ManufacturerDataTable() {
  1829. this.TableName = "Manufacturer";
  1830. this.BeginInit();
  1831. this.InitClass();
  1832. this.EndInit();
  1833. }
  1834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1836. internal ManufacturerDataTable(global::System.Data.DataTable table) {
  1837. this.TableName = table.TableName;
  1838. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1839. this.CaseSensitive = table.CaseSensitive;
  1840. }
  1841. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1842. this.Locale = table.Locale;
  1843. }
  1844. if ((table.Namespace != table.DataSet.Namespace)) {
  1845. this.Namespace = table.Namespace;
  1846. }
  1847. this.Prefix = table.Prefix;
  1848. this.MinimumCapacity = table.MinimumCapacity;
  1849. }
  1850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1852. protected ManufacturerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1853. base(info, context) {
  1854. this.InitVars();
  1855. }
  1856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1858. public global::System.Data.DataColumn IDColumn {
  1859. get {
  1860. return this.columnID;
  1861. }
  1862. }
  1863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1865. public global::System.Data.DataColumn NameColumn {
  1866. get {
  1867. return this.columnName;
  1868. }
  1869. }
  1870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1872. public global::System.Data.DataColumn StartDateColumn {
  1873. get {
  1874. return this.columnStartDate;
  1875. }
  1876. }
  1877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1879. [global::System.ComponentModel.Browsable(false)]
  1880. public int Count {
  1881. get {
  1882. return this.Rows.Count;
  1883. }
  1884. }
  1885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1887. public ManufacturerRow this[int index] {
  1888. get {
  1889. return ((ManufacturerRow)(this.Rows[index]));
  1890. }
  1891. }
  1892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1893. public event ManufacturerRowChangeEventHandler ManufacturerRowChanging;
  1894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1895. public event ManufacturerRowChangeEventHandler ManufacturerRowChanged;
  1896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1897. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleting;
  1898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1899. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleted;
  1900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1902. public void AddManufacturerRow(ManufacturerRow row) {
  1903. this.Rows.Add(row);
  1904. }
  1905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1907. public ManufacturerRow AddManufacturerRow(string Name, System.DateTime StartDate) {
  1908. ManufacturerRow rowManufacturerRow = ((ManufacturerRow)(this.NewRow()));
  1909. object[] columnValuesArray = new object[] {
  1910. null,
  1911. Name,
  1912. StartDate};
  1913. rowManufacturerRow.ItemArray = columnValuesArray;
  1914. this.Rows.Add(rowManufacturerRow);
  1915. return rowManufacturerRow;
  1916. }
  1917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1919. public ManufacturerRow FindByID(int ID) {
  1920. return ((ManufacturerRow)(this.Rows.Find(new object[] {
  1921. ID})));
  1922. }
  1923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1925. public override global::System.Data.DataTable Clone() {
  1926. ManufacturerDataTable cln = ((ManufacturerDataTable)(base.Clone()));
  1927. cln.InitVars();
  1928. return cln;
  1929. }
  1930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1932. protected override global::System.Data.DataTable CreateInstance() {
  1933. return new ManufacturerDataTable();
  1934. }
  1935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1937. internal void InitVars() {
  1938. this.columnID = base.Columns["ID"];
  1939. this.columnName = base.Columns["Name"];
  1940. this.columnStartDate = base.Columns["StartDate"];
  1941. }
  1942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1944. private void InitClass() {
  1945. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1946. base.Columns.Add(this.columnID);
  1947. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1948. base.Columns.Add(this.columnName);
  1949. this.columnStartDate = new global::System.Data.DataColumn("StartDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1950. base.Columns.Add(this.columnStartDate);
  1951. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1952. this.columnID}, true));
  1953. this.columnID.AutoIncrement = true;
  1954. this.columnID.AutoIncrementSeed = -1;
  1955. this.columnID.AutoIncrementStep = -1;
  1956. this.columnID.AllowDBNull = false;
  1957. this.columnID.ReadOnly = true;
  1958. this.columnID.Unique = true;
  1959. this.columnName.AllowDBNull = false;
  1960. this.columnName.MaxLength = 100;
  1961. }
  1962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1964. public ManufacturerRow NewManufacturerRow() {
  1965. return ((ManufacturerRow)(this.NewRow()));
  1966. }
  1967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1969. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1970. return new ManufacturerRow(builder);
  1971. }
  1972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1974. protected override global::System.Type GetRowType() {
  1975. return typeof(ManufacturerRow);
  1976. }
  1977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1979. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1980. base.OnRowChanged(e);
  1981. if ((this.ManufacturerRowChanged != null)) {
  1982. this.ManufacturerRowChanged(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  1983. }
  1984. }
  1985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1987. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1988. base.OnRowChanging(e);
  1989. if ((this.ManufacturerRowChanging != null)) {
  1990. this.ManufacturerRowChanging(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  1991. }
  1992. }
  1993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1995. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1996. base.OnRowDeleted(e);
  1997. if ((this.ManufacturerRowDeleted != null)) {
  1998. this.ManufacturerRowDeleted(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  1999. }
  2000. }
  2001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2003. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2004. base.OnRowDeleting(e);
  2005. if ((this.ManufacturerRowDeleting != null)) {
  2006. this.ManufacturerRowDeleting(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2007. }
  2008. }
  2009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2011. public void RemoveManufacturerRow(ManufacturerRow row) {
  2012. this.Rows.Remove(row);
  2013. }
  2014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2016. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2017. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2018. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2019. _02TradeDataSet ds = new _02TradeDataSet();
  2020. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2021. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2022. any1.MinOccurs = new decimal(0);
  2023. any1.MaxOccurs = decimal.MaxValue;
  2024. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2025. sequence.Items.Add(any1);
  2026. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2027. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2028. any2.MinOccurs = new decimal(1);
  2029. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2030. sequence.Items.Add(any2);
  2031. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2032. attribute1.Name = "namespace";
  2033. attribute1.FixedValue = ds.Namespace;
  2034. type.Attributes.Add(attribute1);
  2035. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2036. attribute2.Name = "tableTypeName";
  2037. attribute2.FixedValue = "ManufacturerDataTable";
  2038. type.Attributes.Add(attribute2);
  2039. type.Particle = sequence;
  2040. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2041. if (xs.Contains(dsSchema.TargetNamespace)) {
  2042. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2043. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2044. try {
  2045. global::System.Xml.Schema.XmlSchema schema = null;
  2046. dsSchema.Write(s1);
  2047. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2048. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2049. s2.SetLength(0);
  2050. schema.Write(s2);
  2051. if ((s1.Length == s2.Length)) {
  2052. s1.Position = 0;
  2053. s2.Position = 0;
  2054. for (; ((s1.Position != s1.Length)
  2055. && (s1.ReadByte() == s2.ReadByte())); ) {
  2056. ;
  2057. }
  2058. if ((s1.Position == s1.Length)) {
  2059. return type;
  2060. }
  2061. }
  2062. }
  2063. }
  2064. finally {
  2065. if ((s1 != null)) {
  2066. s1.Close();
  2067. }
  2068. if ((s2 != null)) {
  2069. s2.Close();
  2070. }
  2071. }
  2072. }
  2073. xs.Add(dsSchema);
  2074. return type;
  2075. }
  2076. }
  2077. /// <summary>
  2078. ///Represents the strongly named DataTable class.
  2079. ///</summary>
  2080. [global::System.Serializable()]
  2081. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2082. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  2083. private global::System.Data.DataColumn columnID;
  2084. private global::System.Data.DataColumn columnTitle;
  2085. private global::System.Data.DataColumn columnCost;
  2086. private global::System.Data.DataColumn columnDescription;
  2087. private global::System.Data.DataColumn columnMainImagePath;
  2088. private global::System.Data.DataColumn columnIsActive;
  2089. private global::System.Data.DataColumn columnManufacturerID;
  2090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2092. public ProductDataTable() {
  2093. this.TableName = "Product";
  2094. this.BeginInit();
  2095. this.InitClass();
  2096. this.EndInit();
  2097. }
  2098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2100. internal ProductDataTable(global::System.Data.DataTable table) {
  2101. this.TableName = table.TableName;
  2102. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2103. this.CaseSensitive = table.CaseSensitive;
  2104. }
  2105. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2106. this.Locale = table.Locale;
  2107. }
  2108. if ((table.Namespace != table.DataSet.Namespace)) {
  2109. this.Namespace = table.Namespace;
  2110. }
  2111. this.Prefix = table.Prefix;
  2112. this.MinimumCapacity = table.MinimumCapacity;
  2113. }
  2114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2116. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2117. base(info, context) {
  2118. this.InitVars();
  2119. }
  2120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2122. public global::System.Data.DataColumn IDColumn {
  2123. get {
  2124. return this.columnID;
  2125. }
  2126. }
  2127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2129. public global::System.Data.DataColumn TitleColumn {
  2130. get {
  2131. return this.columnTitle;
  2132. }
  2133. }
  2134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2136. public global::System.Data.DataColumn CostColumn {
  2137. get {
  2138. return this.columnCost;
  2139. }
  2140. }
  2141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2143. public global::System.Data.DataColumn DescriptionColumn {
  2144. get {
  2145. return this.columnDescription;
  2146. }
  2147. }
  2148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2150. public global::System.Data.DataColumn MainImagePathColumn {
  2151. get {
  2152. return this.columnMainImagePath;
  2153. }
  2154. }
  2155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2157. public global::System.Data.DataColumn IsActiveColumn {
  2158. get {
  2159. return this.columnIsActive;
  2160. }
  2161. }
  2162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2164. public global::System.Data.DataColumn ManufacturerIDColumn {
  2165. get {
  2166. return this.columnManufacturerID;
  2167. }
  2168. }
  2169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2171. [global::System.ComponentModel.Browsable(false)]
  2172. public int Count {
  2173. get {
  2174. return this.Rows.Count;
  2175. }
  2176. }
  2177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2179. public ProductRow this[int index] {
  2180. get {
  2181. return ((ProductRow)(this.Rows[index]));
  2182. }
  2183. }
  2184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2185. public event ProductRowChangeEventHandler ProductRowChanging;
  2186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2187. public event ProductRowChangeEventHandler ProductRowChanged;
  2188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2189. public event ProductRowChangeEventHandler ProductRowDeleting;
  2190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2191. public event ProductRowChangeEventHandler ProductRowDeleted;
  2192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2194. public void AddProductRow(ProductRow row) {
  2195. this.Rows.Add(row);
  2196. }
  2197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2199. public ProductRow AddProductRow(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, ManufacturerRow parentManufacturerRowByFK_Product_Manufacturer) {
  2200. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  2201. object[] columnValuesArray = new object[] {
  2202. null,
  2203. Title,
  2204. Cost,
  2205. Description,
  2206. MainImagePath,
  2207. IsActive,
  2208. null};
  2209. if ((parentManufacturerRowByFK_Product_Manufacturer != null)) {
  2210. columnValuesArray[6] = parentManufacturerRowByFK_Product_Manufacturer[0];
  2211. }
  2212. rowProductRow.ItemArray = columnValuesArray;
  2213. this.Rows.Add(rowProductRow);
  2214. return rowProductRow;
  2215. }
  2216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2218. public ProductRow FindByID(int ID) {
  2219. return ((ProductRow)(this.Rows.Find(new object[] {
  2220. ID})));
  2221. }
  2222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2224. public override global::System.Data.DataTable Clone() {
  2225. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  2226. cln.InitVars();
  2227. return cln;
  2228. }
  2229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2231. protected override global::System.Data.DataTable CreateInstance() {
  2232. return new ProductDataTable();
  2233. }
  2234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2236. internal void InitVars() {
  2237. this.columnID = base.Columns["ID"];
  2238. this.columnTitle = base.Columns["Title"];
  2239. this.columnCost = base.Columns["Cost"];
  2240. this.columnDescription = base.Columns["Description"];
  2241. this.columnMainImagePath = base.Columns["MainImagePath"];
  2242. this.columnIsActive = base.Columns["IsActive"];
  2243. this.columnManufacturerID = base.Columns["ManufacturerID"];
  2244. }
  2245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2247. private void InitClass() {
  2248. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2249. base.Columns.Add(this.columnID);
  2250. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2251. base.Columns.Add(this.columnTitle);
  2252. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2253. base.Columns.Add(this.columnCost);
  2254. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  2255. base.Columns.Add(this.columnDescription);
  2256. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  2257. base.Columns.Add(this.columnMainImagePath);
  2258. this.columnIsActive = new global::System.Data.DataColumn("IsActive", typeof(bool), null, global::System.Data.MappingType.Element);
  2259. base.Columns.Add(this.columnIsActive);
  2260. this.columnManufacturerID = new global::System.Data.DataColumn("ManufacturerID", typeof(int), null, global::System.Data.MappingType.Element);
  2261. base.Columns.Add(this.columnManufacturerID);
  2262. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2263. this.columnID}, true));
  2264. this.columnID.AutoIncrement = true;
  2265. this.columnID.AutoIncrementSeed = -1;
  2266. this.columnID.AutoIncrementStep = -1;
  2267. this.columnID.AllowDBNull = false;
  2268. this.columnID.ReadOnly = true;
  2269. this.columnID.Unique = true;
  2270. this.columnTitle.AllowDBNull = false;
  2271. this.columnTitle.MaxLength = 100;
  2272. this.columnCost.AllowDBNull = false;
  2273. this.columnDescription.MaxLength = 2147483647;
  2274. this.columnMainImagePath.MaxLength = 1000;
  2275. this.columnIsActive.AllowDBNull = false;
  2276. }
  2277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2279. public ProductRow NewProductRow() {
  2280. return ((ProductRow)(this.NewRow()));
  2281. }
  2282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2284. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2285. return new ProductRow(builder);
  2286. }
  2287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2289. protected override global::System.Type GetRowType() {
  2290. return typeof(ProductRow);
  2291. }
  2292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2294. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2295. base.OnRowChanged(e);
  2296. if ((this.ProductRowChanged != null)) {
  2297. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2298. }
  2299. }
  2300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2302. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2303. base.OnRowChanging(e);
  2304. if ((this.ProductRowChanging != null)) {
  2305. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2306. }
  2307. }
  2308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2310. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2311. base.OnRowDeleted(e);
  2312. if ((this.ProductRowDeleted != null)) {
  2313. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2314. }
  2315. }
  2316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2318. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2319. base.OnRowDeleting(e);
  2320. if ((this.ProductRowDeleting != null)) {
  2321. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2322. }
  2323. }
  2324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2326. public void RemoveProductRow(ProductRow row) {
  2327. this.Rows.Remove(row);
  2328. }
  2329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2331. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2332. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2333. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2334. _02TradeDataSet ds = new _02TradeDataSet();
  2335. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2336. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2337. any1.MinOccurs = new decimal(0);
  2338. any1.MaxOccurs = decimal.MaxValue;
  2339. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2340. sequence.Items.Add(any1);
  2341. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2342. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2343. any2.MinOccurs = new decimal(1);
  2344. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2345. sequence.Items.Add(any2);
  2346. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2347. attribute1.Name = "namespace";
  2348. attribute1.FixedValue = ds.Namespace;
  2349. type.Attributes.Add(attribute1);
  2350. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2351. attribute2.Name = "tableTypeName";
  2352. attribute2.FixedValue = "ProductDataTable";
  2353. type.Attributes.Add(attribute2);
  2354. type.Particle = sequence;
  2355. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2356. if (xs.Contains(dsSchema.TargetNamespace)) {
  2357. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2358. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2359. try {
  2360. global::System.Xml.Schema.XmlSchema schema = null;
  2361. dsSchema.Write(s1);
  2362. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2363. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2364. s2.SetLength(0);
  2365. schema.Write(s2);
  2366. if ((s1.Length == s2.Length)) {
  2367. s1.Position = 0;
  2368. s2.Position = 0;
  2369. for (; ((s1.Position != s1.Length)
  2370. && (s1.ReadByte() == s2.ReadByte())); ) {
  2371. ;
  2372. }
  2373. if ((s1.Position == s1.Length)) {
  2374. return type;
  2375. }
  2376. }
  2377. }
  2378. }
  2379. finally {
  2380. if ((s1 != null)) {
  2381. s1.Close();
  2382. }
  2383. if ((s2 != null)) {
  2384. s2.Close();
  2385. }
  2386. }
  2387. }
  2388. xs.Add(dsSchema);
  2389. return type;
  2390. }
  2391. }
  2392. /// <summary>
  2393. ///Represents the strongly named DataTable class.
  2394. ///</summary>
  2395. [global::System.Serializable()]
  2396. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2397. public partial class ProductPhotoDataTable : global::System.Data.TypedTableBase<ProductPhotoRow> {
  2398. private global::System.Data.DataColumn columnID;
  2399. private global::System.Data.DataColumn columnProductID;
  2400. private global::System.Data.DataColumn columnPhotoPath;
  2401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2403. public ProductPhotoDataTable() {
  2404. this.TableName = "ProductPhoto";
  2405. this.BeginInit();
  2406. this.InitClass();
  2407. this.EndInit();
  2408. }
  2409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2411. internal ProductPhotoDataTable(global::System.Data.DataTable table) {
  2412. this.TableName = table.TableName;
  2413. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2414. this.CaseSensitive = table.CaseSensitive;
  2415. }
  2416. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2417. this.Locale = table.Locale;
  2418. }
  2419. if ((table.Namespace != table.DataSet.Namespace)) {
  2420. this.Namespace = table.Namespace;
  2421. }
  2422. this.Prefix = table.Prefix;
  2423. this.MinimumCapacity = table.MinimumCapacity;
  2424. }
  2425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2427. protected ProductPhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2428. base(info, context) {
  2429. this.InitVars();
  2430. }
  2431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2433. public global::System.Data.DataColumn IDColumn {
  2434. get {
  2435. return this.columnID;
  2436. }
  2437. }
  2438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2440. public global::System.Data.DataColumn ProductIDColumn {
  2441. get {
  2442. return this.columnProductID;
  2443. }
  2444. }
  2445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2447. public global::System.Data.DataColumn PhotoPathColumn {
  2448. get {
  2449. return this.columnPhotoPath;
  2450. }
  2451. }
  2452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2454. [global::System.ComponentModel.Browsable(false)]
  2455. public int Count {
  2456. get {
  2457. return this.Rows.Count;
  2458. }
  2459. }
  2460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2462. public ProductPhotoRow this[int index] {
  2463. get {
  2464. return ((ProductPhotoRow)(this.Rows[index]));
  2465. }
  2466. }
  2467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2468. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanging;
  2469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2470. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanged;
  2471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2472. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleting;
  2473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2474. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleted;
  2475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2477. public void AddProductPhotoRow(ProductPhotoRow row) {
  2478. this.Rows.Add(row);
  2479. }
  2480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2482. public ProductPhotoRow AddProductPhotoRow(ProductRow parentProductRowByFK_ProductPhoto_Product, string PhotoPath) {
  2483. ProductPhotoRow rowProductPhotoRow = ((ProductPhotoRow)(this.NewRow()));
  2484. object[] columnValuesArray = new object[] {
  2485. null,
  2486. null,
  2487. PhotoPath};
  2488. if ((parentProductRowByFK_ProductPhoto_Product != null)) {
  2489. columnValuesArray[1] = parentProductRowByFK_ProductPhoto_Product[0];
  2490. }
  2491. rowProductPhotoRow.ItemArray = columnValuesArray;
  2492. this.Rows.Add(rowProductPhotoRow);
  2493. return rowProductPhotoRow;
  2494. }
  2495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2497. public ProductPhotoRow FindByID(int ID) {
  2498. return ((ProductPhotoRow)(this.Rows.Find(new object[] {
  2499. ID})));
  2500. }
  2501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2503. public override global::System.Data.DataTable Clone() {
  2504. ProductPhotoDataTable cln = ((ProductPhotoDataTable)(base.Clone()));
  2505. cln.InitVars();
  2506. return cln;
  2507. }
  2508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2510. protected override global::System.Data.DataTable CreateInstance() {
  2511. return new ProductPhotoDataTable();
  2512. }
  2513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2515. internal void InitVars() {
  2516. this.columnID = base.Columns["ID"];
  2517. this.columnProductID = base.Columns["ProductID"];
  2518. this.columnPhotoPath = base.Columns["PhotoPath"];
  2519. }
  2520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2522. private void InitClass() {
  2523. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2524. base.Columns.Add(this.columnID);
  2525. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  2526. base.Columns.Add(this.columnProductID);
  2527. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  2528. base.Columns.Add(this.columnPhotoPath);
  2529. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2530. this.columnID}, true));
  2531. this.columnID.AutoIncrement = true;
  2532. this.columnID.AutoIncrementSeed = -1;
  2533. this.columnID.AutoIncrementStep = -1;
  2534. this.columnID.AllowDBNull = false;
  2535. this.columnID.ReadOnly = true;
  2536. this.columnID.Unique = true;
  2537. this.columnProductID.AllowDBNull = false;
  2538. this.columnPhotoPath.AllowDBNull = false;
  2539. this.columnPhotoPath.MaxLength = 1000;
  2540. }
  2541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2543. public ProductPhotoRow NewProductPhotoRow() {
  2544. return ((ProductPhotoRow)(this.NewRow()));
  2545. }
  2546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2548. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2549. return new ProductPhotoRow(builder);
  2550. }
  2551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2553. protected override global::System.Type GetRowType() {
  2554. return typeof(ProductPhotoRow);
  2555. }
  2556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2558. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2559. base.OnRowChanged(e);
  2560. if ((this.ProductPhotoRowChanged != null)) {
  2561. this.ProductPhotoRowChanged(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2562. }
  2563. }
  2564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2566. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2567. base.OnRowChanging(e);
  2568. if ((this.ProductPhotoRowChanging != null)) {
  2569. this.ProductPhotoRowChanging(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2570. }
  2571. }
  2572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2574. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2575. base.OnRowDeleted(e);
  2576. if ((this.ProductPhotoRowDeleted != null)) {
  2577. this.ProductPhotoRowDeleted(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2578. }
  2579. }
  2580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2582. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2583. base.OnRowDeleting(e);
  2584. if ((this.ProductPhotoRowDeleting != null)) {
  2585. this.ProductPhotoRowDeleting(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2586. }
  2587. }
  2588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2590. public void RemoveProductPhotoRow(ProductPhotoRow row) {
  2591. this.Rows.Remove(row);
  2592. }
  2593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2595. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2596. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2597. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2598. _02TradeDataSet ds = new _02TradeDataSet();
  2599. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2600. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2601. any1.MinOccurs = new decimal(0);
  2602. any1.MaxOccurs = decimal.MaxValue;
  2603. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2604. sequence.Items.Add(any1);
  2605. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2606. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2607. any2.MinOccurs = new decimal(1);
  2608. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2609. sequence.Items.Add(any2);
  2610. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2611. attribute1.Name = "namespace";
  2612. attribute1.FixedValue = ds.Namespace;
  2613. type.Attributes.Add(attribute1);
  2614. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2615. attribute2.Name = "tableTypeName";
  2616. attribute2.FixedValue = "ProductPhotoDataTable";
  2617. type.Attributes.Add(attribute2);
  2618. type.Particle = sequence;
  2619. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2620. if (xs.Contains(dsSchema.TargetNamespace)) {
  2621. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2622. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2623. try {
  2624. global::System.Xml.Schema.XmlSchema schema = null;
  2625. dsSchema.Write(s1);
  2626. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2627. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2628. s2.SetLength(0);
  2629. schema.Write(s2);
  2630. if ((s1.Length == s2.Length)) {
  2631. s1.Position = 0;
  2632. s2.Position = 0;
  2633. for (; ((s1.Position != s1.Length)
  2634. && (s1.ReadByte() == s2.ReadByte())); ) {
  2635. ;
  2636. }
  2637. if ((s1.Position == s1.Length)) {
  2638. return type;
  2639. }
  2640. }
  2641. }
  2642. }
  2643. finally {
  2644. if ((s1 != null)) {
  2645. s1.Close();
  2646. }
  2647. if ((s2 != null)) {
  2648. s2.Close();
  2649. }
  2650. }
  2651. }
  2652. xs.Add(dsSchema);
  2653. return type;
  2654. }
  2655. }
  2656. /// <summary>
  2657. ///Represents the strongly named DataTable class.
  2658. ///</summary>
  2659. [global::System.Serializable()]
  2660. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2661. public partial class ProductSaleDataTable : global::System.Data.TypedTableBase<ProductSaleRow> {
  2662. private global::System.Data.DataColumn columnID;
  2663. private global::System.Data.DataColumn columnSaleDate;
  2664. private global::System.Data.DataColumn columnProductID;
  2665. private global::System.Data.DataColumn columnQuantity;
  2666. private global::System.Data.DataColumn columnClientServiceID;
  2667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2669. public ProductSaleDataTable() {
  2670. this.TableName = "ProductSale";
  2671. this.BeginInit();
  2672. this.InitClass();
  2673. this.EndInit();
  2674. }
  2675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2677. internal ProductSaleDataTable(global::System.Data.DataTable table) {
  2678. this.TableName = table.TableName;
  2679. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2680. this.CaseSensitive = table.CaseSensitive;
  2681. }
  2682. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2683. this.Locale = table.Locale;
  2684. }
  2685. if ((table.Namespace != table.DataSet.Namespace)) {
  2686. this.Namespace = table.Namespace;
  2687. }
  2688. this.Prefix = table.Prefix;
  2689. this.MinimumCapacity = table.MinimumCapacity;
  2690. }
  2691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2693. protected ProductSaleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2694. base(info, context) {
  2695. this.InitVars();
  2696. }
  2697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2699. public global::System.Data.DataColumn IDColumn {
  2700. get {
  2701. return this.columnID;
  2702. }
  2703. }
  2704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2706. public global::System.Data.DataColumn SaleDateColumn {
  2707. get {
  2708. return this.columnSaleDate;
  2709. }
  2710. }
  2711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2713. public global::System.Data.DataColumn ProductIDColumn {
  2714. get {
  2715. return this.columnProductID;
  2716. }
  2717. }
  2718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2720. public global::System.Data.DataColumn QuantityColumn {
  2721. get {
  2722. return this.columnQuantity;
  2723. }
  2724. }
  2725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2727. public global::System.Data.DataColumn ClientServiceIDColumn {
  2728. get {
  2729. return this.columnClientServiceID;
  2730. }
  2731. }
  2732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2734. [global::System.ComponentModel.Browsable(false)]
  2735. public int Count {
  2736. get {
  2737. return this.Rows.Count;
  2738. }
  2739. }
  2740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2742. public ProductSaleRow this[int index] {
  2743. get {
  2744. return ((ProductSaleRow)(this.Rows[index]));
  2745. }
  2746. }
  2747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2748. public event ProductSaleRowChangeEventHandler ProductSaleRowChanging;
  2749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2750. public event ProductSaleRowChangeEventHandler ProductSaleRowChanged;
  2751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2752. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleting;
  2753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2754. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleted;
  2755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2757. public void AddProductSaleRow(ProductSaleRow row) {
  2758. this.Rows.Add(row);
  2759. }
  2760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2762. public ProductSaleRow AddProductSaleRow(System.DateTime SaleDate, ProductRow parentProductRowByFK_ProductSale_Product, int Quantity, ClientServiceRow parentClientServiceRowByFK_ProductSale_ClientService) {
  2763. ProductSaleRow rowProductSaleRow = ((ProductSaleRow)(this.NewRow()));
  2764. object[] columnValuesArray = new object[] {
  2765. null,
  2766. SaleDate,
  2767. null,
  2768. Quantity,
  2769. null};
  2770. if ((parentProductRowByFK_ProductSale_Product != null)) {
  2771. columnValuesArray[2] = parentProductRowByFK_ProductSale_Product[0];
  2772. }
  2773. if ((parentClientServiceRowByFK_ProductSale_ClientService != null)) {
  2774. columnValuesArray[4] = parentClientServiceRowByFK_ProductSale_ClientService[0];
  2775. }
  2776. rowProductSaleRow.ItemArray = columnValuesArray;
  2777. this.Rows.Add(rowProductSaleRow);
  2778. return rowProductSaleRow;
  2779. }
  2780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2782. public ProductSaleRow FindByID(int ID) {
  2783. return ((ProductSaleRow)(this.Rows.Find(new object[] {
  2784. ID})));
  2785. }
  2786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2788. public override global::System.Data.DataTable Clone() {
  2789. ProductSaleDataTable cln = ((ProductSaleDataTable)(base.Clone()));
  2790. cln.InitVars();
  2791. return cln;
  2792. }
  2793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2795. protected override global::System.Data.DataTable CreateInstance() {
  2796. return new ProductSaleDataTable();
  2797. }
  2798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2800. internal void InitVars() {
  2801. this.columnID = base.Columns["ID"];
  2802. this.columnSaleDate = base.Columns["SaleDate"];
  2803. this.columnProductID = base.Columns["ProductID"];
  2804. this.columnQuantity = base.Columns["Quantity"];
  2805. this.columnClientServiceID = base.Columns["ClientServiceID"];
  2806. }
  2807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2809. private void InitClass() {
  2810. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2811. base.Columns.Add(this.columnID);
  2812. this.columnSaleDate = new global::System.Data.DataColumn("SaleDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2813. base.Columns.Add(this.columnSaleDate);
  2814. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  2815. base.Columns.Add(this.columnProductID);
  2816. this.columnQuantity = new global::System.Data.DataColumn("Quantity", typeof(int), null, global::System.Data.MappingType.Element);
  2817. base.Columns.Add(this.columnQuantity);
  2818. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  2819. base.Columns.Add(this.columnClientServiceID);
  2820. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2821. this.columnID}, true));
  2822. this.columnID.AutoIncrement = true;
  2823. this.columnID.AutoIncrementSeed = -1;
  2824. this.columnID.AutoIncrementStep = -1;
  2825. this.columnID.AllowDBNull = false;
  2826. this.columnID.ReadOnly = true;
  2827. this.columnID.Unique = true;
  2828. this.columnSaleDate.AllowDBNull = false;
  2829. this.columnProductID.AllowDBNull = false;
  2830. this.columnQuantity.AllowDBNull = false;
  2831. }
  2832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2834. public ProductSaleRow NewProductSaleRow() {
  2835. return ((ProductSaleRow)(this.NewRow()));
  2836. }
  2837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2839. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2840. return new ProductSaleRow(builder);
  2841. }
  2842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2844. protected override global::System.Type GetRowType() {
  2845. return typeof(ProductSaleRow);
  2846. }
  2847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2849. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2850. base.OnRowChanged(e);
  2851. if ((this.ProductSaleRowChanged != null)) {
  2852. this.ProductSaleRowChanged(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  2853. }
  2854. }
  2855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2857. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2858. base.OnRowChanging(e);
  2859. if ((this.ProductSaleRowChanging != null)) {
  2860. this.ProductSaleRowChanging(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  2861. }
  2862. }
  2863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2865. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2866. base.OnRowDeleted(e);
  2867. if ((this.ProductSaleRowDeleted != null)) {
  2868. this.ProductSaleRowDeleted(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  2869. }
  2870. }
  2871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2873. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2874. base.OnRowDeleting(e);
  2875. if ((this.ProductSaleRowDeleting != null)) {
  2876. this.ProductSaleRowDeleting(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  2877. }
  2878. }
  2879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2881. public void RemoveProductSaleRow(ProductSaleRow row) {
  2882. this.Rows.Remove(row);
  2883. }
  2884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2886. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2887. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2888. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2889. _02TradeDataSet ds = new _02TradeDataSet();
  2890. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2891. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2892. any1.MinOccurs = new decimal(0);
  2893. any1.MaxOccurs = decimal.MaxValue;
  2894. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2895. sequence.Items.Add(any1);
  2896. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2897. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2898. any2.MinOccurs = new decimal(1);
  2899. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2900. sequence.Items.Add(any2);
  2901. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2902. attribute1.Name = "namespace";
  2903. attribute1.FixedValue = ds.Namespace;
  2904. type.Attributes.Add(attribute1);
  2905. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2906. attribute2.Name = "tableTypeName";
  2907. attribute2.FixedValue = "ProductSaleDataTable";
  2908. type.Attributes.Add(attribute2);
  2909. type.Particle = sequence;
  2910. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2911. if (xs.Contains(dsSchema.TargetNamespace)) {
  2912. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2913. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2914. try {
  2915. global::System.Xml.Schema.XmlSchema schema = null;
  2916. dsSchema.Write(s1);
  2917. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2918. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2919. s2.SetLength(0);
  2920. schema.Write(s2);
  2921. if ((s1.Length == s2.Length)) {
  2922. s1.Position = 0;
  2923. s2.Position = 0;
  2924. for (; ((s1.Position != s1.Length)
  2925. && (s1.ReadByte() == s2.ReadByte())); ) {
  2926. ;
  2927. }
  2928. if ((s1.Position == s1.Length)) {
  2929. return type;
  2930. }
  2931. }
  2932. }
  2933. }
  2934. finally {
  2935. if ((s1 != null)) {
  2936. s1.Close();
  2937. }
  2938. if ((s2 != null)) {
  2939. s2.Close();
  2940. }
  2941. }
  2942. }
  2943. xs.Add(dsSchema);
  2944. return type;
  2945. }
  2946. }
  2947. /// <summary>
  2948. ///Represents the strongly named DataTable class.
  2949. ///</summary>
  2950. [global::System.Serializable()]
  2951. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2952. public partial class ServiceDataTable : global::System.Data.TypedTableBase<ServiceRow> {
  2953. private global::System.Data.DataColumn columnID;
  2954. private global::System.Data.DataColumn columnTitle;
  2955. private global::System.Data.DataColumn columnCost;
  2956. private global::System.Data.DataColumn columnDurationInSeconds;
  2957. private global::System.Data.DataColumn columnDescription;
  2958. private global::System.Data.DataColumn columnDiscount;
  2959. private global::System.Data.DataColumn columnMainImagePath;
  2960. private global::System.Data.DataColumn columnPhotoPhormat;
  2961. private global::System.Data.DataColumn columnServicePhoto;
  2962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2964. public ServiceDataTable() {
  2965. this.TableName = "Service";
  2966. this.BeginInit();
  2967. this.InitClass();
  2968. this.EndInit();
  2969. }
  2970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2972. internal ServiceDataTable(global::System.Data.DataTable table) {
  2973. this.TableName = table.TableName;
  2974. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2975. this.CaseSensitive = table.CaseSensitive;
  2976. }
  2977. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2978. this.Locale = table.Locale;
  2979. }
  2980. if ((table.Namespace != table.DataSet.Namespace)) {
  2981. this.Namespace = table.Namespace;
  2982. }
  2983. this.Prefix = table.Prefix;
  2984. this.MinimumCapacity = table.MinimumCapacity;
  2985. }
  2986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2988. protected ServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2989. base(info, context) {
  2990. this.InitVars();
  2991. }
  2992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2994. public global::System.Data.DataColumn IDColumn {
  2995. get {
  2996. return this.columnID;
  2997. }
  2998. }
  2999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3001. public global::System.Data.DataColumn TitleColumn {
  3002. get {
  3003. return this.columnTitle;
  3004. }
  3005. }
  3006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3008. public global::System.Data.DataColumn CostColumn {
  3009. get {
  3010. return this.columnCost;
  3011. }
  3012. }
  3013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3015. public global::System.Data.DataColumn DurationInSecondsColumn {
  3016. get {
  3017. return this.columnDurationInSeconds;
  3018. }
  3019. }
  3020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3022. public global::System.Data.DataColumn DescriptionColumn {
  3023. get {
  3024. return this.columnDescription;
  3025. }
  3026. }
  3027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3029. public global::System.Data.DataColumn DiscountColumn {
  3030. get {
  3031. return this.columnDiscount;
  3032. }
  3033. }
  3034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3036. public global::System.Data.DataColumn MainImagePathColumn {
  3037. get {
  3038. return this.columnMainImagePath;
  3039. }
  3040. }
  3041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3043. public global::System.Data.DataColumn PhotoPhormatColumn {
  3044. get {
  3045. return this.columnPhotoPhormat;
  3046. }
  3047. }
  3048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3050. public global::System.Data.DataColumn ServicePhotoColumn {
  3051. get {
  3052. return this.columnServicePhoto;
  3053. }
  3054. }
  3055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3057. [global::System.ComponentModel.Browsable(false)]
  3058. public int Count {
  3059. get {
  3060. return this.Rows.Count;
  3061. }
  3062. }
  3063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3065. public ServiceRow this[int index] {
  3066. get {
  3067. return ((ServiceRow)(this.Rows[index]));
  3068. }
  3069. }
  3070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3071. public event ServiceRowChangeEventHandler ServiceRowChanging;
  3072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3073. public event ServiceRowChangeEventHandler ServiceRowChanged;
  3074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3075. public event ServiceRowChangeEventHandler ServiceRowDeleting;
  3076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3077. public event ServiceRowChangeEventHandler ServiceRowDeleted;
  3078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3080. public void AddServiceRow(ServiceRow row) {
  3081. this.Rows.Add(row);
  3082. }
  3083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3085. public ServiceRow AddServiceRow(string Title, decimal Cost, int DurationInSeconds, string Description, double Discount, string MainImagePath, string PhotoPhormat, byte[] ServicePhoto) {
  3086. ServiceRow rowServiceRow = ((ServiceRow)(this.NewRow()));
  3087. object[] columnValuesArray = new object[] {
  3088. null,
  3089. Title,
  3090. Cost,
  3091. DurationInSeconds,
  3092. Description,
  3093. Discount,
  3094. MainImagePath,
  3095. PhotoPhormat,
  3096. ServicePhoto};
  3097. rowServiceRow.ItemArray = columnValuesArray;
  3098. this.Rows.Add(rowServiceRow);
  3099. return rowServiceRow;
  3100. }
  3101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3103. public ServiceRow FindByID(int ID) {
  3104. return ((ServiceRow)(this.Rows.Find(new object[] {
  3105. ID})));
  3106. }
  3107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3109. public override global::System.Data.DataTable Clone() {
  3110. ServiceDataTable cln = ((ServiceDataTable)(base.Clone()));
  3111. cln.InitVars();
  3112. return cln;
  3113. }
  3114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3116. protected override global::System.Data.DataTable CreateInstance() {
  3117. return new ServiceDataTable();
  3118. }
  3119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3121. internal void InitVars() {
  3122. this.columnID = base.Columns["ID"];
  3123. this.columnTitle = base.Columns["Title"];
  3124. this.columnCost = base.Columns["Cost"];
  3125. this.columnDurationInSeconds = base.Columns["DurationInSeconds"];
  3126. this.columnDescription = base.Columns["Description"];
  3127. this.columnDiscount = base.Columns["Discount"];
  3128. this.columnMainImagePath = base.Columns["MainImagePath"];
  3129. this.columnPhotoPhormat = base.Columns["PhotoPhormat"];
  3130. this.columnServicePhoto = base.Columns["ServicePhoto"];
  3131. }
  3132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3134. private void InitClass() {
  3135. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3136. base.Columns.Add(this.columnID);
  3137. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3138. base.Columns.Add(this.columnTitle);
  3139. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  3140. base.Columns.Add(this.columnCost);
  3141. this.columnDurationInSeconds = new global::System.Data.DataColumn("DurationInSeconds", typeof(int), null, global::System.Data.MappingType.Element);
  3142. base.Columns.Add(this.columnDurationInSeconds);
  3143. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  3144. base.Columns.Add(this.columnDescription);
  3145. this.columnDiscount = new global::System.Data.DataColumn("Discount", typeof(double), null, global::System.Data.MappingType.Element);
  3146. base.Columns.Add(this.columnDiscount);
  3147. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  3148. base.Columns.Add(this.columnMainImagePath);
  3149. this.columnPhotoPhormat = new global::System.Data.DataColumn("PhotoPhormat", typeof(string), null, global::System.Data.MappingType.Element);
  3150. base.Columns.Add(this.columnPhotoPhormat);
  3151. this.columnServicePhoto = new global::System.Data.DataColumn("ServicePhoto", typeof(byte[]), null, global::System.Data.MappingType.Element);
  3152. base.Columns.Add(this.columnServicePhoto);
  3153. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3154. this.columnID}, true));
  3155. this.columnID.AutoIncrement = true;
  3156. this.columnID.AutoIncrementSeed = -1;
  3157. this.columnID.AutoIncrementStep = -1;
  3158. this.columnID.AllowDBNull = false;
  3159. this.columnID.ReadOnly = true;
  3160. this.columnID.Unique = true;
  3161. this.columnTitle.AllowDBNull = false;
  3162. this.columnTitle.MaxLength = 100;
  3163. this.columnCost.AllowDBNull = false;
  3164. this.columnDurationInSeconds.AllowDBNull = false;
  3165. this.columnDescription.MaxLength = 2147483647;
  3166. this.columnMainImagePath.MaxLength = 1000;
  3167. this.columnPhotoPhormat.MaxLength = 2147483647;
  3168. }
  3169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3171. public ServiceRow NewServiceRow() {
  3172. return ((ServiceRow)(this.NewRow()));
  3173. }
  3174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3176. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3177. return new ServiceRow(builder);
  3178. }
  3179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3181. protected override global::System.Type GetRowType() {
  3182. return typeof(ServiceRow);
  3183. }
  3184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3186. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3187. base.OnRowChanged(e);
  3188. if ((this.ServiceRowChanged != null)) {
  3189. this.ServiceRowChanged(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3190. }
  3191. }
  3192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3194. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3195. base.OnRowChanging(e);
  3196. if ((this.ServiceRowChanging != null)) {
  3197. this.ServiceRowChanging(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3198. }
  3199. }
  3200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3202. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3203. base.OnRowDeleted(e);
  3204. if ((this.ServiceRowDeleted != null)) {
  3205. this.ServiceRowDeleted(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3206. }
  3207. }
  3208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3210. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3211. base.OnRowDeleting(e);
  3212. if ((this.ServiceRowDeleting != null)) {
  3213. this.ServiceRowDeleting(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3214. }
  3215. }
  3216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3218. public void RemoveServiceRow(ServiceRow row) {
  3219. this.Rows.Remove(row);
  3220. }
  3221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3223. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3224. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3225. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3226. _02TradeDataSet ds = new _02TradeDataSet();
  3227. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3228. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3229. any1.MinOccurs = new decimal(0);
  3230. any1.MaxOccurs = decimal.MaxValue;
  3231. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3232. sequence.Items.Add(any1);
  3233. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3234. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3235. any2.MinOccurs = new decimal(1);
  3236. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3237. sequence.Items.Add(any2);
  3238. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3239. attribute1.Name = "namespace";
  3240. attribute1.FixedValue = ds.Namespace;
  3241. type.Attributes.Add(attribute1);
  3242. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3243. attribute2.Name = "tableTypeName";
  3244. attribute2.FixedValue = "ServiceDataTable";
  3245. type.Attributes.Add(attribute2);
  3246. type.Particle = sequence;
  3247. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3248. if (xs.Contains(dsSchema.TargetNamespace)) {
  3249. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3250. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3251. try {
  3252. global::System.Xml.Schema.XmlSchema schema = null;
  3253. dsSchema.Write(s1);
  3254. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3255. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3256. s2.SetLength(0);
  3257. schema.Write(s2);
  3258. if ((s1.Length == s2.Length)) {
  3259. s1.Position = 0;
  3260. s2.Position = 0;
  3261. for (; ((s1.Position != s1.Length)
  3262. && (s1.ReadByte() == s2.ReadByte())); ) {
  3263. ;
  3264. }
  3265. if ((s1.Position == s1.Length)) {
  3266. return type;
  3267. }
  3268. }
  3269. }
  3270. }
  3271. finally {
  3272. if ((s1 != null)) {
  3273. s1.Close();
  3274. }
  3275. if ((s2 != null)) {
  3276. s2.Close();
  3277. }
  3278. }
  3279. }
  3280. xs.Add(dsSchema);
  3281. return type;
  3282. }
  3283. }
  3284. /// <summary>
  3285. ///Represents the strongly named DataTable class.
  3286. ///</summary>
  3287. [global::System.Serializable()]
  3288. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3289. public partial class ServicePhotoDataTable : global::System.Data.TypedTableBase<ServicePhotoRow> {
  3290. private global::System.Data.DataColumn columnID;
  3291. private global::System.Data.DataColumn columnServiceID;
  3292. private global::System.Data.DataColumn columnPhotoPath;
  3293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3295. public ServicePhotoDataTable() {
  3296. this.TableName = "ServicePhoto";
  3297. this.BeginInit();
  3298. this.InitClass();
  3299. this.EndInit();
  3300. }
  3301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3303. internal ServicePhotoDataTable(global::System.Data.DataTable table) {
  3304. this.TableName = table.TableName;
  3305. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3306. this.CaseSensitive = table.CaseSensitive;
  3307. }
  3308. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3309. this.Locale = table.Locale;
  3310. }
  3311. if ((table.Namespace != table.DataSet.Namespace)) {
  3312. this.Namespace = table.Namespace;
  3313. }
  3314. this.Prefix = table.Prefix;
  3315. this.MinimumCapacity = table.MinimumCapacity;
  3316. }
  3317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3319. protected ServicePhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3320. base(info, context) {
  3321. this.InitVars();
  3322. }
  3323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3325. public global::System.Data.DataColumn IDColumn {
  3326. get {
  3327. return this.columnID;
  3328. }
  3329. }
  3330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3332. public global::System.Data.DataColumn ServiceIDColumn {
  3333. get {
  3334. return this.columnServiceID;
  3335. }
  3336. }
  3337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3339. public global::System.Data.DataColumn PhotoPathColumn {
  3340. get {
  3341. return this.columnPhotoPath;
  3342. }
  3343. }
  3344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3346. [global::System.ComponentModel.Browsable(false)]
  3347. public int Count {
  3348. get {
  3349. return this.Rows.Count;
  3350. }
  3351. }
  3352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3354. public ServicePhotoRow this[int index] {
  3355. get {
  3356. return ((ServicePhotoRow)(this.Rows[index]));
  3357. }
  3358. }
  3359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3360. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanging;
  3361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3362. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanged;
  3363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3364. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleting;
  3365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3366. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleted;
  3367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3369. public void AddServicePhotoRow(ServicePhotoRow row) {
  3370. this.Rows.Add(row);
  3371. }
  3372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3374. public ServicePhotoRow AddServicePhotoRow(ServiceRow parentServiceRowByFK_ServicePhoto_Service, string PhotoPath) {
  3375. ServicePhotoRow rowServicePhotoRow = ((ServicePhotoRow)(this.NewRow()));
  3376. object[] columnValuesArray = new object[] {
  3377. null,
  3378. null,
  3379. PhotoPath};
  3380. if ((parentServiceRowByFK_ServicePhoto_Service != null)) {
  3381. columnValuesArray[1] = parentServiceRowByFK_ServicePhoto_Service[0];
  3382. }
  3383. rowServicePhotoRow.ItemArray = columnValuesArray;
  3384. this.Rows.Add(rowServicePhotoRow);
  3385. return rowServicePhotoRow;
  3386. }
  3387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3389. public ServicePhotoRow FindByID(int ID) {
  3390. return ((ServicePhotoRow)(this.Rows.Find(new object[] {
  3391. ID})));
  3392. }
  3393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3395. public override global::System.Data.DataTable Clone() {
  3396. ServicePhotoDataTable cln = ((ServicePhotoDataTable)(base.Clone()));
  3397. cln.InitVars();
  3398. return cln;
  3399. }
  3400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3402. protected override global::System.Data.DataTable CreateInstance() {
  3403. return new ServicePhotoDataTable();
  3404. }
  3405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3407. internal void InitVars() {
  3408. this.columnID = base.Columns["ID"];
  3409. this.columnServiceID = base.Columns["ServiceID"];
  3410. this.columnPhotoPath = base.Columns["PhotoPath"];
  3411. }
  3412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3414. private void InitClass() {
  3415. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3416. base.Columns.Add(this.columnID);
  3417. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3418. base.Columns.Add(this.columnServiceID);
  3419. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  3420. base.Columns.Add(this.columnPhotoPath);
  3421. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3422. this.columnID}, true));
  3423. this.columnID.AutoIncrement = true;
  3424. this.columnID.AutoIncrementSeed = -1;
  3425. this.columnID.AutoIncrementStep = -1;
  3426. this.columnID.AllowDBNull = false;
  3427. this.columnID.ReadOnly = true;
  3428. this.columnID.Unique = true;
  3429. this.columnServiceID.AllowDBNull = false;
  3430. this.columnPhotoPath.AllowDBNull = false;
  3431. this.columnPhotoPath.MaxLength = 1000;
  3432. }
  3433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3435. public ServicePhotoRow NewServicePhotoRow() {
  3436. return ((ServicePhotoRow)(this.NewRow()));
  3437. }
  3438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3440. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3441. return new ServicePhotoRow(builder);
  3442. }
  3443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3445. protected override global::System.Type GetRowType() {
  3446. return typeof(ServicePhotoRow);
  3447. }
  3448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3450. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3451. base.OnRowChanged(e);
  3452. if ((this.ServicePhotoRowChanged != null)) {
  3453. this.ServicePhotoRowChanged(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3454. }
  3455. }
  3456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3458. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3459. base.OnRowChanging(e);
  3460. if ((this.ServicePhotoRowChanging != null)) {
  3461. this.ServicePhotoRowChanging(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3462. }
  3463. }
  3464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3466. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3467. base.OnRowDeleted(e);
  3468. if ((this.ServicePhotoRowDeleted != null)) {
  3469. this.ServicePhotoRowDeleted(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3470. }
  3471. }
  3472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3474. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3475. base.OnRowDeleting(e);
  3476. if ((this.ServicePhotoRowDeleting != null)) {
  3477. this.ServicePhotoRowDeleting(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3478. }
  3479. }
  3480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3482. public void RemoveServicePhotoRow(ServicePhotoRow row) {
  3483. this.Rows.Remove(row);
  3484. }
  3485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3487. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3488. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3489. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3490. _02TradeDataSet ds = new _02TradeDataSet();
  3491. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3492. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3493. any1.MinOccurs = new decimal(0);
  3494. any1.MaxOccurs = decimal.MaxValue;
  3495. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3496. sequence.Items.Add(any1);
  3497. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3498. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3499. any2.MinOccurs = new decimal(1);
  3500. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3501. sequence.Items.Add(any2);
  3502. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3503. attribute1.Name = "namespace";
  3504. attribute1.FixedValue = ds.Namespace;
  3505. type.Attributes.Add(attribute1);
  3506. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3507. attribute2.Name = "tableTypeName";
  3508. attribute2.FixedValue = "ServicePhotoDataTable";
  3509. type.Attributes.Add(attribute2);
  3510. type.Particle = sequence;
  3511. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3512. if (xs.Contains(dsSchema.TargetNamespace)) {
  3513. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3514. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3515. try {
  3516. global::System.Xml.Schema.XmlSchema schema = null;
  3517. dsSchema.Write(s1);
  3518. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3519. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3520. s2.SetLength(0);
  3521. schema.Write(s2);
  3522. if ((s1.Length == s2.Length)) {
  3523. s1.Position = 0;
  3524. s2.Position = 0;
  3525. for (; ((s1.Position != s1.Length)
  3526. && (s1.ReadByte() == s2.ReadByte())); ) {
  3527. ;
  3528. }
  3529. if ((s1.Position == s1.Length)) {
  3530. return type;
  3531. }
  3532. }
  3533. }
  3534. }
  3535. finally {
  3536. if ((s1 != null)) {
  3537. s1.Close();
  3538. }
  3539. if ((s2 != null)) {
  3540. s2.Close();
  3541. }
  3542. }
  3543. }
  3544. xs.Add(dsSchema);
  3545. return type;
  3546. }
  3547. }
  3548. /// <summary>
  3549. ///Represents the strongly named DataTable class.
  3550. ///</summary>
  3551. [global::System.Serializable()]
  3552. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3553. public partial class TagDataTable : global::System.Data.TypedTableBase<TagRow> {
  3554. private global::System.Data.DataColumn columnID;
  3555. private global::System.Data.DataColumn columnTitle;
  3556. private global::System.Data.DataColumn columnColor;
  3557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3559. public TagDataTable() {
  3560. this.TableName = "Tag";
  3561. this.BeginInit();
  3562. this.InitClass();
  3563. this.EndInit();
  3564. }
  3565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3567. internal TagDataTable(global::System.Data.DataTable table) {
  3568. this.TableName = table.TableName;
  3569. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3570. this.CaseSensitive = table.CaseSensitive;
  3571. }
  3572. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3573. this.Locale = table.Locale;
  3574. }
  3575. if ((table.Namespace != table.DataSet.Namespace)) {
  3576. this.Namespace = table.Namespace;
  3577. }
  3578. this.Prefix = table.Prefix;
  3579. this.MinimumCapacity = table.MinimumCapacity;
  3580. }
  3581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3583. protected TagDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3584. base(info, context) {
  3585. this.InitVars();
  3586. }
  3587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3589. public global::System.Data.DataColumn IDColumn {
  3590. get {
  3591. return this.columnID;
  3592. }
  3593. }
  3594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3596. public global::System.Data.DataColumn TitleColumn {
  3597. get {
  3598. return this.columnTitle;
  3599. }
  3600. }
  3601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3603. public global::System.Data.DataColumn ColorColumn {
  3604. get {
  3605. return this.columnColor;
  3606. }
  3607. }
  3608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3610. [global::System.ComponentModel.Browsable(false)]
  3611. public int Count {
  3612. get {
  3613. return this.Rows.Count;
  3614. }
  3615. }
  3616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3618. public TagRow this[int index] {
  3619. get {
  3620. return ((TagRow)(this.Rows[index]));
  3621. }
  3622. }
  3623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3624. public event TagRowChangeEventHandler TagRowChanging;
  3625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3626. public event TagRowChangeEventHandler TagRowChanged;
  3627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3628. public event TagRowChangeEventHandler TagRowDeleting;
  3629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3630. public event TagRowChangeEventHandler TagRowDeleted;
  3631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3633. public void AddTagRow(TagRow row) {
  3634. this.Rows.Add(row);
  3635. }
  3636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3638. public TagRow AddTagRow(string Title, string Color) {
  3639. TagRow rowTagRow = ((TagRow)(this.NewRow()));
  3640. object[] columnValuesArray = new object[] {
  3641. null,
  3642. Title,
  3643. Color};
  3644. rowTagRow.ItemArray = columnValuesArray;
  3645. this.Rows.Add(rowTagRow);
  3646. return rowTagRow;
  3647. }
  3648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3650. public TagRow FindByID(int ID) {
  3651. return ((TagRow)(this.Rows.Find(new object[] {
  3652. ID})));
  3653. }
  3654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3656. public override global::System.Data.DataTable Clone() {
  3657. TagDataTable cln = ((TagDataTable)(base.Clone()));
  3658. cln.InitVars();
  3659. return cln;
  3660. }
  3661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3663. protected override global::System.Data.DataTable CreateInstance() {
  3664. return new TagDataTable();
  3665. }
  3666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3668. internal void InitVars() {
  3669. this.columnID = base.Columns["ID"];
  3670. this.columnTitle = base.Columns["Title"];
  3671. this.columnColor = base.Columns["Color"];
  3672. }
  3673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3675. private void InitClass() {
  3676. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3677. base.Columns.Add(this.columnID);
  3678. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3679. base.Columns.Add(this.columnTitle);
  3680. this.columnColor = new global::System.Data.DataColumn("Color", typeof(string), null, global::System.Data.MappingType.Element);
  3681. base.Columns.Add(this.columnColor);
  3682. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3683. this.columnID}, true));
  3684. this.columnID.AutoIncrement = true;
  3685. this.columnID.AutoIncrementSeed = -1;
  3686. this.columnID.AutoIncrementStep = -1;
  3687. this.columnID.AllowDBNull = false;
  3688. this.columnID.ReadOnly = true;
  3689. this.columnID.Unique = true;
  3690. this.columnTitle.AllowDBNull = false;
  3691. this.columnTitle.MaxLength = 30;
  3692. this.columnColor.AllowDBNull = false;
  3693. this.columnColor.MaxLength = 6;
  3694. }
  3695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3697. public TagRow NewTagRow() {
  3698. return ((TagRow)(this.NewRow()));
  3699. }
  3700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3702. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3703. return new TagRow(builder);
  3704. }
  3705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3707. protected override global::System.Type GetRowType() {
  3708. return typeof(TagRow);
  3709. }
  3710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3712. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3713. base.OnRowChanged(e);
  3714. if ((this.TagRowChanged != null)) {
  3715. this.TagRowChanged(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3716. }
  3717. }
  3718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3720. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3721. base.OnRowChanging(e);
  3722. if ((this.TagRowChanging != null)) {
  3723. this.TagRowChanging(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3724. }
  3725. }
  3726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3728. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3729. base.OnRowDeleted(e);
  3730. if ((this.TagRowDeleted != null)) {
  3731. this.TagRowDeleted(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3732. }
  3733. }
  3734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3736. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3737. base.OnRowDeleting(e);
  3738. if ((this.TagRowDeleting != null)) {
  3739. this.TagRowDeleting(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3740. }
  3741. }
  3742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3744. public void RemoveTagRow(TagRow row) {
  3745. this.Rows.Remove(row);
  3746. }
  3747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3749. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3750. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3751. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3752. _02TradeDataSet ds = new _02TradeDataSet();
  3753. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3754. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3755. any1.MinOccurs = new decimal(0);
  3756. any1.MaxOccurs = decimal.MaxValue;
  3757. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3758. sequence.Items.Add(any1);
  3759. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3760. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3761. any2.MinOccurs = new decimal(1);
  3762. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3763. sequence.Items.Add(any2);
  3764. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3765. attribute1.Name = "namespace";
  3766. attribute1.FixedValue = ds.Namespace;
  3767. type.Attributes.Add(attribute1);
  3768. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3769. attribute2.Name = "tableTypeName";
  3770. attribute2.FixedValue = "TagDataTable";
  3771. type.Attributes.Add(attribute2);
  3772. type.Particle = sequence;
  3773. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3774. if (xs.Contains(dsSchema.TargetNamespace)) {
  3775. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3776. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3777. try {
  3778. global::System.Xml.Schema.XmlSchema schema = null;
  3779. dsSchema.Write(s1);
  3780. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3781. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3782. s2.SetLength(0);
  3783. schema.Write(s2);
  3784. if ((s1.Length == s2.Length)) {
  3785. s1.Position = 0;
  3786. s2.Position = 0;
  3787. for (; ((s1.Position != s1.Length)
  3788. && (s1.ReadByte() == s2.ReadByte())); ) {
  3789. ;
  3790. }
  3791. if ((s1.Position == s1.Length)) {
  3792. return type;
  3793. }
  3794. }
  3795. }
  3796. }
  3797. finally {
  3798. if ((s1 != null)) {
  3799. s1.Close();
  3800. }
  3801. if ((s2 != null)) {
  3802. s2.Close();
  3803. }
  3804. }
  3805. }
  3806. xs.Add(dsSchema);
  3807. return type;
  3808. }
  3809. }
  3810. /// <summary>
  3811. ///Represents the strongly named DataTable class.
  3812. ///</summary>
  3813. [global::System.Serializable()]
  3814. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3815. public partial class TagOfClientDataTable : global::System.Data.TypedTableBase<TagOfClientRow> {
  3816. private global::System.Data.DataColumn columnClientID;
  3817. private global::System.Data.DataColumn columnTagID;
  3818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3820. public TagOfClientDataTable() {
  3821. this.TableName = "TagOfClient";
  3822. this.BeginInit();
  3823. this.InitClass();
  3824. this.EndInit();
  3825. }
  3826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3828. internal TagOfClientDataTable(global::System.Data.DataTable table) {
  3829. this.TableName = table.TableName;
  3830. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3831. this.CaseSensitive = table.CaseSensitive;
  3832. }
  3833. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3834. this.Locale = table.Locale;
  3835. }
  3836. if ((table.Namespace != table.DataSet.Namespace)) {
  3837. this.Namespace = table.Namespace;
  3838. }
  3839. this.Prefix = table.Prefix;
  3840. this.MinimumCapacity = table.MinimumCapacity;
  3841. }
  3842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3844. protected TagOfClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3845. base(info, context) {
  3846. this.InitVars();
  3847. }
  3848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3850. public global::System.Data.DataColumn ClientIDColumn {
  3851. get {
  3852. return this.columnClientID;
  3853. }
  3854. }
  3855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3857. public global::System.Data.DataColumn TagIDColumn {
  3858. get {
  3859. return this.columnTagID;
  3860. }
  3861. }
  3862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3864. [global::System.ComponentModel.Browsable(false)]
  3865. public int Count {
  3866. get {
  3867. return this.Rows.Count;
  3868. }
  3869. }
  3870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3872. public TagOfClientRow this[int index] {
  3873. get {
  3874. return ((TagOfClientRow)(this.Rows[index]));
  3875. }
  3876. }
  3877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3878. public event TagOfClientRowChangeEventHandler TagOfClientRowChanging;
  3879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3880. public event TagOfClientRowChangeEventHandler TagOfClientRowChanged;
  3881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3882. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleting;
  3883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3884. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleted;
  3885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3887. public void AddTagOfClientRow(TagOfClientRow row) {
  3888. this.Rows.Add(row);
  3889. }
  3890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3892. public TagOfClientRow AddTagOfClientRow(ClientTableRow parentClientTableRowByFK_TagOfClient_Client, TagRow parentTagRowByFK_TagOfClient_Tag) {
  3893. TagOfClientRow rowTagOfClientRow = ((TagOfClientRow)(this.NewRow()));
  3894. object[] columnValuesArray = new object[] {
  3895. null,
  3896. null};
  3897. if ((parentClientTableRowByFK_TagOfClient_Client != null)) {
  3898. columnValuesArray[0] = parentClientTableRowByFK_TagOfClient_Client[0];
  3899. }
  3900. if ((parentTagRowByFK_TagOfClient_Tag != null)) {
  3901. columnValuesArray[1] = parentTagRowByFK_TagOfClient_Tag[0];
  3902. }
  3903. rowTagOfClientRow.ItemArray = columnValuesArray;
  3904. this.Rows.Add(rowTagOfClientRow);
  3905. return rowTagOfClientRow;
  3906. }
  3907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3909. public TagOfClientRow FindByClientIDTagID(int ClientID, int TagID) {
  3910. return ((TagOfClientRow)(this.Rows.Find(new object[] {
  3911. ClientID,
  3912. TagID})));
  3913. }
  3914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3916. public override global::System.Data.DataTable Clone() {
  3917. TagOfClientDataTable cln = ((TagOfClientDataTable)(base.Clone()));
  3918. cln.InitVars();
  3919. return cln;
  3920. }
  3921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3923. protected override global::System.Data.DataTable CreateInstance() {
  3924. return new TagOfClientDataTable();
  3925. }
  3926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3928. internal void InitVars() {
  3929. this.columnClientID = base.Columns["ClientID"];
  3930. this.columnTagID = base.Columns["TagID"];
  3931. }
  3932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3934. private void InitClass() {
  3935. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  3936. base.Columns.Add(this.columnClientID);
  3937. this.columnTagID = new global::System.Data.DataColumn("TagID", typeof(int), null, global::System.Data.MappingType.Element);
  3938. base.Columns.Add(this.columnTagID);
  3939. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3940. this.columnClientID,
  3941. this.columnTagID}, true));
  3942. this.columnClientID.AllowDBNull = false;
  3943. this.columnTagID.AllowDBNull = false;
  3944. }
  3945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3947. public TagOfClientRow NewTagOfClientRow() {
  3948. return ((TagOfClientRow)(this.NewRow()));
  3949. }
  3950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3952. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3953. return new TagOfClientRow(builder);
  3954. }
  3955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3957. protected override global::System.Type GetRowType() {
  3958. return typeof(TagOfClientRow);
  3959. }
  3960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3962. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3963. base.OnRowChanged(e);
  3964. if ((this.TagOfClientRowChanged != null)) {
  3965. this.TagOfClientRowChanged(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  3966. }
  3967. }
  3968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3970. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3971. base.OnRowChanging(e);
  3972. if ((this.TagOfClientRowChanging != null)) {
  3973. this.TagOfClientRowChanging(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  3974. }
  3975. }
  3976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3978. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3979. base.OnRowDeleted(e);
  3980. if ((this.TagOfClientRowDeleted != null)) {
  3981. this.TagOfClientRowDeleted(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  3982. }
  3983. }
  3984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3986. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3987. base.OnRowDeleting(e);
  3988. if ((this.TagOfClientRowDeleting != null)) {
  3989. this.TagOfClientRowDeleting(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  3990. }
  3991. }
  3992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3994. public void RemoveTagOfClientRow(TagOfClientRow row) {
  3995. this.Rows.Remove(row);
  3996. }
  3997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3999. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4000. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4001. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4002. _02TradeDataSet ds = new _02TradeDataSet();
  4003. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4004. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4005. any1.MinOccurs = new decimal(0);
  4006. any1.MaxOccurs = decimal.MaxValue;
  4007. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4008. sequence.Items.Add(any1);
  4009. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4010. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4011. any2.MinOccurs = new decimal(1);
  4012. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4013. sequence.Items.Add(any2);
  4014. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4015. attribute1.Name = "namespace";
  4016. attribute1.FixedValue = ds.Namespace;
  4017. type.Attributes.Add(attribute1);
  4018. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4019. attribute2.Name = "tableTypeName";
  4020. attribute2.FixedValue = "TagOfClientDataTable";
  4021. type.Attributes.Add(attribute2);
  4022. type.Particle = sequence;
  4023. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4024. if (xs.Contains(dsSchema.TargetNamespace)) {
  4025. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4026. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4027. try {
  4028. global::System.Xml.Schema.XmlSchema schema = null;
  4029. dsSchema.Write(s1);
  4030. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4031. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4032. s2.SetLength(0);
  4033. schema.Write(s2);
  4034. if ((s1.Length == s2.Length)) {
  4035. s1.Position = 0;
  4036. s2.Position = 0;
  4037. for (; ((s1.Position != s1.Length)
  4038. && (s1.ReadByte() == s2.ReadByte())); ) {
  4039. ;
  4040. }
  4041. if ((s1.Position == s1.Length)) {
  4042. return type;
  4043. }
  4044. }
  4045. }
  4046. }
  4047. finally {
  4048. if ((s1 != null)) {
  4049. s1.Close();
  4050. }
  4051. if ((s2 != null)) {
  4052. s2.Close();
  4053. }
  4054. }
  4055. }
  4056. xs.Add(dsSchema);
  4057. return type;
  4058. }
  4059. }
  4060. /// <summary>
  4061. ///Represents the strongly named DataTable class.
  4062. ///</summary>
  4063. [global::System.Serializable()]
  4064. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4065. public partial class ClientTableDataTable : global::System.Data.TypedTableBase<ClientTableRow> {
  4066. private global::System.Data.DataColumn columnID;
  4067. private global::System.Data.DataColumn columnFirstName;
  4068. private global::System.Data.DataColumn columnLastName;
  4069. private global::System.Data.DataColumn columnPatronymic;
  4070. private global::System.Data.DataColumn columnBirthday;
  4071. private global::System.Data.DataColumn columnRegistrationDate;
  4072. private global::System.Data.DataColumn columnEmail;
  4073. private global::System.Data.DataColumn columnPhone;
  4074. private global::System.Data.DataColumn columnGenderCode;
  4075. private global::System.Data.DataColumn columnPhotoPath;
  4076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4078. public ClientTableDataTable() {
  4079. this.TableName = "ClientTable";
  4080. this.BeginInit();
  4081. this.InitClass();
  4082. this.EndInit();
  4083. }
  4084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4086. internal ClientTableDataTable(global::System.Data.DataTable table) {
  4087. this.TableName = table.TableName;
  4088. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4089. this.CaseSensitive = table.CaseSensitive;
  4090. }
  4091. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4092. this.Locale = table.Locale;
  4093. }
  4094. if ((table.Namespace != table.DataSet.Namespace)) {
  4095. this.Namespace = table.Namespace;
  4096. }
  4097. this.Prefix = table.Prefix;
  4098. this.MinimumCapacity = table.MinimumCapacity;
  4099. }
  4100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4102. protected ClientTableDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4103. base(info, context) {
  4104. this.InitVars();
  4105. }
  4106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4108. public global::System.Data.DataColumn IDColumn {
  4109. get {
  4110. return this.columnID;
  4111. }
  4112. }
  4113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4115. public global::System.Data.DataColumn FirstNameColumn {
  4116. get {
  4117. return this.columnFirstName;
  4118. }
  4119. }
  4120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4122. public global::System.Data.DataColumn LastNameColumn {
  4123. get {
  4124. return this.columnLastName;
  4125. }
  4126. }
  4127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4129. public global::System.Data.DataColumn PatronymicColumn {
  4130. get {
  4131. return this.columnPatronymic;
  4132. }
  4133. }
  4134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4136. public global::System.Data.DataColumn BirthdayColumn {
  4137. get {
  4138. return this.columnBirthday;
  4139. }
  4140. }
  4141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4143. public global::System.Data.DataColumn RegistrationDateColumn {
  4144. get {
  4145. return this.columnRegistrationDate;
  4146. }
  4147. }
  4148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4150. public global::System.Data.DataColumn EmailColumn {
  4151. get {
  4152. return this.columnEmail;
  4153. }
  4154. }
  4155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4157. public global::System.Data.DataColumn PhoneColumn {
  4158. get {
  4159. return this.columnPhone;
  4160. }
  4161. }
  4162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4164. public global::System.Data.DataColumn GenderCodeColumn {
  4165. get {
  4166. return this.columnGenderCode;
  4167. }
  4168. }
  4169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4171. public global::System.Data.DataColumn PhotoPathColumn {
  4172. get {
  4173. return this.columnPhotoPath;
  4174. }
  4175. }
  4176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4178. [global::System.ComponentModel.Browsable(false)]
  4179. public int Count {
  4180. get {
  4181. return this.Rows.Count;
  4182. }
  4183. }
  4184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4186. public ClientTableRow this[int index] {
  4187. get {
  4188. return ((ClientTableRow)(this.Rows[index]));
  4189. }
  4190. }
  4191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4192. public event ClientTableRowChangeEventHandler ClientTableRowChanging;
  4193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4194. public event ClientTableRowChangeEventHandler ClientTableRowChanged;
  4195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4196. public event ClientTableRowChangeEventHandler ClientTableRowDeleting;
  4197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4198. public event ClientTableRowChangeEventHandler ClientTableRowDeleted;
  4199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4201. public void AddClientTableRow(ClientTableRow row) {
  4202. this.Rows.Add(row);
  4203. }
  4204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4206. public ClientTableRow AddClientTableRow(string FirstName, string LastName, string Patronymic, System.DateTime Birthday, System.DateTime RegistrationDate, string Email, string Phone, GenderRow parentGenderRowByFK_Client_Gender, byte[] PhotoPath) {
  4207. ClientTableRow rowClientTableRow = ((ClientTableRow)(this.NewRow()));
  4208. object[] columnValuesArray = new object[] {
  4209. null,
  4210. FirstName,
  4211. LastName,
  4212. Patronymic,
  4213. Birthday,
  4214. RegistrationDate,
  4215. Email,
  4216. Phone,
  4217. null,
  4218. PhotoPath};
  4219. if ((parentGenderRowByFK_Client_Gender != null)) {
  4220. columnValuesArray[8] = parentGenderRowByFK_Client_Gender[0];
  4221. }
  4222. rowClientTableRow.ItemArray = columnValuesArray;
  4223. this.Rows.Add(rowClientTableRow);
  4224. return rowClientTableRow;
  4225. }
  4226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4228. public ClientTableRow FindByID(int ID) {
  4229. return ((ClientTableRow)(this.Rows.Find(new object[] {
  4230. ID})));
  4231. }
  4232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4234. public override global::System.Data.DataTable Clone() {
  4235. ClientTableDataTable cln = ((ClientTableDataTable)(base.Clone()));
  4236. cln.InitVars();
  4237. return cln;
  4238. }
  4239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4241. protected override global::System.Data.DataTable CreateInstance() {
  4242. return new ClientTableDataTable();
  4243. }
  4244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4246. internal void InitVars() {
  4247. this.columnID = base.Columns["ID"];
  4248. this.columnFirstName = base.Columns["FirstName"];
  4249. this.columnLastName = base.Columns["LastName"];
  4250. this.columnPatronymic = base.Columns["Patronymic"];
  4251. this.columnBirthday = base.Columns["Birthday"];
  4252. this.columnRegistrationDate = base.Columns["RegistrationDate"];
  4253. this.columnEmail = base.Columns["Email"];
  4254. this.columnPhone = base.Columns["Phone"];
  4255. this.columnGenderCode = base.Columns["GenderCode"];
  4256. this.columnPhotoPath = base.Columns["PhotoPath"];
  4257. }
  4258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4260. private void InitClass() {
  4261. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  4262. base.Columns.Add(this.columnID);
  4263. this.columnFirstName = new global::System.Data.DataColumn("FirstName", typeof(string), null, global::System.Data.MappingType.Element);
  4264. base.Columns.Add(this.columnFirstName);
  4265. this.columnLastName = new global::System.Data.DataColumn("LastName", typeof(string), null, global::System.Data.MappingType.Element);
  4266. base.Columns.Add(this.columnLastName);
  4267. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  4268. base.Columns.Add(this.columnPatronymic);
  4269. this.columnBirthday = new global::System.Data.DataColumn("Birthday", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  4270. base.Columns.Add(this.columnBirthday);
  4271. this.columnRegistrationDate = new global::System.Data.DataColumn("RegistrationDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  4272. base.Columns.Add(this.columnRegistrationDate);
  4273. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  4274. base.Columns.Add(this.columnEmail);
  4275. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  4276. base.Columns.Add(this.columnPhone);
  4277. this.columnGenderCode = new global::System.Data.DataColumn("GenderCode", typeof(string), null, global::System.Data.MappingType.Element);
  4278. base.Columns.Add(this.columnGenderCode);
  4279. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(byte[]), null, global::System.Data.MappingType.Element);
  4280. base.Columns.Add(this.columnPhotoPath);
  4281. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4282. this.columnID}, true));
  4283. this.columnID.AutoIncrement = true;
  4284. this.columnID.AutoIncrementSeed = -1;
  4285. this.columnID.AutoIncrementStep = -1;
  4286. this.columnID.AllowDBNull = false;
  4287. this.columnID.ReadOnly = true;
  4288. this.columnID.Unique = true;
  4289. this.columnFirstName.AllowDBNull = false;
  4290. this.columnFirstName.MaxLength = 2147483647;
  4291. this.columnLastName.AllowDBNull = false;
  4292. this.columnLastName.MaxLength = 2147483647;
  4293. this.columnPatronymic.MaxLength = 2147483647;
  4294. this.columnRegistrationDate.AllowDBNull = false;
  4295. this.columnEmail.MaxLength = 2147483647;
  4296. this.columnPhone.AllowDBNull = false;
  4297. this.columnPhone.MaxLength = 2147483647;
  4298. this.columnGenderCode.AllowDBNull = false;
  4299. this.columnGenderCode.MaxLength = 1;
  4300. }
  4301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4303. public ClientTableRow NewClientTableRow() {
  4304. return ((ClientTableRow)(this.NewRow()));
  4305. }
  4306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4308. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4309. return new ClientTableRow(builder);
  4310. }
  4311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4313. protected override global::System.Type GetRowType() {
  4314. return typeof(ClientTableRow);
  4315. }
  4316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4318. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4319. base.OnRowChanged(e);
  4320. if ((this.ClientTableRowChanged != null)) {
  4321. this.ClientTableRowChanged(this, new ClientTableRowChangeEvent(((ClientTableRow)(e.Row)), e.Action));
  4322. }
  4323. }
  4324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4326. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4327. base.OnRowChanging(e);
  4328. if ((this.ClientTableRowChanging != null)) {
  4329. this.ClientTableRowChanging(this, new ClientTableRowChangeEvent(((ClientTableRow)(e.Row)), e.Action));
  4330. }
  4331. }
  4332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4334. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4335. base.OnRowDeleted(e);
  4336. if ((this.ClientTableRowDeleted != null)) {
  4337. this.ClientTableRowDeleted(this, new ClientTableRowChangeEvent(((ClientTableRow)(e.Row)), e.Action));
  4338. }
  4339. }
  4340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4342. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4343. base.OnRowDeleting(e);
  4344. if ((this.ClientTableRowDeleting != null)) {
  4345. this.ClientTableRowDeleting(this, new ClientTableRowChangeEvent(((ClientTableRow)(e.Row)), e.Action));
  4346. }
  4347. }
  4348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4350. public void RemoveClientTableRow(ClientTableRow row) {
  4351. this.Rows.Remove(row);
  4352. }
  4353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4355. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4356. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4357. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4358. _02TradeDataSet ds = new _02TradeDataSet();
  4359. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4360. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4361. any1.MinOccurs = new decimal(0);
  4362. any1.MaxOccurs = decimal.MaxValue;
  4363. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4364. sequence.Items.Add(any1);
  4365. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4366. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4367. any2.MinOccurs = new decimal(1);
  4368. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4369. sequence.Items.Add(any2);
  4370. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4371. attribute1.Name = "namespace";
  4372. attribute1.FixedValue = ds.Namespace;
  4373. type.Attributes.Add(attribute1);
  4374. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4375. attribute2.Name = "tableTypeName";
  4376. attribute2.FixedValue = "ClientTableDataTable";
  4377. type.Attributes.Add(attribute2);
  4378. type.Particle = sequence;
  4379. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4380. if (xs.Contains(dsSchema.TargetNamespace)) {
  4381. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4382. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4383. try {
  4384. global::System.Xml.Schema.XmlSchema schema = null;
  4385. dsSchema.Write(s1);
  4386. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4387. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4388. s2.SetLength(0);
  4389. schema.Write(s2);
  4390. if ((s1.Length == s2.Length)) {
  4391. s1.Position = 0;
  4392. s2.Position = 0;
  4393. for (; ((s1.Position != s1.Length)
  4394. && (s1.ReadByte() == s2.ReadByte())); ) {
  4395. ;
  4396. }
  4397. if ((s1.Position == s1.Length)) {
  4398. return type;
  4399. }
  4400. }
  4401. }
  4402. }
  4403. finally {
  4404. if ((s1 != null)) {
  4405. s1.Close();
  4406. }
  4407. if ((s2 != null)) {
  4408. s2.Close();
  4409. }
  4410. }
  4411. }
  4412. xs.Add(dsSchema);
  4413. return type;
  4414. }
  4415. }
  4416. /// <summary>
  4417. ///Represents the strongly named DataTable class.
  4418. ///</summary>
  4419. [global::System.Serializable()]
  4420. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4421. public partial class UserTableDataTable : global::System.Data.TypedTableBase<UserTableRow> {
  4422. private global::System.Data.DataColumn columnUserID;
  4423. private global::System.Data.DataColumn columnUserRole;
  4424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4426. public UserTableDataTable() {
  4427. this.TableName = "UserTable";
  4428. this.BeginInit();
  4429. this.InitClass();
  4430. this.EndInit();
  4431. }
  4432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4434. internal UserTableDataTable(global::System.Data.DataTable table) {
  4435. this.TableName = table.TableName;
  4436. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4437. this.CaseSensitive = table.CaseSensitive;
  4438. }
  4439. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4440. this.Locale = table.Locale;
  4441. }
  4442. if ((table.Namespace != table.DataSet.Namespace)) {
  4443. this.Namespace = table.Namespace;
  4444. }
  4445. this.Prefix = table.Prefix;
  4446. this.MinimumCapacity = table.MinimumCapacity;
  4447. }
  4448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4450. protected UserTableDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4451. base(info, context) {
  4452. this.InitVars();
  4453. }
  4454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4456. public global::System.Data.DataColumn UserIDColumn {
  4457. get {
  4458. return this.columnUserID;
  4459. }
  4460. }
  4461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4463. public global::System.Data.DataColumn UserRoleColumn {
  4464. get {
  4465. return this.columnUserRole;
  4466. }
  4467. }
  4468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4470. [global::System.ComponentModel.Browsable(false)]
  4471. public int Count {
  4472. get {
  4473. return this.Rows.Count;
  4474. }
  4475. }
  4476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4478. public UserTableRow this[int index] {
  4479. get {
  4480. return ((UserTableRow)(this.Rows[index]));
  4481. }
  4482. }
  4483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4484. public event UserTableRowChangeEventHandler UserTableRowChanging;
  4485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4486. public event UserTableRowChangeEventHandler UserTableRowChanged;
  4487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4488. public event UserTableRowChangeEventHandler UserTableRowDeleting;
  4489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4490. public event UserTableRowChangeEventHandler UserTableRowDeleted;
  4491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4493. public void AddUserTableRow(UserTableRow row) {
  4494. this.Rows.Add(row);
  4495. }
  4496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4498. public UserTableRow AddUserTableRow(int UserID, RoleTableRow parentRoleTableRowByFK_UserTable_RoleTable) {
  4499. UserTableRow rowUserTableRow = ((UserTableRow)(this.NewRow()));
  4500. object[] columnValuesArray = new object[] {
  4501. UserID,
  4502. null};
  4503. if ((parentRoleTableRowByFK_UserTable_RoleTable != null)) {
  4504. columnValuesArray[1] = parentRoleTableRowByFK_UserTable_RoleTable[0];
  4505. }
  4506. rowUserTableRow.ItemArray = columnValuesArray;
  4507. this.Rows.Add(rowUserTableRow);
  4508. return rowUserTableRow;
  4509. }
  4510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4512. public UserTableRow FindByUserID(int UserID) {
  4513. return ((UserTableRow)(this.Rows.Find(new object[] {
  4514. UserID})));
  4515. }
  4516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4518. public override global::System.Data.DataTable Clone() {
  4519. UserTableDataTable cln = ((UserTableDataTable)(base.Clone()));
  4520. cln.InitVars();
  4521. return cln;
  4522. }
  4523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4525. protected override global::System.Data.DataTable CreateInstance() {
  4526. return new UserTableDataTable();
  4527. }
  4528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4530. internal void InitVars() {
  4531. this.columnUserID = base.Columns["UserID"];
  4532. this.columnUserRole = base.Columns["UserRole"];
  4533. }
  4534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4536. private void InitClass() {
  4537. this.columnUserID = new global::System.Data.DataColumn("UserID", typeof(int), null, global::System.Data.MappingType.Element);
  4538. base.Columns.Add(this.columnUserID);
  4539. this.columnUserRole = new global::System.Data.DataColumn("UserRole", typeof(int), null, global::System.Data.MappingType.Element);
  4540. base.Columns.Add(this.columnUserRole);
  4541. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4542. this.columnUserID}, true));
  4543. this.columnUserID.AllowDBNull = false;
  4544. this.columnUserID.Unique = true;
  4545. this.columnUserRole.AllowDBNull = false;
  4546. }
  4547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4549. public UserTableRow NewUserTableRow() {
  4550. return ((UserTableRow)(this.NewRow()));
  4551. }
  4552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4554. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4555. return new UserTableRow(builder);
  4556. }
  4557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4559. protected override global::System.Type GetRowType() {
  4560. return typeof(UserTableRow);
  4561. }
  4562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4564. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4565. base.OnRowChanged(e);
  4566. if ((this.UserTableRowChanged != null)) {
  4567. this.UserTableRowChanged(this, new UserTableRowChangeEvent(((UserTableRow)(e.Row)), e.Action));
  4568. }
  4569. }
  4570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4572. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4573. base.OnRowChanging(e);
  4574. if ((this.UserTableRowChanging != null)) {
  4575. this.UserTableRowChanging(this, new UserTableRowChangeEvent(((UserTableRow)(e.Row)), e.Action));
  4576. }
  4577. }
  4578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4580. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4581. base.OnRowDeleted(e);
  4582. if ((this.UserTableRowDeleted != null)) {
  4583. this.UserTableRowDeleted(this, new UserTableRowChangeEvent(((UserTableRow)(e.Row)), e.Action));
  4584. }
  4585. }
  4586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4588. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4589. base.OnRowDeleting(e);
  4590. if ((this.UserTableRowDeleting != null)) {
  4591. this.UserTableRowDeleting(this, new UserTableRowChangeEvent(((UserTableRow)(e.Row)), e.Action));
  4592. }
  4593. }
  4594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4596. public void RemoveUserTableRow(UserTableRow row) {
  4597. this.Rows.Remove(row);
  4598. }
  4599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4601. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4602. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4603. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4604. _02TradeDataSet ds = new _02TradeDataSet();
  4605. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4606. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4607. any1.MinOccurs = new decimal(0);
  4608. any1.MaxOccurs = decimal.MaxValue;
  4609. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4610. sequence.Items.Add(any1);
  4611. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4612. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4613. any2.MinOccurs = new decimal(1);
  4614. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4615. sequence.Items.Add(any2);
  4616. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4617. attribute1.Name = "namespace";
  4618. attribute1.FixedValue = ds.Namespace;
  4619. type.Attributes.Add(attribute1);
  4620. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4621. attribute2.Name = "tableTypeName";
  4622. attribute2.FixedValue = "UserTableDataTable";
  4623. type.Attributes.Add(attribute2);
  4624. type.Particle = sequence;
  4625. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4626. if (xs.Contains(dsSchema.TargetNamespace)) {
  4627. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4628. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4629. try {
  4630. global::System.Xml.Schema.XmlSchema schema = null;
  4631. dsSchema.Write(s1);
  4632. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4633. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4634. s2.SetLength(0);
  4635. schema.Write(s2);
  4636. if ((s1.Length == s2.Length)) {
  4637. s1.Position = 0;
  4638. s2.Position = 0;
  4639. for (; ((s1.Position != s1.Length)
  4640. && (s1.ReadByte() == s2.ReadByte())); ) {
  4641. ;
  4642. }
  4643. if ((s1.Position == s1.Length)) {
  4644. return type;
  4645. }
  4646. }
  4647. }
  4648. }
  4649. finally {
  4650. if ((s1 != null)) {
  4651. s1.Close();
  4652. }
  4653. if ((s2 != null)) {
  4654. s2.Close();
  4655. }
  4656. }
  4657. }
  4658. xs.Add(dsSchema);
  4659. return type;
  4660. }
  4661. }
  4662. /// <summary>
  4663. ///Represents the strongly named DataTable class.
  4664. ///</summary>
  4665. [global::System.Serializable()]
  4666. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4667. public partial class RoleTableDataTable : global::System.Data.TypedTableBase<RoleTableRow> {
  4668. private global::System.Data.DataColumn columnUserRole;
  4669. private global::System.Data.DataColumn columnRoleName;
  4670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4672. public RoleTableDataTable() {
  4673. this.TableName = "RoleTable";
  4674. this.BeginInit();
  4675. this.InitClass();
  4676. this.EndInit();
  4677. }
  4678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4680. internal RoleTableDataTable(global::System.Data.DataTable table) {
  4681. this.TableName = table.TableName;
  4682. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4683. this.CaseSensitive = table.CaseSensitive;
  4684. }
  4685. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4686. this.Locale = table.Locale;
  4687. }
  4688. if ((table.Namespace != table.DataSet.Namespace)) {
  4689. this.Namespace = table.Namespace;
  4690. }
  4691. this.Prefix = table.Prefix;
  4692. this.MinimumCapacity = table.MinimumCapacity;
  4693. }
  4694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4696. protected RoleTableDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4697. base(info, context) {
  4698. this.InitVars();
  4699. }
  4700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4702. public global::System.Data.DataColumn UserRoleColumn {
  4703. get {
  4704. return this.columnUserRole;
  4705. }
  4706. }
  4707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4709. public global::System.Data.DataColumn RoleNameColumn {
  4710. get {
  4711. return this.columnRoleName;
  4712. }
  4713. }
  4714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4716. [global::System.ComponentModel.Browsable(false)]
  4717. public int Count {
  4718. get {
  4719. return this.Rows.Count;
  4720. }
  4721. }
  4722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4724. public RoleTableRow this[int index] {
  4725. get {
  4726. return ((RoleTableRow)(this.Rows[index]));
  4727. }
  4728. }
  4729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4730. public event RoleTableRowChangeEventHandler RoleTableRowChanging;
  4731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4732. public event RoleTableRowChangeEventHandler RoleTableRowChanged;
  4733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4734. public event RoleTableRowChangeEventHandler RoleTableRowDeleting;
  4735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4736. public event RoleTableRowChangeEventHandler RoleTableRowDeleted;
  4737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4739. public void AddRoleTableRow(RoleTableRow row) {
  4740. this.Rows.Add(row);
  4741. }
  4742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4744. public RoleTableRow AddRoleTableRow(int UserRole, string RoleName) {
  4745. RoleTableRow rowRoleTableRow = ((RoleTableRow)(this.NewRow()));
  4746. object[] columnValuesArray = new object[] {
  4747. UserRole,
  4748. RoleName};
  4749. rowRoleTableRow.ItemArray = columnValuesArray;
  4750. this.Rows.Add(rowRoleTableRow);
  4751. return rowRoleTableRow;
  4752. }
  4753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4755. public RoleTableRow FindByUserRole(int UserRole) {
  4756. return ((RoleTableRow)(this.Rows.Find(new object[] {
  4757. UserRole})));
  4758. }
  4759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4761. public override global::System.Data.DataTable Clone() {
  4762. RoleTableDataTable cln = ((RoleTableDataTable)(base.Clone()));
  4763. cln.InitVars();
  4764. return cln;
  4765. }
  4766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4768. protected override global::System.Data.DataTable CreateInstance() {
  4769. return new RoleTableDataTable();
  4770. }
  4771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4773. internal void InitVars() {
  4774. this.columnUserRole = base.Columns["UserRole"];
  4775. this.columnRoleName = base.Columns["RoleName"];
  4776. }
  4777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4779. private void InitClass() {
  4780. this.columnUserRole = new global::System.Data.DataColumn("UserRole", typeof(int), null, global::System.Data.MappingType.Element);
  4781. base.Columns.Add(this.columnUserRole);
  4782. this.columnRoleName = new global::System.Data.DataColumn("RoleName", typeof(string), null, global::System.Data.MappingType.Element);
  4783. base.Columns.Add(this.columnRoleName);
  4784. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4785. this.columnUserRole}, true));
  4786. this.columnUserRole.AllowDBNull = false;
  4787. this.columnUserRole.Unique = true;
  4788. this.columnRoleName.MaxLength = 100;
  4789. }
  4790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4792. public RoleTableRow NewRoleTableRow() {
  4793. return ((RoleTableRow)(this.NewRow()));
  4794. }
  4795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4797. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4798. return new RoleTableRow(builder);
  4799. }
  4800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4802. protected override global::System.Type GetRowType() {
  4803. return typeof(RoleTableRow);
  4804. }
  4805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4807. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4808. base.OnRowChanged(e);
  4809. if ((this.RoleTableRowChanged != null)) {
  4810. this.RoleTableRowChanged(this, new RoleTableRowChangeEvent(((RoleTableRow)(e.Row)), e.Action));
  4811. }
  4812. }
  4813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4815. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4816. base.OnRowChanging(e);
  4817. if ((this.RoleTableRowChanging != null)) {
  4818. this.RoleTableRowChanging(this, new RoleTableRowChangeEvent(((RoleTableRow)(e.Row)), e.Action));
  4819. }
  4820. }
  4821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4823. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4824. base.OnRowDeleted(e);
  4825. if ((this.RoleTableRowDeleted != null)) {
  4826. this.RoleTableRowDeleted(this, new RoleTableRowChangeEvent(((RoleTableRow)(e.Row)), e.Action));
  4827. }
  4828. }
  4829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4831. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4832. base.OnRowDeleting(e);
  4833. if ((this.RoleTableRowDeleting != null)) {
  4834. this.RoleTableRowDeleting(this, new RoleTableRowChangeEvent(((RoleTableRow)(e.Row)), e.Action));
  4835. }
  4836. }
  4837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4839. public void RemoveRoleTableRow(RoleTableRow row) {
  4840. this.Rows.Remove(row);
  4841. }
  4842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4844. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4845. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4846. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4847. _02TradeDataSet ds = new _02TradeDataSet();
  4848. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4849. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4850. any1.MinOccurs = new decimal(0);
  4851. any1.MaxOccurs = decimal.MaxValue;
  4852. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4853. sequence.Items.Add(any1);
  4854. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4855. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4856. any2.MinOccurs = new decimal(1);
  4857. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4858. sequence.Items.Add(any2);
  4859. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4860. attribute1.Name = "namespace";
  4861. attribute1.FixedValue = ds.Namespace;
  4862. type.Attributes.Add(attribute1);
  4863. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4864. attribute2.Name = "tableTypeName";
  4865. attribute2.FixedValue = "RoleTableDataTable";
  4866. type.Attributes.Add(attribute2);
  4867. type.Particle = sequence;
  4868. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4869. if (xs.Contains(dsSchema.TargetNamespace)) {
  4870. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4871. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4872. try {
  4873. global::System.Xml.Schema.XmlSchema schema = null;
  4874. dsSchema.Write(s1);
  4875. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4876. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4877. s2.SetLength(0);
  4878. schema.Write(s2);
  4879. if ((s1.Length == s2.Length)) {
  4880. s1.Position = 0;
  4881. s2.Position = 0;
  4882. for (; ((s1.Position != s1.Length)
  4883. && (s1.ReadByte() == s2.ReadByte())); ) {
  4884. ;
  4885. }
  4886. if ((s1.Position == s1.Length)) {
  4887. return type;
  4888. }
  4889. }
  4890. }
  4891. }
  4892. finally {
  4893. if ((s1 != null)) {
  4894. s1.Close();
  4895. }
  4896. if ((s2 != null)) {
  4897. s2.Close();
  4898. }
  4899. }
  4900. }
  4901. xs.Add(dsSchema);
  4902. return type;
  4903. }
  4904. }
  4905. /// <summary>
  4906. ///Represents strongly named DataRow class.
  4907. ///</summary>
  4908. public partial class AttachedProductRow : global::System.Data.DataRow {
  4909. private AttachedProductDataTable tableAttachedProduct;
  4910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4912. internal AttachedProductRow(global::System.Data.DataRowBuilder rb) :
  4913. base(rb) {
  4914. this.tableAttachedProduct = ((AttachedProductDataTable)(this.Table));
  4915. }
  4916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4918. public int MainProductID {
  4919. get {
  4920. return ((int)(this[this.tableAttachedProduct.MainProductIDColumn]));
  4921. }
  4922. set {
  4923. this[this.tableAttachedProduct.MainProductIDColumn] = value;
  4924. }
  4925. }
  4926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4928. public int AttachedProductID {
  4929. get {
  4930. return ((int)(this[this.tableAttachedProduct.AttachedProductIDColumn]));
  4931. }
  4932. set {
  4933. this[this.tableAttachedProduct.AttachedProductIDColumn] = value;
  4934. }
  4935. }
  4936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4938. public ProductRow ProductRowByFK_AttachedProduct_Product {
  4939. get {
  4940. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product"])));
  4941. }
  4942. set {
  4943. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product"]);
  4944. }
  4945. }
  4946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4948. public ProductRow ProductRowByFK_AttachedProduct_Product1 {
  4949. get {
  4950. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product1"])));
  4951. }
  4952. set {
  4953. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product1"]);
  4954. }
  4955. }
  4956. }
  4957. /// <summary>
  4958. ///Represents strongly named DataRow class.
  4959. ///</summary>
  4960. public partial class ClientServiceRow : global::System.Data.DataRow {
  4961. private ClientServiceDataTable tableClientService;
  4962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4964. internal ClientServiceRow(global::System.Data.DataRowBuilder rb) :
  4965. base(rb) {
  4966. this.tableClientService = ((ClientServiceDataTable)(this.Table));
  4967. }
  4968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4970. public int ID {
  4971. get {
  4972. return ((int)(this[this.tableClientService.IDColumn]));
  4973. }
  4974. set {
  4975. this[this.tableClientService.IDColumn] = value;
  4976. }
  4977. }
  4978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4980. public int ClientID {
  4981. get {
  4982. return ((int)(this[this.tableClientService.ClientIDColumn]));
  4983. }
  4984. set {
  4985. this[this.tableClientService.ClientIDColumn] = value;
  4986. }
  4987. }
  4988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4990. public int ServiceID {
  4991. get {
  4992. return ((int)(this[this.tableClientService.ServiceIDColumn]));
  4993. }
  4994. set {
  4995. this[this.tableClientService.ServiceIDColumn] = value;
  4996. }
  4997. }
  4998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5000. public System.DateTime StartTime {
  5001. get {
  5002. return ((global::System.DateTime)(this[this.tableClientService.StartTimeColumn]));
  5003. }
  5004. set {
  5005. this[this.tableClientService.StartTimeColumn] = value;
  5006. }
  5007. }
  5008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5010. public string Comment {
  5011. get {
  5012. try {
  5013. return ((string)(this[this.tableClientService.CommentColumn]));
  5014. }
  5015. catch (global::System.InvalidCastException e) {
  5016. throw new global::System.Data.StrongTypingException("Значение для столбца \'Comment\' в таблице \'ClientService\' равно DBNull.", e);
  5017. }
  5018. }
  5019. set {
  5020. this[this.tableClientService.CommentColumn] = value;
  5021. }
  5022. }
  5023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5025. public ServiceRow ServiceRow {
  5026. get {
  5027. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Service"])));
  5028. }
  5029. set {
  5030. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Service"]);
  5031. }
  5032. }
  5033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5035. public ClientTableRow ClientTableRow {
  5036. get {
  5037. return ((ClientTableRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Client"])));
  5038. }
  5039. set {
  5040. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Client"]);
  5041. }
  5042. }
  5043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5045. public bool IsCommentNull() {
  5046. return this.IsNull(this.tableClientService.CommentColumn);
  5047. }
  5048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5050. public void SetCommentNull() {
  5051. this[this.tableClientService.CommentColumn] = global::System.Convert.DBNull;
  5052. }
  5053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5055. public DocumentByServiceRow[] GetDocumentByServiceRows() {
  5056. if ((this.Table.ChildRelations["FK_DocumentByService_ClientService"] == null)) {
  5057. return new DocumentByServiceRow[0];
  5058. }
  5059. else {
  5060. return ((DocumentByServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_DocumentByService_ClientService"])));
  5061. }
  5062. }
  5063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5065. public ProductSaleRow[] GetProductSaleRows() {
  5066. if ((this.Table.ChildRelations["FK_ProductSale_ClientService"] == null)) {
  5067. return new ProductSaleRow[0];
  5068. }
  5069. else {
  5070. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_ClientService"])));
  5071. }
  5072. }
  5073. }
  5074. /// <summary>
  5075. ///Represents strongly named DataRow class.
  5076. ///</summary>
  5077. public partial class DocumentByServiceRow : global::System.Data.DataRow {
  5078. private DocumentByServiceDataTable tableDocumentByService;
  5079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5081. internal DocumentByServiceRow(global::System.Data.DataRowBuilder rb) :
  5082. base(rb) {
  5083. this.tableDocumentByService = ((DocumentByServiceDataTable)(this.Table));
  5084. }
  5085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5087. public int ID {
  5088. get {
  5089. return ((int)(this[this.tableDocumentByService.IDColumn]));
  5090. }
  5091. set {
  5092. this[this.tableDocumentByService.IDColumn] = value;
  5093. }
  5094. }
  5095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5097. public int ClientServiceID {
  5098. get {
  5099. return ((int)(this[this.tableDocumentByService.ClientServiceIDColumn]));
  5100. }
  5101. set {
  5102. this[this.tableDocumentByService.ClientServiceIDColumn] = value;
  5103. }
  5104. }
  5105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5107. public string DocumentPath {
  5108. get {
  5109. return ((string)(this[this.tableDocumentByService.DocumentPathColumn]));
  5110. }
  5111. set {
  5112. this[this.tableDocumentByService.DocumentPathColumn] = value;
  5113. }
  5114. }
  5115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5117. public ClientServiceRow ClientServiceRow {
  5118. get {
  5119. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_DocumentByService_ClientService"])));
  5120. }
  5121. set {
  5122. this.SetParentRow(value, this.Table.ParentRelations["FK_DocumentByService_ClientService"]);
  5123. }
  5124. }
  5125. }
  5126. /// <summary>
  5127. ///Represents strongly named DataRow class.
  5128. ///</summary>
  5129. public partial class GenderRow : global::System.Data.DataRow {
  5130. private GenderDataTable tableGender;
  5131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5133. internal GenderRow(global::System.Data.DataRowBuilder rb) :
  5134. base(rb) {
  5135. this.tableGender = ((GenderDataTable)(this.Table));
  5136. }
  5137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5139. public string Code {
  5140. get {
  5141. return ((string)(this[this.tableGender.CodeColumn]));
  5142. }
  5143. set {
  5144. this[this.tableGender.CodeColumn] = value;
  5145. }
  5146. }
  5147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5149. public string Name {
  5150. get {
  5151. try {
  5152. return ((string)(this[this.tableGender.NameColumn]));
  5153. }
  5154. catch (global::System.InvalidCastException e) {
  5155. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Gender\' равно DBNull.", e);
  5156. }
  5157. }
  5158. set {
  5159. this[this.tableGender.NameColumn] = value;
  5160. }
  5161. }
  5162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5164. public bool IsNameNull() {
  5165. return this.IsNull(this.tableGender.NameColumn);
  5166. }
  5167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5169. public void SetNameNull() {
  5170. this[this.tableGender.NameColumn] = global::System.Convert.DBNull;
  5171. }
  5172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5174. public ClientTableRow[] GetClientTableRows() {
  5175. if ((this.Table.ChildRelations["FK_Client_Gender"] == null)) {
  5176. return new ClientTableRow[0];
  5177. }
  5178. else {
  5179. return ((ClientTableRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Client_Gender"])));
  5180. }
  5181. }
  5182. }
  5183. /// <summary>
  5184. ///Represents strongly named DataRow class.
  5185. ///</summary>
  5186. public partial class ManufacturerRow : global::System.Data.DataRow {
  5187. private ManufacturerDataTable tableManufacturer;
  5188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5190. internal ManufacturerRow(global::System.Data.DataRowBuilder rb) :
  5191. base(rb) {
  5192. this.tableManufacturer = ((ManufacturerDataTable)(this.Table));
  5193. }
  5194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5196. public int ID {
  5197. get {
  5198. return ((int)(this[this.tableManufacturer.IDColumn]));
  5199. }
  5200. set {
  5201. this[this.tableManufacturer.IDColumn] = value;
  5202. }
  5203. }
  5204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5206. public string Name {
  5207. get {
  5208. return ((string)(this[this.tableManufacturer.NameColumn]));
  5209. }
  5210. set {
  5211. this[this.tableManufacturer.NameColumn] = value;
  5212. }
  5213. }
  5214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5216. public System.DateTime StartDate {
  5217. get {
  5218. try {
  5219. return ((global::System.DateTime)(this[this.tableManufacturer.StartDateColumn]));
  5220. }
  5221. catch (global::System.InvalidCastException e) {
  5222. throw new global::System.Data.StrongTypingException("Значение для столбца \'StartDate\' в таблице \'Manufacturer\' равно DBNull.", e);
  5223. }
  5224. }
  5225. set {
  5226. this[this.tableManufacturer.StartDateColumn] = value;
  5227. }
  5228. }
  5229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5231. public bool IsStartDateNull() {
  5232. return this.IsNull(this.tableManufacturer.StartDateColumn);
  5233. }
  5234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5236. public void SetStartDateNull() {
  5237. this[this.tableManufacturer.StartDateColumn] = global::System.Convert.DBNull;
  5238. }
  5239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5241. public ProductRow[] GetProductRows() {
  5242. if ((this.Table.ChildRelations["FK_Product_Manufacturer"] == null)) {
  5243. return new ProductRow[0];
  5244. }
  5245. else {
  5246. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_Manufacturer"])));
  5247. }
  5248. }
  5249. }
  5250. /// <summary>
  5251. ///Represents strongly named DataRow class.
  5252. ///</summary>
  5253. public partial class ProductRow : global::System.Data.DataRow {
  5254. private ProductDataTable tableProduct;
  5255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5257. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  5258. base(rb) {
  5259. this.tableProduct = ((ProductDataTable)(this.Table));
  5260. }
  5261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5263. public int ID {
  5264. get {
  5265. return ((int)(this[this.tableProduct.IDColumn]));
  5266. }
  5267. set {
  5268. this[this.tableProduct.IDColumn] = value;
  5269. }
  5270. }
  5271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5273. public string Title {
  5274. get {
  5275. return ((string)(this[this.tableProduct.TitleColumn]));
  5276. }
  5277. set {
  5278. this[this.tableProduct.TitleColumn] = value;
  5279. }
  5280. }
  5281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5283. public decimal Cost {
  5284. get {
  5285. return ((decimal)(this[this.tableProduct.CostColumn]));
  5286. }
  5287. set {
  5288. this[this.tableProduct.CostColumn] = value;
  5289. }
  5290. }
  5291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5293. public string Description {
  5294. get {
  5295. try {
  5296. return ((string)(this[this.tableProduct.DescriptionColumn]));
  5297. }
  5298. catch (global::System.InvalidCastException e) {
  5299. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Product\' равно DBNull.", e);
  5300. }
  5301. }
  5302. set {
  5303. this[this.tableProduct.DescriptionColumn] = value;
  5304. }
  5305. }
  5306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5308. public string MainImagePath {
  5309. get {
  5310. try {
  5311. return ((string)(this[this.tableProduct.MainImagePathColumn]));
  5312. }
  5313. catch (global::System.InvalidCastException e) {
  5314. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Product\' равно DBNull.", e);
  5315. }
  5316. }
  5317. set {
  5318. this[this.tableProduct.MainImagePathColumn] = value;
  5319. }
  5320. }
  5321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5323. public bool IsActive {
  5324. get {
  5325. return ((bool)(this[this.tableProduct.IsActiveColumn]));
  5326. }
  5327. set {
  5328. this[this.tableProduct.IsActiveColumn] = value;
  5329. }
  5330. }
  5331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5333. public int ManufacturerID {
  5334. get {
  5335. try {
  5336. return ((int)(this[this.tableProduct.ManufacturerIDColumn]));
  5337. }
  5338. catch (global::System.InvalidCastException e) {
  5339. throw new global::System.Data.StrongTypingException("Значение для столбца \'ManufacturerID\' в таблице \'Product\' равно DBNull.", e);
  5340. }
  5341. }
  5342. set {
  5343. this[this.tableProduct.ManufacturerIDColumn] = value;
  5344. }
  5345. }
  5346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5348. public ManufacturerRow ManufacturerRow {
  5349. get {
  5350. return ((ManufacturerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_Manufacturer"])));
  5351. }
  5352. set {
  5353. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_Manufacturer"]);
  5354. }
  5355. }
  5356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5358. public bool IsDescriptionNull() {
  5359. return this.IsNull(this.tableProduct.DescriptionColumn);
  5360. }
  5361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5363. public void SetDescriptionNull() {
  5364. this[this.tableProduct.DescriptionColumn] = global::System.Convert.DBNull;
  5365. }
  5366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5368. public bool IsMainImagePathNull() {
  5369. return this.IsNull(this.tableProduct.MainImagePathColumn);
  5370. }
  5371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5373. public void SetMainImagePathNull() {
  5374. this[this.tableProduct.MainImagePathColumn] = global::System.Convert.DBNull;
  5375. }
  5376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5378. public bool IsManufacturerIDNull() {
  5379. return this.IsNull(this.tableProduct.ManufacturerIDColumn);
  5380. }
  5381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5383. public void SetManufacturerIDNull() {
  5384. this[this.tableProduct.ManufacturerIDColumn] = global::System.Convert.DBNull;
  5385. }
  5386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5388. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product() {
  5389. if ((this.Table.ChildRelations["FK_AttachedProduct_Product"] == null)) {
  5390. return new AttachedProductRow[0];
  5391. }
  5392. else {
  5393. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product"])));
  5394. }
  5395. }
  5396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5398. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product1() {
  5399. if ((this.Table.ChildRelations["FK_AttachedProduct_Product1"] == null)) {
  5400. return new AttachedProductRow[0];
  5401. }
  5402. else {
  5403. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product1"])));
  5404. }
  5405. }
  5406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5408. public ProductPhotoRow[] GetProductPhotoRows() {
  5409. if ((this.Table.ChildRelations["FK_ProductPhoto_Product"] == null)) {
  5410. return new ProductPhotoRow[0];
  5411. }
  5412. else {
  5413. return ((ProductPhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPhoto_Product"])));
  5414. }
  5415. }
  5416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5418. public ProductSaleRow[] GetProductSaleRows() {
  5419. if ((this.Table.ChildRelations["FK_ProductSale_Product"] == null)) {
  5420. return new ProductSaleRow[0];
  5421. }
  5422. else {
  5423. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_Product"])));
  5424. }
  5425. }
  5426. }
  5427. /// <summary>
  5428. ///Represents strongly named DataRow class.
  5429. ///</summary>
  5430. public partial class ProductPhotoRow : global::System.Data.DataRow {
  5431. private ProductPhotoDataTable tableProductPhoto;
  5432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5434. internal ProductPhotoRow(global::System.Data.DataRowBuilder rb) :
  5435. base(rb) {
  5436. this.tableProductPhoto = ((ProductPhotoDataTable)(this.Table));
  5437. }
  5438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5440. public int ID {
  5441. get {
  5442. return ((int)(this[this.tableProductPhoto.IDColumn]));
  5443. }
  5444. set {
  5445. this[this.tableProductPhoto.IDColumn] = value;
  5446. }
  5447. }
  5448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5450. public int ProductID {
  5451. get {
  5452. return ((int)(this[this.tableProductPhoto.ProductIDColumn]));
  5453. }
  5454. set {
  5455. this[this.tableProductPhoto.ProductIDColumn] = value;
  5456. }
  5457. }
  5458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5460. public string PhotoPath {
  5461. get {
  5462. return ((string)(this[this.tableProductPhoto.PhotoPathColumn]));
  5463. }
  5464. set {
  5465. this[this.tableProductPhoto.PhotoPathColumn] = value;
  5466. }
  5467. }
  5468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5470. public ProductRow ProductRow {
  5471. get {
  5472. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPhoto_Product"])));
  5473. }
  5474. set {
  5475. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPhoto_Product"]);
  5476. }
  5477. }
  5478. }
  5479. /// <summary>
  5480. ///Represents strongly named DataRow class.
  5481. ///</summary>
  5482. public partial class ProductSaleRow : global::System.Data.DataRow {
  5483. private ProductSaleDataTable tableProductSale;
  5484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5486. internal ProductSaleRow(global::System.Data.DataRowBuilder rb) :
  5487. base(rb) {
  5488. this.tableProductSale = ((ProductSaleDataTable)(this.Table));
  5489. }
  5490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5492. public int ID {
  5493. get {
  5494. return ((int)(this[this.tableProductSale.IDColumn]));
  5495. }
  5496. set {
  5497. this[this.tableProductSale.IDColumn] = value;
  5498. }
  5499. }
  5500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5502. public System.DateTime SaleDate {
  5503. get {
  5504. return ((global::System.DateTime)(this[this.tableProductSale.SaleDateColumn]));
  5505. }
  5506. set {
  5507. this[this.tableProductSale.SaleDateColumn] = value;
  5508. }
  5509. }
  5510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5512. public int ProductID {
  5513. get {
  5514. return ((int)(this[this.tableProductSale.ProductIDColumn]));
  5515. }
  5516. set {
  5517. this[this.tableProductSale.ProductIDColumn] = value;
  5518. }
  5519. }
  5520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5522. public int Quantity {
  5523. get {
  5524. return ((int)(this[this.tableProductSale.QuantityColumn]));
  5525. }
  5526. set {
  5527. this[this.tableProductSale.QuantityColumn] = value;
  5528. }
  5529. }
  5530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5532. public int ClientServiceID {
  5533. get {
  5534. try {
  5535. return ((int)(this[this.tableProductSale.ClientServiceIDColumn]));
  5536. }
  5537. catch (global::System.InvalidCastException e) {
  5538. throw new global::System.Data.StrongTypingException("Значение для столбца \'ClientServiceID\' в таблице \'ProductSale\' равно DBNull.", e);
  5539. }
  5540. }
  5541. set {
  5542. this[this.tableProductSale.ClientServiceIDColumn] = value;
  5543. }
  5544. }
  5545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5547. public ClientServiceRow ClientServiceRow {
  5548. get {
  5549. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_ClientService"])));
  5550. }
  5551. set {
  5552. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_ClientService"]);
  5553. }
  5554. }
  5555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5557. public ProductRow ProductRow {
  5558. get {
  5559. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_Product"])));
  5560. }
  5561. set {
  5562. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_Product"]);
  5563. }
  5564. }
  5565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5567. public bool IsClientServiceIDNull() {
  5568. return this.IsNull(this.tableProductSale.ClientServiceIDColumn);
  5569. }
  5570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5572. public void SetClientServiceIDNull() {
  5573. this[this.tableProductSale.ClientServiceIDColumn] = global::System.Convert.DBNull;
  5574. }
  5575. }
  5576. /// <summary>
  5577. ///Represents strongly named DataRow class.
  5578. ///</summary>
  5579. public partial class ServiceRow : global::System.Data.DataRow {
  5580. private ServiceDataTable tableService;
  5581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5583. internal ServiceRow(global::System.Data.DataRowBuilder rb) :
  5584. base(rb) {
  5585. this.tableService = ((ServiceDataTable)(this.Table));
  5586. }
  5587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5589. public int ID {
  5590. get {
  5591. return ((int)(this[this.tableService.IDColumn]));
  5592. }
  5593. set {
  5594. this[this.tableService.IDColumn] = value;
  5595. }
  5596. }
  5597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5599. public string Title {
  5600. get {
  5601. return ((string)(this[this.tableService.TitleColumn]));
  5602. }
  5603. set {
  5604. this[this.tableService.TitleColumn] = value;
  5605. }
  5606. }
  5607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5609. public decimal Cost {
  5610. get {
  5611. return ((decimal)(this[this.tableService.CostColumn]));
  5612. }
  5613. set {
  5614. this[this.tableService.CostColumn] = value;
  5615. }
  5616. }
  5617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5619. public int DurationInSeconds {
  5620. get {
  5621. return ((int)(this[this.tableService.DurationInSecondsColumn]));
  5622. }
  5623. set {
  5624. this[this.tableService.DurationInSecondsColumn] = value;
  5625. }
  5626. }
  5627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5629. public string Description {
  5630. get {
  5631. try {
  5632. return ((string)(this[this.tableService.DescriptionColumn]));
  5633. }
  5634. catch (global::System.InvalidCastException e) {
  5635. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Service\' равно DBNull.", e);
  5636. }
  5637. }
  5638. set {
  5639. this[this.tableService.DescriptionColumn] = value;
  5640. }
  5641. }
  5642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5644. public double Discount {
  5645. get {
  5646. try {
  5647. return ((double)(this[this.tableService.DiscountColumn]));
  5648. }
  5649. catch (global::System.InvalidCastException e) {
  5650. throw new global::System.Data.StrongTypingException("Значение для столбца \'Discount\' в таблице \'Service\' равно DBNull.", e);
  5651. }
  5652. }
  5653. set {
  5654. this[this.tableService.DiscountColumn] = value;
  5655. }
  5656. }
  5657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5659. public string MainImagePath {
  5660. get {
  5661. try {
  5662. return ((string)(this[this.tableService.MainImagePathColumn]));
  5663. }
  5664. catch (global::System.InvalidCastException e) {
  5665. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Service\' равно DBNull.", e);
  5666. }
  5667. }
  5668. set {
  5669. this[this.tableService.MainImagePathColumn] = value;
  5670. }
  5671. }
  5672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5674. public string PhotoPhormat {
  5675. get {
  5676. try {
  5677. return ((string)(this[this.tableService.PhotoPhormatColumn]));
  5678. }
  5679. catch (global::System.InvalidCastException e) {
  5680. throw new global::System.Data.StrongTypingException("Значение для столбца \'PhotoPhormat\' в таблице \'Service\' равно DBNull.", e);
  5681. }
  5682. }
  5683. set {
  5684. this[this.tableService.PhotoPhormatColumn] = value;
  5685. }
  5686. }
  5687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5689. public byte[] ServicePhoto {
  5690. get {
  5691. try {
  5692. return ((byte[])(this[this.tableService.ServicePhotoColumn]));
  5693. }
  5694. catch (global::System.InvalidCastException e) {
  5695. throw new global::System.Data.StrongTypingException("Значение для столбца \'ServicePhoto\' в таблице \'Service\' равно DBNull.", e);
  5696. }
  5697. }
  5698. set {
  5699. this[this.tableService.ServicePhotoColumn] = value;
  5700. }
  5701. }
  5702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5704. public bool IsDescriptionNull() {
  5705. return this.IsNull(this.tableService.DescriptionColumn);
  5706. }
  5707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5709. public void SetDescriptionNull() {
  5710. this[this.tableService.DescriptionColumn] = global::System.Convert.DBNull;
  5711. }
  5712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5714. public bool IsDiscountNull() {
  5715. return this.IsNull(this.tableService.DiscountColumn);
  5716. }
  5717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5719. public void SetDiscountNull() {
  5720. this[this.tableService.DiscountColumn] = global::System.Convert.DBNull;
  5721. }
  5722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5724. public bool IsMainImagePathNull() {
  5725. return this.IsNull(this.tableService.MainImagePathColumn);
  5726. }
  5727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5729. public void SetMainImagePathNull() {
  5730. this[this.tableService.MainImagePathColumn] = global::System.Convert.DBNull;
  5731. }
  5732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5734. public bool IsPhotoPhormatNull() {
  5735. return this.IsNull(this.tableService.PhotoPhormatColumn);
  5736. }
  5737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5739. public void SetPhotoPhormatNull() {
  5740. this[this.tableService.PhotoPhormatColumn] = global::System.Convert.DBNull;
  5741. }
  5742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5744. public bool IsServicePhotoNull() {
  5745. return this.IsNull(this.tableService.ServicePhotoColumn);
  5746. }
  5747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5749. public void SetServicePhotoNull() {
  5750. this[this.tableService.ServicePhotoColumn] = global::System.Convert.DBNull;
  5751. }
  5752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5754. public ClientServiceRow[] GetClientServiceRows() {
  5755. if ((this.Table.ChildRelations["FK_ClientService_Service"] == null)) {
  5756. return new ClientServiceRow[0];
  5757. }
  5758. else {
  5759. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Service"])));
  5760. }
  5761. }
  5762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5764. public ServicePhotoRow[] GetServicePhotoRows() {
  5765. if ((this.Table.ChildRelations["FK_ServicePhoto_Service"] == null)) {
  5766. return new ServicePhotoRow[0];
  5767. }
  5768. else {
  5769. return ((ServicePhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ServicePhoto_Service"])));
  5770. }
  5771. }
  5772. }
  5773. /// <summary>
  5774. ///Represents strongly named DataRow class.
  5775. ///</summary>
  5776. public partial class ServicePhotoRow : global::System.Data.DataRow {
  5777. private ServicePhotoDataTable tableServicePhoto;
  5778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5780. internal ServicePhotoRow(global::System.Data.DataRowBuilder rb) :
  5781. base(rb) {
  5782. this.tableServicePhoto = ((ServicePhotoDataTable)(this.Table));
  5783. }
  5784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5786. public int ID {
  5787. get {
  5788. return ((int)(this[this.tableServicePhoto.IDColumn]));
  5789. }
  5790. set {
  5791. this[this.tableServicePhoto.IDColumn] = value;
  5792. }
  5793. }
  5794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5796. public int ServiceID {
  5797. get {
  5798. return ((int)(this[this.tableServicePhoto.ServiceIDColumn]));
  5799. }
  5800. set {
  5801. this[this.tableServicePhoto.ServiceIDColumn] = value;
  5802. }
  5803. }
  5804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5806. public string PhotoPath {
  5807. get {
  5808. return ((string)(this[this.tableServicePhoto.PhotoPathColumn]));
  5809. }
  5810. set {
  5811. this[this.tableServicePhoto.PhotoPathColumn] = value;
  5812. }
  5813. }
  5814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5816. public ServiceRow ServiceRow {
  5817. get {
  5818. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ServicePhoto_Service"])));
  5819. }
  5820. set {
  5821. this.SetParentRow(value, this.Table.ParentRelations["FK_ServicePhoto_Service"]);
  5822. }
  5823. }
  5824. }
  5825. /// <summary>
  5826. ///Represents strongly named DataRow class.
  5827. ///</summary>
  5828. public partial class TagRow : global::System.Data.DataRow {
  5829. private TagDataTable tableTag;
  5830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5832. internal TagRow(global::System.Data.DataRowBuilder rb) :
  5833. base(rb) {
  5834. this.tableTag = ((TagDataTable)(this.Table));
  5835. }
  5836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5838. public int ID {
  5839. get {
  5840. return ((int)(this[this.tableTag.IDColumn]));
  5841. }
  5842. set {
  5843. this[this.tableTag.IDColumn] = value;
  5844. }
  5845. }
  5846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5848. public string Title {
  5849. get {
  5850. return ((string)(this[this.tableTag.TitleColumn]));
  5851. }
  5852. set {
  5853. this[this.tableTag.TitleColumn] = value;
  5854. }
  5855. }
  5856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5858. public string Color {
  5859. get {
  5860. return ((string)(this[this.tableTag.ColorColumn]));
  5861. }
  5862. set {
  5863. this[this.tableTag.ColorColumn] = value;
  5864. }
  5865. }
  5866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5868. public TagOfClientRow[] GetTagOfClientRows() {
  5869. if ((this.Table.ChildRelations["FK_TagOfClient_Tag"] == null)) {
  5870. return new TagOfClientRow[0];
  5871. }
  5872. else {
  5873. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Tag"])));
  5874. }
  5875. }
  5876. }
  5877. /// <summary>
  5878. ///Represents strongly named DataRow class.
  5879. ///</summary>
  5880. public partial class TagOfClientRow : global::System.Data.DataRow {
  5881. private TagOfClientDataTable tableTagOfClient;
  5882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5884. internal TagOfClientRow(global::System.Data.DataRowBuilder rb) :
  5885. base(rb) {
  5886. this.tableTagOfClient = ((TagOfClientDataTable)(this.Table));
  5887. }
  5888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5890. public int ClientID {
  5891. get {
  5892. return ((int)(this[this.tableTagOfClient.ClientIDColumn]));
  5893. }
  5894. set {
  5895. this[this.tableTagOfClient.ClientIDColumn] = value;
  5896. }
  5897. }
  5898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5900. public int TagID {
  5901. get {
  5902. return ((int)(this[this.tableTagOfClient.TagIDColumn]));
  5903. }
  5904. set {
  5905. this[this.tableTagOfClient.TagIDColumn] = value;
  5906. }
  5907. }
  5908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5910. public TagRow TagRow {
  5911. get {
  5912. return ((TagRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Tag"])));
  5913. }
  5914. set {
  5915. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Tag"]);
  5916. }
  5917. }
  5918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5920. public ClientTableRow ClientTableRow {
  5921. get {
  5922. return ((ClientTableRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Client"])));
  5923. }
  5924. set {
  5925. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Client"]);
  5926. }
  5927. }
  5928. }
  5929. /// <summary>
  5930. ///Represents strongly named DataRow class.
  5931. ///</summary>
  5932. public partial class ClientTableRow : global::System.Data.DataRow {
  5933. private ClientTableDataTable tableClientTable;
  5934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5936. internal ClientTableRow(global::System.Data.DataRowBuilder rb) :
  5937. base(rb) {
  5938. this.tableClientTable = ((ClientTableDataTable)(this.Table));
  5939. }
  5940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5942. public int ID {
  5943. get {
  5944. return ((int)(this[this.tableClientTable.IDColumn]));
  5945. }
  5946. set {
  5947. this[this.tableClientTable.IDColumn] = value;
  5948. }
  5949. }
  5950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5952. public string FirstName {
  5953. get {
  5954. return ((string)(this[this.tableClientTable.FirstNameColumn]));
  5955. }
  5956. set {
  5957. this[this.tableClientTable.FirstNameColumn] = value;
  5958. }
  5959. }
  5960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5962. public string LastName {
  5963. get {
  5964. return ((string)(this[this.tableClientTable.LastNameColumn]));
  5965. }
  5966. set {
  5967. this[this.tableClientTable.LastNameColumn] = value;
  5968. }
  5969. }
  5970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5972. public string Patronymic {
  5973. get {
  5974. try {
  5975. return ((string)(this[this.tableClientTable.PatronymicColumn]));
  5976. }
  5977. catch (global::System.InvalidCastException e) {
  5978. throw new global::System.Data.StrongTypingException("Значение для столбца \'Patronymic\' в таблице \'ClientTable\' равно DBNull.", e);
  5979. }
  5980. }
  5981. set {
  5982. this[this.tableClientTable.PatronymicColumn] = value;
  5983. }
  5984. }
  5985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5987. public System.DateTime Birthday {
  5988. get {
  5989. try {
  5990. return ((global::System.DateTime)(this[this.tableClientTable.BirthdayColumn]));
  5991. }
  5992. catch (global::System.InvalidCastException e) {
  5993. throw new global::System.Data.StrongTypingException("Значение для столбца \'Birthday\' в таблице \'ClientTable\' равно DBNull.", e);
  5994. }
  5995. }
  5996. set {
  5997. this[this.tableClientTable.BirthdayColumn] = value;
  5998. }
  5999. }
  6000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6002. public System.DateTime RegistrationDate {
  6003. get {
  6004. return ((global::System.DateTime)(this[this.tableClientTable.RegistrationDateColumn]));
  6005. }
  6006. set {
  6007. this[this.tableClientTable.RegistrationDateColumn] = value;
  6008. }
  6009. }
  6010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6012. public string Email {
  6013. get {
  6014. try {
  6015. return ((string)(this[this.tableClientTable.EmailColumn]));
  6016. }
  6017. catch (global::System.InvalidCastException e) {
  6018. throw new global::System.Data.StrongTypingException("Значение для столбца \'Email\' в таблице \'ClientTable\' равно DBNull.", e);
  6019. }
  6020. }
  6021. set {
  6022. this[this.tableClientTable.EmailColumn] = value;
  6023. }
  6024. }
  6025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6027. public string Phone {
  6028. get {
  6029. return ((string)(this[this.tableClientTable.PhoneColumn]));
  6030. }
  6031. set {
  6032. this[this.tableClientTable.PhoneColumn] = value;
  6033. }
  6034. }
  6035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6037. public string GenderCode {
  6038. get {
  6039. return ((string)(this[this.tableClientTable.GenderCodeColumn]));
  6040. }
  6041. set {
  6042. this[this.tableClientTable.GenderCodeColumn] = value;
  6043. }
  6044. }
  6045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6047. public byte[] PhotoPath {
  6048. get {
  6049. try {
  6050. return ((byte[])(this[this.tableClientTable.PhotoPathColumn]));
  6051. }
  6052. catch (global::System.InvalidCastException e) {
  6053. throw new global::System.Data.StrongTypingException("Значение для столбца \'PhotoPath\' в таблице \'ClientTable\' равно DBNull.", e);
  6054. }
  6055. }
  6056. set {
  6057. this[this.tableClientTable.PhotoPathColumn] = value;
  6058. }
  6059. }
  6060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6062. public GenderRow GenderRow {
  6063. get {
  6064. return ((GenderRow)(this.GetParentRow(this.Table.ParentRelations["FK_Client_Gender"])));
  6065. }
  6066. set {
  6067. this.SetParentRow(value, this.Table.ParentRelations["FK_Client_Gender"]);
  6068. }
  6069. }
  6070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6072. public bool IsPatronymicNull() {
  6073. return this.IsNull(this.tableClientTable.PatronymicColumn);
  6074. }
  6075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6077. public void SetPatronymicNull() {
  6078. this[this.tableClientTable.PatronymicColumn] = global::System.Convert.DBNull;
  6079. }
  6080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6082. public bool IsBirthdayNull() {
  6083. return this.IsNull(this.tableClientTable.BirthdayColumn);
  6084. }
  6085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6087. public void SetBirthdayNull() {
  6088. this[this.tableClientTable.BirthdayColumn] = global::System.Convert.DBNull;
  6089. }
  6090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6092. public bool IsEmailNull() {
  6093. return this.IsNull(this.tableClientTable.EmailColumn);
  6094. }
  6095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6097. public void SetEmailNull() {
  6098. this[this.tableClientTable.EmailColumn] = global::System.Convert.DBNull;
  6099. }
  6100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6102. public bool IsPhotoPathNull() {
  6103. return this.IsNull(this.tableClientTable.PhotoPathColumn);
  6104. }
  6105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6107. public void SetPhotoPathNull() {
  6108. this[this.tableClientTable.PhotoPathColumn] = global::System.Convert.DBNull;
  6109. }
  6110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6112. public ClientServiceRow[] GetClientServiceRows() {
  6113. if ((this.Table.ChildRelations["FK_ClientService_Client"] == null)) {
  6114. return new ClientServiceRow[0];
  6115. }
  6116. else {
  6117. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Client"])));
  6118. }
  6119. }
  6120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6122. public TagOfClientRow[] GetTagOfClientRows() {
  6123. if ((this.Table.ChildRelations["FK_TagOfClient_Client"] == null)) {
  6124. return new TagOfClientRow[0];
  6125. }
  6126. else {
  6127. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Client"])));
  6128. }
  6129. }
  6130. }
  6131. /// <summary>
  6132. ///Represents strongly named DataRow class.
  6133. ///</summary>
  6134. public partial class UserTableRow : global::System.Data.DataRow {
  6135. private UserTableDataTable tableUserTable;
  6136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6138. internal UserTableRow(global::System.Data.DataRowBuilder rb) :
  6139. base(rb) {
  6140. this.tableUserTable = ((UserTableDataTable)(this.Table));
  6141. }
  6142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6144. public int UserID {
  6145. get {
  6146. return ((int)(this[this.tableUserTable.UserIDColumn]));
  6147. }
  6148. set {
  6149. this[this.tableUserTable.UserIDColumn] = value;
  6150. }
  6151. }
  6152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6154. public int UserRole {
  6155. get {
  6156. return ((int)(this[this.tableUserTable.UserRoleColumn]));
  6157. }
  6158. set {
  6159. this[this.tableUserTable.UserRoleColumn] = value;
  6160. }
  6161. }
  6162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6164. public RoleTableRow RoleTableRow {
  6165. get {
  6166. return ((RoleTableRow)(this.GetParentRow(this.Table.ParentRelations["FK_UserTable_RoleTable"])));
  6167. }
  6168. set {
  6169. this.SetParentRow(value, this.Table.ParentRelations["FK_UserTable_RoleTable"]);
  6170. }
  6171. }
  6172. }
  6173. /// <summary>
  6174. ///Represents strongly named DataRow class.
  6175. ///</summary>
  6176. public partial class RoleTableRow : global::System.Data.DataRow {
  6177. private RoleTableDataTable tableRoleTable;
  6178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6180. internal RoleTableRow(global::System.Data.DataRowBuilder rb) :
  6181. base(rb) {
  6182. this.tableRoleTable = ((RoleTableDataTable)(this.Table));
  6183. }
  6184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6186. public int UserRole {
  6187. get {
  6188. return ((int)(this[this.tableRoleTable.UserRoleColumn]));
  6189. }
  6190. set {
  6191. this[this.tableRoleTable.UserRoleColumn] = value;
  6192. }
  6193. }
  6194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6196. public string RoleName {
  6197. get {
  6198. try {
  6199. return ((string)(this[this.tableRoleTable.RoleNameColumn]));
  6200. }
  6201. catch (global::System.InvalidCastException e) {
  6202. throw new global::System.Data.StrongTypingException("Значение для столбца \'RoleName\' в таблице \'RoleTable\' равно DBNull.", e);
  6203. }
  6204. }
  6205. set {
  6206. this[this.tableRoleTable.RoleNameColumn] = value;
  6207. }
  6208. }
  6209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6211. public bool IsRoleNameNull() {
  6212. return this.IsNull(this.tableRoleTable.RoleNameColumn);
  6213. }
  6214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6216. public void SetRoleNameNull() {
  6217. this[this.tableRoleTable.RoleNameColumn] = global::System.Convert.DBNull;
  6218. }
  6219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6221. public UserTableRow[] GetUserTableRows() {
  6222. if ((this.Table.ChildRelations["FK_UserTable_RoleTable"] == null)) {
  6223. return new UserTableRow[0];
  6224. }
  6225. else {
  6226. return ((UserTableRow[])(base.GetChildRows(this.Table.ChildRelations["FK_UserTable_RoleTable"])));
  6227. }
  6228. }
  6229. }
  6230. /// <summary>
  6231. ///Row event argument class
  6232. ///</summary>
  6233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6234. public class AttachedProductRowChangeEvent : global::System.EventArgs {
  6235. private AttachedProductRow eventRow;
  6236. private global::System.Data.DataRowAction eventAction;
  6237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6239. public AttachedProductRowChangeEvent(AttachedProductRow row, global::System.Data.DataRowAction action) {
  6240. this.eventRow = row;
  6241. this.eventAction = action;
  6242. }
  6243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6245. public AttachedProductRow Row {
  6246. get {
  6247. return this.eventRow;
  6248. }
  6249. }
  6250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6252. public global::System.Data.DataRowAction Action {
  6253. get {
  6254. return this.eventAction;
  6255. }
  6256. }
  6257. }
  6258. /// <summary>
  6259. ///Row event argument class
  6260. ///</summary>
  6261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6262. public class ClientServiceRowChangeEvent : global::System.EventArgs {
  6263. private ClientServiceRow eventRow;
  6264. private global::System.Data.DataRowAction eventAction;
  6265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6267. public ClientServiceRowChangeEvent(ClientServiceRow row, global::System.Data.DataRowAction action) {
  6268. this.eventRow = row;
  6269. this.eventAction = action;
  6270. }
  6271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6273. public ClientServiceRow Row {
  6274. get {
  6275. return this.eventRow;
  6276. }
  6277. }
  6278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6280. public global::System.Data.DataRowAction Action {
  6281. get {
  6282. return this.eventAction;
  6283. }
  6284. }
  6285. }
  6286. /// <summary>
  6287. ///Row event argument class
  6288. ///</summary>
  6289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6290. public class DocumentByServiceRowChangeEvent : global::System.EventArgs {
  6291. private DocumentByServiceRow eventRow;
  6292. private global::System.Data.DataRowAction eventAction;
  6293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6295. public DocumentByServiceRowChangeEvent(DocumentByServiceRow row, global::System.Data.DataRowAction action) {
  6296. this.eventRow = row;
  6297. this.eventAction = action;
  6298. }
  6299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6301. public DocumentByServiceRow Row {
  6302. get {
  6303. return this.eventRow;
  6304. }
  6305. }
  6306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6308. public global::System.Data.DataRowAction Action {
  6309. get {
  6310. return this.eventAction;
  6311. }
  6312. }
  6313. }
  6314. /// <summary>
  6315. ///Row event argument class
  6316. ///</summary>
  6317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6318. public class GenderRowChangeEvent : global::System.EventArgs {
  6319. private GenderRow eventRow;
  6320. private global::System.Data.DataRowAction eventAction;
  6321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6323. public GenderRowChangeEvent(GenderRow row, global::System.Data.DataRowAction action) {
  6324. this.eventRow = row;
  6325. this.eventAction = action;
  6326. }
  6327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6329. public GenderRow Row {
  6330. get {
  6331. return this.eventRow;
  6332. }
  6333. }
  6334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6336. public global::System.Data.DataRowAction Action {
  6337. get {
  6338. return this.eventAction;
  6339. }
  6340. }
  6341. }
  6342. /// <summary>
  6343. ///Row event argument class
  6344. ///</summary>
  6345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6346. public class ManufacturerRowChangeEvent : global::System.EventArgs {
  6347. private ManufacturerRow eventRow;
  6348. private global::System.Data.DataRowAction eventAction;
  6349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6351. public ManufacturerRowChangeEvent(ManufacturerRow row, global::System.Data.DataRowAction action) {
  6352. this.eventRow = row;
  6353. this.eventAction = action;
  6354. }
  6355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6357. public ManufacturerRow Row {
  6358. get {
  6359. return this.eventRow;
  6360. }
  6361. }
  6362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6364. public global::System.Data.DataRowAction Action {
  6365. get {
  6366. return this.eventAction;
  6367. }
  6368. }
  6369. }
  6370. /// <summary>
  6371. ///Row event argument class
  6372. ///</summary>
  6373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6374. public class ProductRowChangeEvent : global::System.EventArgs {
  6375. private ProductRow eventRow;
  6376. private global::System.Data.DataRowAction eventAction;
  6377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6379. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  6380. this.eventRow = row;
  6381. this.eventAction = action;
  6382. }
  6383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6385. public ProductRow Row {
  6386. get {
  6387. return this.eventRow;
  6388. }
  6389. }
  6390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6392. public global::System.Data.DataRowAction Action {
  6393. get {
  6394. return this.eventAction;
  6395. }
  6396. }
  6397. }
  6398. /// <summary>
  6399. ///Row event argument class
  6400. ///</summary>
  6401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6402. public class ProductPhotoRowChangeEvent : global::System.EventArgs {
  6403. private ProductPhotoRow eventRow;
  6404. private global::System.Data.DataRowAction eventAction;
  6405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6407. public ProductPhotoRowChangeEvent(ProductPhotoRow row, global::System.Data.DataRowAction action) {
  6408. this.eventRow = row;
  6409. this.eventAction = action;
  6410. }
  6411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6413. public ProductPhotoRow Row {
  6414. get {
  6415. return this.eventRow;
  6416. }
  6417. }
  6418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6420. public global::System.Data.DataRowAction Action {
  6421. get {
  6422. return this.eventAction;
  6423. }
  6424. }
  6425. }
  6426. /// <summary>
  6427. ///Row event argument class
  6428. ///</summary>
  6429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6430. public class ProductSaleRowChangeEvent : global::System.EventArgs {
  6431. private ProductSaleRow eventRow;
  6432. private global::System.Data.DataRowAction eventAction;
  6433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6435. public ProductSaleRowChangeEvent(ProductSaleRow row, global::System.Data.DataRowAction action) {
  6436. this.eventRow = row;
  6437. this.eventAction = action;
  6438. }
  6439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6441. public ProductSaleRow Row {
  6442. get {
  6443. return this.eventRow;
  6444. }
  6445. }
  6446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6448. public global::System.Data.DataRowAction Action {
  6449. get {
  6450. return this.eventAction;
  6451. }
  6452. }
  6453. }
  6454. /// <summary>
  6455. ///Row event argument class
  6456. ///</summary>
  6457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6458. public class ServiceRowChangeEvent : global::System.EventArgs {
  6459. private ServiceRow eventRow;
  6460. private global::System.Data.DataRowAction eventAction;
  6461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6463. public ServiceRowChangeEvent(ServiceRow row, global::System.Data.DataRowAction action) {
  6464. this.eventRow = row;
  6465. this.eventAction = action;
  6466. }
  6467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6469. public ServiceRow Row {
  6470. get {
  6471. return this.eventRow;
  6472. }
  6473. }
  6474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6476. public global::System.Data.DataRowAction Action {
  6477. get {
  6478. return this.eventAction;
  6479. }
  6480. }
  6481. }
  6482. /// <summary>
  6483. ///Row event argument class
  6484. ///</summary>
  6485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6486. public class ServicePhotoRowChangeEvent : global::System.EventArgs {
  6487. private ServicePhotoRow eventRow;
  6488. private global::System.Data.DataRowAction eventAction;
  6489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6491. public ServicePhotoRowChangeEvent(ServicePhotoRow row, global::System.Data.DataRowAction action) {
  6492. this.eventRow = row;
  6493. this.eventAction = action;
  6494. }
  6495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6497. public ServicePhotoRow Row {
  6498. get {
  6499. return this.eventRow;
  6500. }
  6501. }
  6502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6504. public global::System.Data.DataRowAction Action {
  6505. get {
  6506. return this.eventAction;
  6507. }
  6508. }
  6509. }
  6510. /// <summary>
  6511. ///Row event argument class
  6512. ///</summary>
  6513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6514. public class TagRowChangeEvent : global::System.EventArgs {
  6515. private TagRow eventRow;
  6516. private global::System.Data.DataRowAction eventAction;
  6517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6519. public TagRowChangeEvent(TagRow row, global::System.Data.DataRowAction action) {
  6520. this.eventRow = row;
  6521. this.eventAction = action;
  6522. }
  6523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6525. public TagRow Row {
  6526. get {
  6527. return this.eventRow;
  6528. }
  6529. }
  6530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6532. public global::System.Data.DataRowAction Action {
  6533. get {
  6534. return this.eventAction;
  6535. }
  6536. }
  6537. }
  6538. /// <summary>
  6539. ///Row event argument class
  6540. ///</summary>
  6541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6542. public class TagOfClientRowChangeEvent : global::System.EventArgs {
  6543. private TagOfClientRow eventRow;
  6544. private global::System.Data.DataRowAction eventAction;
  6545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6547. public TagOfClientRowChangeEvent(TagOfClientRow row, global::System.Data.DataRowAction action) {
  6548. this.eventRow = row;
  6549. this.eventAction = action;
  6550. }
  6551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6553. public TagOfClientRow Row {
  6554. get {
  6555. return this.eventRow;
  6556. }
  6557. }
  6558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6560. public global::System.Data.DataRowAction Action {
  6561. get {
  6562. return this.eventAction;
  6563. }
  6564. }
  6565. }
  6566. /// <summary>
  6567. ///Row event argument class
  6568. ///</summary>
  6569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6570. public class ClientTableRowChangeEvent : global::System.EventArgs {
  6571. private ClientTableRow eventRow;
  6572. private global::System.Data.DataRowAction eventAction;
  6573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6575. public ClientTableRowChangeEvent(ClientTableRow row, global::System.Data.DataRowAction action) {
  6576. this.eventRow = row;
  6577. this.eventAction = action;
  6578. }
  6579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6581. public ClientTableRow Row {
  6582. get {
  6583. return this.eventRow;
  6584. }
  6585. }
  6586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6588. public global::System.Data.DataRowAction Action {
  6589. get {
  6590. return this.eventAction;
  6591. }
  6592. }
  6593. }
  6594. /// <summary>
  6595. ///Row event argument class
  6596. ///</summary>
  6597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6598. public class UserTableRowChangeEvent : global::System.EventArgs {
  6599. private UserTableRow eventRow;
  6600. private global::System.Data.DataRowAction eventAction;
  6601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6603. public UserTableRowChangeEvent(UserTableRow row, global::System.Data.DataRowAction action) {
  6604. this.eventRow = row;
  6605. this.eventAction = action;
  6606. }
  6607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6609. public UserTableRow Row {
  6610. get {
  6611. return this.eventRow;
  6612. }
  6613. }
  6614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6616. public global::System.Data.DataRowAction Action {
  6617. get {
  6618. return this.eventAction;
  6619. }
  6620. }
  6621. }
  6622. /// <summary>
  6623. ///Row event argument class
  6624. ///</summary>
  6625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6626. public class RoleTableRowChangeEvent : global::System.EventArgs {
  6627. private RoleTableRow eventRow;
  6628. private global::System.Data.DataRowAction eventAction;
  6629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6631. public RoleTableRowChangeEvent(RoleTableRow row, global::System.Data.DataRowAction action) {
  6632. this.eventRow = row;
  6633. this.eventAction = action;
  6634. }
  6635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6637. public RoleTableRow Row {
  6638. get {
  6639. return this.eventRow;
  6640. }
  6641. }
  6642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6644. public global::System.Data.DataRowAction Action {
  6645. get {
  6646. return this.eventAction;
  6647. }
  6648. }
  6649. }
  6650. }
  6651. }
  6652. namespace _02Trade._02TradeDataSetTableAdapters {
  6653. /// <summary>
  6654. ///Represents the connection and commands used to retrieve and save data.
  6655. ///</summary>
  6656. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6657. [global::System.ComponentModel.ToolboxItem(true)]
  6658. [global::System.ComponentModel.DataObjectAttribute(true)]
  6659. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6660. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6661. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6662. public partial class AttachedProductTableAdapter : global::System.ComponentModel.Component {
  6663. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6664. private global::System.Data.SqlClient.SqlConnection _connection;
  6665. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6666. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6667. private bool _clearBeforeFill;
  6668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6670. public AttachedProductTableAdapter() {
  6671. this.ClearBeforeFill = true;
  6672. }
  6673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6675. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6676. get {
  6677. if ((this._adapter == null)) {
  6678. this.InitAdapter();
  6679. }
  6680. return this._adapter;
  6681. }
  6682. }
  6683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6685. internal global::System.Data.SqlClient.SqlConnection Connection {
  6686. get {
  6687. if ((this._connection == null)) {
  6688. this.InitConnection();
  6689. }
  6690. return this._connection;
  6691. }
  6692. set {
  6693. this._connection = value;
  6694. if ((this.Adapter.InsertCommand != null)) {
  6695. this.Adapter.InsertCommand.Connection = value;
  6696. }
  6697. if ((this.Adapter.DeleteCommand != null)) {
  6698. this.Adapter.DeleteCommand.Connection = value;
  6699. }
  6700. if ((this.Adapter.UpdateCommand != null)) {
  6701. this.Adapter.UpdateCommand.Connection = value;
  6702. }
  6703. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6704. if ((this.CommandCollection[i] != null)) {
  6705. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6706. }
  6707. }
  6708. }
  6709. }
  6710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6712. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6713. get {
  6714. return this._transaction;
  6715. }
  6716. set {
  6717. this._transaction = value;
  6718. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6719. this.CommandCollection[i].Transaction = this._transaction;
  6720. }
  6721. if (((this.Adapter != null)
  6722. && (this.Adapter.DeleteCommand != null))) {
  6723. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6724. }
  6725. if (((this.Adapter != null)
  6726. && (this.Adapter.InsertCommand != null))) {
  6727. this.Adapter.InsertCommand.Transaction = this._transaction;
  6728. }
  6729. if (((this.Adapter != null)
  6730. && (this.Adapter.UpdateCommand != null))) {
  6731. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6732. }
  6733. }
  6734. }
  6735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6737. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6738. get {
  6739. if ((this._commandCollection == null)) {
  6740. this.InitCommandCollection();
  6741. }
  6742. return this._commandCollection;
  6743. }
  6744. }
  6745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6747. public bool ClearBeforeFill {
  6748. get {
  6749. return this._clearBeforeFill;
  6750. }
  6751. set {
  6752. this._clearBeforeFill = value;
  6753. }
  6754. }
  6755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6757. private void InitAdapter() {
  6758. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6759. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6760. tableMapping.SourceTable = "Table";
  6761. tableMapping.DataSetTable = "AttachedProduct";
  6762. tableMapping.ColumnMappings.Add("MainProductID", "MainProductID");
  6763. tableMapping.ColumnMappings.Add("AttachedProductID", "AttachedProductID");
  6764. this._adapter.TableMappings.Add(tableMapping);
  6765. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6766. this._adapter.DeleteCommand.Connection = this.Connection;
  6767. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AttachedProduct] WHERE (([MainProductID] = @Original_MainProdu" +
  6768. "ctID) AND ([AttachedProductID] = @Original_AttachedProductID))";
  6769. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6770. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MainProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6771. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AttachedProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AttachedProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6772. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6773. this._adapter.InsertCommand.Connection = this.Connection;
  6774. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AttachedProduct] ([MainProductID], [AttachedProductID]) VALUES (@MainProductID, @AttachedProductID);
  6775. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  6776. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6777. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6778. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AttachedProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AttachedProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6779. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6780. this._adapter.UpdateCommand.Connection = this.Connection;
  6781. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AttachedProduct] SET [MainProductID] = @MainProductID, [AttachedProductID] = @AttachedProductID WHERE (([MainProductID] = @Original_MainProductID) AND ([AttachedProductID] = @Original_AttachedProductID));
  6782. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  6783. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6784. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6785. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AttachedProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AttachedProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6786. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MainProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6787. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AttachedProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AttachedProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6788. }
  6789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6791. private void InitConnection() {
  6792. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6793. this._connection.ConnectionString = global::_02Trade.Properties.Settings.Default._02TradeConnectionString;
  6794. }
  6795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6797. private void InitCommandCollection() {
  6798. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6799. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6800. this._commandCollection[0].Connection = this.Connection;
  6801. this._commandCollection[0].CommandText = "SELECT MainProductID, AttachedProductID FROM dbo.AttachedProduct";
  6802. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6803. }
  6804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6806. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6807. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6808. public virtual int Fill(_02TradeDataSet.AttachedProductDataTable dataTable) {
  6809. this.Adapter.SelectCommand = this.CommandCollection[0];
  6810. if ((this.ClearBeforeFill == true)) {
  6811. dataTable.Clear();
  6812. }
  6813. int returnValue = this.Adapter.Fill(dataTable);
  6814. return returnValue;
  6815. }
  6816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6818. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6819. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6820. public virtual _02TradeDataSet.AttachedProductDataTable GetData() {
  6821. this.Adapter.SelectCommand = this.CommandCollection[0];
  6822. _02TradeDataSet.AttachedProductDataTable dataTable = new _02TradeDataSet.AttachedProductDataTable();
  6823. this.Adapter.Fill(dataTable);
  6824. return dataTable;
  6825. }
  6826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6828. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6829. public virtual int Update(_02TradeDataSet.AttachedProductDataTable dataTable) {
  6830. return this.Adapter.Update(dataTable);
  6831. }
  6832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6834. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6835. public virtual int Update(_02TradeDataSet dataSet) {
  6836. return this.Adapter.Update(dataSet, "AttachedProduct");
  6837. }
  6838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6840. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6841. public virtual int Update(global::System.Data.DataRow dataRow) {
  6842. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6843. dataRow});
  6844. }
  6845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6847. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6848. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6849. return this.Adapter.Update(dataRows);
  6850. }
  6851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6853. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6854. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6855. public virtual int Delete(int Original_MainProductID, int Original_AttachedProductID) {
  6856. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_MainProductID));
  6857. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_AttachedProductID));
  6858. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6859. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6860. != global::System.Data.ConnectionState.Open)) {
  6861. this.Adapter.DeleteCommand.Connection.Open();
  6862. }
  6863. try {
  6864. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6865. return returnValue;
  6866. }
  6867. finally {
  6868. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6869. this.Adapter.DeleteCommand.Connection.Close();
  6870. }
  6871. }
  6872. }
  6873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6875. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6876. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6877. public virtual int Insert(int MainProductID, int AttachedProductID) {
  6878. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(MainProductID));
  6879. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(AttachedProductID));
  6880. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6881. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6882. != global::System.Data.ConnectionState.Open)) {
  6883. this.Adapter.InsertCommand.Connection.Open();
  6884. }
  6885. try {
  6886. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6887. return returnValue;
  6888. }
  6889. finally {
  6890. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6891. this.Adapter.InsertCommand.Connection.Close();
  6892. }
  6893. }
  6894. }
  6895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6897. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6898. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6899. public virtual int Update(int MainProductID, int AttachedProductID, int Original_MainProductID, int Original_AttachedProductID) {
  6900. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(MainProductID));
  6901. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(AttachedProductID));
  6902. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_MainProductID));
  6903. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_AttachedProductID));
  6904. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6905. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6906. != global::System.Data.ConnectionState.Open)) {
  6907. this.Adapter.UpdateCommand.Connection.Open();
  6908. }
  6909. try {
  6910. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6911. return returnValue;
  6912. }
  6913. finally {
  6914. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6915. this.Adapter.UpdateCommand.Connection.Close();
  6916. }
  6917. }
  6918. }
  6919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6921. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6922. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6923. public virtual int Update(int Original_MainProductID, int Original_AttachedProductID) {
  6924. return this.Update(Original_MainProductID, Original_AttachedProductID, Original_MainProductID, Original_AttachedProductID);
  6925. }
  6926. }
  6927. /// <summary>
  6928. ///Represents the connection and commands used to retrieve and save data.
  6929. ///</summary>
  6930. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6931. [global::System.ComponentModel.ToolboxItem(true)]
  6932. [global::System.ComponentModel.DataObjectAttribute(true)]
  6933. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6934. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6935. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6936. public partial class ClientServiceTableAdapter : global::System.ComponentModel.Component {
  6937. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6938. private global::System.Data.SqlClient.SqlConnection _connection;
  6939. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6940. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6941. private bool _clearBeforeFill;
  6942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6944. public ClientServiceTableAdapter() {
  6945. this.ClearBeforeFill = true;
  6946. }
  6947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6949. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6950. get {
  6951. if ((this._adapter == null)) {
  6952. this.InitAdapter();
  6953. }
  6954. return this._adapter;
  6955. }
  6956. }
  6957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6959. internal global::System.Data.SqlClient.SqlConnection Connection {
  6960. get {
  6961. if ((this._connection == null)) {
  6962. this.InitConnection();
  6963. }
  6964. return this._connection;
  6965. }
  6966. set {
  6967. this._connection = value;
  6968. if ((this.Adapter.InsertCommand != null)) {
  6969. this.Adapter.InsertCommand.Connection = value;
  6970. }
  6971. if ((this.Adapter.DeleteCommand != null)) {
  6972. this.Adapter.DeleteCommand.Connection = value;
  6973. }
  6974. if ((this.Adapter.UpdateCommand != null)) {
  6975. this.Adapter.UpdateCommand.Connection = value;
  6976. }
  6977. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6978. if ((this.CommandCollection[i] != null)) {
  6979. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6980. }
  6981. }
  6982. }
  6983. }
  6984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6986. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6987. get {
  6988. return this._transaction;
  6989. }
  6990. set {
  6991. this._transaction = value;
  6992. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6993. this.CommandCollection[i].Transaction = this._transaction;
  6994. }
  6995. if (((this.Adapter != null)
  6996. && (this.Adapter.DeleteCommand != null))) {
  6997. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6998. }
  6999. if (((this.Adapter != null)
  7000. && (this.Adapter.InsertCommand != null))) {
  7001. this.Adapter.InsertCommand.Transaction = this._transaction;
  7002. }
  7003. if (((this.Adapter != null)
  7004. && (this.Adapter.UpdateCommand != null))) {
  7005. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7006. }
  7007. }
  7008. }
  7009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7011. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7012. get {
  7013. if ((this._commandCollection == null)) {
  7014. this.InitCommandCollection();
  7015. }
  7016. return this._commandCollection;
  7017. }
  7018. }
  7019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7021. public bool ClearBeforeFill {
  7022. get {
  7023. return this._clearBeforeFill;
  7024. }
  7025. set {
  7026. this._clearBeforeFill = value;
  7027. }
  7028. }
  7029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7031. private void InitAdapter() {
  7032. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7033. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7034. tableMapping.SourceTable = "Table";
  7035. tableMapping.DataSetTable = "ClientService";
  7036. tableMapping.ColumnMappings.Add("ID", "ID");
  7037. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  7038. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  7039. tableMapping.ColumnMappings.Add("StartTime", "StartTime");
  7040. tableMapping.ColumnMappings.Add("Comment", "Comment");
  7041. this._adapter.TableMappings.Add(tableMapping);
  7042. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7043. this._adapter.DeleteCommand.Connection = this.Connection;
  7044. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ClientService] WHERE (([ID] = @Original_ID) AND ([ClientID] = " +
  7045. "@Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @" +
  7046. "Original_StartTime))";
  7047. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7048. 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, "", "", ""));
  7049. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7050. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7051. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartTime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7052. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7053. this._adapter.InsertCommand.Connection = this.Connection;
  7054. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ClientService] ([ClientID], [ServiceID], [StartTime], [Comment" +
  7055. "]) VALUES (@ClientID, @ServiceID, @StartTime, @Comment);\r\nSELECT ID, ClientID, S" +
  7056. "erviceID, StartTime, Comment FROM ClientService WHERE (ID = SCOPE_IDENTITY())";
  7057. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7058. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7059. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7060. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartTime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7061. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Comment", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7062. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7063. this._adapter.UpdateCommand.Connection = this.Connection;
  7064. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ClientService] SET [ClientID] = @ClientID, [ServiceID] = @ServiceID, [StartTime] = @StartTime, [Comment] = @Comment WHERE (([ID] = @Original_ID) AND ([ClientID] = @Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @Original_StartTime));
  7065. SELECT ID, ClientID, ServiceID, StartTime, Comment FROM ClientService WHERE (ID = @ID)";
  7066. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7067. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7068. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7069. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartTime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7070. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Comment", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7071. 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, "", "", ""));
  7072. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7073. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7074. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartTime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7075. 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, "", "", ""));
  7076. }
  7077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7079. private void InitConnection() {
  7080. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7081. this._connection.ConnectionString = global::_02Trade.Properties.Settings.Default._02TradeConnectionString;
  7082. }
  7083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7085. private void InitCommandCollection() {
  7086. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7087. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7088. this._commandCollection[0].Connection = this.Connection;
  7089. this._commandCollection[0].CommandText = "SELECT ID, ClientID, ServiceID, StartTime, Comment FROM dbo.ClientService";
  7090. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7091. }
  7092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7094. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7095. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7096. public virtual int Fill(_02TradeDataSet.ClientServiceDataTable dataTable) {
  7097. this.Adapter.SelectCommand = this.CommandCollection[0];
  7098. if ((this.ClearBeforeFill == true)) {
  7099. dataTable.Clear();
  7100. }
  7101. int returnValue = this.Adapter.Fill(dataTable);
  7102. return returnValue;
  7103. }
  7104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7106. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7107. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7108. public virtual _02TradeDataSet.ClientServiceDataTable GetData() {
  7109. this.Adapter.SelectCommand = this.CommandCollection[0];
  7110. _02TradeDataSet.ClientServiceDataTable dataTable = new _02TradeDataSet.ClientServiceDataTable();
  7111. this.Adapter.Fill(dataTable);
  7112. return dataTable;
  7113. }
  7114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7116. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7117. public virtual int Update(_02TradeDataSet.ClientServiceDataTable dataTable) {
  7118. return this.Adapter.Update(dataTable);
  7119. }
  7120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7122. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7123. public virtual int Update(_02TradeDataSet dataSet) {
  7124. return this.Adapter.Update(dataSet, "ClientService");
  7125. }
  7126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7128. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7129. public virtual int Update(global::System.Data.DataRow dataRow) {
  7130. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7131. dataRow});
  7132. }
  7133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7135. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7136. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7137. return this.Adapter.Update(dataRows);
  7138. }
  7139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7141. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7142. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7143. public virtual int Delete(int Original_ID, int Original_ClientID, int Original_ServiceID, System.DateTime Original_StartTime) {
  7144. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7145. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientID));
  7146. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ServiceID));
  7147. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartTime));
  7148. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7149. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7150. != global::System.Data.ConnectionState.Open)) {
  7151. this.Adapter.DeleteCommand.Connection.Open();
  7152. }
  7153. try {
  7154. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7155. return returnValue;
  7156. }
  7157. finally {
  7158. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7159. this.Adapter.DeleteCommand.Connection.Close();
  7160. }
  7161. }
  7162. }
  7163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7165. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7166. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7167. public virtual int Insert(int ClientID, int ServiceID, System.DateTime StartTime, string Comment) {
  7168. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  7169. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ServiceID));
  7170. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  7171. if ((Comment == null)) {
  7172. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7173. }
  7174. else {
  7175. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Comment));
  7176. }
  7177. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7178. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7179. != global::System.Data.ConnectionState.Open)) {
  7180. this.Adapter.InsertCommand.Connection.Open();
  7181. }
  7182. try {
  7183. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7184. return returnValue;
  7185. }
  7186. finally {
  7187. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7188. this.Adapter.InsertCommand.Connection.Close();
  7189. }
  7190. }
  7191. }
  7192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7194. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7195. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7196. public virtual int Update(int ClientID, int ServiceID, System.DateTime StartTime, string Comment, int Original_ID, int Original_ClientID, int Original_ServiceID, System.DateTime Original_StartTime, int ID) {
  7197. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  7198. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ServiceID));
  7199. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  7200. if ((Comment == null)) {
  7201. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7202. }
  7203. else {
  7204. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Comment));
  7205. }
  7206. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  7207. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_ClientID));
  7208. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ServiceID));
  7209. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_StartTime));
  7210. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(ID));
  7211. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7212. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7213. != global::System.Data.ConnectionState.Open)) {
  7214. this.Adapter.UpdateCommand.Connection.Open();
  7215. }
  7216. try {
  7217. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7218. return returnValue;
  7219. }
  7220. finally {
  7221. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7222. this.Adapter.UpdateCommand.Connection.Close();
  7223. }
  7224. }
  7225. }
  7226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7228. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7229. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7230. public virtual int Update(int ClientID, int ServiceID, System.DateTime StartTime, string Comment, int Original_ID, int Original_ClientID, int Original_ServiceID, System.DateTime Original_StartTime) {
  7231. return this.Update(ClientID, ServiceID, StartTime, Comment, Original_ID, Original_ClientID, Original_ServiceID, Original_StartTime, Original_ID);
  7232. }
  7233. }
  7234. /// <summary>
  7235. ///Represents the connection and commands used to retrieve and save data.
  7236. ///</summary>
  7237. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7238. [global::System.ComponentModel.ToolboxItem(true)]
  7239. [global::System.ComponentModel.DataObjectAttribute(true)]
  7240. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7241. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7242. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7243. public partial class DocumentByServiceTableAdapter : global::System.ComponentModel.Component {
  7244. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7245. private global::System.Data.SqlClient.SqlConnection _connection;
  7246. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7247. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7248. private bool _clearBeforeFill;
  7249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7251. public DocumentByServiceTableAdapter() {
  7252. this.ClearBeforeFill = true;
  7253. }
  7254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7256. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7257. get {
  7258. if ((this._adapter == null)) {
  7259. this.InitAdapter();
  7260. }
  7261. return this._adapter;
  7262. }
  7263. }
  7264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7266. internal global::System.Data.SqlClient.SqlConnection Connection {
  7267. get {
  7268. if ((this._connection == null)) {
  7269. this.InitConnection();
  7270. }
  7271. return this._connection;
  7272. }
  7273. set {
  7274. this._connection = value;
  7275. if ((this.Adapter.InsertCommand != null)) {
  7276. this.Adapter.InsertCommand.Connection = value;
  7277. }
  7278. if ((this.Adapter.DeleteCommand != null)) {
  7279. this.Adapter.DeleteCommand.Connection = value;
  7280. }
  7281. if ((this.Adapter.UpdateCommand != null)) {
  7282. this.Adapter.UpdateCommand.Connection = value;
  7283. }
  7284. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7285. if ((this.CommandCollection[i] != null)) {
  7286. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7287. }
  7288. }
  7289. }
  7290. }
  7291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7293. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7294. get {
  7295. return this._transaction;
  7296. }
  7297. set {
  7298. this._transaction = value;
  7299. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7300. this.CommandCollection[i].Transaction = this._transaction;
  7301. }
  7302. if (((this.Adapter != null)
  7303. && (this.Adapter.DeleteCommand != null))) {
  7304. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7305. }
  7306. if (((this.Adapter != null)
  7307. && (this.Adapter.InsertCommand != null))) {
  7308. this.Adapter.InsertCommand.Transaction = this._transaction;
  7309. }
  7310. if (((this.Adapter != null)
  7311. && (this.Adapter.UpdateCommand != null))) {
  7312. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7313. }
  7314. }
  7315. }
  7316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7318. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7319. get {
  7320. if ((this._commandCollection == null)) {
  7321. this.InitCommandCollection();
  7322. }
  7323. return this._commandCollection;
  7324. }
  7325. }
  7326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7328. public bool ClearBeforeFill {
  7329. get {
  7330. return this._clearBeforeFill;
  7331. }
  7332. set {
  7333. this._clearBeforeFill = value;
  7334. }
  7335. }
  7336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7338. private void InitAdapter() {
  7339. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7340. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7341. tableMapping.SourceTable = "Table";
  7342. tableMapping.DataSetTable = "DocumentByService";
  7343. tableMapping.ColumnMappings.Add("ID", "ID");
  7344. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  7345. tableMapping.ColumnMappings.Add("DocumentPath", "DocumentPath");
  7346. this._adapter.TableMappings.Add(tableMapping);
  7347. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7348. this._adapter.DeleteCommand.Connection = this.Connection;
  7349. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[DocumentByService] WHERE (([ID] = @Original_ID) AND ([ClientSe" +
  7350. "rviceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPa" +
  7351. "th))";
  7352. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7353. 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, "", "", ""));
  7354. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7355. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DocumentPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DocumentPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7356. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7357. this._adapter.InsertCommand.Connection = this.Connection;
  7358. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[DocumentByService] ([ClientServiceID], [DocumentPath]) VALUES " +
  7359. "(@ClientServiceID, @DocumentPath);\r\nSELECT ID, ClientServiceID, DocumentPath FRO" +
  7360. "M DocumentByService WHERE (ID = SCOPE_IDENTITY())";
  7361. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7362. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7363. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DocumentPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DocumentPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7364. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7365. this._adapter.UpdateCommand.Connection = this.Connection;
  7366. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[DocumentByService] SET [ClientServiceID] = @ClientServiceID, [DocumentPath] = @DocumentPath WHERE (([ID] = @Original_ID) AND ([ClientServiceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPath));
  7367. SELECT ID, ClientServiceID, DocumentPath FROM DocumentByService WHERE (ID = @ID)";
  7368. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7369. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7370. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DocumentPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DocumentPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7371. 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, "", "", ""));
  7372. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7373. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DocumentPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DocumentPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7374. 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, "", "", ""));
  7375. }
  7376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7378. private void InitConnection() {
  7379. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7380. this._connection.ConnectionString = global::_02Trade.Properties.Settings.Default._02TradeConnectionString;
  7381. }
  7382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7384. private void InitCommandCollection() {
  7385. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7386. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7387. this._commandCollection[0].Connection = this.Connection;
  7388. this._commandCollection[0].CommandText = "SELECT ID, ClientServiceID, DocumentPath FROM dbo.DocumentByService";
  7389. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7390. }
  7391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7393. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7394. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7395. public virtual int Fill(_02TradeDataSet.DocumentByServiceDataTable dataTable) {
  7396. this.Adapter.SelectCommand = this.CommandCollection[0];
  7397. if ((this.ClearBeforeFill == true)) {
  7398. dataTable.Clear();
  7399. }
  7400. int returnValue = this.Adapter.Fill(dataTable);
  7401. return returnValue;
  7402. }
  7403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7405. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7406. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7407. public virtual _02TradeDataSet.DocumentByServiceDataTable GetData() {
  7408. this.Adapter.SelectCommand = this.CommandCollection[0];
  7409. _02TradeDataSet.DocumentByServiceDataTable dataTable = new _02TradeDataSet.DocumentByServiceDataTable();
  7410. this.Adapter.Fill(dataTable);
  7411. return dataTable;
  7412. }
  7413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7415. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7416. public virtual int Update(_02TradeDataSet.DocumentByServiceDataTable dataTable) {
  7417. return this.Adapter.Update(dataTable);
  7418. }
  7419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7421. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7422. public virtual int Update(_02TradeDataSet dataSet) {
  7423. return this.Adapter.Update(dataSet, "DocumentByService");
  7424. }
  7425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7427. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7428. public virtual int Update(global::System.Data.DataRow dataRow) {
  7429. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7430. dataRow});
  7431. }
  7432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7434. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7435. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7436. return this.Adapter.Update(dataRows);
  7437. }
  7438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7440. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7441. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7442. public virtual int Delete(int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  7443. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7444. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientServiceID));
  7445. if ((Original_DocumentPath == null)) {
  7446. throw new global::System.ArgumentNullException("Original_DocumentPath");
  7447. }
  7448. else {
  7449. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DocumentPath));
  7450. }
  7451. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7452. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7453. != global::System.Data.ConnectionState.Open)) {
  7454. this.Adapter.DeleteCommand.Connection.Open();
  7455. }
  7456. try {
  7457. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7458. return returnValue;
  7459. }
  7460. finally {
  7461. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7462. this.Adapter.DeleteCommand.Connection.Close();
  7463. }
  7464. }
  7465. }
  7466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7468. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7469. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7470. public virtual int Insert(int ClientServiceID, string DocumentPath) {
  7471. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientServiceID));
  7472. if ((DocumentPath == null)) {
  7473. throw new global::System.ArgumentNullException("DocumentPath");
  7474. }
  7475. else {
  7476. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DocumentPath));
  7477. }
  7478. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7479. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7480. != global::System.Data.ConnectionState.Open)) {
  7481. this.Adapter.InsertCommand.Connection.Open();
  7482. }
  7483. try {
  7484. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7485. return returnValue;
  7486. }
  7487. finally {
  7488. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7489. this.Adapter.InsertCommand.Connection.Close();
  7490. }
  7491. }
  7492. }
  7493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7495. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7496. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7497. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath, int ID) {
  7498. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientServiceID));
  7499. if ((DocumentPath == null)) {
  7500. throw new global::System.ArgumentNullException("DocumentPath");
  7501. }
  7502. else {
  7503. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DocumentPath));
  7504. }
  7505. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  7506. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ClientServiceID));
  7507. if ((Original_DocumentPath == null)) {
  7508. throw new global::System.ArgumentNullException("Original_DocumentPath");
  7509. }
  7510. else {
  7511. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DocumentPath));
  7512. }
  7513. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  7514. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7515. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7516. != global::System.Data.ConnectionState.Open)) {
  7517. this.Adapter.UpdateCommand.Connection.Open();
  7518. }
  7519. try {
  7520. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7521. return returnValue;
  7522. }
  7523. finally {
  7524. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7525. this.Adapter.UpdateCommand.Connection.Close();
  7526. }
  7527. }
  7528. }
  7529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7531. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7532. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7533. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  7534. return this.Update(ClientServiceID, DocumentPath, Original_ID, Original_ClientServiceID, Original_DocumentPath, Original_ID);
  7535. }
  7536. }
  7537. /// <summary>
  7538. ///Represents the connection and commands used to retrieve and save data.
  7539. ///</summary>
  7540. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7541. [global::System.ComponentModel.ToolboxItem(true)]
  7542. [global::System.ComponentModel.DataObjectAttribute(true)]
  7543. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7544. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7545. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7546. public partial class GenderTableAdapter : global::System.ComponentModel.Component {
  7547. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7548. private global::System.Data.SqlClient.SqlConnection _connection;
  7549. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7550. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7551. private bool _clearBeforeFill;
  7552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7554. public GenderTableAdapter() {
  7555. this.ClearBeforeFill = true;
  7556. }
  7557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7559. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7560. get {
  7561. if ((this._adapter == null)) {
  7562. this.InitAdapter();
  7563. }
  7564. return this._adapter;
  7565. }
  7566. }
  7567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7569. internal global::System.Data.SqlClient.SqlConnection Connection {
  7570. get {
  7571. if ((this._connection == null)) {
  7572. this.InitConnection();
  7573. }
  7574. return this._connection;
  7575. }
  7576. set {
  7577. this._connection = value;
  7578. if ((this.Adapter.InsertCommand != null)) {
  7579. this.Adapter.InsertCommand.Connection = value;
  7580. }
  7581. if ((this.Adapter.DeleteCommand != null)) {
  7582. this.Adapter.DeleteCommand.Connection = value;
  7583. }
  7584. if ((this.Adapter.UpdateCommand != null)) {
  7585. this.Adapter.UpdateCommand.Connection = value;
  7586. }
  7587. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7588. if ((this.CommandCollection[i] != null)) {
  7589. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7590. }
  7591. }
  7592. }
  7593. }
  7594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7596. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7597. get {
  7598. return this._transaction;
  7599. }
  7600. set {
  7601. this._transaction = value;
  7602. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7603. this.CommandCollection[i].Transaction = this._transaction;
  7604. }
  7605. if (((this.Adapter != null)
  7606. && (this.Adapter.DeleteCommand != null))) {
  7607. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7608. }
  7609. if (((this.Adapter != null)
  7610. && (this.Adapter.InsertCommand != null))) {
  7611. this.Adapter.InsertCommand.Transaction = this._transaction;
  7612. }
  7613. if (((this.Adapter != null)
  7614. && (this.Adapter.UpdateCommand != null))) {
  7615. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7616. }
  7617. }
  7618. }
  7619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7621. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7622. get {
  7623. if ((this._commandCollection == null)) {
  7624. this.InitCommandCollection();
  7625. }
  7626. return this._commandCollection;
  7627. }
  7628. }
  7629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7631. public bool ClearBeforeFill {
  7632. get {
  7633. return this._clearBeforeFill;
  7634. }
  7635. set {
  7636. this._clearBeforeFill = value;
  7637. }
  7638. }
  7639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7641. private void InitAdapter() {
  7642. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7643. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7644. tableMapping.SourceTable = "Table";
  7645. tableMapping.DataSetTable = "Gender";
  7646. tableMapping.ColumnMappings.Add("Code", "Code");
  7647. tableMapping.ColumnMappings.Add("Name", "Name");
  7648. this._adapter.TableMappings.Add(tableMapping);
  7649. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7650. this._adapter.DeleteCommand.Connection = this.Connection;
  7651. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Gender] WHERE (([Code] = @Original_Code) AND ((@IsNull_Name = " +
  7652. "1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))";
  7653. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7654. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7655. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7656. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7657. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7658. this._adapter.InsertCommand.Connection = this.Connection;
  7659. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Gender] ([Code], [Name]) VALUES (@Code, @Name);\r\nSELECT Code, " +
  7660. "Name FROM Gender WHERE (Code = @Code)";
  7661. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7662. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7663. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7664. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7665. this._adapter.UpdateCommand.Connection = this.Connection;
  7666. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Gender] SET [Code] = @Code, [Name] = @Name WHERE (([Code] = @Origin" +
  7667. "al_Code) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)" +
  7668. "));\r\nSELECT Code, Name FROM Gender WHERE (Code = @Code)";
  7669. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7670. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7671. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7672. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7673. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7674. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7675. }
  7676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7678. private void InitConnection() {
  7679. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7680. this._connection.ConnectionString = global::_02Trade.Properties.Settings.Default._02TradeConnectionString;
  7681. }
  7682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7684. private void InitCommandCollection() {
  7685. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7686. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7687. this._commandCollection[0].Connection = this.Connection;
  7688. this._commandCollection[0].CommandText = "SELECT Code, Name FROM dbo.Gender";
  7689. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7690. }
  7691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7693. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7694. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7695. public virtual int Fill(_02TradeDataSet.GenderDataTable dataTable) {
  7696. this.Adapter.SelectCommand = this.CommandCollection[0];
  7697. if ((this.ClearBeforeFill == true)) {
  7698. dataTable.Clear();
  7699. }
  7700. int returnValue = this.Adapter.Fill(dataTable);
  7701. return returnValue;
  7702. }
  7703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7705. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7706. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7707. public virtual _02TradeDataSet.GenderDataTable GetData() {
  7708. this.Adapter.SelectCommand = this.CommandCollection[0];
  7709. _02TradeDataSet.GenderDataTable dataTable = new _02TradeDataSet.GenderDataTable();
  7710. this.Adapter.Fill(dataTable);
  7711. return dataTable;
  7712. }
  7713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7715. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7716. public virtual int Update(_02TradeDataSet.GenderDataTable dataTable) {
  7717. return this.Adapter.Update(dataTable);
  7718. }
  7719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7721. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7722. public virtual int Update(_02TradeDataSet dataSet) {
  7723. return this.Adapter.Update(dataSet, "Gender");
  7724. }
  7725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7727. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7728. public virtual int Update(global::System.Data.DataRow dataRow) {
  7729. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7730. dataRow});
  7731. }
  7732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7734. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7735. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7736. return this.Adapter.Update(dataRows);
  7737. }
  7738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7740. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7741. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7742. public virtual int Delete(string Original_Code, string Original_Name) {
  7743. if ((Original_Code == null)) {
  7744. throw new global::System.ArgumentNullException("Original_Code");
  7745. }
  7746. else {
  7747. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Code));
  7748. }
  7749. if ((Original_Name == null)) {
  7750. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7751. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7752. }
  7753. else {
  7754. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7755. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name));
  7756. }
  7757. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7758. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7759. != global::System.Data.ConnectionState.Open)) {
  7760. this.Adapter.DeleteCommand.Connection.Open();
  7761. }
  7762. try {
  7763. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7764. return returnValue;
  7765. }
  7766. finally {
  7767. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7768. this.Adapter.DeleteCommand.Connection.Close();
  7769. }
  7770. }
  7771. }
  7772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7774. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7775. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7776. public virtual int Insert(string Code, string Name) {
  7777. if ((Code == null)) {
  7778. throw new global::System.ArgumentNullException("Code");
  7779. }
  7780. else {
  7781. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Code));
  7782. }
  7783. if ((Name == null)) {
  7784. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7785. }
  7786. else {
  7787. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  7788. }
  7789. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7790. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7791. != global::System.Data.ConnectionState.Open)) {
  7792. this.Adapter.InsertCommand.Connection.Open();
  7793. }
  7794. try {
  7795. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7796. return returnValue;
  7797. }
  7798. finally {
  7799. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7800. this.Adapter.InsertCommand.Connection.Close();
  7801. }
  7802. }
  7803. }
  7804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7806. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7807. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7808. public virtual int Update(string Code, string Name, string Original_Code, string Original_Name) {
  7809. if ((Code == null)) {
  7810. throw new global::System.ArgumentNullException("Code");
  7811. }
  7812. else {
  7813. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Code));
  7814. }
  7815. if ((Name == null)) {
  7816. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7817. }
  7818. else {
  7819. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  7820. }
  7821. if ((Original_Code == null)) {
  7822. throw new global::System.ArgumentNullException("Original_Code");
  7823. }
  7824. else {
  7825. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_Code));
  7826. }
  7827. if ((Original_Name == null)) {
  7828. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  7829. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7830. }
  7831. else {
  7832. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  7833. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Name));
  7834. }
  7835. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7836. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7837. != global::System.Data.ConnectionState.Open)) {
  7838. this.Adapter.UpdateCommand.Connection.Open();
  7839. }
  7840. try {
  7841. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7842. return returnValue;
  7843. }
  7844. finally {
  7845. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7846. this.Adapter.UpdateCommand.Connection.Close();
  7847. }
  7848. }
  7849. }
  7850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7852. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7853. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7854. public virtual int Update(string Name, string Original_Code, string Original_Name) {
  7855. return this.Update(Original_Code, Name, Original_Code, Original_Name);
  7856. }
  7857. }
  7858. /// <summary>
  7859. ///Represents the connection and commands used to retrieve and save data.
  7860. ///</summary>
  7861. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7862. [global::System.ComponentModel.ToolboxItem(true)]
  7863. [global::System.ComponentModel.DataObjectAttribute(true)]
  7864. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7865. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7866. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7867. public partial class ManufacturerTableAdapter : global::System.ComponentModel.Component {
  7868. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7869. private global::System.Data.SqlClient.SqlConnection _connection;
  7870. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7871. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7872. private bool _clearBeforeFill;
  7873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7875. public ManufacturerTableAdapter() {
  7876. this.ClearBeforeFill = true;
  7877. }
  7878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7880. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7881. get {
  7882. if ((this._adapter == null)) {
  7883. this.InitAdapter();
  7884. }
  7885. return this._adapter;
  7886. }
  7887. }
  7888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7890. internal global::System.Data.SqlClient.SqlConnection Connection {
  7891. get {
  7892. if ((this._connection == null)) {
  7893. this.InitConnection();
  7894. }
  7895. return this._connection;
  7896. }
  7897. set {
  7898. this._connection = value;
  7899. if ((this.Adapter.InsertCommand != null)) {
  7900. this.Adapter.InsertCommand.Connection = value;
  7901. }
  7902. if ((this.Adapter.DeleteCommand != null)) {
  7903. this.Adapter.DeleteCommand.Connection = value;
  7904. }
  7905. if ((this.Adapter.UpdateCommand != null)) {
  7906. this.Adapter.UpdateCommand.Connection = value;
  7907. }
  7908. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7909. if ((this.CommandCollection[i] != null)) {
  7910. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7911. }
  7912. }
  7913. }
  7914. }
  7915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7917. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7918. get {
  7919. return this._transaction;
  7920. }
  7921. set {
  7922. this._transaction = value;
  7923. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7924. this.CommandCollection[i].Transaction = this._transaction;
  7925. }
  7926. if (((this.Adapter != null)
  7927. && (this.Adapter.DeleteCommand != null))) {
  7928. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7929. }
  7930. if (((this.Adapter != null)
  7931. && (this.Adapter.InsertCommand != null))) {
  7932. this.Adapter.InsertCommand.Transaction = this._transaction;
  7933. }
  7934. if (((this.Adapter != null)
  7935. && (this.Adapter.UpdateCommand != null))) {
  7936. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7937. }
  7938. }
  7939. }
  7940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7942. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7943. get {
  7944. if ((this._commandCollection == null)) {
  7945. this.InitCommandCollection();
  7946. }
  7947. return this._commandCollection;
  7948. }
  7949. }
  7950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7952. public bool ClearBeforeFill {
  7953. get {
  7954. return this._clearBeforeFill;
  7955. }
  7956. set {
  7957. this._clearBeforeFill = value;
  7958. }
  7959. }
  7960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7962. private void InitAdapter() {
  7963. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7964. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7965. tableMapping.SourceTable = "Table";
  7966. tableMapping.DataSetTable = "Manufacturer";
  7967. tableMapping.ColumnMappings.Add("ID", "ID");
  7968. tableMapping.ColumnMappings.Add("Name", "Name");
  7969. tableMapping.ColumnMappings.Add("StartDate", "StartDate");
  7970. this._adapter.TableMappings.Add(tableMapping);
  7971. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7972. this._adapter.DeleteCommand.Connection = this.Connection;
  7973. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Manufacturer] WHERE (([ID] = @Original_ID) AND ([Name] = @Orig" +
  7974. "inal_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] " +
  7975. "= @Original_StartDate)))";
  7976. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7977. 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, "", "", ""));
  7978. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7979. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_StartDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7980. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7981. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7982. this._adapter.InsertCommand.Connection = this.Connection;
  7983. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Manufacturer] ([Name], [StartDate]) VALUES (@Name, @StartDate)" +
  7984. ";\r\nSELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = SCOPE_IDENTITY())";
  7985. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7986. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7987. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7988. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7989. this._adapter.UpdateCommand.Connection = this.Connection;
  7990. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Manufacturer] SET [Name] = @Name, [StartDate] = @StartDate WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] = @Original_StartDate)));
  7991. SELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = @ID)";
  7992. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7993. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7994. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7995. 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, "", "", ""));
  7996. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7997. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_StartDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7998. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7999. 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, "", "", ""));
  8000. }
  8001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8003. private void InitConnection() {
  8004. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8005. this._connection.ConnectionString = global::_02Trade.Properties.Settings.Default._02TradeConnectionString;
  8006. }
  8007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8009. private void InitCommandCollection() {
  8010. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8011. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8012. this._commandCollection[0].Connection = this.Connection;
  8013. this._commandCollection[0].CommandText = "SELECT ID, Name, StartDate FROM dbo.Manufacturer";
  8014. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8015. }
  8016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8018. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8019. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8020. public virtual int Fill(_02TradeDataSet.ManufacturerDataTable dataTable) {
  8021. this.Adapter.SelectCommand = this.CommandCollection[0];
  8022. if ((this.ClearBeforeFill == true)) {
  8023. dataTable.Clear();
  8024. }
  8025. int returnValue = this.Adapter.Fill(dataTable);
  8026. return returnValue;
  8027. }
  8028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8030. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8031. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8032. public virtual _02TradeDataSet.ManufacturerDataTable GetData() {
  8033. this.Adapter.SelectCommand = this.CommandCollection[0];
  8034. _02TradeDataSet.ManufacturerDataTable dataTable = new _02TradeDataSet.ManufacturerDataTable();
  8035. this.Adapter.Fill(dataTable);
  8036. return dataTable;
  8037. }
  8038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8040. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8041. public virtual int Update(_02TradeDataSet.ManufacturerDataTable dataTable) {
  8042. return this.Adapter.Update(dataTable);
  8043. }
  8044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8046. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8047. public virtual int Update(_02TradeDataSet dataSet) {
  8048. return this.Adapter.Update(dataSet, "Manufacturer");
  8049. }
  8050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8052. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8053. public virtual int Update(global::System.Data.DataRow dataRow) {
  8054. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8055. dataRow});
  8056. }
  8057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8059. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8060. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8061. return this.Adapter.Update(dataRows);
  8062. }
  8063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8065. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8066. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8067. public virtual int Delete(int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate) {
  8068. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8069. if ((Original_Name == null)) {
  8070. throw new global::System.ArgumentNullException("Original_Name");
  8071. }
  8072. else {
  8073. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Name));
  8074. }
  8075. if ((Original_StartDate.HasValue == true)) {
  8076. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  8077. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartDate.Value));
  8078. }
  8079. else {
  8080. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  8081. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  8082. }
  8083. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8084. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8085. != global::System.Data.ConnectionState.Open)) {
  8086. this.Adapter.DeleteCommand.Connection.Open();
  8087. }
  8088. try {
  8089. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8090. return returnValue;
  8091. }
  8092. finally {
  8093. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8094. this.Adapter.DeleteCommand.Connection.Close();
  8095. }
  8096. }
  8097. }
  8098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8100. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8101. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8102. public virtual int Insert(string Name, global::System.Nullable<global::System.DateTime> StartDate) {
  8103. if ((Name == null)) {
  8104. throw new global::System.ArgumentNullException("Name");
  8105. }
  8106. else {
  8107. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name));
  8108. }
  8109. if ((StartDate.HasValue == true)) {
  8110. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  8111. }
  8112. else {
  8113. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8114. }
  8115. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8116. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8117. != global::System.Data.ConnectionState.Open)) {
  8118. this.Adapter.InsertCommand.Connection.Open();
  8119. }
  8120. try {
  8121. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8122. return returnValue;
  8123. }
  8124. finally {
  8125. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8126. this.Adapter.InsertCommand.Connection.Close();
  8127. }
  8128. }
  8129. }
  8130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8132. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8133. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8134. public virtual int Update(string Name, global::System.Nullable<global::System.DateTime> StartDate, int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate, int ID) {
  8135. if ((Name == null)) {
  8136. throw new global::System.ArgumentNullException("Name");
  8137. }
  8138. else {
  8139. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name));
  8140. }
  8141. if ((StartDate.HasValue == true)) {
  8142. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  8143. }
  8144. else {
  8145. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8146. }
  8147. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  8148. if ((Original_Name == null)) {
  8149. throw new global::System.ArgumentNullException("Original_Name");
  8150. }
  8151. else {
  8152. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Name));
  8153. }
  8154. if ((Original_StartDate.HasValue == true)) {
  8155. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  8156. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_StartDate.Value));
  8157. }
  8158. else {
  8159. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  8160. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8161. }
  8162. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ID));
  8163. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8164. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8165. != global::System.Data.ConnectionState.Open)) {
  8166. this.Adapter.UpdateCommand.Connection.Open();
  8167. }
  8168. try {
  8169. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8170. return returnValue;
  8171. }
  8172. finally {
  8173. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8174. this.Adapter.UpdateCommand.Connection.Close();
  8175. }
  8176. }
  8177. }
  8178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8180. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8181. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8182. public virtual int Update(string Name, global::System.Nullable<global::System.DateTime> StartDate, int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate) {
  8183. return this.Update(Name, StartDate, Original_ID, Original_Name, Original_StartDate, Original_ID);
  8184. }
  8185. }
  8186. /// <summary>
  8187. ///Represents the connection and commands used to retrieve and save data.
  8188. ///</summary>
  8189. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8190. [global::System.ComponentModel.ToolboxItem(true)]
  8191. [global::System.ComponentModel.DataObjectAttribute(true)]
  8192. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8193. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8194. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8195. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  8196. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8197. private global::System.Data.SqlClient.SqlConnection _connection;
  8198. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8199. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8200. private bool _clearBeforeFill;
  8201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8203. public ProductTableAdapter() {
  8204. this.ClearBeforeFill = true;
  8205. }
  8206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8208. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8209. get {
  8210. if ((this._adapter == null)) {
  8211. this.InitAdapter();
  8212. }
  8213. return this._adapter;
  8214. }
  8215. }
  8216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8218. internal global::System.Data.SqlClient.SqlConnection Connection {
  8219. get {
  8220. if ((this._connection == null)) {
  8221. this.InitConnection();
  8222. }
  8223. return this._connection;
  8224. }
  8225. set {
  8226. this._connection = value;
  8227. if ((this.Adapter.InsertCommand != null)) {
  8228. this.Adapter.InsertCommand.Connection = value;
  8229. }
  8230. if ((this.Adapter.DeleteCommand != null)) {
  8231. this.Adapter.DeleteCommand.Connection = value;
  8232. }
  8233. if ((this.Adapter.UpdateCommand != null)) {
  8234. this.Adapter.UpdateCommand.Connection = value;
  8235. }
  8236. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8237. if ((this.CommandCollection[i] != null)) {
  8238. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8239. }
  8240. }
  8241. }
  8242. }
  8243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8245. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8246. get {
  8247. return this._transaction;
  8248. }
  8249. set {
  8250. this._transaction = value;
  8251. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8252. this.CommandCollection[i].Transaction = this._transaction;
  8253. }
  8254. if (((this.Adapter != null)
  8255. && (this.Adapter.DeleteCommand != null))) {
  8256. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8257. }
  8258. if (((this.Adapter != null)
  8259. && (this.Adapter.InsertCommand != null))) {
  8260. this.Adapter.InsertCommand.Transaction = this._transaction;
  8261. }
  8262. if (((this.Adapter != null)
  8263. && (this.Adapter.UpdateCommand != null))) {
  8264. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8265. }
  8266. }
  8267. }
  8268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8270. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8271. get {
  8272. if ((this._commandCollection == null)) {
  8273. this.InitCommandCollection();
  8274. }
  8275. return this._commandCollection;
  8276. }
  8277. }
  8278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8280. public bool ClearBeforeFill {
  8281. get {
  8282. return this._clearBeforeFill;
  8283. }
  8284. set {
  8285. this._clearBeforeFill = value;
  8286. }
  8287. }
  8288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8290. private void InitAdapter() {
  8291. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8292. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8293. tableMapping.SourceTable = "Table";
  8294. tableMapping.DataSetTable = "Product";
  8295. tableMapping.ColumnMappings.Add("ID", "ID");
  8296. tableMapping.ColumnMappings.Add("Title", "Title");
  8297. tableMapping.ColumnMappings.Add("Cost", "Cost");
  8298. tableMapping.ColumnMappings.Add("Description", "Description");
  8299. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  8300. tableMapping.ColumnMappings.Add("IsActive", "IsActive");
  8301. tableMapping.ColumnMappings.Add("ManufacturerID", "ManufacturerID");
  8302. this._adapter.TableMappings.Add(tableMapping);
  8303. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8304. this._adapter.DeleteCommand.Connection = this.Connection;
  8305. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Product] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)) AND ([IsActive] = @Original_IsActive) AND ((@IsNull_ManufacturerID = 1 AND [ManufacturerID] IS NULL) OR ([ManufacturerID] = @Original_ManufacturerID)))";
  8306. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8307. 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, "", "", ""));
  8308. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8309. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8310. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MainImagePath", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8311. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8312. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IsActive", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsActive", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8313. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8314. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8315. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8316. this._adapter.InsertCommand.Connection = this.Connection;
  8317. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([Title], [Cost], [Description], [MainImagePath], [IsActive], [ManufacturerID]) VALUES (@Title, @Cost, @Description, @MainImagePath, @IsActive, @ManufacturerID);
  8318. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = SCOPE_IDENTITY())";
  8319. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8320. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8321. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8322. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8323. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8324. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsActive", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsActive", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8325. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8326. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8327. this._adapter.UpdateCommand.Connection = this.Connection;
  8328. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Product] SET [Title] = @Title, [Cost] = @Cost, [Description] = @Description, [MainImagePath] = @MainImagePath, [IsActive] = @IsActive, [ManufacturerID] = @ManufacturerID WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)) AND ([IsActive] = @Original_IsActive) AND ((@IsNull_ManufacturerID = 1 AND [ManufacturerID] IS NULL) OR ([ManufacturerID] = @Original_ManufacturerID)));
  8329. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = @ID)";
  8330. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8331. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8332. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8333. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8334. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8335. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsActive", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsActive", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8336. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8337. 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, "", "", ""));
  8338. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8339. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8340. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MainImagePath", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8341. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8342. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IsActive", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsActive", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8343. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8344. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8345. 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, "", "", ""));
  8346. }
  8347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8349. private void InitConnection() {
  8350. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8351. this._connection.ConnectionString = global::_02Trade.Properties.Settings.Default._02TradeConnectionString;
  8352. }
  8353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8355. private void InitCommandCollection() {
  8356. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8357. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8358. this._commandCollection[0].Connection = this.Connection;
  8359. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM" +
  8360. " dbo.Product";
  8361. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8362. }
  8363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8365. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8366. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8367. public virtual int Fill(_02TradeDataSet.ProductDataTable dataTable) {
  8368. this.Adapter.SelectCommand = this.CommandCollection[0];
  8369. if ((this.ClearBeforeFill == true)) {
  8370. dataTable.Clear();
  8371. }
  8372. int returnValue = this.Adapter.Fill(dataTable);
  8373. return returnValue;
  8374. }
  8375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8377. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8378. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8379. public virtual _02TradeDataSet.ProductDataTable GetData() {
  8380. this.Adapter.SelectCommand = this.CommandCollection[0];
  8381. _02TradeDataSet.ProductDataTable dataTable = new _02TradeDataSet.ProductDataTable();
  8382. this.Adapter.Fill(dataTable);
  8383. return dataTable;
  8384. }
  8385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8387. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8388. public virtual int Update(_02TradeDataSet.ProductDataTable dataTable) {
  8389. return this.Adapter.Update(dataTable);
  8390. }
  8391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8393. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8394. public virtual int Update(_02TradeDataSet dataSet) {
  8395. return this.Adapter.Update(dataSet, "Product");
  8396. }
  8397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8399. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8400. public virtual int Update(global::System.Data.DataRow dataRow) {
  8401. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8402. dataRow});
  8403. }
  8404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8406. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8407. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8408. return this.Adapter.Update(dataRows);
  8409. }
  8410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8412. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8413. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8414. public virtual int Delete(int Original_ID, string Original_Title, decimal Original_Cost, string Original_MainImagePath, bool Original_IsActive, global::System.Nullable<int> Original_ManufacturerID) {
  8415. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8416. if ((Original_Title == null)) {
  8417. throw new global::System.ArgumentNullException("Original_Title");
  8418. }
  8419. else {
  8420. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  8421. }
  8422. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  8423. if ((Original_MainImagePath == null)) {
  8424. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8425. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8426. }
  8427. else {
  8428. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8429. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_MainImagePath));
  8430. }
  8431. this.Adapter.DeleteCommand.Parameters[5].Value = ((bool)(Original_IsActive));
  8432. if ((Original_ManufacturerID.HasValue == true)) {
  8433. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  8434. this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_ManufacturerID.Value));
  8435. }
  8436. else {
  8437. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  8438. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  8439. }
  8440. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8441. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8442. != global::System.Data.ConnectionState.Open)) {
  8443. this.Adapter.DeleteCommand.Connection.Open();
  8444. }
  8445. try {
  8446. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8447. return returnValue;
  8448. }
  8449. finally {
  8450. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8451. this.Adapter.DeleteCommand.Connection.Close();
  8452. }
  8453. }
  8454. }
  8455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8457. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8458. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8459. public virtual int Insert(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID) {
  8460. if ((Title == null)) {
  8461. throw new global::System.ArgumentNullException("Title");
  8462. }
  8463. else {
  8464. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  8465. }
  8466. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  8467. if ((Description == null)) {
  8468. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8469. }
  8470. else {
  8471. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Description));
  8472. }
  8473. if ((MainImagePath == null)) {
  8474. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8475. }
  8476. else {
  8477. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(MainImagePath));
  8478. }
  8479. this.Adapter.InsertCommand.Parameters[4].Value = ((bool)(IsActive));
  8480. if ((ManufacturerID.HasValue == true)) {
  8481. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  8482. }
  8483. else {
  8484. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  8485. }
  8486. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8487. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8488. != global::System.Data.ConnectionState.Open)) {
  8489. this.Adapter.InsertCommand.Connection.Open();
  8490. }
  8491. try {
  8492. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8493. return returnValue;
  8494. }
  8495. finally {
  8496. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8497. this.Adapter.InsertCommand.Connection.Close();
  8498. }
  8499. }
  8500. }
  8501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8503. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8504. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8505. public virtual int Update(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID, int Original_ID, string Original_Title, decimal Original_Cost, string Original_MainImagePath, bool Original_IsActive, global::System.Nullable<int> Original_ManufacturerID, int ID) {
  8506. if ((Title == null)) {
  8507. throw new global::System.ArgumentNullException("Title");
  8508. }
  8509. else {
  8510. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  8511. }
  8512. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  8513. if ((Description == null)) {
  8514. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8515. }
  8516. else {
  8517. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Description));
  8518. }
  8519. if ((MainImagePath == null)) {
  8520. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8521. }
  8522. else {
  8523. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(MainImagePath));
  8524. }
  8525. this.Adapter.UpdateCommand.Parameters[4].Value = ((bool)(IsActive));
  8526. if ((ManufacturerID.HasValue == true)) {
  8527. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  8528. }
  8529. else {
  8530. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8531. }
  8532. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  8533. if ((Original_Title == null)) {
  8534. throw new global::System.ArgumentNullException("Original_Title");
  8535. }
  8536. else {
  8537. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  8538. }
  8539. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  8540. if ((Original_MainImagePath == null)) {
  8541. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  8542. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  8543. }
  8544. else {
  8545. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  8546. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_MainImagePath));
  8547. }
  8548. this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(Original_IsActive));
  8549. if ((Original_ManufacturerID.HasValue == true)) {
  8550. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  8551. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_ManufacturerID.Value));
  8552. }
  8553. else {
  8554. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  8555. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  8556. }
  8557. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  8558. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8559. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8560. != global::System.Data.ConnectionState.Open)) {
  8561. this.Adapter.UpdateCommand.Connection.Open();
  8562. }
  8563. try {
  8564. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8565. return returnValue;
  8566. }
  8567. finally {
  8568. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8569. this.Adapter.UpdateCommand.Connection.Close();
  8570. }
  8571. }
  8572. }
  8573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8575. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8576. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8577. public virtual int Update(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID, int Original_ID, string Original_Title, decimal Original_Cost, string Original_MainImagePath, bool Original_IsActive, global::System.Nullable<int> Original_ManufacturerID) {
  8578. return this.Update(Title, Cost, Description, MainImagePath, IsActive, ManufacturerID, Original_ID, Original_Title, Original_Cost, Original_MainImagePath, Original_IsActive, Original_ManufacturerID, Original_ID);
  8579. }
  8580. }
  8581. /// <summary>
  8582. ///Represents the connection and commands used to retrieve and save data.
  8583. ///</summary>
  8584. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8585. [global::System.ComponentModel.ToolboxItem(true)]
  8586. [global::System.ComponentModel.DataObjectAttribute(true)]
  8587. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8588. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8589. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8590. public partial class ProductPhotoTableAdapter : global::System.ComponentModel.Component {
  8591. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8592. private global::System.Data.SqlClient.SqlConnection _connection;
  8593. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8594. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8595. private bool _clearBeforeFill;
  8596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8598. public ProductPhotoTableAdapter() {
  8599. this.ClearBeforeFill = true;
  8600. }
  8601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8603. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8604. get {
  8605. if ((this._adapter == null)) {
  8606. this.InitAdapter();
  8607. }
  8608. return this._adapter;
  8609. }
  8610. }
  8611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8613. internal global::System.Data.SqlClient.SqlConnection Connection {
  8614. get {
  8615. if ((this._connection == null)) {
  8616. this.InitConnection();
  8617. }
  8618. return this._connection;
  8619. }
  8620. set {
  8621. this._connection = value;
  8622. if ((this.Adapter.InsertCommand != null)) {
  8623. this.Adapter.InsertCommand.Connection = value;
  8624. }
  8625. if ((this.Adapter.DeleteCommand != null)) {
  8626. this.Adapter.DeleteCommand.Connection = value;
  8627. }
  8628. if ((this.Adapter.UpdateCommand != null)) {
  8629. this.Adapter.UpdateCommand.Connection = value;
  8630. }
  8631. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8632. if ((this.CommandCollection[i] != null)) {
  8633. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8634. }
  8635. }
  8636. }
  8637. }
  8638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8640. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8641. get {
  8642. return this._transaction;
  8643. }
  8644. set {
  8645. this._transaction = value;
  8646. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8647. this.CommandCollection[i].Transaction = this._transaction;
  8648. }
  8649. if (((this.Adapter != null)
  8650. && (this.Adapter.DeleteCommand != null))) {
  8651. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8652. }
  8653. if (((this.Adapter != null)
  8654. && (this.Adapter.InsertCommand != null))) {
  8655. this.Adapter.InsertCommand.Transaction = this._transaction;
  8656. }
  8657. if (((this.Adapter != null)
  8658. && (this.Adapter.UpdateCommand != null))) {
  8659. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8660. }
  8661. }
  8662. }
  8663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8665. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8666. get {
  8667. if ((this._commandCollection == null)) {
  8668. this.InitCommandCollection();
  8669. }
  8670. return this._commandCollection;
  8671. }
  8672. }
  8673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8675. public bool ClearBeforeFill {
  8676. get {
  8677. return this._clearBeforeFill;
  8678. }
  8679. set {
  8680. this._clearBeforeFill = value;
  8681. }
  8682. }
  8683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8685. private void InitAdapter() {
  8686. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8687. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8688. tableMapping.SourceTable = "Table";
  8689. tableMapping.DataSetTable = "ProductPhoto";
  8690. tableMapping.ColumnMappings.Add("ID", "ID");
  8691. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  8692. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  8693. this._adapter.TableMappings.Add(tableMapping);
  8694. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8695. this._adapter.DeleteCommand.Connection = this.Connection;
  8696. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ProductPhoto] WHERE (([ID] = @Original_ID) AND ([ProductID] = " +
  8697. "@Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath))";
  8698. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8699. 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, "", "", ""));
  8700. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8701. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8702. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8703. this._adapter.InsertCommand.Connection = this.Connection;
  8704. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductPhoto] ([ProductID], [PhotoPath]) VALUES (@ProductID, @" +
  8705. "PhotoPath);\r\nSELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = SCOPE" +
  8706. "_IDENTITY())";
  8707. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8708. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8709. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8710. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8711. this._adapter.UpdateCommand.Connection = this.Connection;
  8712. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductPhoto] SET [ProductID] = @ProductID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath));
  8713. SELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = @ID)";
  8714. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8715. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8716. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8717. 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, "", "", ""));
  8718. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8719. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8720. 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, "", "", ""));
  8721. }
  8722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8724. private void InitConnection() {
  8725. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8726. this._connection.ConnectionString = global::_02Trade.Properties.Settings.Default._02TradeConnectionString;
  8727. }
  8728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8730. private void InitCommandCollection() {
  8731. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8732. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8733. this._commandCollection[0].Connection = this.Connection;
  8734. this._commandCollection[0].CommandText = "SELECT ID, ProductID, PhotoPath FROM dbo.ProductPhoto";
  8735. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8736. }
  8737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8739. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8740. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8741. public virtual int Fill(_02TradeDataSet.ProductPhotoDataTable dataTable) {
  8742. this.Adapter.SelectCommand = this.CommandCollection[0];
  8743. if ((this.ClearBeforeFill == true)) {
  8744. dataTable.Clear();
  8745. }
  8746. int returnValue = this.Adapter.Fill(dataTable);
  8747. return returnValue;
  8748. }
  8749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8751. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8752. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8753. public virtual _02TradeDataSet.ProductPhotoDataTable GetData() {
  8754. this.Adapter.SelectCommand = this.CommandCollection[0];
  8755. _02TradeDataSet.ProductPhotoDataTable dataTable = new _02TradeDataSet.ProductPhotoDataTable();
  8756. this.Adapter.Fill(dataTable);
  8757. return dataTable;
  8758. }
  8759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8761. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8762. public virtual int Update(_02TradeDataSet.ProductPhotoDataTable dataTable) {
  8763. return this.Adapter.Update(dataTable);
  8764. }
  8765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8767. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8768. public virtual int Update(_02TradeDataSet dataSet) {
  8769. return this.Adapter.Update(dataSet, "ProductPhoto");
  8770. }
  8771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8773. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8774. public virtual int Update(global::System.Data.DataRow dataRow) {
  8775. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8776. dataRow});
  8777. }
  8778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8780. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8781. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8782. return this.Adapter.Update(dataRows);
  8783. }
  8784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8786. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8787. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8788. public virtual int Delete(int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  8789. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8790. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ProductID));
  8791. if ((Original_PhotoPath == null)) {
  8792. throw new global::System.ArgumentNullException("Original_PhotoPath");
  8793. }
  8794. else {
  8795. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  8796. }
  8797. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8798. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8799. != global::System.Data.ConnectionState.Open)) {
  8800. this.Adapter.DeleteCommand.Connection.Open();
  8801. }
  8802. try {
  8803. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8804. return returnValue;
  8805. }
  8806. finally {
  8807. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8808. this.Adapter.DeleteCommand.Connection.Close();
  8809. }
  8810. }
  8811. }
  8812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8814. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8815. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8816. public virtual int Insert(int ProductID, string PhotoPath) {
  8817. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ProductID));
  8818. if ((PhotoPath == null)) {
  8819. throw new global::System.ArgumentNullException("PhotoPath");
  8820. }
  8821. else {
  8822. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  8823. }
  8824. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8825. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8826. != global::System.Data.ConnectionState.Open)) {
  8827. this.Adapter.InsertCommand.Connection.Open();
  8828. }
  8829. try {
  8830. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8831. return returnValue;
  8832. }
  8833. finally {
  8834. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8835. this.Adapter.InsertCommand.Connection.Close();
  8836. }
  8837. }
  8838. }
  8839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8841. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8842. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8843. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath, int ID) {
  8844. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ProductID));
  8845. if ((PhotoPath == null)) {
  8846. throw new global::System.ArgumentNullException("PhotoPath");
  8847. }
  8848. else {
  8849. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  8850. }
  8851. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  8852. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ProductID));
  8853. if ((Original_PhotoPath == null)) {
  8854. throw new global::System.ArgumentNullException("Original_PhotoPath");
  8855. }
  8856. else {
  8857. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  8858. }
  8859. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  8860. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8861. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8862. != global::System.Data.ConnectionState.Open)) {
  8863. this.Adapter.UpdateCommand.Connection.Open();
  8864. }
  8865. try {
  8866. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8867. return returnValue;
  8868. }
  8869. finally {
  8870. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8871. this.Adapter.UpdateCommand.Connection.Close();
  8872. }
  8873. }
  8874. }
  8875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8877. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8878. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8879. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  8880. return this.Update(ProductID, PhotoPath, Original_ID, Original_ProductID, Original_PhotoPath, Original_ID);
  8881. }
  8882. }
  8883. /// <summary>
  8884. ///Represents the connection and commands used to retrieve and save data.
  8885. ///</summary>
  8886. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8887. [global::System.ComponentModel.ToolboxItem(true)]
  8888. [global::System.ComponentModel.DataObjectAttribute(true)]
  8889. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8890. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8891. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8892. public partial class ProductSaleTableAdapter : global::System.ComponentModel.Component {
  8893. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8894. private global::System.Data.SqlClient.SqlConnection _connection;
  8895. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8896. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8897. private bool _clearBeforeFill;
  8898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8900. public ProductSaleTableAdapter() {
  8901. this.ClearBeforeFill = true;
  8902. }
  8903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8905. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8906. get {
  8907. if ((this._adapter == null)) {
  8908. this.InitAdapter();
  8909. }
  8910. return this._adapter;
  8911. }
  8912. }
  8913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8915. internal global::System.Data.SqlClient.SqlConnection Connection {
  8916. get {
  8917. if ((this._connection == null)) {
  8918. this.InitConnection();
  8919. }
  8920. return this._connection;
  8921. }
  8922. set {
  8923. this._connection = value;
  8924. if ((this.Adapter.InsertCommand != null)) {
  8925. this.Adapter.InsertCommand.Connection = value;
  8926. }
  8927. if ((this.Adapter.DeleteCommand != null)) {
  8928. this.Adapter.DeleteCommand.Connection = value;
  8929. }
  8930. if ((this.Adapter.UpdateCommand != null)) {
  8931. this.Adapter.UpdateCommand.Connection = value;
  8932. }
  8933. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8934. if ((this.CommandCollection[i] != null)) {
  8935. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8936. }
  8937. }
  8938. }
  8939. }
  8940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8942. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8943. get {
  8944. return this._transaction;
  8945. }
  8946. set {
  8947. this._transaction = value;
  8948. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8949. this.CommandCollection[i].Transaction = this._transaction;
  8950. }
  8951. if (((this.Adapter != null)
  8952. && (this.Adapter.DeleteCommand != null))) {
  8953. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8954. }
  8955. if (((this.Adapter != null)
  8956. && (this.Adapter.InsertCommand != null))) {
  8957. this.Adapter.InsertCommand.Transaction = this._transaction;
  8958. }
  8959. if (((this.Adapter != null)
  8960. && (this.Adapter.UpdateCommand != null))) {
  8961. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8962. }
  8963. }
  8964. }
  8965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8967. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8968. get {
  8969. if ((this._commandCollection == null)) {
  8970. this.InitCommandCollection();
  8971. }
  8972. return this._commandCollection;
  8973. }
  8974. }
  8975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8977. public bool ClearBeforeFill {
  8978. get {
  8979. return this._clearBeforeFill;
  8980. }
  8981. set {
  8982. this._clearBeforeFill = value;
  8983. }
  8984. }
  8985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8987. private void InitAdapter() {
  8988. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8989. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8990. tableMapping.SourceTable = "Table";
  8991. tableMapping.DataSetTable = "ProductSale";
  8992. tableMapping.ColumnMappings.Add("ID", "ID");
  8993. tableMapping.ColumnMappings.Add("SaleDate", "SaleDate");
  8994. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  8995. tableMapping.ColumnMappings.Add("Quantity", "Quantity");
  8996. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  8997. this._adapter.TableMappings.Add(tableMapping);
  8998. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8999. this._adapter.DeleteCommand.Connection = this.Connection;
  9000. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ProductSale] WHERE (([ID] = @Original_ID) AND ([SaleDate] = @Original_SaleDate) AND ([ProductID] = @Original_ProductID) AND ([Quantity] = @Original_Quantity) AND ((@IsNull_ClientServiceID = 1 AND [ClientServiceID] IS NULL) OR ([ClientServiceID] = @Original_ClientServiceID)))";
  9001. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9002. 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, "", "", ""));
  9003. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SaleDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9004. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9005. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9006. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9007. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9008. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9009. this._adapter.InsertCommand.Connection = this.Connection;
  9010. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductSale] ([SaleDate], [ProductID], [Quantity], [ClientServ" +
  9011. "iceID]) VALUES (@SaleDate, @ProductID, @Quantity, @ClientServiceID);\r\nSELECT ID," +
  9012. " SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = SCO" +
  9013. "PE_IDENTITY())";
  9014. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9015. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SaleDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9016. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9017. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9018. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9019. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9020. this._adapter.UpdateCommand.Connection = this.Connection;
  9021. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductSale] SET [SaleDate] = @SaleDate, [ProductID] = @ProductID, [Quantity] = @Quantity, [ClientServiceID] = @ClientServiceID WHERE (([ID] = @Original_ID) AND ([SaleDate] = @Original_SaleDate) AND ([ProductID] = @Original_ProductID) AND ([Quantity] = @Original_Quantity) AND ((@IsNull_ClientServiceID = 1 AND [ClientServiceID] IS NULL) OR ([ClientServiceID] = @Original_ClientServiceID)));
  9022. SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = @ID)";
  9023. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9024. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SaleDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9025. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9026. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9027. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9028. 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, "", "", ""));
  9029. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SaleDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9030. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9031. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9032. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9033. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9034. 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, "", "", ""));
  9035. }
  9036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9038. private void InitConnection() {
  9039. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9040. this._connection.ConnectionString = global::_02Trade.Properties.Settings.Default._02TradeConnectionString;
  9041. }
  9042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9044. private void InitCommandCollection() {
  9045. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9046. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9047. this._commandCollection[0].Connection = this.Connection;
  9048. this._commandCollection[0].CommandText = "SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM dbo.ProductSale";
  9049. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9050. }
  9051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9053. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9054. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9055. public virtual int Fill(_02TradeDataSet.ProductSaleDataTable dataTable) {
  9056. this.Adapter.SelectCommand = this.CommandCollection[0];
  9057. if ((this.ClearBeforeFill == true)) {
  9058. dataTable.Clear();
  9059. }
  9060. int returnValue = this.Adapter.Fill(dataTable);
  9061. return returnValue;
  9062. }
  9063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9065. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9066. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9067. public virtual _02TradeDataSet.ProductSaleDataTable GetData() {
  9068. this.Adapter.SelectCommand = this.CommandCollection[0];
  9069. _02TradeDataSet.ProductSaleDataTable dataTable = new _02TradeDataSet.ProductSaleDataTable();
  9070. this.Adapter.Fill(dataTable);
  9071. return dataTable;
  9072. }
  9073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9075. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9076. public virtual int Update(_02TradeDataSet.ProductSaleDataTable dataTable) {
  9077. return this.Adapter.Update(dataTable);
  9078. }
  9079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9081. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9082. public virtual int Update(_02TradeDataSet dataSet) {
  9083. return this.Adapter.Update(dataSet, "ProductSale");
  9084. }
  9085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9087. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9088. public virtual int Update(global::System.Data.DataRow dataRow) {
  9089. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9090. dataRow});
  9091. }
  9092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9094. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9095. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9096. return this.Adapter.Update(dataRows);
  9097. }
  9098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9100. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9101. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9102. public virtual int Delete(int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID) {
  9103. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9104. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_SaleDate));
  9105. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ProductID));
  9106. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Quantity));
  9107. if ((Original_ClientServiceID.HasValue == true)) {
  9108. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  9109. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_ClientServiceID.Value));
  9110. }
  9111. else {
  9112. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  9113. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  9114. }
  9115. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9116. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9117. != global::System.Data.ConnectionState.Open)) {
  9118. this.Adapter.DeleteCommand.Connection.Open();
  9119. }
  9120. try {
  9121. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9122. return returnValue;
  9123. }
  9124. finally {
  9125. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9126. this.Adapter.DeleteCommand.Connection.Close();
  9127. }
  9128. }
  9129. }
  9130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9132. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9133. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9134. public virtual int Insert(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID) {
  9135. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  9136. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ProductID));
  9137. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Quantity));
  9138. if ((ClientServiceID.HasValue == true)) {
  9139. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  9140. }
  9141. else {
  9142. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9143. }
  9144. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9145. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9146. != global::System.Data.ConnectionState.Open)) {
  9147. this.Adapter.InsertCommand.Connection.Open();
  9148. }
  9149. try {
  9150. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9151. return returnValue;
  9152. }
  9153. finally {
  9154. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9155. this.Adapter.InsertCommand.Connection.Close();
  9156. }
  9157. }
  9158. }
  9159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9161. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9162. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9163. public virtual int Update(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID, int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID, int ID) {
  9164. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  9165. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ProductID));
  9166. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Quantity));
  9167. if ((ClientServiceID.HasValue == true)) {
  9168. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  9169. }
  9170. else {
  9171. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9172. }
  9173. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  9174. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_SaleDate));
  9175. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ProductID));
  9176. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Quantity));
  9177. if ((Original_ClientServiceID.HasValue == true)) {
  9178. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  9179. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ClientServiceID.Value));
  9180. }
  9181. else {
  9182. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  9183. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  9184. }
  9185. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(ID));
  9186. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9187. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9188. != global::System.Data.ConnectionState.Open)) {
  9189. this.Adapter.UpdateCommand.Connection.Open();
  9190. }
  9191. try {
  9192. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9193. return returnValue;
  9194. }
  9195. finally {
  9196. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9197. this.Adapter.UpdateCommand.Connection.Close();
  9198. }
  9199. }
  9200. }
  9201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9203. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9204. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9205. public virtual int Update(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID, int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID) {
  9206. return this.Update(SaleDate, ProductID, Quantity, ClientServiceID, Original_ID, Original_SaleDate, Original_ProductID, Original_Quantity, Original_ClientServiceID, Original_ID);
  9207. }
  9208. }
  9209. /// <summary>
  9210. ///Represents the connection and commands used to retrieve and save data.
  9211. ///</summary>
  9212. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9213. [global::System.ComponentModel.ToolboxItem(true)]
  9214. [global::System.ComponentModel.DataObjectAttribute(true)]
  9215. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9216. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9217. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9218. public partial class ServiceTableAdapter : global::System.ComponentModel.Component {
  9219. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9220. private global::System.Data.SqlClient.SqlConnection _connection;
  9221. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9222. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9223. private bool _clearBeforeFill;
  9224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9226. public ServiceTableAdapter() {
  9227. this.ClearBeforeFill = true;
  9228. }
  9229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9231. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9232. get {
  9233. if ((this._adapter == null)) {
  9234. this.InitAdapter();
  9235. }
  9236. return this._adapter;
  9237. }
  9238. }
  9239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9241. internal global::System.Data.SqlClient.SqlConnection Connection {
  9242. get {
  9243. if ((this._connection == null)) {
  9244. this.InitConnection();
  9245. }
  9246. return this._connection;
  9247. }
  9248. set {
  9249. this._connection = value;
  9250. if ((this.Adapter.InsertCommand != null)) {
  9251. this.Adapter.InsertCommand.Connection = value;
  9252. }
  9253. if ((this.Adapter.DeleteCommand != null)) {
  9254. this.Adapter.DeleteCommand.Connection = value;
  9255. }
  9256. if ((this.Adapter.UpdateCommand != null)) {
  9257. this.Adapter.UpdateCommand.Connection = value;
  9258. }
  9259. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9260. if ((this.CommandCollection[i] != null)) {
  9261. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9262. }
  9263. }
  9264. }
  9265. }
  9266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9268. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9269. get {
  9270. return this._transaction;
  9271. }
  9272. set {
  9273. this._transaction = value;
  9274. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9275. this.CommandCollection[i].Transaction = this._transaction;
  9276. }
  9277. if (((this.Adapter != null)
  9278. && (this.Adapter.DeleteCommand != null))) {
  9279. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9280. }
  9281. if (((this.Adapter != null)
  9282. && (this.Adapter.InsertCommand != null))) {
  9283. this.Adapter.InsertCommand.Transaction = this._transaction;
  9284. }
  9285. if (((this.Adapter != null)
  9286. && (this.Adapter.UpdateCommand != null))) {
  9287. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9288. }
  9289. }
  9290. }
  9291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9293. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9294. get {
  9295. if ((this._commandCollection == null)) {
  9296. this.InitCommandCollection();
  9297. }
  9298. return this._commandCollection;
  9299. }
  9300. }
  9301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9303. public bool ClearBeforeFill {
  9304. get {
  9305. return this._clearBeforeFill;
  9306. }
  9307. set {
  9308. this._clearBeforeFill = value;
  9309. }
  9310. }
  9311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9313. private void InitAdapter() {
  9314. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9315. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9316. tableMapping.SourceTable = "Table";
  9317. tableMapping.DataSetTable = "Service";
  9318. tableMapping.ColumnMappings.Add("ID", "ID");
  9319. tableMapping.ColumnMappings.Add("Title", "Title");
  9320. tableMapping.ColumnMappings.Add("Cost", "Cost");
  9321. tableMapping.ColumnMappings.Add("DurationInSeconds", "DurationInSeconds");
  9322. tableMapping.ColumnMappings.Add("Description", "Description");
  9323. tableMapping.ColumnMappings.Add("Discount", "Discount");
  9324. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  9325. tableMapping.ColumnMappings.Add("PhotoPhormat", "PhotoPhormat");
  9326. tableMapping.ColumnMappings.Add("ServicePhoto", "ServicePhoto");
  9327. this._adapter.TableMappings.Add(tableMapping);
  9328. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9329. this._adapter.DeleteCommand.Connection = this.Connection;
  9330. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Service] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ([DurationInSeconds] = @Original_DurationInSeconds) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)))";
  9331. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9332. 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, "", "", ""));
  9333. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9334. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9335. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9336. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Discount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9337. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9338. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9339. this._adapter.InsertCommand.Connection = this.Connection;
  9340. this._adapter.InsertCommand.CommandText = @"INSERT INTO [Service] ([Title], [Cost], [DurationInSeconds], [Description], [Discount], [MainImagePath], [PhotoPhormat], [ServicePhoto]) VALUES (@Title, @Cost, @DurationInSeconds, @Description, @Discount, @MainImagePath, @PhotoPhormat, @ServicePhoto);
  9341. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath, PhotoPhormat, ServicePhoto FROM Service WHERE (ID = SCOPE_IDENTITY())";
  9342. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9343. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9344. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9345. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9346. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9347. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9348. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9349. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPhormat", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPhormat", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9350. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ServicePhoto", global::System.Data.SqlDbType.VarBinary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServicePhoto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9351. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9352. this._adapter.UpdateCommand.Connection = this.Connection;
  9353. this._adapter.UpdateCommand.CommandText = @"UPDATE [Service] SET [Title] = @Title, [Cost] = @Cost, [DurationInSeconds] = @DurationInSeconds, [Description] = @Description, [Discount] = @Discount, [MainImagePath] = @MainImagePath, [PhotoPhormat] = @PhotoPhormat, [ServicePhoto] = @ServicePhoto WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ([DurationInSeconds] = @Original_DurationInSeconds) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)));
  9354. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath, PhotoPhormat, ServicePhoto FROM Service WHERE (ID = @ID)";
  9355. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9356. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9357. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9358. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9359. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9360. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9361. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9362. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPhormat", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPhormat", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9363. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ServicePhoto", global::System.Data.SqlDbType.VarBinary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServicePhoto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9364. 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, "", "", ""));
  9365. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9366. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9367. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9368. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Discount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9369. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9370. 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, "", "", ""));
  9371. }
  9372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9374. private void InitConnection() {
  9375. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9376. this._connection.ConnectionString = global::_02Trade.Properties.Settings.Default._02TradeConnectionString;
  9377. }
  9378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9380. private void InitCommandCollection() {
  9381. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9382. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9383. this._commandCollection[0].Connection = this.Connection;
  9384. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath, " +
  9385. "PhotoPhormat, ServicePhoto FROM Service";
  9386. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9387. }
  9388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9390. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9391. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9392. public virtual int Fill(_02TradeDataSet.ServiceDataTable dataTable) {
  9393. this.Adapter.SelectCommand = this.CommandCollection[0];
  9394. if ((this.ClearBeforeFill == true)) {
  9395. dataTable.Clear();
  9396. }
  9397. int returnValue = this.Adapter.Fill(dataTable);
  9398. return returnValue;
  9399. }
  9400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9402. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9403. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9404. public virtual _02TradeDataSet.ServiceDataTable GetData() {
  9405. this.Adapter.SelectCommand = this.CommandCollection[0];
  9406. _02TradeDataSet.ServiceDataTable dataTable = new _02TradeDataSet.ServiceDataTable();
  9407. this.Adapter.Fill(dataTable);
  9408. return dataTable;
  9409. }
  9410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9412. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9413. public virtual int Update(_02TradeDataSet.ServiceDataTable dataTable) {
  9414. return this.Adapter.Update(dataTable);
  9415. }
  9416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9418. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9419. public virtual int Update(_02TradeDataSet dataSet) {
  9420. return this.Adapter.Update(dataSet, "Service");
  9421. }
  9422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9424. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9425. public virtual int Update(global::System.Data.DataRow dataRow) {
  9426. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9427. dataRow});
  9428. }
  9429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9431. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9432. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9433. return this.Adapter.Update(dataRows);
  9434. }
  9435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9437. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9438. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9439. public virtual int Delete(int Original_ID, string Original_Title, decimal Original_Cost, int Original_DurationInSeconds, global::System.Nullable<double> Original_Discount) {
  9440. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9441. if ((Original_Title == null)) {
  9442. throw new global::System.ArgumentNullException("Original_Title");
  9443. }
  9444. else {
  9445. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  9446. }
  9447. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  9448. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_DurationInSeconds));
  9449. if ((Original_Discount.HasValue == true)) {
  9450. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  9451. this.Adapter.DeleteCommand.Parameters[5].Value = ((double)(Original_Discount.Value));
  9452. }
  9453. else {
  9454. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  9455. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  9456. }
  9457. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9458. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9459. != global::System.Data.ConnectionState.Open)) {
  9460. this.Adapter.DeleteCommand.Connection.Open();
  9461. }
  9462. try {
  9463. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9464. return returnValue;
  9465. }
  9466. finally {
  9467. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9468. this.Adapter.DeleteCommand.Connection.Close();
  9469. }
  9470. }
  9471. }
  9472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9474. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9475. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9476. public virtual int Insert(string Title, decimal Cost, int DurationInSeconds, string Description, global::System.Nullable<double> Discount, string MainImagePath, string PhotoPhormat, byte[] ServicePhoto) {
  9477. if ((Title == null)) {
  9478. throw new global::System.ArgumentNullException("Title");
  9479. }
  9480. else {
  9481. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  9482. }
  9483. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  9484. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(DurationInSeconds));
  9485. if ((Description == null)) {
  9486. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9487. }
  9488. else {
  9489. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Description));
  9490. }
  9491. if ((Discount.HasValue == true)) {
  9492. this.Adapter.InsertCommand.Parameters[4].Value = ((double)(Discount.Value));
  9493. }
  9494. else {
  9495. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  9496. }
  9497. if ((MainImagePath == null)) {
  9498. throw new global::System.ArgumentNullException("MainImagePath");
  9499. }
  9500. else {
  9501. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(MainImagePath));
  9502. }
  9503. if ((PhotoPhormat == null)) {
  9504. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  9505. }
  9506. else {
  9507. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(PhotoPhormat));
  9508. }
  9509. if ((ServicePhoto == null)) {
  9510. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  9511. }
  9512. else {
  9513. this.Adapter.InsertCommand.Parameters[7].Value = ((byte[])(ServicePhoto));
  9514. }
  9515. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9516. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9517. != global::System.Data.ConnectionState.Open)) {
  9518. this.Adapter.InsertCommand.Connection.Open();
  9519. }
  9520. try {
  9521. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9522. return returnValue;
  9523. }
  9524. finally {
  9525. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9526. this.Adapter.InsertCommand.Connection.Close();
  9527. }
  9528. }
  9529. }
  9530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9532. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9533. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9534. public virtual int Update(string Title, decimal Cost, int DurationInSeconds, string Description, global::System.Nullable<double> Discount, string MainImagePath, string PhotoPhormat, byte[] ServicePhoto, int Original_ID, string Original_Title, decimal Original_Cost, int Original_DurationInSeconds, global::System.Nullable<double> Original_Discount, int ID) {
  9535. if ((Title == null)) {
  9536. throw new global::System.ArgumentNullException("Title");
  9537. }
  9538. else {
  9539. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  9540. }
  9541. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  9542. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(DurationInSeconds));
  9543. if ((Description == null)) {
  9544. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9545. }
  9546. else {
  9547. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Description));
  9548. }
  9549. if ((Discount.HasValue == true)) {
  9550. this.Adapter.UpdateCommand.Parameters[4].Value = ((double)(Discount.Value));
  9551. }
  9552. else {
  9553. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9554. }
  9555. if ((MainImagePath == null)) {
  9556. throw new global::System.ArgumentNullException("MainImagePath");
  9557. }
  9558. else {
  9559. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(MainImagePath));
  9560. }
  9561. if ((PhotoPhormat == null)) {
  9562. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  9563. }
  9564. else {
  9565. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(PhotoPhormat));
  9566. }
  9567. if ((ServicePhoto == null)) {
  9568. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  9569. }
  9570. else {
  9571. this.Adapter.UpdateCommand.Parameters[7].Value = ((byte[])(ServicePhoto));
  9572. }
  9573. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_ID));
  9574. if ((Original_Title == null)) {
  9575. throw new global::System.ArgumentNullException("Original_Title");
  9576. }
  9577. else {
  9578. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Title));
  9579. }
  9580. this.Adapter.UpdateCommand.Parameters[10].Value = ((decimal)(Original_Cost));
  9581. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_DurationInSeconds));
  9582. if ((Original_Discount.HasValue == true)) {
  9583. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  9584. this.Adapter.UpdateCommand.Parameters[13].Value = ((double)(Original_Discount.Value));
  9585. }
  9586. else {
  9587. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  9588. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  9589. }
  9590. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  9591. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9592. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9593. != global::System.Data.ConnectionState.Open)) {
  9594. this.Adapter.UpdateCommand.Connection.Open();
  9595. }
  9596. try {
  9597. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9598. return returnValue;
  9599. }
  9600. finally {
  9601. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9602. this.Adapter.UpdateCommand.Connection.Close();
  9603. }
  9604. }
  9605. }
  9606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9608. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9609. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9610. public virtual int Update(string Title, decimal Cost, int DurationInSeconds, string Description, global::System.Nullable<double> Discount, string MainImagePath, string PhotoPhormat, byte[] ServicePhoto, int Original_ID, string Original_Title, decimal Original_Cost, int Original_DurationInSeconds, global::System.Nullable<double> Original_Discount) {
  9611. return this.Update(Title, Cost, DurationInSeconds, Description, Discount, MainImagePath, PhotoPhormat, ServicePhoto, Original_ID, Original_Title, Original_Cost, Original_DurationInSeconds, Original_Discount, Original_ID);
  9612. }
  9613. }
  9614. /// <summary>
  9615. ///Represents the connection and commands used to retrieve and save data.
  9616. ///</summary>
  9617. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9618. [global::System.ComponentModel.ToolboxItem(true)]
  9619. [global::System.ComponentModel.DataObjectAttribute(true)]
  9620. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9621. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9622. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9623. public partial class ServicePhotoTableAdapter : global::System.ComponentModel.Component {
  9624. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9625. private global::System.Data.SqlClient.SqlConnection _connection;
  9626. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9627. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9628. private bool _clearBeforeFill;
  9629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9631. public ServicePhotoTableAdapter() {
  9632. this.ClearBeforeFill = true;
  9633. }
  9634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9636. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9637. get {
  9638. if ((this._adapter == null)) {
  9639. this.InitAdapter();
  9640. }
  9641. return this._adapter;
  9642. }
  9643. }
  9644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9646. internal global::System.Data.SqlClient.SqlConnection Connection {
  9647. get {
  9648. if ((this._connection == null)) {
  9649. this.InitConnection();
  9650. }
  9651. return this._connection;
  9652. }
  9653. set {
  9654. this._connection = value;
  9655. if ((this.Adapter.InsertCommand != null)) {
  9656. this.Adapter.InsertCommand.Connection = value;
  9657. }
  9658. if ((this.Adapter.DeleteCommand != null)) {
  9659. this.Adapter.DeleteCommand.Connection = value;
  9660. }
  9661. if ((this.Adapter.UpdateCommand != null)) {
  9662. this.Adapter.UpdateCommand.Connection = value;
  9663. }
  9664. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9665. if ((this.CommandCollection[i] != null)) {
  9666. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9667. }
  9668. }
  9669. }
  9670. }
  9671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9673. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9674. get {
  9675. return this._transaction;
  9676. }
  9677. set {
  9678. this._transaction = value;
  9679. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9680. this.CommandCollection[i].Transaction = this._transaction;
  9681. }
  9682. if (((this.Adapter != null)
  9683. && (this.Adapter.DeleteCommand != null))) {
  9684. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9685. }
  9686. if (((this.Adapter != null)
  9687. && (this.Adapter.InsertCommand != null))) {
  9688. this.Adapter.InsertCommand.Transaction = this._transaction;
  9689. }
  9690. if (((this.Adapter != null)
  9691. && (this.Adapter.UpdateCommand != null))) {
  9692. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9693. }
  9694. }
  9695. }
  9696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9698. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9699. get {
  9700. if ((this._commandCollection == null)) {
  9701. this.InitCommandCollection();
  9702. }
  9703. return this._commandCollection;
  9704. }
  9705. }
  9706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9708. public bool ClearBeforeFill {
  9709. get {
  9710. return this._clearBeforeFill;
  9711. }
  9712. set {
  9713. this._clearBeforeFill = value;
  9714. }
  9715. }
  9716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9718. private void InitAdapter() {
  9719. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9720. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9721. tableMapping.SourceTable = "Table";
  9722. tableMapping.DataSetTable = "ServicePhoto";
  9723. tableMapping.ColumnMappings.Add("ID", "ID");
  9724. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  9725. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  9726. this._adapter.TableMappings.Add(tableMapping);
  9727. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9728. this._adapter.DeleteCommand.Connection = this.Connection;
  9729. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ServicePhoto] WHERE (([ID] = @Original_ID) AND ([ServiceID] = " +
  9730. "@Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath))";
  9731. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9732. 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, "", "", ""));
  9733. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9734. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9735. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9736. this._adapter.InsertCommand.Connection = this.Connection;
  9737. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ServicePhoto] ([ServiceID], [PhotoPath]) VALUES (@ServiceID, @" +
  9738. "PhotoPath);\r\nSELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = SCOPE" +
  9739. "_IDENTITY())";
  9740. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9741. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9742. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9743. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9744. this._adapter.UpdateCommand.Connection = this.Connection;
  9745. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ServicePhoto] SET [ServiceID] = @ServiceID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ServiceID] = @Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath));
  9746. SELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = @ID)";
  9747. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9748. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9749. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9750. 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, "", "", ""));
  9751. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9752. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9753. 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, "", "", ""));
  9754. }
  9755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9757. private void InitConnection() {
  9758. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9759. this._connection.ConnectionString = global::_02Trade.Properties.Settings.Default._02TradeConnectionString;
  9760. }
  9761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9763. private void InitCommandCollection() {
  9764. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9765. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9766. this._commandCollection[0].Connection = this.Connection;
  9767. this._commandCollection[0].CommandText = "SELECT ID, ServiceID, PhotoPath FROM dbo.ServicePhoto";
  9768. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9769. }
  9770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9772. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9773. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9774. public virtual int Fill(_02TradeDataSet.ServicePhotoDataTable dataTable) {
  9775. this.Adapter.SelectCommand = this.CommandCollection[0];
  9776. if ((this.ClearBeforeFill == true)) {
  9777. dataTable.Clear();
  9778. }
  9779. int returnValue = this.Adapter.Fill(dataTable);
  9780. return returnValue;
  9781. }
  9782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9784. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9785. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9786. public virtual _02TradeDataSet.ServicePhotoDataTable GetData() {
  9787. this.Adapter.SelectCommand = this.CommandCollection[0];
  9788. _02TradeDataSet.ServicePhotoDataTable dataTable = new _02TradeDataSet.ServicePhotoDataTable();
  9789. this.Adapter.Fill(dataTable);
  9790. return dataTable;
  9791. }
  9792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9794. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9795. public virtual int Update(_02TradeDataSet.ServicePhotoDataTable dataTable) {
  9796. return this.Adapter.Update(dataTable);
  9797. }
  9798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9800. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9801. public virtual int Update(_02TradeDataSet dataSet) {
  9802. return this.Adapter.Update(dataSet, "ServicePhoto");
  9803. }
  9804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9806. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9807. public virtual int Update(global::System.Data.DataRow dataRow) {
  9808. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9809. dataRow});
  9810. }
  9811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9813. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9814. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9815. return this.Adapter.Update(dataRows);
  9816. }
  9817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9819. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9820. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9821. public virtual int Delete(int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  9822. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9823. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ServiceID));
  9824. if ((Original_PhotoPath == null)) {
  9825. throw new global::System.ArgumentNullException("Original_PhotoPath");
  9826. }
  9827. else {
  9828. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  9829. }
  9830. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9831. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9832. != global::System.Data.ConnectionState.Open)) {
  9833. this.Adapter.DeleteCommand.Connection.Open();
  9834. }
  9835. try {
  9836. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9837. return returnValue;
  9838. }
  9839. finally {
  9840. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9841. this.Adapter.DeleteCommand.Connection.Close();
  9842. }
  9843. }
  9844. }
  9845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9847. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9848. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9849. public virtual int Insert(int ServiceID, string PhotoPath) {
  9850. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ServiceID));
  9851. if ((PhotoPath == null)) {
  9852. throw new global::System.ArgumentNullException("PhotoPath");
  9853. }
  9854. else {
  9855. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  9856. }
  9857. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9858. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9859. != global::System.Data.ConnectionState.Open)) {
  9860. this.Adapter.InsertCommand.Connection.Open();
  9861. }
  9862. try {
  9863. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9864. return returnValue;
  9865. }
  9866. finally {
  9867. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9868. this.Adapter.InsertCommand.Connection.Close();
  9869. }
  9870. }
  9871. }
  9872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9874. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9875. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9876. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath, int ID) {
  9877. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ServiceID));
  9878. if ((PhotoPath == null)) {
  9879. throw new global::System.ArgumentNullException("PhotoPath");
  9880. }
  9881. else {
  9882. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  9883. }
  9884. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  9885. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ServiceID));
  9886. if ((Original_PhotoPath == null)) {
  9887. throw new global::System.ArgumentNullException("Original_PhotoPath");
  9888. }
  9889. else {
  9890. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  9891. }
  9892. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  9893. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9894. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9895. != global::System.Data.ConnectionState.Open)) {
  9896. this.Adapter.UpdateCommand.Connection.Open();
  9897. }
  9898. try {
  9899. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9900. return returnValue;
  9901. }
  9902. finally {
  9903. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9904. this.Adapter.UpdateCommand.Connection.Close();
  9905. }
  9906. }
  9907. }
  9908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9910. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9911. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9912. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  9913. return this.Update(ServiceID, PhotoPath, Original_ID, Original_ServiceID, Original_PhotoPath, Original_ID);
  9914. }
  9915. }
  9916. /// <summary>
  9917. ///Represents the connection and commands used to retrieve and save data.
  9918. ///</summary>
  9919. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9920. [global::System.ComponentModel.ToolboxItem(true)]
  9921. [global::System.ComponentModel.DataObjectAttribute(true)]
  9922. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9923. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9924. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9925. public partial class TagTableAdapter : global::System.ComponentModel.Component {
  9926. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9927. private global::System.Data.SqlClient.SqlConnection _connection;
  9928. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9929. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9930. private bool _clearBeforeFill;
  9931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9933. public TagTableAdapter() {
  9934. this.ClearBeforeFill = true;
  9935. }
  9936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9938. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9939. get {
  9940. if ((this._adapter == null)) {
  9941. this.InitAdapter();
  9942. }
  9943. return this._adapter;
  9944. }
  9945. }
  9946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9948. internal global::System.Data.SqlClient.SqlConnection Connection {
  9949. get {
  9950. if ((this._connection == null)) {
  9951. this.InitConnection();
  9952. }
  9953. return this._connection;
  9954. }
  9955. set {
  9956. this._connection = value;
  9957. if ((this.Adapter.InsertCommand != null)) {
  9958. this.Adapter.InsertCommand.Connection = value;
  9959. }
  9960. if ((this.Adapter.DeleteCommand != null)) {
  9961. this.Adapter.DeleteCommand.Connection = value;
  9962. }
  9963. if ((this.Adapter.UpdateCommand != null)) {
  9964. this.Adapter.UpdateCommand.Connection = value;
  9965. }
  9966. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9967. if ((this.CommandCollection[i] != null)) {
  9968. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9969. }
  9970. }
  9971. }
  9972. }
  9973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9975. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9976. get {
  9977. return this._transaction;
  9978. }
  9979. set {
  9980. this._transaction = value;
  9981. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9982. this.CommandCollection[i].Transaction = this._transaction;
  9983. }
  9984. if (((this.Adapter != null)
  9985. && (this.Adapter.DeleteCommand != null))) {
  9986. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9987. }
  9988. if (((this.Adapter != null)
  9989. && (this.Adapter.InsertCommand != null))) {
  9990. this.Adapter.InsertCommand.Transaction = this._transaction;
  9991. }
  9992. if (((this.Adapter != null)
  9993. && (this.Adapter.UpdateCommand != null))) {
  9994. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9995. }
  9996. }
  9997. }
  9998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10000. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10001. get {
  10002. if ((this._commandCollection == null)) {
  10003. this.InitCommandCollection();
  10004. }
  10005. return this._commandCollection;
  10006. }
  10007. }
  10008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10010. public bool ClearBeforeFill {
  10011. get {
  10012. return this._clearBeforeFill;
  10013. }
  10014. set {
  10015. this._clearBeforeFill = value;
  10016. }
  10017. }
  10018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10020. private void InitAdapter() {
  10021. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10022. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10023. tableMapping.SourceTable = "Table";
  10024. tableMapping.DataSetTable = "Tag";
  10025. tableMapping.ColumnMappings.Add("ID", "ID");
  10026. tableMapping.ColumnMappings.Add("Title", "Title");
  10027. tableMapping.ColumnMappings.Add("Color", "Color");
  10028. this._adapter.TableMappings.Add(tableMapping);
  10029. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10030. this._adapter.DeleteCommand.Connection = this.Connection;
  10031. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Tag] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Tit" +
  10032. "le) AND ([Color] = @Original_Color))";
  10033. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10034. 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, "", "", ""));
  10035. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10036. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Color", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10037. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10038. this._adapter.InsertCommand.Connection = this.Connection;
  10039. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tag] ([Title], [Color]) VALUES (@Title, @Color);\r\nSELECT ID, T" +
  10040. "itle, Color FROM Tag WHERE (ID = SCOPE_IDENTITY())";
  10041. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10042. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10043. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Color", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10044. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10045. this._adapter.UpdateCommand.Connection = this.Connection;
  10046. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Tag] SET [Title] = @Title, [Color] = @Color WHERE (([ID] = @Origina" +
  10047. "l_ID) AND ([Title] = @Original_Title) AND ([Color] = @Original_Color));\r\nSELECT " +
  10048. "ID, Title, Color FROM Tag WHERE (ID = @ID)";
  10049. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10050. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10051. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Color", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10052. 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, "", "", ""));
  10053. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10054. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Color", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10055. 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, "", "", ""));
  10056. }
  10057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10059. private void InitConnection() {
  10060. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10061. this._connection.ConnectionString = global::_02Trade.Properties.Settings.Default._02TradeConnectionString;
  10062. }
  10063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10065. private void InitCommandCollection() {
  10066. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10067. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10068. this._commandCollection[0].Connection = this.Connection;
  10069. this._commandCollection[0].CommandText = "SELECT ID, Title, Color FROM dbo.Tag";
  10070. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10071. }
  10072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10074. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10075. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10076. public virtual int Fill(_02TradeDataSet.TagDataTable dataTable) {
  10077. this.Adapter.SelectCommand = this.CommandCollection[0];
  10078. if ((this.ClearBeforeFill == true)) {
  10079. dataTable.Clear();
  10080. }
  10081. int returnValue = this.Adapter.Fill(dataTable);
  10082. return returnValue;
  10083. }
  10084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10086. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10087. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10088. public virtual _02TradeDataSet.TagDataTable GetData() {
  10089. this.Adapter.SelectCommand = this.CommandCollection[0];
  10090. _02TradeDataSet.TagDataTable dataTable = new _02TradeDataSet.TagDataTable();
  10091. this.Adapter.Fill(dataTable);
  10092. return dataTable;
  10093. }
  10094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10096. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10097. public virtual int Update(_02TradeDataSet.TagDataTable dataTable) {
  10098. return this.Adapter.Update(dataTable);
  10099. }
  10100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10102. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10103. public virtual int Update(_02TradeDataSet dataSet) {
  10104. return this.Adapter.Update(dataSet, "Tag");
  10105. }
  10106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10108. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10109. public virtual int Update(global::System.Data.DataRow dataRow) {
  10110. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10111. dataRow});
  10112. }
  10113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10115. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10116. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10117. return this.Adapter.Update(dataRows);
  10118. }
  10119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10121. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10122. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10123. public virtual int Delete(int Original_ID, string Original_Title, string Original_Color) {
  10124. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  10125. if ((Original_Title == null)) {
  10126. throw new global::System.ArgumentNullException("Original_Title");
  10127. }
  10128. else {
  10129. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  10130. }
  10131. if ((Original_Color == null)) {
  10132. throw new global::System.ArgumentNullException("Original_Color");
  10133. }
  10134. else {
  10135. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Color));
  10136. }
  10137. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10138. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10139. != global::System.Data.ConnectionState.Open)) {
  10140. this.Adapter.DeleteCommand.Connection.Open();
  10141. }
  10142. try {
  10143. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10144. return returnValue;
  10145. }
  10146. finally {
  10147. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10148. this.Adapter.DeleteCommand.Connection.Close();
  10149. }
  10150. }
  10151. }
  10152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10154. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10155. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10156. public virtual int Insert(string Title, string Color) {
  10157. if ((Title == null)) {
  10158. throw new global::System.ArgumentNullException("Title");
  10159. }
  10160. else {
  10161. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  10162. }
  10163. if ((Color == null)) {
  10164. throw new global::System.ArgumentNullException("Color");
  10165. }
  10166. else {
  10167. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Color));
  10168. }
  10169. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10170. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10171. != global::System.Data.ConnectionState.Open)) {
  10172. this.Adapter.InsertCommand.Connection.Open();
  10173. }
  10174. try {
  10175. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10176. return returnValue;
  10177. }
  10178. finally {
  10179. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10180. this.Adapter.InsertCommand.Connection.Close();
  10181. }
  10182. }
  10183. }
  10184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10186. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10187. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10188. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color, int ID) {
  10189. if ((Title == null)) {
  10190. throw new global::System.ArgumentNullException("Title");
  10191. }
  10192. else {
  10193. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  10194. }
  10195. if ((Color == null)) {
  10196. throw new global::System.ArgumentNullException("Color");
  10197. }
  10198. else {
  10199. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Color));
  10200. }
  10201. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  10202. if ((Original_Title == null)) {
  10203. throw new global::System.ArgumentNullException("Original_Title");
  10204. }
  10205. else {
  10206. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  10207. }
  10208. if ((Original_Color == null)) {
  10209. throw new global::System.ArgumentNullException("Original_Color");
  10210. }
  10211. else {
  10212. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Color));
  10213. }
  10214. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  10215. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10216. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10217. != global::System.Data.ConnectionState.Open)) {
  10218. this.Adapter.UpdateCommand.Connection.Open();
  10219. }
  10220. try {
  10221. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10222. return returnValue;
  10223. }
  10224. finally {
  10225. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10226. this.Adapter.UpdateCommand.Connection.Close();
  10227. }
  10228. }
  10229. }
  10230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10232. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10233. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10234. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color) {
  10235. return this.Update(Title, Color, Original_ID, Original_Title, Original_Color, Original_ID);
  10236. }
  10237. }
  10238. /// <summary>
  10239. ///Represents the connection and commands used to retrieve and save data.
  10240. ///</summary>
  10241. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10242. [global::System.ComponentModel.ToolboxItem(true)]
  10243. [global::System.ComponentModel.DataObjectAttribute(true)]
  10244. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10245. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10246. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10247. public partial class TagOfClientTableAdapter : global::System.ComponentModel.Component {
  10248. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10249. private global::System.Data.SqlClient.SqlConnection _connection;
  10250. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10251. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10252. private bool _clearBeforeFill;
  10253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10255. public TagOfClientTableAdapter() {
  10256. this.ClearBeforeFill = true;
  10257. }
  10258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10260. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10261. get {
  10262. if ((this._adapter == null)) {
  10263. this.InitAdapter();
  10264. }
  10265. return this._adapter;
  10266. }
  10267. }
  10268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10270. internal global::System.Data.SqlClient.SqlConnection Connection {
  10271. get {
  10272. if ((this._connection == null)) {
  10273. this.InitConnection();
  10274. }
  10275. return this._connection;
  10276. }
  10277. set {
  10278. this._connection = value;
  10279. if ((this.Adapter.InsertCommand != null)) {
  10280. this.Adapter.InsertCommand.Connection = value;
  10281. }
  10282. if ((this.Adapter.DeleteCommand != null)) {
  10283. this.Adapter.DeleteCommand.Connection = value;
  10284. }
  10285. if ((this.Adapter.UpdateCommand != null)) {
  10286. this.Adapter.UpdateCommand.Connection = value;
  10287. }
  10288. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10289. if ((this.CommandCollection[i] != null)) {
  10290. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10291. }
  10292. }
  10293. }
  10294. }
  10295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10297. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10298. get {
  10299. return this._transaction;
  10300. }
  10301. set {
  10302. this._transaction = value;
  10303. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10304. this.CommandCollection[i].Transaction = this._transaction;
  10305. }
  10306. if (((this.Adapter != null)
  10307. && (this.Adapter.DeleteCommand != null))) {
  10308. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10309. }
  10310. if (((this.Adapter != null)
  10311. && (this.Adapter.InsertCommand != null))) {
  10312. this.Adapter.InsertCommand.Transaction = this._transaction;
  10313. }
  10314. if (((this.Adapter != null)
  10315. && (this.Adapter.UpdateCommand != null))) {
  10316. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10317. }
  10318. }
  10319. }
  10320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10322. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10323. get {
  10324. if ((this._commandCollection == null)) {
  10325. this.InitCommandCollection();
  10326. }
  10327. return this._commandCollection;
  10328. }
  10329. }
  10330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10332. public bool ClearBeforeFill {
  10333. get {
  10334. return this._clearBeforeFill;
  10335. }
  10336. set {
  10337. this._clearBeforeFill = value;
  10338. }
  10339. }
  10340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10342. private void InitAdapter() {
  10343. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10344. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10345. tableMapping.SourceTable = "Table";
  10346. tableMapping.DataSetTable = "TagOfClient";
  10347. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  10348. tableMapping.ColumnMappings.Add("TagID", "TagID");
  10349. this._adapter.TableMappings.Add(tableMapping);
  10350. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10351. this._adapter.DeleteCommand.Connection = this.Connection;
  10352. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TagOfClient] WHERE (([ClientID] = @Original_ClientID) AND ([Ta" +
  10353. "gID] = @Original_TagID))";
  10354. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10355. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10356. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10357. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10358. this._adapter.InsertCommand.Connection = this.Connection;
  10359. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TagOfClient] ([ClientID], [TagID]) VALUES (@ClientID, @TagID);" +
  10360. "\r\nSELECT ClientID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagI" +
  10361. "D = @TagID)";
  10362. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10363. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10364. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10365. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10366. this._adapter.UpdateCommand.Connection = this.Connection;
  10367. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TagOfClient] SET [ClientID] = @ClientID, [TagID] = @TagID WHERE (([" +
  10368. "ClientID] = @Original_ClientID) AND ([TagID] = @Original_TagID));\r\nSELECT Client" +
  10369. "ID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagID = @TagID)";
  10370. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10371. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10372. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10373. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10374. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10375. }
  10376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10378. private void InitConnection() {
  10379. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10380. this._connection.ConnectionString = global::_02Trade.Properties.Settings.Default._02TradeConnectionString;
  10381. }
  10382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10384. private void InitCommandCollection() {
  10385. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10386. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10387. this._commandCollection[0].Connection = this.Connection;
  10388. this._commandCollection[0].CommandText = "SELECT ClientID, TagID FROM dbo.TagOfClient";
  10389. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10390. }
  10391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10393. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10394. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10395. public virtual int Fill(_02TradeDataSet.TagOfClientDataTable dataTable) {
  10396. this.Adapter.SelectCommand = this.CommandCollection[0];
  10397. if ((this.ClearBeforeFill == true)) {
  10398. dataTable.Clear();
  10399. }
  10400. int returnValue = this.Adapter.Fill(dataTable);
  10401. return returnValue;
  10402. }
  10403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10405. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10406. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10407. public virtual _02TradeDataSet.TagOfClientDataTable GetData() {
  10408. this.Adapter.SelectCommand = this.CommandCollection[0];
  10409. _02TradeDataSet.TagOfClientDataTable dataTable = new _02TradeDataSet.TagOfClientDataTable();
  10410. this.Adapter.Fill(dataTable);
  10411. return dataTable;
  10412. }
  10413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10415. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10416. public virtual int Update(_02TradeDataSet.TagOfClientDataTable dataTable) {
  10417. return this.Adapter.Update(dataTable);
  10418. }
  10419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10421. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10422. public virtual int Update(_02TradeDataSet dataSet) {
  10423. return this.Adapter.Update(dataSet, "TagOfClient");
  10424. }
  10425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10427. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10428. public virtual int Update(global::System.Data.DataRow dataRow) {
  10429. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10430. dataRow});
  10431. }
  10432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10434. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10435. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10436. return this.Adapter.Update(dataRows);
  10437. }
  10438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10440. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10441. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10442. public virtual int Delete(int Original_ClientID, int Original_TagID) {
  10443. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ClientID));
  10444. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_TagID));
  10445. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10446. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10447. != global::System.Data.ConnectionState.Open)) {
  10448. this.Adapter.DeleteCommand.Connection.Open();
  10449. }
  10450. try {
  10451. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10452. return returnValue;
  10453. }
  10454. finally {
  10455. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10456. this.Adapter.DeleteCommand.Connection.Close();
  10457. }
  10458. }
  10459. }
  10460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10462. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10463. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10464. public virtual int Insert(int ClientID, int TagID) {
  10465. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  10466. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(TagID));
  10467. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10468. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10469. != global::System.Data.ConnectionState.Open)) {
  10470. this.Adapter.InsertCommand.Connection.Open();
  10471. }
  10472. try {
  10473. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10474. return returnValue;
  10475. }
  10476. finally {
  10477. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10478. this.Adapter.InsertCommand.Connection.Close();
  10479. }
  10480. }
  10481. }
  10482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10484. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10485. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10486. public virtual int Update(int ClientID, int TagID, int Original_ClientID, int Original_TagID) {
  10487. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  10488. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(TagID));
  10489. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ClientID));
  10490. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_TagID));
  10491. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10492. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10493. != global::System.Data.ConnectionState.Open)) {
  10494. this.Adapter.UpdateCommand.Connection.Open();
  10495. }
  10496. try {
  10497. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10498. return returnValue;
  10499. }
  10500. finally {
  10501. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10502. this.Adapter.UpdateCommand.Connection.Close();
  10503. }
  10504. }
  10505. }
  10506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10508. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10509. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10510. public virtual int Update(int Original_ClientID, int Original_TagID) {
  10511. return this.Update(Original_ClientID, Original_TagID, Original_ClientID, Original_TagID);
  10512. }
  10513. }
  10514. /// <summary>
  10515. ///Represents the connection and commands used to retrieve and save data.
  10516. ///</summary>
  10517. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10518. [global::System.ComponentModel.ToolboxItem(true)]
  10519. [global::System.ComponentModel.DataObjectAttribute(true)]
  10520. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10521. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10522. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10523. public partial class ClientTableTableAdapter : global::System.ComponentModel.Component {
  10524. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10525. private global::System.Data.SqlClient.SqlConnection _connection;
  10526. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10527. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10528. private bool _clearBeforeFill;
  10529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10531. public ClientTableTableAdapter() {
  10532. this.ClearBeforeFill = true;
  10533. }
  10534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10536. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10537. get {
  10538. if ((this._adapter == null)) {
  10539. this.InitAdapter();
  10540. }
  10541. return this._adapter;
  10542. }
  10543. }
  10544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10546. internal global::System.Data.SqlClient.SqlConnection Connection {
  10547. get {
  10548. if ((this._connection == null)) {
  10549. this.InitConnection();
  10550. }
  10551. return this._connection;
  10552. }
  10553. set {
  10554. this._connection = value;
  10555. if ((this.Adapter.InsertCommand != null)) {
  10556. this.Adapter.InsertCommand.Connection = value;
  10557. }
  10558. if ((this.Adapter.DeleteCommand != null)) {
  10559. this.Adapter.DeleteCommand.Connection = value;
  10560. }
  10561. if ((this.Adapter.UpdateCommand != null)) {
  10562. this.Adapter.UpdateCommand.Connection = value;
  10563. }
  10564. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10565. if ((this.CommandCollection[i] != null)) {
  10566. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10567. }
  10568. }
  10569. }
  10570. }
  10571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10573. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10574. get {
  10575. return this._transaction;
  10576. }
  10577. set {
  10578. this._transaction = value;
  10579. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10580. this.CommandCollection[i].Transaction = this._transaction;
  10581. }
  10582. if (((this.Adapter != null)
  10583. && (this.Adapter.DeleteCommand != null))) {
  10584. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10585. }
  10586. if (((this.Adapter != null)
  10587. && (this.Adapter.InsertCommand != null))) {
  10588. this.Adapter.InsertCommand.Transaction = this._transaction;
  10589. }
  10590. if (((this.Adapter != null)
  10591. && (this.Adapter.UpdateCommand != null))) {
  10592. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10593. }
  10594. }
  10595. }
  10596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10598. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10599. get {
  10600. if ((this._commandCollection == null)) {
  10601. this.InitCommandCollection();
  10602. }
  10603. return this._commandCollection;
  10604. }
  10605. }
  10606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10608. public bool ClearBeforeFill {
  10609. get {
  10610. return this._clearBeforeFill;
  10611. }
  10612. set {
  10613. this._clearBeforeFill = value;
  10614. }
  10615. }
  10616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10618. private void InitAdapter() {
  10619. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10620. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10621. tableMapping.SourceTable = "Table";
  10622. tableMapping.DataSetTable = "ClientTable";
  10623. tableMapping.ColumnMappings.Add("ID", "ID");
  10624. tableMapping.ColumnMappings.Add("FirstName", "FirstName");
  10625. tableMapping.ColumnMappings.Add("LastName", "LastName");
  10626. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  10627. tableMapping.ColumnMappings.Add("Birthday", "Birthday");
  10628. tableMapping.ColumnMappings.Add("RegistrationDate", "RegistrationDate");
  10629. tableMapping.ColumnMappings.Add("Email", "Email");
  10630. tableMapping.ColumnMappings.Add("Phone", "Phone");
  10631. tableMapping.ColumnMappings.Add("GenderCode", "GenderCode");
  10632. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  10633. this._adapter.TableMappings.Add(tableMapping);
  10634. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10635. this._adapter.DeleteCommand.Connection = this.Connection;
  10636. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ClientTable] WHERE (([ID] = @Original_ID) AND ((@IsNull_Birthd" +
  10637. "ay = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ([Regis" +
  10638. "trationDate] = @Original_RegistrationDate) AND ([GenderCode] = @Original_GenderC" +
  10639. "ode))";
  10640. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10641. 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, "", "", ""));
  10642. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Birthday", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10643. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Birthday", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10644. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RegistrationDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10645. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10646. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10647. this._adapter.InsertCommand.Connection = this.Connection;
  10648. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ClientTable] ([FirstName], [LastName], [Patronymic], [Birthday], [RegistrationDate], [Email], [Phone], [GenderCode], [PhotoPath]) VALUES (@FirstName, @LastName, @Patronymic, @Birthday, @RegistrationDate, @Email, @Phone, @GenderCode, @PhotoPath);
  10649. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM ClientTable WHERE (ID = SCOPE_IDENTITY())";
  10650. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10651. 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, "", "", ""));
  10652. 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, "", "", ""));
  10653. 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, "", "", ""));
  10654. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Birthday", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10655. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RegistrationDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10656. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10657. 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, "", "", ""));
  10658. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10659. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.VarBinary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10660. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10661. this._adapter.UpdateCommand.Connection = this.Connection;
  10662. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ClientTable] SET [FirstName] = @FirstName, [LastName] = @LastName, [Patronymic] = @Patronymic, [Birthday] = @Birthday, [RegistrationDate] = @RegistrationDate, [Email] = @Email, [Phone] = @Phone, [GenderCode] = @GenderCode, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ((@IsNull_Birthday = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ([RegistrationDate] = @Original_RegistrationDate) AND ([GenderCode] = @Original_GenderCode));
  10663. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM ClientTable WHERE (ID = @ID)";
  10664. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10665. 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, "", "", ""));
  10666. 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, "", "", ""));
  10667. 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, "", "", ""));
  10668. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Birthday", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10669. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RegistrationDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10670. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10671. 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, "", "", ""));
  10672. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10673. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.VarBinary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10674. 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, "", "", ""));
  10675. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Birthday", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10676. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Birthday", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10677. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RegistrationDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10678. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10679. 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, "", "", ""));
  10680. }
  10681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10683. private void InitConnection() {
  10684. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10685. this._connection.ConnectionString = global::_02Trade.Properties.Settings.Default._02TradeConnectionString;
  10686. }
  10687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10689. private void InitCommandCollection() {
  10690. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10691. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10692. this._commandCollection[0].Connection = this.Connection;
  10693. this._commandCollection[0].CommandText = "SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Ph" +
  10694. "one, GenderCode, PhotoPath FROM dbo.ClientTable";
  10695. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10696. }
  10697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10699. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10700. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10701. public virtual int Fill(_02TradeDataSet.ClientTableDataTable dataTable) {
  10702. this.Adapter.SelectCommand = this.CommandCollection[0];
  10703. if ((this.ClearBeforeFill == true)) {
  10704. dataTable.Clear();
  10705. }
  10706. int returnValue = this.Adapter.Fill(dataTable);
  10707. return returnValue;
  10708. }
  10709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10711. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10712. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10713. public virtual _02TradeDataSet.ClientTableDataTable GetData() {
  10714. this.Adapter.SelectCommand = this.CommandCollection[0];
  10715. _02TradeDataSet.ClientTableDataTable dataTable = new _02TradeDataSet.ClientTableDataTable();
  10716. this.Adapter.Fill(dataTable);
  10717. return dataTable;
  10718. }
  10719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10721. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10722. public virtual int Update(_02TradeDataSet.ClientTableDataTable dataTable) {
  10723. return this.Adapter.Update(dataTable);
  10724. }
  10725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10727. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10728. public virtual int Update(_02TradeDataSet dataSet) {
  10729. return this.Adapter.Update(dataSet, "ClientTable");
  10730. }
  10731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10733. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10734. public virtual int Update(global::System.Data.DataRow dataRow) {
  10735. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10736. dataRow});
  10737. }
  10738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10740. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10741. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10742. return this.Adapter.Update(dataRows);
  10743. }
  10744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10746. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10747. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10748. public virtual int Delete(int Original_ID, global::System.Nullable<global::System.DateTime> Original_Birthday, System.DateTime Original_RegistrationDate, string Original_GenderCode) {
  10749. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  10750. if ((Original_Birthday.HasValue == true)) {
  10751. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  10752. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_Birthday.Value));
  10753. }
  10754. else {
  10755. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  10756. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  10757. }
  10758. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_RegistrationDate));
  10759. if ((Original_GenderCode == null)) {
  10760. throw new global::System.ArgumentNullException("Original_GenderCode");
  10761. }
  10762. else {
  10763. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_GenderCode));
  10764. }
  10765. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10766. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10767. != global::System.Data.ConnectionState.Open)) {
  10768. this.Adapter.DeleteCommand.Connection.Open();
  10769. }
  10770. try {
  10771. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10772. return returnValue;
  10773. }
  10774. finally {
  10775. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10776. this.Adapter.DeleteCommand.Connection.Close();
  10777. }
  10778. }
  10779. }
  10780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10782. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10783. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10784. public virtual int Insert(string FirstName, string LastName, string Patronymic, global::System.Nullable<global::System.DateTime> Birthday, System.DateTime RegistrationDate, string Email, string Phone, string GenderCode, byte[] PhotoPath) {
  10785. if ((FirstName == null)) {
  10786. throw new global::System.ArgumentNullException("FirstName");
  10787. }
  10788. else {
  10789. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(FirstName));
  10790. }
  10791. if ((LastName == null)) {
  10792. throw new global::System.ArgumentNullException("LastName");
  10793. }
  10794. else {
  10795. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(LastName));
  10796. }
  10797. if ((Patronymic == null)) {
  10798. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  10799. }
  10800. else {
  10801. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  10802. }
  10803. if ((Birthday.HasValue == true)) {
  10804. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  10805. }
  10806. else {
  10807. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  10808. }
  10809. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  10810. if ((Email == null)) {
  10811. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  10812. }
  10813. else {
  10814. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Email));
  10815. }
  10816. if ((Phone == null)) {
  10817. throw new global::System.ArgumentNullException("Phone");
  10818. }
  10819. else {
  10820. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Phone));
  10821. }
  10822. if ((GenderCode == null)) {
  10823. throw new global::System.ArgumentNullException("GenderCode");
  10824. }
  10825. else {
  10826. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(GenderCode));
  10827. }
  10828. if ((PhotoPath == null)) {
  10829. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  10830. }
  10831. else {
  10832. this.Adapter.InsertCommand.Parameters[8].Value = ((byte[])(PhotoPath));
  10833. }
  10834. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10835. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10836. != global::System.Data.ConnectionState.Open)) {
  10837. this.Adapter.InsertCommand.Connection.Open();
  10838. }
  10839. try {
  10840. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10841. return returnValue;
  10842. }
  10843. finally {
  10844. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10845. this.Adapter.InsertCommand.Connection.Close();
  10846. }
  10847. }
  10848. }
  10849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10851. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10852. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10853. public virtual int Update(string FirstName, string LastName, string Patronymic, global::System.Nullable<global::System.DateTime> Birthday, System.DateTime RegistrationDate, string Email, string Phone, string GenderCode, byte[] PhotoPath, int Original_ID, global::System.Nullable<global::System.DateTime> Original_Birthday, System.DateTime Original_RegistrationDate, string Original_GenderCode, int ID) {
  10854. if ((FirstName == null)) {
  10855. throw new global::System.ArgumentNullException("FirstName");
  10856. }
  10857. else {
  10858. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(FirstName));
  10859. }
  10860. if ((LastName == null)) {
  10861. throw new global::System.ArgumentNullException("LastName");
  10862. }
  10863. else {
  10864. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(LastName));
  10865. }
  10866. if ((Patronymic == null)) {
  10867. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  10868. }
  10869. else {
  10870. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  10871. }
  10872. if ((Birthday.HasValue == true)) {
  10873. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  10874. }
  10875. else {
  10876. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  10877. }
  10878. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  10879. if ((Email == null)) {
  10880. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  10881. }
  10882. else {
  10883. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Email));
  10884. }
  10885. if ((Phone == null)) {
  10886. throw new global::System.ArgumentNullException("Phone");
  10887. }
  10888. else {
  10889. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Phone));
  10890. }
  10891. if ((GenderCode == null)) {
  10892. throw new global::System.ArgumentNullException("GenderCode");
  10893. }
  10894. else {
  10895. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(GenderCode));
  10896. }
  10897. if ((PhotoPath == null)) {
  10898. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  10899. }
  10900. else {
  10901. this.Adapter.UpdateCommand.Parameters[8].Value = ((byte[])(PhotoPath));
  10902. }
  10903. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ID));
  10904. if ((Original_Birthday.HasValue == true)) {
  10905. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  10906. this.Adapter.UpdateCommand.Parameters[11].Value = ((System.DateTime)(Original_Birthday.Value));
  10907. }
  10908. else {
  10909. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  10910. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  10911. }
  10912. this.Adapter.UpdateCommand.Parameters[12].Value = ((System.DateTime)(Original_RegistrationDate));
  10913. if ((Original_GenderCode == null)) {
  10914. throw new global::System.ArgumentNullException("Original_GenderCode");
  10915. }
  10916. else {
  10917. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_GenderCode));
  10918. }
  10919. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  10920. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10921. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10922. != global::System.Data.ConnectionState.Open)) {
  10923. this.Adapter.UpdateCommand.Connection.Open();
  10924. }
  10925. try {
  10926. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10927. return returnValue;
  10928. }
  10929. finally {
  10930. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10931. this.Adapter.UpdateCommand.Connection.Close();
  10932. }
  10933. }
  10934. }
  10935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10937. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10938. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10939. public virtual int Update(string FirstName, string LastName, string Patronymic, global::System.Nullable<global::System.DateTime> Birthday, System.DateTime RegistrationDate, string Email, string Phone, string GenderCode, byte[] PhotoPath, int Original_ID, global::System.Nullable<global::System.DateTime> Original_Birthday, System.DateTime Original_RegistrationDate, string Original_GenderCode) {
  10940. return this.Update(FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath, Original_ID, Original_Birthday, Original_RegistrationDate, Original_GenderCode, Original_ID);
  10941. }
  10942. }
  10943. /// <summary>
  10944. ///Represents the connection and commands used to retrieve and save data.
  10945. ///</summary>
  10946. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10947. [global::System.ComponentModel.ToolboxItem(true)]
  10948. [global::System.ComponentModel.DataObjectAttribute(true)]
  10949. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10950. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10951. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10952. public partial class UserTableTableAdapter : global::System.ComponentModel.Component {
  10953. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10954. private global::System.Data.SqlClient.SqlConnection _connection;
  10955. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10956. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10957. private bool _clearBeforeFill;
  10958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10960. public UserTableTableAdapter() {
  10961. this.ClearBeforeFill = true;
  10962. }
  10963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10965. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10966. get {
  10967. if ((this._adapter == null)) {
  10968. this.InitAdapter();
  10969. }
  10970. return this._adapter;
  10971. }
  10972. }
  10973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10975. internal global::System.Data.SqlClient.SqlConnection Connection {
  10976. get {
  10977. if ((this._connection == null)) {
  10978. this.InitConnection();
  10979. }
  10980. return this._connection;
  10981. }
  10982. set {
  10983. this._connection = value;
  10984. if ((this.Adapter.InsertCommand != null)) {
  10985. this.Adapter.InsertCommand.Connection = value;
  10986. }
  10987. if ((this.Adapter.DeleteCommand != null)) {
  10988. this.Adapter.DeleteCommand.Connection = value;
  10989. }
  10990. if ((this.Adapter.UpdateCommand != null)) {
  10991. this.Adapter.UpdateCommand.Connection = value;
  10992. }
  10993. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10994. if ((this.CommandCollection[i] != null)) {
  10995. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10996. }
  10997. }
  10998. }
  10999. }
  11000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11002. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11003. get {
  11004. return this._transaction;
  11005. }
  11006. set {
  11007. this._transaction = value;
  11008. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11009. this.CommandCollection[i].Transaction = this._transaction;
  11010. }
  11011. if (((this.Adapter != null)
  11012. && (this.Adapter.DeleteCommand != null))) {
  11013. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11014. }
  11015. if (((this.Adapter != null)
  11016. && (this.Adapter.InsertCommand != null))) {
  11017. this.Adapter.InsertCommand.Transaction = this._transaction;
  11018. }
  11019. if (((this.Adapter != null)
  11020. && (this.Adapter.UpdateCommand != null))) {
  11021. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11022. }
  11023. }
  11024. }
  11025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11027. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11028. get {
  11029. if ((this._commandCollection == null)) {
  11030. this.InitCommandCollection();
  11031. }
  11032. return this._commandCollection;
  11033. }
  11034. }
  11035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11037. public bool ClearBeforeFill {
  11038. get {
  11039. return this._clearBeforeFill;
  11040. }
  11041. set {
  11042. this._clearBeforeFill = value;
  11043. }
  11044. }
  11045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11047. private void InitAdapter() {
  11048. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11049. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11050. tableMapping.SourceTable = "Table";
  11051. tableMapping.DataSetTable = "UserTable";
  11052. tableMapping.ColumnMappings.Add("UserID", "UserID");
  11053. tableMapping.ColumnMappings.Add("UserRole", "UserRole");
  11054. this._adapter.TableMappings.Add(tableMapping);
  11055. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11056. this._adapter.DeleteCommand.Connection = this.Connection;
  11057. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[UserTable] WHERE (([UserID] = @Original_UserID) AND ([UserRole" +
  11058. "] = @Original_UserRole))";
  11059. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11060. 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, "", "", ""));
  11061. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11062. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11063. this._adapter.InsertCommand.Connection = this.Connection;
  11064. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[UserTable] ([UserID], [UserRole]) VALUES (@UserID, @UserRole);" +
  11065. "\r\nSELECT UserID, UserRole FROM UserTable WHERE (UserID = @UserID)";
  11066. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11067. 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, "", "", ""));
  11068. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11069. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11070. this._adapter.UpdateCommand.Connection = this.Connection;
  11071. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[UserTable] SET [UserID] = @UserID, [UserRole] = @UserRole WHERE (([" +
  11072. "UserID] = @Original_UserID) AND ([UserRole] = @Original_UserRole));\r\nSELECT User" +
  11073. "ID, UserRole FROM UserTable WHERE (UserID = @UserID)";
  11074. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11075. 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, "", "", ""));
  11076. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11077. 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, "", "", ""));
  11078. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11079. }
  11080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11082. private void InitConnection() {
  11083. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11084. this._connection.ConnectionString = global::_02Trade.Properties.Settings.Default._02TradeConnectionString;
  11085. }
  11086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11088. private void InitCommandCollection() {
  11089. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11090. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11091. this._commandCollection[0].Connection = this.Connection;
  11092. this._commandCollection[0].CommandText = "SELECT UserID, UserRole FROM dbo.UserTable";
  11093. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11094. }
  11095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11097. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11098. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11099. public virtual int Fill(_02TradeDataSet.UserTableDataTable dataTable) {
  11100. this.Adapter.SelectCommand = this.CommandCollection[0];
  11101. if ((this.ClearBeforeFill == true)) {
  11102. dataTable.Clear();
  11103. }
  11104. int returnValue = this.Adapter.Fill(dataTable);
  11105. return returnValue;
  11106. }
  11107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11109. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11110. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11111. public virtual _02TradeDataSet.UserTableDataTable GetData() {
  11112. this.Adapter.SelectCommand = this.CommandCollection[0];
  11113. _02TradeDataSet.UserTableDataTable dataTable = new _02TradeDataSet.UserTableDataTable();
  11114. this.Adapter.Fill(dataTable);
  11115. return dataTable;
  11116. }
  11117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11119. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11120. public virtual int Update(_02TradeDataSet.UserTableDataTable dataTable) {
  11121. return this.Adapter.Update(dataTable);
  11122. }
  11123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11125. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11126. public virtual int Update(_02TradeDataSet dataSet) {
  11127. return this.Adapter.Update(dataSet, "UserTable");
  11128. }
  11129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11131. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11132. public virtual int Update(global::System.Data.DataRow dataRow) {
  11133. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11134. dataRow});
  11135. }
  11136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11138. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11139. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11140. return this.Adapter.Update(dataRows);
  11141. }
  11142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11144. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11145. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11146. public virtual int Delete(int Original_UserID, int Original_UserRole) {
  11147. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_UserID));
  11148. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_UserRole));
  11149. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11150. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11151. != global::System.Data.ConnectionState.Open)) {
  11152. this.Adapter.DeleteCommand.Connection.Open();
  11153. }
  11154. try {
  11155. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11156. return returnValue;
  11157. }
  11158. finally {
  11159. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11160. this.Adapter.DeleteCommand.Connection.Close();
  11161. }
  11162. }
  11163. }
  11164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11166. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11167. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11168. public virtual int Insert(int UserID, int UserRole) {
  11169. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(UserID));
  11170. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(UserRole));
  11171. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11172. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11173. != global::System.Data.ConnectionState.Open)) {
  11174. this.Adapter.InsertCommand.Connection.Open();
  11175. }
  11176. try {
  11177. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11178. return returnValue;
  11179. }
  11180. finally {
  11181. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11182. this.Adapter.InsertCommand.Connection.Close();
  11183. }
  11184. }
  11185. }
  11186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11188. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11189. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11190. public virtual int Update(int UserID, int UserRole, int Original_UserID, int Original_UserRole) {
  11191. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(UserID));
  11192. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(UserRole));
  11193. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_UserID));
  11194. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_UserRole));
  11195. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11196. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11197. != global::System.Data.ConnectionState.Open)) {
  11198. this.Adapter.UpdateCommand.Connection.Open();
  11199. }
  11200. try {
  11201. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11202. return returnValue;
  11203. }
  11204. finally {
  11205. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11206. this.Adapter.UpdateCommand.Connection.Close();
  11207. }
  11208. }
  11209. }
  11210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11212. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11213. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11214. public virtual int Update(int UserRole, int Original_UserID, int Original_UserRole) {
  11215. return this.Update(Original_UserID, UserRole, Original_UserID, Original_UserRole);
  11216. }
  11217. }
  11218. /// <summary>
  11219. ///Represents the connection and commands used to retrieve and save data.
  11220. ///</summary>
  11221. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11222. [global::System.ComponentModel.ToolboxItem(true)]
  11223. [global::System.ComponentModel.DataObjectAttribute(true)]
  11224. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11225. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11226. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11227. public partial class RoleTableTableAdapter : global::System.ComponentModel.Component {
  11228. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11229. private global::System.Data.SqlClient.SqlConnection _connection;
  11230. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11231. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11232. private bool _clearBeforeFill;
  11233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11235. public RoleTableTableAdapter() {
  11236. this.ClearBeforeFill = true;
  11237. }
  11238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11240. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11241. get {
  11242. if ((this._adapter == null)) {
  11243. this.InitAdapter();
  11244. }
  11245. return this._adapter;
  11246. }
  11247. }
  11248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11250. internal global::System.Data.SqlClient.SqlConnection Connection {
  11251. get {
  11252. if ((this._connection == null)) {
  11253. this.InitConnection();
  11254. }
  11255. return this._connection;
  11256. }
  11257. set {
  11258. this._connection = value;
  11259. if ((this.Adapter.InsertCommand != null)) {
  11260. this.Adapter.InsertCommand.Connection = value;
  11261. }
  11262. if ((this.Adapter.DeleteCommand != null)) {
  11263. this.Adapter.DeleteCommand.Connection = value;
  11264. }
  11265. if ((this.Adapter.UpdateCommand != null)) {
  11266. this.Adapter.UpdateCommand.Connection = value;
  11267. }
  11268. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11269. if ((this.CommandCollection[i] != null)) {
  11270. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11271. }
  11272. }
  11273. }
  11274. }
  11275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11277. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11278. get {
  11279. return this._transaction;
  11280. }
  11281. set {
  11282. this._transaction = value;
  11283. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11284. this.CommandCollection[i].Transaction = this._transaction;
  11285. }
  11286. if (((this.Adapter != null)
  11287. && (this.Adapter.DeleteCommand != null))) {
  11288. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11289. }
  11290. if (((this.Adapter != null)
  11291. && (this.Adapter.InsertCommand != null))) {
  11292. this.Adapter.InsertCommand.Transaction = this._transaction;
  11293. }
  11294. if (((this.Adapter != null)
  11295. && (this.Adapter.UpdateCommand != null))) {
  11296. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11297. }
  11298. }
  11299. }
  11300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11302. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11303. get {
  11304. if ((this._commandCollection == null)) {
  11305. this.InitCommandCollection();
  11306. }
  11307. return this._commandCollection;
  11308. }
  11309. }
  11310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11312. public bool ClearBeforeFill {
  11313. get {
  11314. return this._clearBeforeFill;
  11315. }
  11316. set {
  11317. this._clearBeforeFill = value;
  11318. }
  11319. }
  11320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11322. private void InitAdapter() {
  11323. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11324. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11325. tableMapping.SourceTable = "Table";
  11326. tableMapping.DataSetTable = "RoleTable";
  11327. tableMapping.ColumnMappings.Add("UserRole", "UserRole");
  11328. tableMapping.ColumnMappings.Add("RoleName", "RoleName");
  11329. this._adapter.TableMappings.Add(tableMapping);
  11330. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11331. this._adapter.DeleteCommand.Connection = this.Connection;
  11332. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[RoleTable] WHERE (([UserRole] = @Original_UserRole) AND ((@IsN" +
  11333. "ull_RoleName = 1 AND [RoleName] IS NULL) OR ([RoleName] = @Original_RoleName)))";
  11334. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11335. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11336. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_RoleName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11337. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RoleName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11338. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11339. this._adapter.InsertCommand.Connection = this.Connection;
  11340. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[RoleTable] ([UserRole], [RoleName]) VALUES (@UserRole, @RoleNa" +
  11341. "me);\r\nSELECT UserRole, RoleName FROM RoleTable WHERE (UserRole = @UserRole)";
  11342. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11343. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11344. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RoleName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11345. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11346. this._adapter.UpdateCommand.Connection = this.Connection;
  11347. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[RoleTable] SET [UserRole] = @UserRole, [RoleName] = @RoleName WHERE (([UserRole] = @Original_UserRole) AND ((@IsNull_RoleName = 1 AND [RoleName] IS NULL) OR ([RoleName] = @Original_RoleName)));
  11348. SELECT UserRole, RoleName FROM RoleTable WHERE (UserRole = @UserRole)";
  11349. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11350. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11351. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RoleName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11352. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11353. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_RoleName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11354. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RoleName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11355. }
  11356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11358. private void InitConnection() {
  11359. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11360. this._connection.ConnectionString = global::_02Trade.Properties.Settings.Default._02TradeConnectionString;
  11361. }
  11362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11364. private void InitCommandCollection() {
  11365. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11366. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11367. this._commandCollection[0].Connection = this.Connection;
  11368. this._commandCollection[0].CommandText = "SELECT UserRole, RoleName FROM dbo.RoleTable";
  11369. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11370. }
  11371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11373. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11374. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11375. public virtual int Fill(_02TradeDataSet.RoleTableDataTable dataTable) {
  11376. this.Adapter.SelectCommand = this.CommandCollection[0];
  11377. if ((this.ClearBeforeFill == true)) {
  11378. dataTable.Clear();
  11379. }
  11380. int returnValue = this.Adapter.Fill(dataTable);
  11381. return returnValue;
  11382. }
  11383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11385. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11386. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11387. public virtual _02TradeDataSet.RoleTableDataTable GetData() {
  11388. this.Adapter.SelectCommand = this.CommandCollection[0];
  11389. _02TradeDataSet.RoleTableDataTable dataTable = new _02TradeDataSet.RoleTableDataTable();
  11390. this.Adapter.Fill(dataTable);
  11391. return dataTable;
  11392. }
  11393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11395. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11396. public virtual int Update(_02TradeDataSet.RoleTableDataTable dataTable) {
  11397. return this.Adapter.Update(dataTable);
  11398. }
  11399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11401. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11402. public virtual int Update(_02TradeDataSet dataSet) {
  11403. return this.Adapter.Update(dataSet, "RoleTable");
  11404. }
  11405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11407. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11408. public virtual int Update(global::System.Data.DataRow dataRow) {
  11409. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11410. dataRow});
  11411. }
  11412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11414. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11415. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11416. return this.Adapter.Update(dataRows);
  11417. }
  11418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11420. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11421. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11422. public virtual int Delete(int Original_UserRole, string Original_RoleName) {
  11423. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_UserRole));
  11424. if ((Original_RoleName == null)) {
  11425. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  11426. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  11427. }
  11428. else {
  11429. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  11430. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_RoleName));
  11431. }
  11432. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11433. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11434. != global::System.Data.ConnectionState.Open)) {
  11435. this.Adapter.DeleteCommand.Connection.Open();
  11436. }
  11437. try {
  11438. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11439. return returnValue;
  11440. }
  11441. finally {
  11442. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11443. this.Adapter.DeleteCommand.Connection.Close();
  11444. }
  11445. }
  11446. }
  11447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11449. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11450. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11451. public virtual int Insert(int UserRole, string RoleName) {
  11452. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(UserRole));
  11453. if ((RoleName == null)) {
  11454. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  11455. }
  11456. else {
  11457. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(RoleName));
  11458. }
  11459. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11460. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11461. != global::System.Data.ConnectionState.Open)) {
  11462. this.Adapter.InsertCommand.Connection.Open();
  11463. }
  11464. try {
  11465. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11466. return returnValue;
  11467. }
  11468. finally {
  11469. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11470. this.Adapter.InsertCommand.Connection.Close();
  11471. }
  11472. }
  11473. }
  11474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11476. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11477. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11478. public virtual int Update(int UserRole, string RoleName, int Original_UserRole, string Original_RoleName) {
  11479. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(UserRole));
  11480. if ((RoleName == null)) {
  11481. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  11482. }
  11483. else {
  11484. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(RoleName));
  11485. }
  11486. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_UserRole));
  11487. if ((Original_RoleName == null)) {
  11488. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  11489. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  11490. }
  11491. else {
  11492. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  11493. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_RoleName));
  11494. }
  11495. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11496. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11497. != global::System.Data.ConnectionState.Open)) {
  11498. this.Adapter.UpdateCommand.Connection.Open();
  11499. }
  11500. try {
  11501. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11502. return returnValue;
  11503. }
  11504. finally {
  11505. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11506. this.Adapter.UpdateCommand.Connection.Close();
  11507. }
  11508. }
  11509. }
  11510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11512. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11513. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11514. public virtual int Update(string RoleName, int Original_UserRole, string Original_RoleName) {
  11515. return this.Update(Original_UserRole, RoleName, Original_UserRole, Original_RoleName);
  11516. }
  11517. }
  11518. /// <summary>
  11519. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  11520. ///</summary>
  11521. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11522. [global::System.ComponentModel.ToolboxItem(true)]
  11523. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  11524. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11525. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  11526. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  11527. private UpdateOrderOption _updateOrder;
  11528. private AttachedProductTableAdapter _attachedProductTableAdapter;
  11529. private ClientServiceTableAdapter _clientServiceTableAdapter;
  11530. private DocumentByServiceTableAdapter _documentByServiceTableAdapter;
  11531. private GenderTableAdapter _genderTableAdapter;
  11532. private ManufacturerTableAdapter _manufacturerTableAdapter;
  11533. private ProductTableAdapter _productTableAdapter;
  11534. private ProductPhotoTableAdapter _productPhotoTableAdapter;
  11535. private ProductSaleTableAdapter _productSaleTableAdapter;
  11536. private ServiceTableAdapter _serviceTableAdapter;
  11537. private ServicePhotoTableAdapter _servicePhotoTableAdapter;
  11538. private TagTableAdapter _tagTableAdapter;
  11539. private TagOfClientTableAdapter _tagOfClientTableAdapter;
  11540. private ClientTableTableAdapter _clientTableTableAdapter;
  11541. private UserTableTableAdapter _userTableTableAdapter;
  11542. private RoleTableTableAdapter _roleTableTableAdapter;
  11543. private bool _backupDataSetBeforeUpdate;
  11544. private global::System.Data.IDbConnection _connection;
  11545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11547. public UpdateOrderOption UpdateOrder {
  11548. get {
  11549. return this._updateOrder;
  11550. }
  11551. set {
  11552. this._updateOrder = value;
  11553. }
  11554. }
  11555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11557. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11558. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11559. "a", "System.Drawing.Design.UITypeEditor")]
  11560. public AttachedProductTableAdapter AttachedProductTableAdapter {
  11561. get {
  11562. return this._attachedProductTableAdapter;
  11563. }
  11564. set {
  11565. this._attachedProductTableAdapter = value;
  11566. }
  11567. }
  11568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11570. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11571. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11572. "a", "System.Drawing.Design.UITypeEditor")]
  11573. public ClientServiceTableAdapter ClientServiceTableAdapter {
  11574. get {
  11575. return this._clientServiceTableAdapter;
  11576. }
  11577. set {
  11578. this._clientServiceTableAdapter = value;
  11579. }
  11580. }
  11581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11583. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11584. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11585. "a", "System.Drawing.Design.UITypeEditor")]
  11586. public DocumentByServiceTableAdapter DocumentByServiceTableAdapter {
  11587. get {
  11588. return this._documentByServiceTableAdapter;
  11589. }
  11590. set {
  11591. this._documentByServiceTableAdapter = value;
  11592. }
  11593. }
  11594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11596. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11597. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11598. "a", "System.Drawing.Design.UITypeEditor")]
  11599. public GenderTableAdapter GenderTableAdapter {
  11600. get {
  11601. return this._genderTableAdapter;
  11602. }
  11603. set {
  11604. this._genderTableAdapter = value;
  11605. }
  11606. }
  11607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11609. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11610. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11611. "a", "System.Drawing.Design.UITypeEditor")]
  11612. public ManufacturerTableAdapter ManufacturerTableAdapter {
  11613. get {
  11614. return this._manufacturerTableAdapter;
  11615. }
  11616. set {
  11617. this._manufacturerTableAdapter = value;
  11618. }
  11619. }
  11620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11622. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11623. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11624. "a", "System.Drawing.Design.UITypeEditor")]
  11625. public ProductTableAdapter ProductTableAdapter {
  11626. get {
  11627. return this._productTableAdapter;
  11628. }
  11629. set {
  11630. this._productTableAdapter = value;
  11631. }
  11632. }
  11633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11635. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11636. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11637. "a", "System.Drawing.Design.UITypeEditor")]
  11638. public ProductPhotoTableAdapter ProductPhotoTableAdapter {
  11639. get {
  11640. return this._productPhotoTableAdapter;
  11641. }
  11642. set {
  11643. this._productPhotoTableAdapter = value;
  11644. }
  11645. }
  11646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11648. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11649. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11650. "a", "System.Drawing.Design.UITypeEditor")]
  11651. public ProductSaleTableAdapter ProductSaleTableAdapter {
  11652. get {
  11653. return this._productSaleTableAdapter;
  11654. }
  11655. set {
  11656. this._productSaleTableAdapter = value;
  11657. }
  11658. }
  11659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11661. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11662. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11663. "a", "System.Drawing.Design.UITypeEditor")]
  11664. public ServiceTableAdapter ServiceTableAdapter {
  11665. get {
  11666. return this._serviceTableAdapter;
  11667. }
  11668. set {
  11669. this._serviceTableAdapter = value;
  11670. }
  11671. }
  11672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11674. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11675. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11676. "a", "System.Drawing.Design.UITypeEditor")]
  11677. public ServicePhotoTableAdapter ServicePhotoTableAdapter {
  11678. get {
  11679. return this._servicePhotoTableAdapter;
  11680. }
  11681. set {
  11682. this._servicePhotoTableAdapter = value;
  11683. }
  11684. }
  11685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11687. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11688. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11689. "a", "System.Drawing.Design.UITypeEditor")]
  11690. public TagTableAdapter TagTableAdapter {
  11691. get {
  11692. return this._tagTableAdapter;
  11693. }
  11694. set {
  11695. this._tagTableAdapter = value;
  11696. }
  11697. }
  11698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11700. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11701. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11702. "a", "System.Drawing.Design.UITypeEditor")]
  11703. public TagOfClientTableAdapter TagOfClientTableAdapter {
  11704. get {
  11705. return this._tagOfClientTableAdapter;
  11706. }
  11707. set {
  11708. this._tagOfClientTableAdapter = value;
  11709. }
  11710. }
  11711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11713. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11714. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11715. "a", "System.Drawing.Design.UITypeEditor")]
  11716. public ClientTableTableAdapter ClientTableTableAdapter {
  11717. get {
  11718. return this._clientTableTableAdapter;
  11719. }
  11720. set {
  11721. this._clientTableTableAdapter = value;
  11722. }
  11723. }
  11724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11726. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11727. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11728. "a", "System.Drawing.Design.UITypeEditor")]
  11729. public UserTableTableAdapter UserTableTableAdapter {
  11730. get {
  11731. return this._userTableTableAdapter;
  11732. }
  11733. set {
  11734. this._userTableTableAdapter = value;
  11735. }
  11736. }
  11737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11739. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  11740. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  11741. "a", "System.Drawing.Design.UITypeEditor")]
  11742. public RoleTableTableAdapter RoleTableTableAdapter {
  11743. get {
  11744. return this._roleTableTableAdapter;
  11745. }
  11746. set {
  11747. this._roleTableTableAdapter = value;
  11748. }
  11749. }
  11750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11752. public bool BackupDataSetBeforeUpdate {
  11753. get {
  11754. return this._backupDataSetBeforeUpdate;
  11755. }
  11756. set {
  11757. this._backupDataSetBeforeUpdate = value;
  11758. }
  11759. }
  11760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11762. [global::System.ComponentModel.Browsable(false)]
  11763. public global::System.Data.IDbConnection Connection {
  11764. get {
  11765. if ((this._connection != null)) {
  11766. return this._connection;
  11767. }
  11768. if (((this._attachedProductTableAdapter != null)
  11769. && (this._attachedProductTableAdapter.Connection != null))) {
  11770. return this._attachedProductTableAdapter.Connection;
  11771. }
  11772. if (((this._clientServiceTableAdapter != null)
  11773. && (this._clientServiceTableAdapter.Connection != null))) {
  11774. return this._clientServiceTableAdapter.Connection;
  11775. }
  11776. if (((this._documentByServiceTableAdapter != null)
  11777. && (this._documentByServiceTableAdapter.Connection != null))) {
  11778. return this._documentByServiceTableAdapter.Connection;
  11779. }
  11780. if (((this._genderTableAdapter != null)
  11781. && (this._genderTableAdapter.Connection != null))) {
  11782. return this._genderTableAdapter.Connection;
  11783. }
  11784. if (((this._manufacturerTableAdapter != null)
  11785. && (this._manufacturerTableAdapter.Connection != null))) {
  11786. return this._manufacturerTableAdapter.Connection;
  11787. }
  11788. if (((this._productTableAdapter != null)
  11789. && (this._productTableAdapter.Connection != null))) {
  11790. return this._productTableAdapter.Connection;
  11791. }
  11792. if (((this._productPhotoTableAdapter != null)
  11793. && (this._productPhotoTableAdapter.Connection != null))) {
  11794. return this._productPhotoTableAdapter.Connection;
  11795. }
  11796. if (((this._productSaleTableAdapter != null)
  11797. && (this._productSaleTableAdapter.Connection != null))) {
  11798. return this._productSaleTableAdapter.Connection;
  11799. }
  11800. if (((this._serviceTableAdapter != null)
  11801. && (this._serviceTableAdapter.Connection != null))) {
  11802. return this._serviceTableAdapter.Connection;
  11803. }
  11804. if (((this._servicePhotoTableAdapter != null)
  11805. && (this._servicePhotoTableAdapter.Connection != null))) {
  11806. return this._servicePhotoTableAdapter.Connection;
  11807. }
  11808. if (((this._tagTableAdapter != null)
  11809. && (this._tagTableAdapter.Connection != null))) {
  11810. return this._tagTableAdapter.Connection;
  11811. }
  11812. if (((this._tagOfClientTableAdapter != null)
  11813. && (this._tagOfClientTableAdapter.Connection != null))) {
  11814. return this._tagOfClientTableAdapter.Connection;
  11815. }
  11816. if (((this._clientTableTableAdapter != null)
  11817. && (this._clientTableTableAdapter.Connection != null))) {
  11818. return this._clientTableTableAdapter.Connection;
  11819. }
  11820. if (((this._userTableTableAdapter != null)
  11821. && (this._userTableTableAdapter.Connection != null))) {
  11822. return this._userTableTableAdapter.Connection;
  11823. }
  11824. if (((this._roleTableTableAdapter != null)
  11825. && (this._roleTableTableAdapter.Connection != null))) {
  11826. return this._roleTableTableAdapter.Connection;
  11827. }
  11828. return null;
  11829. }
  11830. set {
  11831. this._connection = value;
  11832. }
  11833. }
  11834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11836. [global::System.ComponentModel.Browsable(false)]
  11837. public int TableAdapterInstanceCount {
  11838. get {
  11839. int count = 0;
  11840. if ((this._attachedProductTableAdapter != null)) {
  11841. count = (count + 1);
  11842. }
  11843. if ((this._clientServiceTableAdapter != null)) {
  11844. count = (count + 1);
  11845. }
  11846. if ((this._documentByServiceTableAdapter != null)) {
  11847. count = (count + 1);
  11848. }
  11849. if ((this._genderTableAdapter != null)) {
  11850. count = (count + 1);
  11851. }
  11852. if ((this._manufacturerTableAdapter != null)) {
  11853. count = (count + 1);
  11854. }
  11855. if ((this._productTableAdapter != null)) {
  11856. count = (count + 1);
  11857. }
  11858. if ((this._productPhotoTableAdapter != null)) {
  11859. count = (count + 1);
  11860. }
  11861. if ((this._productSaleTableAdapter != null)) {
  11862. count = (count + 1);
  11863. }
  11864. if ((this._serviceTableAdapter != null)) {
  11865. count = (count + 1);
  11866. }
  11867. if ((this._servicePhotoTableAdapter != null)) {
  11868. count = (count + 1);
  11869. }
  11870. if ((this._tagTableAdapter != null)) {
  11871. count = (count + 1);
  11872. }
  11873. if ((this._tagOfClientTableAdapter != null)) {
  11874. count = (count + 1);
  11875. }
  11876. if ((this._clientTableTableAdapter != null)) {
  11877. count = (count + 1);
  11878. }
  11879. if ((this._userTableTableAdapter != null)) {
  11880. count = (count + 1);
  11881. }
  11882. if ((this._roleTableTableAdapter != null)) {
  11883. count = (count + 1);
  11884. }
  11885. return count;
  11886. }
  11887. }
  11888. /// <summary>
  11889. ///Update rows in top-down order.
  11890. ///</summary>
  11891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11893. private int UpdateUpdatedRows(_02TradeDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  11894. int result = 0;
  11895. if ((this._genderTableAdapter != null)) {
  11896. global::System.Data.DataRow[] updatedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11897. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11898. if (((updatedRows != null)
  11899. && (0 < updatedRows.Length))) {
  11900. result = (result + this._genderTableAdapter.Update(updatedRows));
  11901. allChangedRows.AddRange(updatedRows);
  11902. }
  11903. }
  11904. if ((this._manufacturerTableAdapter != null)) {
  11905. global::System.Data.DataRow[] updatedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11906. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11907. if (((updatedRows != null)
  11908. && (0 < updatedRows.Length))) {
  11909. result = (result + this._manufacturerTableAdapter.Update(updatedRows));
  11910. allChangedRows.AddRange(updatedRows);
  11911. }
  11912. }
  11913. if ((this._serviceTableAdapter != null)) {
  11914. global::System.Data.DataRow[] updatedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11915. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11916. if (((updatedRows != null)
  11917. && (0 < updatedRows.Length))) {
  11918. result = (result + this._serviceTableAdapter.Update(updatedRows));
  11919. allChangedRows.AddRange(updatedRows);
  11920. }
  11921. }
  11922. if ((this._clientTableTableAdapter != null)) {
  11923. global::System.Data.DataRow[] updatedRows = dataSet.ClientTable.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11924. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11925. if (((updatedRows != null)
  11926. && (0 < updatedRows.Length))) {
  11927. result = (result + this._clientTableTableAdapter.Update(updatedRows));
  11928. allChangedRows.AddRange(updatedRows);
  11929. }
  11930. }
  11931. if ((this._clientServiceTableAdapter != null)) {
  11932. global::System.Data.DataRow[] updatedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11933. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11934. if (((updatedRows != null)
  11935. && (0 < updatedRows.Length))) {
  11936. result = (result + this._clientServiceTableAdapter.Update(updatedRows));
  11937. allChangedRows.AddRange(updatedRows);
  11938. }
  11939. }
  11940. if ((this._productTableAdapter != null)) {
  11941. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11942. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11943. if (((updatedRows != null)
  11944. && (0 < updatedRows.Length))) {
  11945. result = (result + this._productTableAdapter.Update(updatedRows));
  11946. allChangedRows.AddRange(updatedRows);
  11947. }
  11948. }
  11949. if ((this._tagTableAdapter != null)) {
  11950. global::System.Data.DataRow[] updatedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11951. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11952. if (((updatedRows != null)
  11953. && (0 < updatedRows.Length))) {
  11954. result = (result + this._tagTableAdapter.Update(updatedRows));
  11955. allChangedRows.AddRange(updatedRows);
  11956. }
  11957. }
  11958. if ((this._roleTableTableAdapter != null)) {
  11959. global::System.Data.DataRow[] updatedRows = dataSet.RoleTable.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11960. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11961. if (((updatedRows != null)
  11962. && (0 < updatedRows.Length))) {
  11963. result = (result + this._roleTableTableAdapter.Update(updatedRows));
  11964. allChangedRows.AddRange(updatedRows);
  11965. }
  11966. }
  11967. if ((this._attachedProductTableAdapter != null)) {
  11968. global::System.Data.DataRow[] updatedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11969. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11970. if (((updatedRows != null)
  11971. && (0 < updatedRows.Length))) {
  11972. result = (result + this._attachedProductTableAdapter.Update(updatedRows));
  11973. allChangedRows.AddRange(updatedRows);
  11974. }
  11975. }
  11976. if ((this._documentByServiceTableAdapter != null)) {
  11977. global::System.Data.DataRow[] updatedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11978. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11979. if (((updatedRows != null)
  11980. && (0 < updatedRows.Length))) {
  11981. result = (result + this._documentByServiceTableAdapter.Update(updatedRows));
  11982. allChangedRows.AddRange(updatedRows);
  11983. }
  11984. }
  11985. if ((this._productPhotoTableAdapter != null)) {
  11986. global::System.Data.DataRow[] updatedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11987. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11988. if (((updatedRows != null)
  11989. && (0 < updatedRows.Length))) {
  11990. result = (result + this._productPhotoTableAdapter.Update(updatedRows));
  11991. allChangedRows.AddRange(updatedRows);
  11992. }
  11993. }
  11994. if ((this._productSaleTableAdapter != null)) {
  11995. global::System.Data.DataRow[] updatedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11996. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11997. if (((updatedRows != null)
  11998. && (0 < updatedRows.Length))) {
  11999. result = (result + this._productSaleTableAdapter.Update(updatedRows));
  12000. allChangedRows.AddRange(updatedRows);
  12001. }
  12002. }
  12003. if ((this._servicePhotoTableAdapter != null)) {
  12004. global::System.Data.DataRow[] updatedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12005. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12006. if (((updatedRows != null)
  12007. && (0 < updatedRows.Length))) {
  12008. result = (result + this._servicePhotoTableAdapter.Update(updatedRows));
  12009. allChangedRows.AddRange(updatedRows);
  12010. }
  12011. }
  12012. if ((this._tagOfClientTableAdapter != null)) {
  12013. global::System.Data.DataRow[] updatedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12014. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12015. if (((updatedRows != null)
  12016. && (0 < updatedRows.Length))) {
  12017. result = (result + this._tagOfClientTableAdapter.Update(updatedRows));
  12018. allChangedRows.AddRange(updatedRows);
  12019. }
  12020. }
  12021. if ((this._userTableTableAdapter != null)) {
  12022. global::System.Data.DataRow[] updatedRows = dataSet.UserTable.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  12023. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  12024. if (((updatedRows != null)
  12025. && (0 < updatedRows.Length))) {
  12026. result = (result + this._userTableTableAdapter.Update(updatedRows));
  12027. allChangedRows.AddRange(updatedRows);
  12028. }
  12029. }
  12030. return result;
  12031. }
  12032. /// <summary>
  12033. ///Insert rows in top-down order.
  12034. ///</summary>
  12035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12037. private int UpdateInsertedRows(_02TradeDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  12038. int result = 0;
  12039. if ((this._genderTableAdapter != null)) {
  12040. global::System.Data.DataRow[] addedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Added);
  12041. if (((addedRows != null)
  12042. && (0 < addedRows.Length))) {
  12043. result = (result + this._genderTableAdapter.Update(addedRows));
  12044. allAddedRows.AddRange(addedRows);
  12045. }
  12046. }
  12047. if ((this._manufacturerTableAdapter != null)) {
  12048. global::System.Data.DataRow[] addedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Added);
  12049. if (((addedRows != null)
  12050. && (0 < addedRows.Length))) {
  12051. result = (result + this._manufacturerTableAdapter.Update(addedRows));
  12052. allAddedRows.AddRange(addedRows);
  12053. }
  12054. }
  12055. if ((this._serviceTableAdapter != null)) {
  12056. global::System.Data.DataRow[] addedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Added);
  12057. if (((addedRows != null)
  12058. && (0 < addedRows.Length))) {
  12059. result = (result + this._serviceTableAdapter.Update(addedRows));
  12060. allAddedRows.AddRange(addedRows);
  12061. }
  12062. }
  12063. if ((this._clientTableTableAdapter != null)) {
  12064. global::System.Data.DataRow[] addedRows = dataSet.ClientTable.Select(null, null, global::System.Data.DataViewRowState.Added);
  12065. if (((addedRows != null)
  12066. && (0 < addedRows.Length))) {
  12067. result = (result + this._clientTableTableAdapter.Update(addedRows));
  12068. allAddedRows.AddRange(addedRows);
  12069. }
  12070. }
  12071. if ((this._clientServiceTableAdapter != null)) {
  12072. global::System.Data.DataRow[] addedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Added);
  12073. if (((addedRows != null)
  12074. && (0 < addedRows.Length))) {
  12075. result = (result + this._clientServiceTableAdapter.Update(addedRows));
  12076. allAddedRows.AddRange(addedRows);
  12077. }
  12078. }
  12079. if ((this._productTableAdapter != null)) {
  12080. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  12081. if (((addedRows != null)
  12082. && (0 < addedRows.Length))) {
  12083. result = (result + this._productTableAdapter.Update(addedRows));
  12084. allAddedRows.AddRange(addedRows);
  12085. }
  12086. }
  12087. if ((this._tagTableAdapter != null)) {
  12088. global::System.Data.DataRow[] addedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Added);
  12089. if (((addedRows != null)
  12090. && (0 < addedRows.Length))) {
  12091. result = (result + this._tagTableAdapter.Update(addedRows));
  12092. allAddedRows.AddRange(addedRows);
  12093. }
  12094. }
  12095. if ((this._roleTableTableAdapter != null)) {
  12096. global::System.Data.DataRow[] addedRows = dataSet.RoleTable.Select(null, null, global::System.Data.DataViewRowState.Added);
  12097. if (((addedRows != null)
  12098. && (0 < addedRows.Length))) {
  12099. result = (result + this._roleTableTableAdapter.Update(addedRows));
  12100. allAddedRows.AddRange(addedRows);
  12101. }
  12102. }
  12103. if ((this._attachedProductTableAdapter != null)) {
  12104. global::System.Data.DataRow[] addedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  12105. if (((addedRows != null)
  12106. && (0 < addedRows.Length))) {
  12107. result = (result + this._attachedProductTableAdapter.Update(addedRows));
  12108. allAddedRows.AddRange(addedRows);
  12109. }
  12110. }
  12111. if ((this._documentByServiceTableAdapter != null)) {
  12112. global::System.Data.DataRow[] addedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Added);
  12113. if (((addedRows != null)
  12114. && (0 < addedRows.Length))) {
  12115. result = (result + this._documentByServiceTableAdapter.Update(addedRows));
  12116. allAddedRows.AddRange(addedRows);
  12117. }
  12118. }
  12119. if ((this._productPhotoTableAdapter != null)) {
  12120. global::System.Data.DataRow[] addedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  12121. if (((addedRows != null)
  12122. && (0 < addedRows.Length))) {
  12123. result = (result + this._productPhotoTableAdapter.Update(addedRows));
  12124. allAddedRows.AddRange(addedRows);
  12125. }
  12126. }
  12127. if ((this._productSaleTableAdapter != null)) {
  12128. global::System.Data.DataRow[] addedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Added);
  12129. if (((addedRows != null)
  12130. && (0 < addedRows.Length))) {
  12131. result = (result + this._productSaleTableAdapter.Update(addedRows));
  12132. allAddedRows.AddRange(addedRows);
  12133. }
  12134. }
  12135. if ((this._servicePhotoTableAdapter != null)) {
  12136. global::System.Data.DataRow[] addedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  12137. if (((addedRows != null)
  12138. && (0 < addedRows.Length))) {
  12139. result = (result + this._servicePhotoTableAdapter.Update(addedRows));
  12140. allAddedRows.AddRange(addedRows);
  12141. }
  12142. }
  12143. if ((this._tagOfClientTableAdapter != null)) {
  12144. global::System.Data.DataRow[] addedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Added);
  12145. if (((addedRows != null)
  12146. && (0 < addedRows.Length))) {
  12147. result = (result + this._tagOfClientTableAdapter.Update(addedRows));
  12148. allAddedRows.AddRange(addedRows);
  12149. }
  12150. }
  12151. if ((this._userTableTableAdapter != null)) {
  12152. global::System.Data.DataRow[] addedRows = dataSet.UserTable.Select(null, null, global::System.Data.DataViewRowState.Added);
  12153. if (((addedRows != null)
  12154. && (0 < addedRows.Length))) {
  12155. result = (result + this._userTableTableAdapter.Update(addedRows));
  12156. allAddedRows.AddRange(addedRows);
  12157. }
  12158. }
  12159. return result;
  12160. }
  12161. /// <summary>
  12162. ///Delete rows in bottom-up order.
  12163. ///</summary>
  12164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12166. private int UpdateDeletedRows(_02TradeDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  12167. int result = 0;
  12168. if ((this._userTableTableAdapter != null)) {
  12169. global::System.Data.DataRow[] deletedRows = dataSet.UserTable.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12170. if (((deletedRows != null)
  12171. && (0 < deletedRows.Length))) {
  12172. result = (result + this._userTableTableAdapter.Update(deletedRows));
  12173. allChangedRows.AddRange(deletedRows);
  12174. }
  12175. }
  12176. if ((this._tagOfClientTableAdapter != null)) {
  12177. global::System.Data.DataRow[] deletedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12178. if (((deletedRows != null)
  12179. && (0 < deletedRows.Length))) {
  12180. result = (result + this._tagOfClientTableAdapter.Update(deletedRows));
  12181. allChangedRows.AddRange(deletedRows);
  12182. }
  12183. }
  12184. if ((this._servicePhotoTableAdapter != null)) {
  12185. global::System.Data.DataRow[] deletedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12186. if (((deletedRows != null)
  12187. && (0 < deletedRows.Length))) {
  12188. result = (result + this._servicePhotoTableAdapter.Update(deletedRows));
  12189. allChangedRows.AddRange(deletedRows);
  12190. }
  12191. }
  12192. if ((this._productSaleTableAdapter != null)) {
  12193. global::System.Data.DataRow[] deletedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12194. if (((deletedRows != null)
  12195. && (0 < deletedRows.Length))) {
  12196. result = (result + this._productSaleTableAdapter.Update(deletedRows));
  12197. allChangedRows.AddRange(deletedRows);
  12198. }
  12199. }
  12200. if ((this._productPhotoTableAdapter != null)) {
  12201. global::System.Data.DataRow[] deletedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12202. if (((deletedRows != null)
  12203. && (0 < deletedRows.Length))) {
  12204. result = (result + this._productPhotoTableAdapter.Update(deletedRows));
  12205. allChangedRows.AddRange(deletedRows);
  12206. }
  12207. }
  12208. if ((this._documentByServiceTableAdapter != null)) {
  12209. global::System.Data.DataRow[] deletedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12210. if (((deletedRows != null)
  12211. && (0 < deletedRows.Length))) {
  12212. result = (result + this._documentByServiceTableAdapter.Update(deletedRows));
  12213. allChangedRows.AddRange(deletedRows);
  12214. }
  12215. }
  12216. if ((this._attachedProductTableAdapter != null)) {
  12217. global::System.Data.DataRow[] deletedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12218. if (((deletedRows != null)
  12219. && (0 < deletedRows.Length))) {
  12220. result = (result + this._attachedProductTableAdapter.Update(deletedRows));
  12221. allChangedRows.AddRange(deletedRows);
  12222. }
  12223. }
  12224. if ((this._roleTableTableAdapter != null)) {
  12225. global::System.Data.DataRow[] deletedRows = dataSet.RoleTable.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12226. if (((deletedRows != null)
  12227. && (0 < deletedRows.Length))) {
  12228. result = (result + this._roleTableTableAdapter.Update(deletedRows));
  12229. allChangedRows.AddRange(deletedRows);
  12230. }
  12231. }
  12232. if ((this._tagTableAdapter != null)) {
  12233. global::System.Data.DataRow[] deletedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12234. if (((deletedRows != null)
  12235. && (0 < deletedRows.Length))) {
  12236. result = (result + this._tagTableAdapter.Update(deletedRows));
  12237. allChangedRows.AddRange(deletedRows);
  12238. }
  12239. }
  12240. if ((this._productTableAdapter != null)) {
  12241. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12242. if (((deletedRows != null)
  12243. && (0 < deletedRows.Length))) {
  12244. result = (result + this._productTableAdapter.Update(deletedRows));
  12245. allChangedRows.AddRange(deletedRows);
  12246. }
  12247. }
  12248. if ((this._clientServiceTableAdapter != null)) {
  12249. global::System.Data.DataRow[] deletedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12250. if (((deletedRows != null)
  12251. && (0 < deletedRows.Length))) {
  12252. result = (result + this._clientServiceTableAdapter.Update(deletedRows));
  12253. allChangedRows.AddRange(deletedRows);
  12254. }
  12255. }
  12256. if ((this._clientTableTableAdapter != null)) {
  12257. global::System.Data.DataRow[] deletedRows = dataSet.ClientTable.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12258. if (((deletedRows != null)
  12259. && (0 < deletedRows.Length))) {
  12260. result = (result + this._clientTableTableAdapter.Update(deletedRows));
  12261. allChangedRows.AddRange(deletedRows);
  12262. }
  12263. }
  12264. if ((this._serviceTableAdapter != null)) {
  12265. global::System.Data.DataRow[] deletedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12266. if (((deletedRows != null)
  12267. && (0 < deletedRows.Length))) {
  12268. result = (result + this._serviceTableAdapter.Update(deletedRows));
  12269. allChangedRows.AddRange(deletedRows);
  12270. }
  12271. }
  12272. if ((this._manufacturerTableAdapter != null)) {
  12273. global::System.Data.DataRow[] deletedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12274. if (((deletedRows != null)
  12275. && (0 < deletedRows.Length))) {
  12276. result = (result + this._manufacturerTableAdapter.Update(deletedRows));
  12277. allChangedRows.AddRange(deletedRows);
  12278. }
  12279. }
  12280. if ((this._genderTableAdapter != null)) {
  12281. global::System.Data.DataRow[] deletedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  12282. if (((deletedRows != null)
  12283. && (0 < deletedRows.Length))) {
  12284. result = (result + this._genderTableAdapter.Update(deletedRows));
  12285. allChangedRows.AddRange(deletedRows);
  12286. }
  12287. }
  12288. return result;
  12289. }
  12290. /// <summary>
  12291. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  12292. ///</summary>
  12293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12295. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  12296. if (((updatedRows == null)
  12297. || (updatedRows.Length < 1))) {
  12298. return updatedRows;
  12299. }
  12300. if (((allAddedRows == null)
  12301. || (allAddedRows.Count < 1))) {
  12302. return updatedRows;
  12303. }
  12304. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  12305. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  12306. global::System.Data.DataRow row = updatedRows[i];
  12307. if ((allAddedRows.Contains(row) == false)) {
  12308. realUpdatedRows.Add(row);
  12309. }
  12310. }
  12311. return realUpdatedRows.ToArray();
  12312. }
  12313. /// <summary>
  12314. ///Update all changes to the dataset.
  12315. ///</summary>
  12316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12318. public virtual int UpdateAll(_02TradeDataSet dataSet) {
  12319. if ((dataSet == null)) {
  12320. throw new global::System.ArgumentNullException("dataSet");
  12321. }
  12322. if ((dataSet.HasChanges() == false)) {
  12323. return 0;
  12324. }
  12325. if (((this._attachedProductTableAdapter != null)
  12326. && (this.MatchTableAdapterConnection(this._attachedProductTableAdapter.Connection) == false))) {
  12327. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12328. "r, должны использовать одинаковую строку подключения.");
  12329. }
  12330. if (((this._clientServiceTableAdapter != null)
  12331. && (this.MatchTableAdapterConnection(this._clientServiceTableAdapter.Connection) == false))) {
  12332. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12333. "r, должны использовать одинаковую строку подключения.");
  12334. }
  12335. if (((this._documentByServiceTableAdapter != null)
  12336. && (this.MatchTableAdapterConnection(this._documentByServiceTableAdapter.Connection) == false))) {
  12337. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12338. "r, должны использовать одинаковую строку подключения.");
  12339. }
  12340. if (((this._genderTableAdapter != null)
  12341. && (this.MatchTableAdapterConnection(this._genderTableAdapter.Connection) == false))) {
  12342. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12343. "r, должны использовать одинаковую строку подключения.");
  12344. }
  12345. if (((this._manufacturerTableAdapter != null)
  12346. && (this.MatchTableAdapterConnection(this._manufacturerTableAdapter.Connection) == false))) {
  12347. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12348. "r, должны использовать одинаковую строку подключения.");
  12349. }
  12350. if (((this._productTableAdapter != null)
  12351. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  12352. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12353. "r, должны использовать одинаковую строку подключения.");
  12354. }
  12355. if (((this._productPhotoTableAdapter != null)
  12356. && (this.MatchTableAdapterConnection(this._productPhotoTableAdapter.Connection) == false))) {
  12357. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12358. "r, должны использовать одинаковую строку подключения.");
  12359. }
  12360. if (((this._productSaleTableAdapter != null)
  12361. && (this.MatchTableAdapterConnection(this._productSaleTableAdapter.Connection) == false))) {
  12362. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12363. "r, должны использовать одинаковую строку подключения.");
  12364. }
  12365. if (((this._serviceTableAdapter != null)
  12366. && (this.MatchTableAdapterConnection(this._serviceTableAdapter.Connection) == false))) {
  12367. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12368. "r, должны использовать одинаковую строку подключения.");
  12369. }
  12370. if (((this._servicePhotoTableAdapter != null)
  12371. && (this.MatchTableAdapterConnection(this._servicePhotoTableAdapter.Connection) == false))) {
  12372. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12373. "r, должны использовать одинаковую строку подключения.");
  12374. }
  12375. if (((this._tagTableAdapter != null)
  12376. && (this.MatchTableAdapterConnection(this._tagTableAdapter.Connection) == false))) {
  12377. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12378. "r, должны использовать одинаковую строку подключения.");
  12379. }
  12380. if (((this._tagOfClientTableAdapter != null)
  12381. && (this.MatchTableAdapterConnection(this._tagOfClientTableAdapter.Connection) == false))) {
  12382. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12383. "r, должны использовать одинаковую строку подключения.");
  12384. }
  12385. if (((this._clientTableTableAdapter != null)
  12386. && (this.MatchTableAdapterConnection(this._clientTableTableAdapter.Connection) == false))) {
  12387. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12388. "r, должны использовать одинаковую строку подключения.");
  12389. }
  12390. if (((this._userTableTableAdapter != null)
  12391. && (this.MatchTableAdapterConnection(this._userTableTableAdapter.Connection) == false))) {
  12392. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12393. "r, должны использовать одинаковую строку подключения.");
  12394. }
  12395. if (((this._roleTableTableAdapter != null)
  12396. && (this.MatchTableAdapterConnection(this._roleTableTableAdapter.Connection) == false))) {
  12397. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  12398. "r, должны использовать одинаковую строку подключения.");
  12399. }
  12400. global::System.Data.IDbConnection workConnection = this.Connection;
  12401. if ((workConnection == null)) {
  12402. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  12403. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  12404. }
  12405. bool workConnOpened = false;
  12406. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  12407. == global::System.Data.ConnectionState.Broken)) {
  12408. workConnection.Close();
  12409. }
  12410. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  12411. workConnection.Open();
  12412. workConnOpened = true;
  12413. }
  12414. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  12415. if ((workTransaction == null)) {
  12416. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  12417. "и или текущее состояние не позволяет начать транзакцию.");
  12418. }
  12419. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  12420. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  12421. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  12422. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  12423. int result = 0;
  12424. global::System.Data.DataSet backupDataSet = null;
  12425. if (this.BackupDataSetBeforeUpdate) {
  12426. backupDataSet = new global::System.Data.DataSet();
  12427. backupDataSet.Merge(dataSet);
  12428. }
  12429. try {
  12430. // ---- Prepare for update -----------
  12431. //
  12432. if ((this._attachedProductTableAdapter != null)) {
  12433. revertConnections.Add(this._attachedProductTableAdapter, this._attachedProductTableAdapter.Connection);
  12434. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12435. this._attachedProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12436. if (this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12437. this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12438. adaptersWithAcceptChangesDuringUpdate.Add(this._attachedProductTableAdapter.Adapter);
  12439. }
  12440. }
  12441. if ((this._clientServiceTableAdapter != null)) {
  12442. revertConnections.Add(this._clientServiceTableAdapter, this._clientServiceTableAdapter.Connection);
  12443. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12444. this._clientServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12445. if (this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12446. this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12447. adaptersWithAcceptChangesDuringUpdate.Add(this._clientServiceTableAdapter.Adapter);
  12448. }
  12449. }
  12450. if ((this._documentByServiceTableAdapter != null)) {
  12451. revertConnections.Add(this._documentByServiceTableAdapter, this._documentByServiceTableAdapter.Connection);
  12452. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12453. this._documentByServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12454. if (this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12455. this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12456. adaptersWithAcceptChangesDuringUpdate.Add(this._documentByServiceTableAdapter.Adapter);
  12457. }
  12458. }
  12459. if ((this._genderTableAdapter != null)) {
  12460. revertConnections.Add(this._genderTableAdapter, this._genderTableAdapter.Connection);
  12461. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12462. this._genderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12463. if (this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12464. this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12465. adaptersWithAcceptChangesDuringUpdate.Add(this._genderTableAdapter.Adapter);
  12466. }
  12467. }
  12468. if ((this._manufacturerTableAdapter != null)) {
  12469. revertConnections.Add(this._manufacturerTableAdapter, this._manufacturerTableAdapter.Connection);
  12470. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12471. this._manufacturerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12472. if (this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12473. this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12474. adaptersWithAcceptChangesDuringUpdate.Add(this._manufacturerTableAdapter.Adapter);
  12475. }
  12476. }
  12477. if ((this._productTableAdapter != null)) {
  12478. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  12479. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12480. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12481. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12482. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12483. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  12484. }
  12485. }
  12486. if ((this._productPhotoTableAdapter != null)) {
  12487. revertConnections.Add(this._productPhotoTableAdapter, this._productPhotoTableAdapter.Connection);
  12488. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12489. this._productPhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12490. if (this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12491. this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12492. adaptersWithAcceptChangesDuringUpdate.Add(this._productPhotoTableAdapter.Adapter);
  12493. }
  12494. }
  12495. if ((this._productSaleTableAdapter != null)) {
  12496. revertConnections.Add(this._productSaleTableAdapter, this._productSaleTableAdapter.Connection);
  12497. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12498. this._productSaleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12499. if (this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12500. this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12501. adaptersWithAcceptChangesDuringUpdate.Add(this._productSaleTableAdapter.Adapter);
  12502. }
  12503. }
  12504. if ((this._serviceTableAdapter != null)) {
  12505. revertConnections.Add(this._serviceTableAdapter, this._serviceTableAdapter.Connection);
  12506. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12507. this._serviceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12508. if (this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12509. this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12510. adaptersWithAcceptChangesDuringUpdate.Add(this._serviceTableAdapter.Adapter);
  12511. }
  12512. }
  12513. if ((this._servicePhotoTableAdapter != null)) {
  12514. revertConnections.Add(this._servicePhotoTableAdapter, this._servicePhotoTableAdapter.Connection);
  12515. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12516. this._servicePhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12517. if (this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12518. this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12519. adaptersWithAcceptChangesDuringUpdate.Add(this._servicePhotoTableAdapter.Adapter);
  12520. }
  12521. }
  12522. if ((this._tagTableAdapter != null)) {
  12523. revertConnections.Add(this._tagTableAdapter, this._tagTableAdapter.Connection);
  12524. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12525. this._tagTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12526. if (this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12527. this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12528. adaptersWithAcceptChangesDuringUpdate.Add(this._tagTableAdapter.Adapter);
  12529. }
  12530. }
  12531. if ((this._tagOfClientTableAdapter != null)) {
  12532. revertConnections.Add(this._tagOfClientTableAdapter, this._tagOfClientTableAdapter.Connection);
  12533. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12534. this._tagOfClientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12535. if (this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12536. this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12537. adaptersWithAcceptChangesDuringUpdate.Add(this._tagOfClientTableAdapter.Adapter);
  12538. }
  12539. }
  12540. if ((this._clientTableTableAdapter != null)) {
  12541. revertConnections.Add(this._clientTableTableAdapter, this._clientTableTableAdapter.Connection);
  12542. this._clientTableTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12543. this._clientTableTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12544. if (this._clientTableTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12545. this._clientTableTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12546. adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableTableAdapter.Adapter);
  12547. }
  12548. }
  12549. if ((this._userTableTableAdapter != null)) {
  12550. revertConnections.Add(this._userTableTableAdapter, this._userTableTableAdapter.Connection);
  12551. this._userTableTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12552. this._userTableTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12553. if (this._userTableTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12554. this._userTableTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12555. adaptersWithAcceptChangesDuringUpdate.Add(this._userTableTableAdapter.Adapter);
  12556. }
  12557. }
  12558. if ((this._roleTableTableAdapter != null)) {
  12559. revertConnections.Add(this._roleTableTableAdapter, this._roleTableTableAdapter.Connection);
  12560. this._roleTableTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  12561. this._roleTableTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  12562. if (this._roleTableTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  12563. this._roleTableTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  12564. adaptersWithAcceptChangesDuringUpdate.Add(this._roleTableTableAdapter.Adapter);
  12565. }
  12566. }
  12567. //
  12568. //---- Perform updates -----------
  12569. //
  12570. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  12571. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  12572. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  12573. }
  12574. else {
  12575. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  12576. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  12577. }
  12578. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  12579. //
  12580. //---- Commit updates -----------
  12581. //
  12582. workTransaction.Commit();
  12583. if ((0 < allAddedRows.Count)) {
  12584. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  12585. allAddedRows.CopyTo(rows);
  12586. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  12587. global::System.Data.DataRow row = rows[i];
  12588. row.AcceptChanges();
  12589. }
  12590. }
  12591. if ((0 < allChangedRows.Count)) {
  12592. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  12593. allChangedRows.CopyTo(rows);
  12594. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  12595. global::System.Data.DataRow row = rows[i];
  12596. row.AcceptChanges();
  12597. }
  12598. }
  12599. }
  12600. catch (global::System.Exception ex) {
  12601. workTransaction.Rollback();
  12602. // ---- Restore the dataset -----------
  12603. if (this.BackupDataSetBeforeUpdate) {
  12604. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  12605. dataSet.Clear();
  12606. dataSet.Merge(backupDataSet);
  12607. }
  12608. else {
  12609. if ((0 < allAddedRows.Count)) {
  12610. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  12611. allAddedRows.CopyTo(rows);
  12612. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  12613. global::System.Data.DataRow row = rows[i];
  12614. row.AcceptChanges();
  12615. row.SetAdded();
  12616. }
  12617. }
  12618. }
  12619. throw ex;
  12620. }
  12621. finally {
  12622. if (workConnOpened) {
  12623. workConnection.Close();
  12624. }
  12625. if ((this._attachedProductTableAdapter != null)) {
  12626. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._attachedProductTableAdapter]));
  12627. this._attachedProductTableAdapter.Transaction = null;
  12628. }
  12629. if ((this._clientServiceTableAdapter != null)) {
  12630. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientServiceTableAdapter]));
  12631. this._clientServiceTableAdapter.Transaction = null;
  12632. }
  12633. if ((this._documentByServiceTableAdapter != null)) {
  12634. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._documentByServiceTableAdapter]));
  12635. this._documentByServiceTableAdapter.Transaction = null;
  12636. }
  12637. if ((this._genderTableAdapter != null)) {
  12638. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._genderTableAdapter]));
  12639. this._genderTableAdapter.Transaction = null;
  12640. }
  12641. if ((this._manufacturerTableAdapter != null)) {
  12642. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._manufacturerTableAdapter]));
  12643. this._manufacturerTableAdapter.Transaction = null;
  12644. }
  12645. if ((this._productTableAdapter != null)) {
  12646. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  12647. this._productTableAdapter.Transaction = null;
  12648. }
  12649. if ((this._productPhotoTableAdapter != null)) {
  12650. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productPhotoTableAdapter]));
  12651. this._productPhotoTableAdapter.Transaction = null;
  12652. }
  12653. if ((this._productSaleTableAdapter != null)) {
  12654. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productSaleTableAdapter]));
  12655. this._productSaleTableAdapter.Transaction = null;
  12656. }
  12657. if ((this._serviceTableAdapter != null)) {
  12658. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._serviceTableAdapter]));
  12659. this._serviceTableAdapter.Transaction = null;
  12660. }
  12661. if ((this._servicePhotoTableAdapter != null)) {
  12662. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._servicePhotoTableAdapter]));
  12663. this._servicePhotoTableAdapter.Transaction = null;
  12664. }
  12665. if ((this._tagTableAdapter != null)) {
  12666. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagTableAdapter]));
  12667. this._tagTableAdapter.Transaction = null;
  12668. }
  12669. if ((this._tagOfClientTableAdapter != null)) {
  12670. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagOfClientTableAdapter]));
  12671. this._tagOfClientTableAdapter.Transaction = null;
  12672. }
  12673. if ((this._clientTableTableAdapter != null)) {
  12674. this._clientTableTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableTableAdapter]));
  12675. this._clientTableTableAdapter.Transaction = null;
  12676. }
  12677. if ((this._userTableTableAdapter != null)) {
  12678. this._userTableTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._userTableTableAdapter]));
  12679. this._userTableTableAdapter.Transaction = null;
  12680. }
  12681. if ((this._roleTableTableAdapter != null)) {
  12682. this._roleTableTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._roleTableTableAdapter]));
  12683. this._roleTableTableAdapter.Transaction = null;
  12684. }
  12685. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  12686. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  12687. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  12688. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  12689. global::System.Data.Common.DataAdapter adapter = adapters[i];
  12690. adapter.AcceptChangesDuringUpdate = true;
  12691. }
  12692. }
  12693. }
  12694. return result;
  12695. }
  12696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12698. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  12699. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  12700. }
  12701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12703. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  12704. if ((this._connection != null)) {
  12705. return true;
  12706. }
  12707. if (((this.Connection == null)
  12708. || (inputConnection == null))) {
  12709. return true;
  12710. }
  12711. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  12712. return true;
  12713. }
  12714. return false;
  12715. }
  12716. /// <summary>
  12717. ///Update Order Option
  12718. ///</summary>
  12719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12720. public enum UpdateOrderOption {
  12721. InsertUpdateDelete = 0,
  12722. UpdateInsertDelete = 1,
  12723. }
  12724. /// <summary>
  12725. ///Used to sort self-referenced table's rows
  12726. ///</summary>
  12727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12728. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  12729. private global::System.Data.DataRelation _relation;
  12730. private int _childFirst;
  12731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12733. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  12734. this._relation = relation;
  12735. if (childFirst) {
  12736. this._childFirst = -1;
  12737. }
  12738. else {
  12739. this._childFirst = 1;
  12740. }
  12741. }
  12742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12744. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  12745. global::System.Diagnostics.Debug.Assert((row != null));
  12746. global::System.Data.DataRow root = row;
  12747. distance = 0;
  12748. 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>();
  12749. traversedRows[row] = row;
  12750. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  12751. for (
  12752. ; ((parent != null)
  12753. && (traversedRows.ContainsKey(parent) == false));
  12754. ) {
  12755. distance = (distance + 1);
  12756. root = parent;
  12757. traversedRows[parent] = parent;
  12758. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  12759. }
  12760. if ((distance == 0)) {
  12761. traversedRows.Clear();
  12762. traversedRows[row] = row;
  12763. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  12764. for (
  12765. ; ((parent != null)
  12766. && (traversedRows.ContainsKey(parent) == false));
  12767. ) {
  12768. distance = (distance + 1);
  12769. root = parent;
  12770. traversedRows[parent] = parent;
  12771. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  12772. }
  12773. }
  12774. return root;
  12775. }
  12776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12778. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  12779. if (object.ReferenceEquals(row1, row2)) {
  12780. return 0;
  12781. }
  12782. if ((row1 == null)) {
  12783. return -1;
  12784. }
  12785. if ((row2 == null)) {
  12786. return 1;
  12787. }
  12788. int distance1 = 0;
  12789. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  12790. int distance2 = 0;
  12791. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  12792. if (object.ReferenceEquals(root1, root2)) {
  12793. return (this._childFirst * distance1.CompareTo(distance2));
  12794. }
  12795. else {
  12796. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  12797. && (root2.Table != null)));
  12798. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  12799. return -1;
  12800. }
  12801. else {
  12802. return 1;
  12803. }
  12804. }
  12805. }
  12806. }
  12807. }
  12808. }
  12809. #pragma warning restore 1591