IS31YurevichDataSet.Designer.cs 388 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace YurevichIS31_Stroymaterialy {
  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("IS31YurevichDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class IS31YurevichDataSet : global::System.Data.DataSet {
  22. private user_importDataTable tableuser_import;
  23. private Заказ_importDataTable tableЗаказ_import;
  24. private Пункты_выдачи_importDataTable tableПункты_выдачи_import;
  25. private Товар_import_СтройматериалыDataTable tableТовар_import_Стройматериалы;
  26. private global::System.Data.DataRelation relationFK_Заказ_import_user_import;
  27. private global::System.Data.DataRelation relationFK_Пункты_выдачи_import_Заказ_import;
  28. private global::System.Data.DataRelation relationFK_Товар_import_Стройматериалы_Заказ_import;
  29. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  30. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  31. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  32. public IS31YurevichDataSet() {
  33. this.BeginInit();
  34. this.InitClass();
  35. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  36. base.Tables.CollectionChanged += schemaChangedHandler;
  37. base.Relations.CollectionChanged += schemaChangedHandler;
  38. this.EndInit();
  39. }
  40. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  41. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  42. protected IS31YurevichDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  43. base(info, context, false) {
  44. if ((this.IsBinarySerialized(info, context) == true)) {
  45. this.InitVars(false);
  46. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  47. this.Tables.CollectionChanged += schemaChangedHandler1;
  48. this.Relations.CollectionChanged += schemaChangedHandler1;
  49. return;
  50. }
  51. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  52. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  53. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  54. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  55. if ((ds.Tables["user_import"] != null)) {
  56. base.Tables.Add(new user_importDataTable(ds.Tables["user_import"]));
  57. }
  58. if ((ds.Tables["Заказ_import"] != null)) {
  59. base.Tables.Add(new Заказ_importDataTable(ds.Tables["Заказ_import"]));
  60. }
  61. if ((ds.Tables["Пункты выдачи_import"] != null)) {
  62. base.Tables.Add(new Пункты_выдачи_importDataTable(ds.Tables["Пункты выдачи_import"]));
  63. }
  64. if ((ds.Tables["Товар_import_Стройматериалы"] != null)) {
  65. base.Tables.Add(new Товар_import_СтройматериалыDataTable(ds.Tables["Товар_import_Стройматериалы"]));
  66. }
  67. this.DataSetName = ds.DataSetName;
  68. this.Prefix = ds.Prefix;
  69. this.Namespace = ds.Namespace;
  70. this.Locale = ds.Locale;
  71. this.CaseSensitive = ds.CaseSensitive;
  72. this.EnforceConstraints = ds.EnforceConstraints;
  73. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  74. this.InitVars();
  75. }
  76. else {
  77. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  78. }
  79. this.GetSerializationData(info, context);
  80. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  81. base.Tables.CollectionChanged += schemaChangedHandler;
  82. this.Relations.CollectionChanged += schemaChangedHandler;
  83. }
  84. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  85. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  86. [global::System.ComponentModel.Browsable(false)]
  87. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  88. public user_importDataTable user_import {
  89. get {
  90. return this.tableuser_import;
  91. }
  92. }
  93. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  94. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  95. [global::System.ComponentModel.Browsable(false)]
  96. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  97. public Заказ_importDataTable Заказ_import {
  98. get {
  99. return this.tableЗаказ_import;
  100. }
  101. }
  102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  104. [global::System.ComponentModel.Browsable(false)]
  105. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  106. public Пункты_выдачи_importDataTable Пункты_выдачи_import {
  107. get {
  108. return this.tableПункты_выдачи_import;
  109. }
  110. }
  111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  113. [global::System.ComponentModel.Browsable(false)]
  114. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  115. public Товар_import_СтройматериалыDataTable Товар_import_Стройматериалы {
  116. get {
  117. return this.tableТовар_import_Стройматериалы;
  118. }
  119. }
  120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  122. [global::System.ComponentModel.BrowsableAttribute(true)]
  123. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  124. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  125. get {
  126. return this._schemaSerializationMode;
  127. }
  128. set {
  129. this._schemaSerializationMode = value;
  130. }
  131. }
  132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  134. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  135. public new global::System.Data.DataTableCollection Tables {
  136. get {
  137. return base.Tables;
  138. }
  139. }
  140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  142. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  143. public new global::System.Data.DataRelationCollection Relations {
  144. get {
  145. return base.Relations;
  146. }
  147. }
  148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  150. protected override void InitializeDerivedDataSet() {
  151. this.BeginInit();
  152. this.InitClass();
  153. this.EndInit();
  154. }
  155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  157. public override global::System.Data.DataSet Clone() {
  158. IS31YurevichDataSet cln = ((IS31YurevichDataSet)(base.Clone()));
  159. cln.InitVars();
  160. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  161. return cln;
  162. }
  163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  165. protected override bool ShouldSerializeTables() {
  166. return false;
  167. }
  168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  170. protected override bool ShouldSerializeRelations() {
  171. return false;
  172. }
  173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  175. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  176. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  177. this.Reset();
  178. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  179. ds.ReadXml(reader);
  180. if ((ds.Tables["user_import"] != null)) {
  181. base.Tables.Add(new user_importDataTable(ds.Tables["user_import"]));
  182. }
  183. if ((ds.Tables["Заказ_import"] != null)) {
  184. base.Tables.Add(new Заказ_importDataTable(ds.Tables["Заказ_import"]));
  185. }
  186. if ((ds.Tables["Пункты выдачи_import"] != null)) {
  187. base.Tables.Add(new Пункты_выдачи_importDataTable(ds.Tables["Пункты выдачи_import"]));
  188. }
  189. if ((ds.Tables["Товар_import_Стройматериалы"] != null)) {
  190. base.Tables.Add(new Товар_import_СтройматериалыDataTable(ds.Tables["Товар_import_Стройматериалы"]));
  191. }
  192. this.DataSetName = ds.DataSetName;
  193. this.Prefix = ds.Prefix;
  194. this.Namespace = ds.Namespace;
  195. this.Locale = ds.Locale;
  196. this.CaseSensitive = ds.CaseSensitive;
  197. this.EnforceConstraints = ds.EnforceConstraints;
  198. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  199. this.InitVars();
  200. }
  201. else {
  202. this.ReadXml(reader);
  203. this.InitVars();
  204. }
  205. }
  206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  208. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  209. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  210. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  211. stream.Position = 0;
  212. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  213. }
  214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  216. internal void InitVars() {
  217. this.InitVars(true);
  218. }
  219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  221. internal void InitVars(bool initTable) {
  222. this.tableuser_import = ((user_importDataTable)(base.Tables["user_import"]));
  223. if ((initTable == true)) {
  224. if ((this.tableuser_import != null)) {
  225. this.tableuser_import.InitVars();
  226. }
  227. }
  228. this.tableЗаказ_import = ((Заказ_importDataTable)(base.Tables["Заказ_import"]));
  229. if ((initTable == true)) {
  230. if ((this.tableЗаказ_import != null)) {
  231. this.tableЗаказ_import.InitVars();
  232. }
  233. }
  234. this.tableПункты_выдачи_import = ((Пункты_выдачи_importDataTable)(base.Tables["Пункты выдачи_import"]));
  235. if ((initTable == true)) {
  236. if ((this.tableПункты_выдачи_import != null)) {
  237. this.tableПункты_выдачи_import.InitVars();
  238. }
  239. }
  240. this.tableТовар_import_Стройматериалы = ((Товар_import_СтройматериалыDataTable)(base.Tables["Товар_import_Стройматериалы"]));
  241. if ((initTable == true)) {
  242. if ((this.tableТовар_import_Стройматериалы != null)) {
  243. this.tableТовар_import_Стройматериалы.InitVars();
  244. }
  245. }
  246. this.relationFK_Заказ_import_user_import = this.Relations["FK_Заказ_import_user_import"];
  247. this.relationFK_Пункты_выдачи_import_Заказ_import = this.Relations["FK_Пункты выдачи_import_Заказ_import"];
  248. this.relationFK_Товар_import_Стройматериалы_Заказ_import = this.Relations["FK_Товар_import_Стройматериалы_Заказ_import"];
  249. }
  250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  252. private void InitClass() {
  253. this.DataSetName = "IS31YurevichDataSet";
  254. this.Prefix = "";
  255. this.Namespace = "http://tempuri.org/IS31YurevichDataSet.xsd";
  256. this.EnforceConstraints = true;
  257. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  258. this.tableuser_import = new user_importDataTable();
  259. base.Tables.Add(this.tableuser_import);
  260. this.tableЗаказ_import = new Заказ_importDataTable();
  261. base.Tables.Add(this.tableЗаказ_import);
  262. this.tableПункты_выдачи_import = new Пункты_выдачи_importDataTable();
  263. base.Tables.Add(this.tableПункты_выдачи_import);
  264. this.tableТовар_import_Стройматериалы = new Товар_import_СтройматериалыDataTable();
  265. base.Tables.Add(this.tableТовар_import_Стройматериалы);
  266. this.relationFK_Заказ_import_user_import = new global::System.Data.DataRelation("FK_Заказ_import_user_import", new global::System.Data.DataColumn[] {
  267. this.tableuser_import.id_сотрудникаColumn}, new global::System.Data.DataColumn[] {
  268. this.tableЗаказ_import.id_сотрудникаColumn}, false);
  269. this.Relations.Add(this.relationFK_Заказ_import_user_import);
  270. this.relationFK_Пункты_выдачи_import_Заказ_import = new global::System.Data.DataRelation("FK_Пункты выдачи_import_Заказ_import", new global::System.Data.DataColumn[] {
  271. this.tableЗаказ_import.id_заказаColumn}, new global::System.Data.DataColumn[] {
  272. this.tableПункты_выдачи_import.id_заказаColumn}, false);
  273. this.Relations.Add(this.relationFK_Пункты_выдачи_import_Заказ_import);
  274. this.relationFK_Товар_import_Стройматериалы_Заказ_import = new global::System.Data.DataRelation("FK_Товар_import_Стройматериалы_Заказ_import", new global::System.Data.DataColumn[] {
  275. this.tableЗаказ_import.id_заказаColumn}, new global::System.Data.DataColumn[] {
  276. this.tableТовар_import_Стройматериалы.id_заказаColumn}, false);
  277. this.Relations.Add(this.relationFK_Товар_import_Стройматериалы_Заказ_import);
  278. }
  279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  281. private bool ShouldSerializeuser_import() {
  282. return false;
  283. }
  284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  286. private bool ShouldSerializeЗаказ_import() {
  287. return false;
  288. }
  289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  291. private bool ShouldSerializeПункты_выдачи_import() {
  292. return false;
  293. }
  294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  296. private bool ShouldSerializeТовар_import_Стройматериалы() {
  297. return false;
  298. }
  299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  301. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  302. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  303. this.InitVars();
  304. }
  305. }
  306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  308. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  309. IS31YurevichDataSet ds = new IS31YurevichDataSet();
  310. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  311. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  312. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  313. any.Namespace = ds.Namespace;
  314. sequence.Items.Add(any);
  315. type.Particle = sequence;
  316. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  317. if (xs.Contains(dsSchema.TargetNamespace)) {
  318. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  319. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  320. try {
  321. global::System.Xml.Schema.XmlSchema schema = null;
  322. dsSchema.Write(s1);
  323. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  324. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  325. s2.SetLength(0);
  326. schema.Write(s2);
  327. if ((s1.Length == s2.Length)) {
  328. s1.Position = 0;
  329. s2.Position = 0;
  330. for (; ((s1.Position != s1.Length)
  331. && (s1.ReadByte() == s2.ReadByte())); ) {
  332. ;
  333. }
  334. if ((s1.Position == s1.Length)) {
  335. return type;
  336. }
  337. }
  338. }
  339. }
  340. finally {
  341. if ((s1 != null)) {
  342. s1.Close();
  343. }
  344. if ((s2 != null)) {
  345. s2.Close();
  346. }
  347. }
  348. }
  349. xs.Add(dsSchema);
  350. return type;
  351. }
  352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  353. public delegate void user_importRowChangeEventHandler(object sender, user_importRowChangeEvent e);
  354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  355. public delegate void Заказ_importRowChangeEventHandler(object sender, Заказ_importRowChangeEvent e);
  356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  357. public delegate void Пункты_выдачи_importRowChangeEventHandler(object sender, Пункты_выдачи_importRowChangeEvent e);
  358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  359. public delegate void Товар_import_СтройматериалыRowChangeEventHandler(object sender, Товар_import_СтройматериалыRowChangeEvent e);
  360. /// <summary>
  361. ///Represents the strongly named DataTable class.
  362. ///</summary>
  363. [global::System.Serializable()]
  364. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  365. public partial class user_importDataTable : global::System.Data.TypedTableBase<user_importRow> {
  366. private global::System.Data.DataColumn columnid_сотрудника;
  367. private global::System.Data.DataColumn columnРоль_сотрудника;
  368. private global::System.Data.DataColumn columnФИО;
  369. private global::System.Data.DataColumn columnЛогин;
  370. private global::System.Data.DataColumn columnПароль;
  371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  373. public user_importDataTable() {
  374. this.TableName = "user_import";
  375. this.BeginInit();
  376. this.InitClass();
  377. this.EndInit();
  378. }
  379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  381. internal user_importDataTable(global::System.Data.DataTable table) {
  382. this.TableName = table.TableName;
  383. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  384. this.CaseSensitive = table.CaseSensitive;
  385. }
  386. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  387. this.Locale = table.Locale;
  388. }
  389. if ((table.Namespace != table.DataSet.Namespace)) {
  390. this.Namespace = table.Namespace;
  391. }
  392. this.Prefix = table.Prefix;
  393. this.MinimumCapacity = table.MinimumCapacity;
  394. }
  395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  397. protected user_importDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  398. base(info, context) {
  399. this.InitVars();
  400. }
  401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  403. public global::System.Data.DataColumn id_сотрудникаColumn {
  404. get {
  405. return this.columnid_сотрудника;
  406. }
  407. }
  408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  410. public global::System.Data.DataColumn Роль_сотрудникаColumn {
  411. get {
  412. return this.columnРоль_сотрудника;
  413. }
  414. }
  415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  417. public global::System.Data.DataColumn ФИОColumn {
  418. get {
  419. return this.columnФИО;
  420. }
  421. }
  422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  424. public global::System.Data.DataColumn ЛогинColumn {
  425. get {
  426. return this.columnЛогин;
  427. }
  428. }
  429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  431. public global::System.Data.DataColumn ПарольColumn {
  432. get {
  433. return this.columnПароль;
  434. }
  435. }
  436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  438. [global::System.ComponentModel.Browsable(false)]
  439. public int Count {
  440. get {
  441. return this.Rows.Count;
  442. }
  443. }
  444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  446. public user_importRow this[int index] {
  447. get {
  448. return ((user_importRow)(this.Rows[index]));
  449. }
  450. }
  451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  452. public event user_importRowChangeEventHandler user_importRowChanging;
  453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  454. public event user_importRowChangeEventHandler user_importRowChanged;
  455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  456. public event user_importRowChangeEventHandler user_importRowDeleting;
  457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  458. public event user_importRowChangeEventHandler user_importRowDeleted;
  459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  461. public void Adduser_importRow(user_importRow row) {
  462. this.Rows.Add(row);
  463. }
  464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  466. public user_importRow Adduser_importRow(string Роль_сотрудника, string ФИО, string Логин, string Пароль) {
  467. user_importRow rowuser_importRow = ((user_importRow)(this.NewRow()));
  468. object[] columnValuesArray = new object[] {
  469. null,
  470. Роль_сотрудника,
  471. ФИО,
  472. Логин,
  473. Пароль};
  474. rowuser_importRow.ItemArray = columnValuesArray;
  475. this.Rows.Add(rowuser_importRow);
  476. return rowuser_importRow;
  477. }
  478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  480. public user_importRow FindByid_сотрудника(int id_сотрудника) {
  481. return ((user_importRow)(this.Rows.Find(new object[] {
  482. id_сотрудника})));
  483. }
  484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  486. public override global::System.Data.DataTable Clone() {
  487. user_importDataTable cln = ((user_importDataTable)(base.Clone()));
  488. cln.InitVars();
  489. return cln;
  490. }
  491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  493. protected override global::System.Data.DataTable CreateInstance() {
  494. return new user_importDataTable();
  495. }
  496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  498. internal void InitVars() {
  499. this.columnid_сотрудника = base.Columns["id_сотрудника"];
  500. this.columnРоль_сотрудника = base.Columns["Роль_сотрудника"];
  501. this.columnФИО = base.Columns["ФИО"];
  502. this.columnЛогин = base.Columns["Логин"];
  503. this.columnПароль = base.Columns["Пароль"];
  504. }
  505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  507. private void InitClass() {
  508. this.columnid_сотрудника = new global::System.Data.DataColumn("id_сотрудника", typeof(int), null, global::System.Data.MappingType.Element);
  509. base.Columns.Add(this.columnid_сотрудника);
  510. this.columnРоль_сотрудника = new global::System.Data.DataColumn("Роль_сотрудника", typeof(string), null, global::System.Data.MappingType.Element);
  511. base.Columns.Add(this.columnРоль_сотрудника);
  512. this.columnФИО = new global::System.Data.DataColumn("ФИО", typeof(string), null, global::System.Data.MappingType.Element);
  513. base.Columns.Add(this.columnФИО);
  514. this.columnЛогин = new global::System.Data.DataColumn("Логин", typeof(string), null, global::System.Data.MappingType.Element);
  515. base.Columns.Add(this.columnЛогин);
  516. this.columnПароль = new global::System.Data.DataColumn("Пароль", typeof(string), null, global::System.Data.MappingType.Element);
  517. base.Columns.Add(this.columnПароль);
  518. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  519. this.columnid_сотрудника}, true));
  520. this.columnid_сотрудника.AutoIncrement = true;
  521. this.columnid_сотрудника.AutoIncrementSeed = -1;
  522. this.columnid_сотрудника.AutoIncrementStep = -1;
  523. this.columnid_сотрудника.AllowDBNull = false;
  524. this.columnid_сотрудника.ReadOnly = true;
  525. this.columnid_сотрудника.Unique = true;
  526. this.columnРоль_сотрудника.AllowDBNull = false;
  527. this.columnРоль_сотрудника.MaxLength = 50;
  528. this.columnФИО.AllowDBNull = false;
  529. this.columnФИО.MaxLength = 50;
  530. this.columnЛогин.AllowDBNull = false;
  531. this.columnЛогин.MaxLength = 50;
  532. this.columnПароль.AllowDBNull = false;
  533. this.columnПароль.MaxLength = 50;
  534. }
  535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  537. public user_importRow Newuser_importRow() {
  538. return ((user_importRow)(this.NewRow()));
  539. }
  540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  542. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  543. return new user_importRow(builder);
  544. }
  545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  547. protected override global::System.Type GetRowType() {
  548. return typeof(user_importRow);
  549. }
  550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  552. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  553. base.OnRowChanged(e);
  554. if ((this.user_importRowChanged != null)) {
  555. this.user_importRowChanged(this, new user_importRowChangeEvent(((user_importRow)(e.Row)), e.Action));
  556. }
  557. }
  558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  560. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  561. base.OnRowChanging(e);
  562. if ((this.user_importRowChanging != null)) {
  563. this.user_importRowChanging(this, new user_importRowChangeEvent(((user_importRow)(e.Row)), e.Action));
  564. }
  565. }
  566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  568. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  569. base.OnRowDeleted(e);
  570. if ((this.user_importRowDeleted != null)) {
  571. this.user_importRowDeleted(this, new user_importRowChangeEvent(((user_importRow)(e.Row)), e.Action));
  572. }
  573. }
  574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  576. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  577. base.OnRowDeleting(e);
  578. if ((this.user_importRowDeleting != null)) {
  579. this.user_importRowDeleting(this, new user_importRowChangeEvent(((user_importRow)(e.Row)), e.Action));
  580. }
  581. }
  582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  584. public void Removeuser_importRow(user_importRow row) {
  585. this.Rows.Remove(row);
  586. }
  587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  589. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  590. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  591. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  592. IS31YurevichDataSet ds = new IS31YurevichDataSet();
  593. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  594. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  595. any1.MinOccurs = new decimal(0);
  596. any1.MaxOccurs = decimal.MaxValue;
  597. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  598. sequence.Items.Add(any1);
  599. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  600. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  601. any2.MinOccurs = new decimal(1);
  602. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  603. sequence.Items.Add(any2);
  604. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  605. attribute1.Name = "namespace";
  606. attribute1.FixedValue = ds.Namespace;
  607. type.Attributes.Add(attribute1);
  608. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  609. attribute2.Name = "tableTypeName";
  610. attribute2.FixedValue = "user_importDataTable";
  611. type.Attributes.Add(attribute2);
  612. type.Particle = sequence;
  613. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  614. if (xs.Contains(dsSchema.TargetNamespace)) {
  615. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  616. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  617. try {
  618. global::System.Xml.Schema.XmlSchema schema = null;
  619. dsSchema.Write(s1);
  620. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  621. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  622. s2.SetLength(0);
  623. schema.Write(s2);
  624. if ((s1.Length == s2.Length)) {
  625. s1.Position = 0;
  626. s2.Position = 0;
  627. for (; ((s1.Position != s1.Length)
  628. && (s1.ReadByte() == s2.ReadByte())); ) {
  629. ;
  630. }
  631. if ((s1.Position == s1.Length)) {
  632. return type;
  633. }
  634. }
  635. }
  636. }
  637. finally {
  638. if ((s1 != null)) {
  639. s1.Close();
  640. }
  641. if ((s2 != null)) {
  642. s2.Close();
  643. }
  644. }
  645. }
  646. xs.Add(dsSchema);
  647. return type;
  648. }
  649. }
  650. /// <summary>
  651. ///Represents the strongly named DataTable class.
  652. ///</summary>
  653. [global::System.Serializable()]
  654. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  655. public partial class Заказ_importDataTable : global::System.Data.TypedTableBase<Заказ_importRow> {
  656. private global::System.Data.DataColumn columnid_заказа;
  657. private global::System.Data.DataColumn columnСостав_заказа;
  658. private global::System.Data.DataColumn columnДата_заказа;
  659. private global::System.Data.DataColumn columnДата_доставки;
  660. private global::System.Data.DataColumn columnПункт_выдачи;
  661. private global::System.Data.DataColumn columnФИО_клиента;
  662. private global::System.Data.DataColumn columnКод_для_получения;
  663. private global::System.Data.DataColumn columnСтатус_заказа;
  664. private global::System.Data.DataColumn columnid_сотрудника;
  665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  667. public Заказ_importDataTable() {
  668. this.TableName = "Заказ_import";
  669. this.BeginInit();
  670. this.InitClass();
  671. this.EndInit();
  672. }
  673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  675. internal Заказ_importDataTable(global::System.Data.DataTable table) {
  676. this.TableName = table.TableName;
  677. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  678. this.CaseSensitive = table.CaseSensitive;
  679. }
  680. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  681. this.Locale = table.Locale;
  682. }
  683. if ((table.Namespace != table.DataSet.Namespace)) {
  684. this.Namespace = table.Namespace;
  685. }
  686. this.Prefix = table.Prefix;
  687. this.MinimumCapacity = table.MinimumCapacity;
  688. }
  689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  691. protected Заказ_importDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  692. base(info, context) {
  693. this.InitVars();
  694. }
  695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  697. public global::System.Data.DataColumn id_заказаColumn {
  698. get {
  699. return this.columnid_заказа;
  700. }
  701. }
  702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  704. public global::System.Data.DataColumn Состав_заказаColumn {
  705. get {
  706. return this.columnСостав_заказа;
  707. }
  708. }
  709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  711. public global::System.Data.DataColumn Дата_заказаColumn {
  712. get {
  713. return this.columnДата_заказа;
  714. }
  715. }
  716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  718. public global::System.Data.DataColumn Дата_доставкиColumn {
  719. get {
  720. return this.columnДата_доставки;
  721. }
  722. }
  723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  725. public global::System.Data.DataColumn Пункт_выдачиColumn {
  726. get {
  727. return this.columnПункт_выдачи;
  728. }
  729. }
  730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  732. public global::System.Data.DataColumn ФИО_клиентаColumn {
  733. get {
  734. return this.columnФИО_клиента;
  735. }
  736. }
  737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  739. public global::System.Data.DataColumn Код_для_полученияColumn {
  740. get {
  741. return this.columnКод_для_получения;
  742. }
  743. }
  744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  746. public global::System.Data.DataColumn Статус_заказаColumn {
  747. get {
  748. return this.columnСтатус_заказа;
  749. }
  750. }
  751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  753. public global::System.Data.DataColumn id_сотрудникаColumn {
  754. get {
  755. return this.columnid_сотрудника;
  756. }
  757. }
  758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  760. [global::System.ComponentModel.Browsable(false)]
  761. public int Count {
  762. get {
  763. return this.Rows.Count;
  764. }
  765. }
  766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  768. public Заказ_importRow this[int index] {
  769. get {
  770. return ((Заказ_importRow)(this.Rows[index]));
  771. }
  772. }
  773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  774. public event Заказ_importRowChangeEventHandler Заказ_importRowChanging;
  775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  776. public event Заказ_importRowChangeEventHandler Заказ_importRowChanged;
  777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  778. public event Заказ_importRowChangeEventHandler Заказ_importRowDeleting;
  779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  780. public event Заказ_importRowChangeEventHandler Заказ_importRowDeleted;
  781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  783. public void AddЗаказ_importRow(Заказ_importRow row) {
  784. this.Rows.Add(row);
  785. }
  786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  788. public Заказ_importRow AddЗаказ_importRow(string Состав_заказа, System.DateTime Дата_заказа, System.DateTime Дата_доставки, int Пункт_выдачи, string ФИО_клиента, int Код_для_получения, string Статус_заказа, user_importRow parentuser_importRowByFK_Заказ_import_user_import) {
  789. Заказ_importRow rowЗаказ_importRow = ((Заказ_importRow)(this.NewRow()));
  790. object[] columnValuesArray = new object[] {
  791. null,
  792. Состав_заказа,
  793. Дата_заказа,
  794. Дата_доставки,
  795. Пункт_выдачи,
  796. ФИО_клиента,
  797. Код_для_получения,
  798. Статус_заказа,
  799. null};
  800. if ((parentuser_importRowByFK_Заказ_import_user_import != null)) {
  801. columnValuesArray[8] = parentuser_importRowByFK_Заказ_import_user_import[0];
  802. }
  803. rowЗаказ_importRow.ItemArray = columnValuesArray;
  804. this.Rows.Add(rowЗаказ_importRow);
  805. return rowЗаказ_importRow;
  806. }
  807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  809. public Заказ_importRow FindByid_заказа(int id_заказа) {
  810. return ((Заказ_importRow)(this.Rows.Find(new object[] {
  811. id_заказа})));
  812. }
  813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  815. public override global::System.Data.DataTable Clone() {
  816. Заказ_importDataTable cln = ((Заказ_importDataTable)(base.Clone()));
  817. cln.InitVars();
  818. return cln;
  819. }
  820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  822. protected override global::System.Data.DataTable CreateInstance() {
  823. return new Заказ_importDataTable();
  824. }
  825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  827. internal void InitVars() {
  828. this.columnid_заказа = base.Columns["id_заказа"];
  829. this.columnСостав_заказа = base.Columns["Состав_заказа"];
  830. this.columnДата_заказа = base.Columns["Дата_заказа"];
  831. this.columnДата_доставки = base.Columns["Дата_доставки"];
  832. this.columnПункт_выдачи = base.Columns["Пункт_выдачи"];
  833. this.columnФИО_клиента = base.Columns["ФИО_клиента"];
  834. this.columnКод_для_получения = base.Columns["Код_для_получения"];
  835. this.columnСтатус_заказа = base.Columns["Статус_заказа"];
  836. this.columnid_сотрудника = base.Columns["id_сотрудника"];
  837. }
  838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  840. private void InitClass() {
  841. this.columnid_заказа = new global::System.Data.DataColumn("id_заказа", typeof(int), null, global::System.Data.MappingType.Element);
  842. base.Columns.Add(this.columnid_заказа);
  843. this.columnСостав_заказа = new global::System.Data.DataColumn("Состав_заказа", typeof(string), null, global::System.Data.MappingType.Element);
  844. base.Columns.Add(this.columnСостав_заказа);
  845. this.columnДата_заказа = new global::System.Data.DataColumn("Дата_заказа", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  846. base.Columns.Add(this.columnДата_заказа);
  847. this.columnДата_доставки = new global::System.Data.DataColumn("Дата_доставки", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  848. base.Columns.Add(this.columnДата_доставки);
  849. this.columnПункт_выдачи = new global::System.Data.DataColumn("Пункт_выдачи", typeof(int), null, global::System.Data.MappingType.Element);
  850. base.Columns.Add(this.columnПункт_выдачи);
  851. this.columnФИО_клиента = new global::System.Data.DataColumn("ФИО_клиента", typeof(string), null, global::System.Data.MappingType.Element);
  852. base.Columns.Add(this.columnФИО_клиента);
  853. this.columnКод_для_получения = new global::System.Data.DataColumn("Код_для_получения", typeof(int), null, global::System.Data.MappingType.Element);
  854. base.Columns.Add(this.columnКод_для_получения);
  855. this.columnСтатус_заказа = new global::System.Data.DataColumn("Статус_заказа", typeof(string), null, global::System.Data.MappingType.Element);
  856. base.Columns.Add(this.columnСтатус_заказа);
  857. this.columnid_сотрудника = new global::System.Data.DataColumn("id_сотрудника", typeof(int), null, global::System.Data.MappingType.Element);
  858. base.Columns.Add(this.columnid_сотрудника);
  859. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  860. this.columnid_заказа}, true));
  861. this.columnid_заказа.AutoIncrement = true;
  862. this.columnid_заказа.AutoIncrementSeed = -1;
  863. this.columnid_заказа.AutoIncrementStep = -1;
  864. this.columnid_заказа.AllowDBNull = false;
  865. this.columnid_заказа.ReadOnly = true;
  866. this.columnid_заказа.Unique = true;
  867. this.columnСостав_заказа.AllowDBNull = false;
  868. this.columnСостав_заказа.MaxLength = 50;
  869. this.columnДата_заказа.AllowDBNull = false;
  870. this.columnДата_доставки.AllowDBNull = false;
  871. this.columnПункт_выдачи.AllowDBNull = false;
  872. this.columnФИО_клиента.MaxLength = 50;
  873. this.columnКод_для_получения.AllowDBNull = false;
  874. this.columnСтатус_заказа.AllowDBNull = false;
  875. this.columnСтатус_заказа.MaxLength = 50;
  876. }
  877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  879. public Заказ_importRow NewЗаказ_importRow() {
  880. return ((Заказ_importRow)(this.NewRow()));
  881. }
  882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  884. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  885. return new Заказ_importRow(builder);
  886. }
  887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  889. protected override global::System.Type GetRowType() {
  890. return typeof(Заказ_importRow);
  891. }
  892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  894. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  895. base.OnRowChanged(e);
  896. if ((this.Заказ_importRowChanged != null)) {
  897. this.Заказ_importRowChanged(this, new Заказ_importRowChangeEvent(((Заказ_importRow)(e.Row)), e.Action));
  898. }
  899. }
  900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  902. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  903. base.OnRowChanging(e);
  904. if ((this.Заказ_importRowChanging != null)) {
  905. this.Заказ_importRowChanging(this, new Заказ_importRowChangeEvent(((Заказ_importRow)(e.Row)), e.Action));
  906. }
  907. }
  908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  910. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  911. base.OnRowDeleted(e);
  912. if ((this.Заказ_importRowDeleted != null)) {
  913. this.Заказ_importRowDeleted(this, new Заказ_importRowChangeEvent(((Заказ_importRow)(e.Row)), e.Action));
  914. }
  915. }
  916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  918. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  919. base.OnRowDeleting(e);
  920. if ((this.Заказ_importRowDeleting != null)) {
  921. this.Заказ_importRowDeleting(this, new Заказ_importRowChangeEvent(((Заказ_importRow)(e.Row)), e.Action));
  922. }
  923. }
  924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  926. public void RemoveЗаказ_importRow(Заказ_importRow row) {
  927. this.Rows.Remove(row);
  928. }
  929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  931. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  932. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  933. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  934. IS31YurevichDataSet ds = new IS31YurevichDataSet();
  935. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  936. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  937. any1.MinOccurs = new decimal(0);
  938. any1.MaxOccurs = decimal.MaxValue;
  939. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  940. sequence.Items.Add(any1);
  941. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  942. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  943. any2.MinOccurs = new decimal(1);
  944. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  945. sequence.Items.Add(any2);
  946. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  947. attribute1.Name = "namespace";
  948. attribute1.FixedValue = ds.Namespace;
  949. type.Attributes.Add(attribute1);
  950. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  951. attribute2.Name = "tableTypeName";
  952. attribute2.FixedValue = "Заказ_importDataTable";
  953. type.Attributes.Add(attribute2);
  954. type.Particle = sequence;
  955. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  956. if (xs.Contains(dsSchema.TargetNamespace)) {
  957. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  958. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  959. try {
  960. global::System.Xml.Schema.XmlSchema schema = null;
  961. dsSchema.Write(s1);
  962. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  963. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  964. s2.SetLength(0);
  965. schema.Write(s2);
  966. if ((s1.Length == s2.Length)) {
  967. s1.Position = 0;
  968. s2.Position = 0;
  969. for (; ((s1.Position != s1.Length)
  970. && (s1.ReadByte() == s2.ReadByte())); ) {
  971. ;
  972. }
  973. if ((s1.Position == s1.Length)) {
  974. return type;
  975. }
  976. }
  977. }
  978. }
  979. finally {
  980. if ((s1 != null)) {
  981. s1.Close();
  982. }
  983. if ((s2 != null)) {
  984. s2.Close();
  985. }
  986. }
  987. }
  988. xs.Add(dsSchema);
  989. return type;
  990. }
  991. }
  992. /// <summary>
  993. ///Represents the strongly named DataTable class.
  994. ///</summary>
  995. [global::System.Serializable()]
  996. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  997. public partial class Пункты_выдачи_importDataTable : global::System.Data.TypedTableBase<Пункты_выдачи_importRow> {
  998. private global::System.Data.DataColumn columnid_пункта;
  999. private global::System.Data.DataColumn columnГород;
  1000. private global::System.Data.DataColumn columnУлица;
  1001. private global::System.Data.DataColumn columnНомер;
  1002. private global::System.Data.DataColumn columnid_заказа;
  1003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1005. public Пункты_выдачи_importDataTable() {
  1006. this.TableName = "Пункты выдачи_import";
  1007. this.BeginInit();
  1008. this.InitClass();
  1009. this.EndInit();
  1010. }
  1011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1013. internal Пункты_выдачи_importDataTable(global::System.Data.DataTable table) {
  1014. this.TableName = table.TableName;
  1015. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1016. this.CaseSensitive = table.CaseSensitive;
  1017. }
  1018. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1019. this.Locale = table.Locale;
  1020. }
  1021. if ((table.Namespace != table.DataSet.Namespace)) {
  1022. this.Namespace = table.Namespace;
  1023. }
  1024. this.Prefix = table.Prefix;
  1025. this.MinimumCapacity = table.MinimumCapacity;
  1026. }
  1027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1029. protected Пункты_выдачи_importDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1030. base(info, context) {
  1031. this.InitVars();
  1032. }
  1033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1035. public global::System.Data.DataColumn id_пунктаColumn {
  1036. get {
  1037. return this.columnid_пункта;
  1038. }
  1039. }
  1040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1042. public global::System.Data.DataColumn ГородColumn {
  1043. get {
  1044. return this.columnГород;
  1045. }
  1046. }
  1047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1049. public global::System.Data.DataColumn УлицаColumn {
  1050. get {
  1051. return this.columnУлица;
  1052. }
  1053. }
  1054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1056. public global::System.Data.DataColumn НомерColumn {
  1057. get {
  1058. return this.columnНомер;
  1059. }
  1060. }
  1061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1063. public global::System.Data.DataColumn id_заказаColumn {
  1064. get {
  1065. return this.columnid_заказа;
  1066. }
  1067. }
  1068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1070. [global::System.ComponentModel.Browsable(false)]
  1071. public int Count {
  1072. get {
  1073. return this.Rows.Count;
  1074. }
  1075. }
  1076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1078. public Пункты_выдачи_importRow this[int index] {
  1079. get {
  1080. return ((Пункты_выдачи_importRow)(this.Rows[index]));
  1081. }
  1082. }
  1083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1084. public event Пункты_выдачи_importRowChangeEventHandler Пункты_выдачи_importRowChanging;
  1085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1086. public event Пункты_выдачи_importRowChangeEventHandler Пункты_выдачи_importRowChanged;
  1087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1088. public event Пункты_выдачи_importRowChangeEventHandler Пункты_выдачи_importRowDeleting;
  1089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1090. public event Пункты_выдачи_importRowChangeEventHandler Пункты_выдачи_importRowDeleted;
  1091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1093. public void AddПункты_выдачи_importRow(Пункты_выдачи_importRow row) {
  1094. this.Rows.Add(row);
  1095. }
  1096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1098. public Пункты_выдачи_importRow AddПункты_выдачи_importRow(string Город, string Улица, string Номер, Заказ_importRow parentЗаказ_importRowByFK_Пункты_выдачи_import_Заказ_import) {
  1099. Пункты_выдачи_importRow rowПункты_выдачи_importRow = ((Пункты_выдачи_importRow)(this.NewRow()));
  1100. object[] columnValuesArray = new object[] {
  1101. null,
  1102. Город,
  1103. Улица,
  1104. Номер,
  1105. null};
  1106. if ((parentЗаказ_importRowByFK_Пункты_выдачи_import_Заказ_import != null)) {
  1107. columnValuesArray[4] = parentЗаказ_importRowByFK_Пункты_выдачи_import_Заказ_import[0];
  1108. }
  1109. rowПункты_выдачи_importRow.ItemArray = columnValuesArray;
  1110. this.Rows.Add(rowПункты_выдачи_importRow);
  1111. return rowПункты_выдачи_importRow;
  1112. }
  1113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1115. public Пункты_выдачи_importRow FindByid_пункта(int id_пункта) {
  1116. return ((Пункты_выдачи_importRow)(this.Rows.Find(new object[] {
  1117. id_пункта})));
  1118. }
  1119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1121. public override global::System.Data.DataTable Clone() {
  1122. Пункты_выдачи_importDataTable cln = ((Пункты_выдачи_importDataTable)(base.Clone()));
  1123. cln.InitVars();
  1124. return cln;
  1125. }
  1126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1128. protected override global::System.Data.DataTable CreateInstance() {
  1129. return new Пункты_выдачи_importDataTable();
  1130. }
  1131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1133. internal void InitVars() {
  1134. this.columnid_пункта = base.Columns["id_пункта"];
  1135. this.columnГород = base.Columns["Город"];
  1136. this.columnУлица = base.Columns["Улица"];
  1137. this.columnНомер = base.Columns["Номер"];
  1138. this.columnid_заказа = base.Columns["id_заказа"];
  1139. }
  1140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1142. private void InitClass() {
  1143. this.columnid_пункта = new global::System.Data.DataColumn("id_пункта", typeof(int), null, global::System.Data.MappingType.Element);
  1144. base.Columns.Add(this.columnid_пункта);
  1145. this.columnГород = new global::System.Data.DataColumn("Город", typeof(string), null, global::System.Data.MappingType.Element);
  1146. base.Columns.Add(this.columnГород);
  1147. this.columnУлица = new global::System.Data.DataColumn("Улица", typeof(string), null, global::System.Data.MappingType.Element);
  1148. base.Columns.Add(this.columnУлица);
  1149. this.columnНомер = new global::System.Data.DataColumn("Номер", typeof(string), null, global::System.Data.MappingType.Element);
  1150. base.Columns.Add(this.columnНомер);
  1151. this.columnid_заказа = new global::System.Data.DataColumn("id_заказа", typeof(int), null, global::System.Data.MappingType.Element);
  1152. base.Columns.Add(this.columnid_заказа);
  1153. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1154. this.columnid_пункта}, true));
  1155. this.columnid_пункта.AutoIncrement = true;
  1156. this.columnid_пункта.AutoIncrementSeed = -1;
  1157. this.columnid_пункта.AutoIncrementStep = -1;
  1158. this.columnid_пункта.AllowDBNull = false;
  1159. this.columnid_пункта.ReadOnly = true;
  1160. this.columnid_пункта.Unique = true;
  1161. this.columnГород.MaxLength = 50;
  1162. this.columnУлица.MaxLength = 50;
  1163. this.columnНомер.MaxLength = 50;
  1164. }
  1165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1167. public Пункты_выдачи_importRow NewПункты_выдачи_importRow() {
  1168. return ((Пункты_выдачи_importRow)(this.NewRow()));
  1169. }
  1170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1172. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1173. return new Пункты_выдачи_importRow(builder);
  1174. }
  1175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1177. protected override global::System.Type GetRowType() {
  1178. return typeof(Пункты_выдачи_importRow);
  1179. }
  1180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1182. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1183. base.OnRowChanged(e);
  1184. if ((this.Пункты_выдачи_importRowChanged != null)) {
  1185. this.Пункты_выдачи_importRowChanged(this, new Пункты_выдачи_importRowChangeEvent(((Пункты_выдачи_importRow)(e.Row)), e.Action));
  1186. }
  1187. }
  1188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1190. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1191. base.OnRowChanging(e);
  1192. if ((this.Пункты_выдачи_importRowChanging != null)) {
  1193. this.Пункты_выдачи_importRowChanging(this, new Пункты_выдачи_importRowChangeEvent(((Пункты_выдачи_importRow)(e.Row)), e.Action));
  1194. }
  1195. }
  1196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1198. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1199. base.OnRowDeleted(e);
  1200. if ((this.Пункты_выдачи_importRowDeleted != null)) {
  1201. this.Пункты_выдачи_importRowDeleted(this, new Пункты_выдачи_importRowChangeEvent(((Пункты_выдачи_importRow)(e.Row)), e.Action));
  1202. }
  1203. }
  1204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1206. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1207. base.OnRowDeleting(e);
  1208. if ((this.Пункты_выдачи_importRowDeleting != null)) {
  1209. this.Пункты_выдачи_importRowDeleting(this, new Пункты_выдачи_importRowChangeEvent(((Пункты_выдачи_importRow)(e.Row)), e.Action));
  1210. }
  1211. }
  1212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1214. public void RemoveПункты_выдачи_importRow(Пункты_выдачи_importRow row) {
  1215. this.Rows.Remove(row);
  1216. }
  1217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1219. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1220. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1221. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1222. IS31YurevichDataSet ds = new IS31YurevichDataSet();
  1223. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1224. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1225. any1.MinOccurs = new decimal(0);
  1226. any1.MaxOccurs = decimal.MaxValue;
  1227. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1228. sequence.Items.Add(any1);
  1229. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1230. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1231. any2.MinOccurs = new decimal(1);
  1232. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1233. sequence.Items.Add(any2);
  1234. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1235. attribute1.Name = "namespace";
  1236. attribute1.FixedValue = ds.Namespace;
  1237. type.Attributes.Add(attribute1);
  1238. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1239. attribute2.Name = "tableTypeName";
  1240. attribute2.FixedValue = "Пункты_выдачи_importDataTable";
  1241. type.Attributes.Add(attribute2);
  1242. type.Particle = sequence;
  1243. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1244. if (xs.Contains(dsSchema.TargetNamespace)) {
  1245. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1246. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1247. try {
  1248. global::System.Xml.Schema.XmlSchema schema = null;
  1249. dsSchema.Write(s1);
  1250. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1251. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1252. s2.SetLength(0);
  1253. schema.Write(s2);
  1254. if ((s1.Length == s2.Length)) {
  1255. s1.Position = 0;
  1256. s2.Position = 0;
  1257. for (; ((s1.Position != s1.Length)
  1258. && (s1.ReadByte() == s2.ReadByte())); ) {
  1259. ;
  1260. }
  1261. if ((s1.Position == s1.Length)) {
  1262. return type;
  1263. }
  1264. }
  1265. }
  1266. }
  1267. finally {
  1268. if ((s1 != null)) {
  1269. s1.Close();
  1270. }
  1271. if ((s2 != null)) {
  1272. s2.Close();
  1273. }
  1274. }
  1275. }
  1276. xs.Add(dsSchema);
  1277. return type;
  1278. }
  1279. }
  1280. /// <summary>
  1281. ///Represents the strongly named DataTable class.
  1282. ///</summary>
  1283. [global::System.Serializable()]
  1284. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1285. public partial class Товар_import_СтройматериалыDataTable : global::System.Data.TypedTableBase<Товар_import_СтройматериалыRow> {
  1286. private global::System.Data.DataColumn columnid;
  1287. private global::System.Data.DataColumn columnАртикул;
  1288. private global::System.Data.DataColumn columnНаименование;
  1289. private global::System.Data.DataColumn columnЕдиница_измерения;
  1290. private global::System.Data.DataColumn columnСтоимость;
  1291. private global::System.Data.DataColumn columnРазмер_максимально_возможной_скидки;
  1292. private global::System.Data.DataColumn columnПроизводитель;
  1293. private global::System.Data.DataColumn columnПоставщик;
  1294. private global::System.Data.DataColumn columnКатегория_товара;
  1295. private global::System.Data.DataColumn columnДействующая_скидка;
  1296. private global::System.Data.DataColumn columnКол_во_на_складе;
  1297. private global::System.Data.DataColumn columnОписание;
  1298. private global::System.Data.DataColumn columnИзображение;
  1299. private global::System.Data.DataColumn columnid_заказа;
  1300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1302. public Товар_import_СтройматериалыDataTable() {
  1303. this.TableName = "Товар_import_Стройматериалы";
  1304. this.BeginInit();
  1305. this.InitClass();
  1306. this.EndInit();
  1307. }
  1308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1310. internal Товар_import_СтройматериалыDataTable(global::System.Data.DataTable table) {
  1311. this.TableName = table.TableName;
  1312. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1313. this.CaseSensitive = table.CaseSensitive;
  1314. }
  1315. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1316. this.Locale = table.Locale;
  1317. }
  1318. if ((table.Namespace != table.DataSet.Namespace)) {
  1319. this.Namespace = table.Namespace;
  1320. }
  1321. this.Prefix = table.Prefix;
  1322. this.MinimumCapacity = table.MinimumCapacity;
  1323. }
  1324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1326. protected Товар_import_СтройматериалыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1327. base(info, context) {
  1328. this.InitVars();
  1329. }
  1330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1332. public global::System.Data.DataColumn idColumn {
  1333. get {
  1334. return this.columnid;
  1335. }
  1336. }
  1337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1339. public global::System.Data.DataColumn АртикулColumn {
  1340. get {
  1341. return this.columnАртикул;
  1342. }
  1343. }
  1344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1346. public global::System.Data.DataColumn НаименованиеColumn {
  1347. get {
  1348. return this.columnНаименование;
  1349. }
  1350. }
  1351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1353. public global::System.Data.DataColumn Единица_измеренияColumn {
  1354. get {
  1355. return this.columnЕдиница_измерения;
  1356. }
  1357. }
  1358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1360. public global::System.Data.DataColumn СтоимостьColumn {
  1361. get {
  1362. return this.columnСтоимость;
  1363. }
  1364. }
  1365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1367. public global::System.Data.DataColumn Размер_максимально_возможной_скидкиColumn {
  1368. get {
  1369. return this.columnРазмер_максимально_возможной_скидки;
  1370. }
  1371. }
  1372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1374. public global::System.Data.DataColumn ПроизводительColumn {
  1375. get {
  1376. return this.columnПроизводитель;
  1377. }
  1378. }
  1379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1381. public global::System.Data.DataColumn ПоставщикColumn {
  1382. get {
  1383. return this.columnПоставщик;
  1384. }
  1385. }
  1386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1388. public global::System.Data.DataColumn Категория_товараColumn {
  1389. get {
  1390. return this.columnКатегория_товара;
  1391. }
  1392. }
  1393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1395. public global::System.Data.DataColumn Действующая_скидкаColumn {
  1396. get {
  1397. return this.columnДействующая_скидка;
  1398. }
  1399. }
  1400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1402. public global::System.Data.DataColumn Кол_во_на_складеColumn {
  1403. get {
  1404. return this.columnКол_во_на_складе;
  1405. }
  1406. }
  1407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1409. public global::System.Data.DataColumn ОписаниеColumn {
  1410. get {
  1411. return this.columnОписание;
  1412. }
  1413. }
  1414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1416. public global::System.Data.DataColumn ИзображениеColumn {
  1417. get {
  1418. return this.columnИзображение;
  1419. }
  1420. }
  1421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1423. public global::System.Data.DataColumn id_заказаColumn {
  1424. get {
  1425. return this.columnid_заказа;
  1426. }
  1427. }
  1428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1430. [global::System.ComponentModel.Browsable(false)]
  1431. public int Count {
  1432. get {
  1433. return this.Rows.Count;
  1434. }
  1435. }
  1436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1438. public Товар_import_СтройматериалыRow this[int index] {
  1439. get {
  1440. return ((Товар_import_СтройматериалыRow)(this.Rows[index]));
  1441. }
  1442. }
  1443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1444. public event Товар_import_СтройматериалыRowChangeEventHandler Товар_import_СтройматериалыRowChanging;
  1445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1446. public event Товар_import_СтройматериалыRowChangeEventHandler Товар_import_СтройматериалыRowChanged;
  1447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1448. public event Товар_import_СтройматериалыRowChangeEventHandler Товар_import_СтройматериалыRowDeleting;
  1449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1450. public event Товар_import_СтройматериалыRowChangeEventHandler Товар_import_СтройматериалыRowDeleted;
  1451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1453. public void AddТовар_import_СтройматериалыRow(Товар_import_СтройматериалыRow row) {
  1454. this.Rows.Add(row);
  1455. }
  1456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1458. public Товар_import_СтройматериалыRow AddТовар_import_СтройматериалыRow(string Артикул, string Наименование, string Единица_измерения, decimal Стоимость, string Размер_максимально_возможной_скидки, string Производитель, string Поставщик, string Категория_товара, string Действующая_скидка, string Кол_во_на_складе, string Описание, string Изображение, Заказ_importRow parentЗаказ_importRowByFK_Товар_import_Стройматериалы_Заказ_import) {
  1459. Товар_import_СтройматериалыRow rowТовар_import_СтройматериалыRow = ((Товар_import_СтройматериалыRow)(this.NewRow()));
  1460. object[] columnValuesArray = new object[] {
  1461. null,
  1462. Артикул,
  1463. Наименование,
  1464. Единица_измерения,
  1465. Стоимость,
  1466. Размер_максимально_возможной_скидки,
  1467. Производитель,
  1468. Поставщик,
  1469. Категория_товара,
  1470. Действующая_скидка,
  1471. Кол_во_на_складе,
  1472. Описание,
  1473. Изображение,
  1474. null};
  1475. if ((parentЗаказ_importRowByFK_Товар_import_Стройматериалы_Заказ_import != null)) {
  1476. columnValuesArray[13] = parentЗаказ_importRowByFK_Товар_import_Стройматериалы_Заказ_import[0];
  1477. }
  1478. rowТовар_import_СтройматериалыRow.ItemArray = columnValuesArray;
  1479. this.Rows.Add(rowТовар_import_СтройматериалыRow);
  1480. return rowТовар_import_СтройматериалыRow;
  1481. }
  1482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1484. public Товар_import_СтройматериалыRow FindByid(int id) {
  1485. return ((Товар_import_СтройматериалыRow)(this.Rows.Find(new object[] {
  1486. id})));
  1487. }
  1488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1490. public override global::System.Data.DataTable Clone() {
  1491. Товар_import_СтройматериалыDataTable cln = ((Товар_import_СтройматериалыDataTable)(base.Clone()));
  1492. cln.InitVars();
  1493. return cln;
  1494. }
  1495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1497. protected override global::System.Data.DataTable CreateInstance() {
  1498. return new Товар_import_СтройматериалыDataTable();
  1499. }
  1500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1502. internal void InitVars() {
  1503. this.columnid = base.Columns["id"];
  1504. this.columnАртикул = base.Columns["Артикул"];
  1505. this.columnНаименование = base.Columns["Наименование"];
  1506. this.columnЕдиница_измерения = base.Columns["Единица_измерения"];
  1507. this.columnСтоимость = base.Columns["Стоимость"];
  1508. this.columnРазмер_максимально_возможной_скидки = base.Columns["Размер_максимально_возможной_скидки"];
  1509. this.columnПроизводитель = base.Columns["Производитель"];
  1510. this.columnПоставщик = base.Columns["Поставщик"];
  1511. this.columnКатегория_товара = base.Columns["Категория_товара"];
  1512. this.columnДействующая_скидка = base.Columns["Действующая_скидка"];
  1513. this.columnКол_во_на_складе = base.Columns["Кол_во_на_складе"];
  1514. this.columnОписание = base.Columns["Описание"];
  1515. this.columnИзображение = base.Columns["Изображение"];
  1516. this.columnid_заказа = base.Columns["id_заказа"];
  1517. }
  1518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1520. private void InitClass() {
  1521. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  1522. base.Columns.Add(this.columnid);
  1523. this.columnАртикул = new global::System.Data.DataColumn("Артикул", typeof(string), null, global::System.Data.MappingType.Element);
  1524. base.Columns.Add(this.columnАртикул);
  1525. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  1526. base.Columns.Add(this.columnНаименование);
  1527. this.columnЕдиница_измерения = new global::System.Data.DataColumn("Единица_измерения", typeof(string), null, global::System.Data.MappingType.Element);
  1528. base.Columns.Add(this.columnЕдиница_измерения);
  1529. this.columnСтоимость = new global::System.Data.DataColumn("Стоимость", typeof(decimal), null, global::System.Data.MappingType.Element);
  1530. base.Columns.Add(this.columnСтоимость);
  1531. this.columnРазмер_максимально_возможной_скидки = new global::System.Data.DataColumn("Размер_максимально_возможной_скидки", typeof(string), null, global::System.Data.MappingType.Element);
  1532. base.Columns.Add(this.columnРазмер_максимально_возможной_скидки);
  1533. this.columnПроизводитель = new global::System.Data.DataColumn("Производитель", typeof(string), null, global::System.Data.MappingType.Element);
  1534. base.Columns.Add(this.columnПроизводитель);
  1535. this.columnПоставщик = new global::System.Data.DataColumn("Поставщик", typeof(string), null, global::System.Data.MappingType.Element);
  1536. base.Columns.Add(this.columnПоставщик);
  1537. this.columnКатегория_товара = new global::System.Data.DataColumn("Категория_товара", typeof(string), null, global::System.Data.MappingType.Element);
  1538. base.Columns.Add(this.columnКатегория_товара);
  1539. this.columnДействующая_скидка = new global::System.Data.DataColumn("Действующая_скидка", typeof(string), null, global::System.Data.MappingType.Element);
  1540. base.Columns.Add(this.columnДействующая_скидка);
  1541. this.columnКол_во_на_складе = new global::System.Data.DataColumn("Кол_во_на_складе", typeof(string), null, global::System.Data.MappingType.Element);
  1542. base.Columns.Add(this.columnКол_во_на_складе);
  1543. this.columnОписание = new global::System.Data.DataColumn("Описание", typeof(string), null, global::System.Data.MappingType.Element);
  1544. base.Columns.Add(this.columnОписание);
  1545. this.columnИзображение = new global::System.Data.DataColumn("Изображение", typeof(string), null, global::System.Data.MappingType.Element);
  1546. base.Columns.Add(this.columnИзображение);
  1547. this.columnid_заказа = new global::System.Data.DataColumn("id_заказа", typeof(int), null, global::System.Data.MappingType.Element);
  1548. base.Columns.Add(this.columnid_заказа);
  1549. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1550. this.columnid}, true));
  1551. this.columnid.AutoIncrement = true;
  1552. this.columnid.AutoIncrementSeed = -1;
  1553. this.columnid.AutoIncrementStep = -1;
  1554. this.columnid.AllowDBNull = false;
  1555. this.columnid.ReadOnly = true;
  1556. this.columnid.Unique = true;
  1557. this.columnАртикул.MaxLength = 50;
  1558. this.columnНаименование.MaxLength = 50;
  1559. this.columnЕдиница_измерения.MaxLength = 50;
  1560. this.columnРазмер_максимально_возможной_скидки.MaxLength = 50;
  1561. this.columnПроизводитель.MaxLength = 50;
  1562. this.columnПоставщик.MaxLength = 50;
  1563. this.columnКатегория_товара.MaxLength = 50;
  1564. this.columnДействующая_скидка.MaxLength = 50;
  1565. this.columnКол_во_на_складе.MaxLength = 50;
  1566. this.columnОписание.MaxLength = 150;
  1567. this.columnИзображение.MaxLength = 50;
  1568. }
  1569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1571. public Товар_import_СтройматериалыRow NewТовар_import_СтройматериалыRow() {
  1572. return ((Товар_import_СтройматериалыRow)(this.NewRow()));
  1573. }
  1574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1576. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1577. return new Товар_import_СтройматериалыRow(builder);
  1578. }
  1579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1581. protected override global::System.Type GetRowType() {
  1582. return typeof(Товар_import_СтройматериалыRow);
  1583. }
  1584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1586. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1587. base.OnRowChanged(e);
  1588. if ((this.Товар_import_СтройматериалыRowChanged != null)) {
  1589. this.Товар_import_СтройматериалыRowChanged(this, new Товар_import_СтройматериалыRowChangeEvent(((Товар_import_СтройматериалыRow)(e.Row)), e.Action));
  1590. }
  1591. }
  1592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1594. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1595. base.OnRowChanging(e);
  1596. if ((this.Товар_import_СтройматериалыRowChanging != null)) {
  1597. this.Товар_import_СтройматериалыRowChanging(this, new Товар_import_СтройматериалыRowChangeEvent(((Товар_import_СтройматериалыRow)(e.Row)), e.Action));
  1598. }
  1599. }
  1600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1602. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1603. base.OnRowDeleted(e);
  1604. if ((this.Товар_import_СтройматериалыRowDeleted != null)) {
  1605. this.Товар_import_СтройматериалыRowDeleted(this, new Товар_import_СтройматериалыRowChangeEvent(((Товар_import_СтройматериалыRow)(e.Row)), e.Action));
  1606. }
  1607. }
  1608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1610. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1611. base.OnRowDeleting(e);
  1612. if ((this.Товар_import_СтройматериалыRowDeleting != null)) {
  1613. this.Товар_import_СтройматериалыRowDeleting(this, new Товар_import_СтройматериалыRowChangeEvent(((Товар_import_СтройматериалыRow)(e.Row)), e.Action));
  1614. }
  1615. }
  1616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1618. public void RemoveТовар_import_СтройматериалыRow(Товар_import_СтройматериалыRow row) {
  1619. this.Rows.Remove(row);
  1620. }
  1621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1623. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1624. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1625. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1626. IS31YurevichDataSet ds = new IS31YurevichDataSet();
  1627. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1628. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1629. any1.MinOccurs = new decimal(0);
  1630. any1.MaxOccurs = decimal.MaxValue;
  1631. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1632. sequence.Items.Add(any1);
  1633. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1634. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1635. any2.MinOccurs = new decimal(1);
  1636. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1637. sequence.Items.Add(any2);
  1638. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1639. attribute1.Name = "namespace";
  1640. attribute1.FixedValue = ds.Namespace;
  1641. type.Attributes.Add(attribute1);
  1642. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1643. attribute2.Name = "tableTypeName";
  1644. attribute2.FixedValue = "Товар_import_СтройматериалыDataTable";
  1645. type.Attributes.Add(attribute2);
  1646. type.Particle = sequence;
  1647. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1648. if (xs.Contains(dsSchema.TargetNamespace)) {
  1649. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1650. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1651. try {
  1652. global::System.Xml.Schema.XmlSchema schema = null;
  1653. dsSchema.Write(s1);
  1654. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1655. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1656. s2.SetLength(0);
  1657. schema.Write(s2);
  1658. if ((s1.Length == s2.Length)) {
  1659. s1.Position = 0;
  1660. s2.Position = 0;
  1661. for (; ((s1.Position != s1.Length)
  1662. && (s1.ReadByte() == s2.ReadByte())); ) {
  1663. ;
  1664. }
  1665. if ((s1.Position == s1.Length)) {
  1666. return type;
  1667. }
  1668. }
  1669. }
  1670. }
  1671. finally {
  1672. if ((s1 != null)) {
  1673. s1.Close();
  1674. }
  1675. if ((s2 != null)) {
  1676. s2.Close();
  1677. }
  1678. }
  1679. }
  1680. xs.Add(dsSchema);
  1681. return type;
  1682. }
  1683. }
  1684. /// <summary>
  1685. ///Represents strongly named DataRow class.
  1686. ///</summary>
  1687. public partial class user_importRow : global::System.Data.DataRow {
  1688. private user_importDataTable tableuser_import;
  1689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1691. internal user_importRow(global::System.Data.DataRowBuilder rb) :
  1692. base(rb) {
  1693. this.tableuser_import = ((user_importDataTable)(this.Table));
  1694. }
  1695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1697. public int id_сотрудника {
  1698. get {
  1699. return ((int)(this[this.tableuser_import.id_сотрудникаColumn]));
  1700. }
  1701. set {
  1702. this[this.tableuser_import.id_сотрудникаColumn] = value;
  1703. }
  1704. }
  1705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1707. public string Роль_сотрудника {
  1708. get {
  1709. return ((string)(this[this.tableuser_import.Роль_сотрудникаColumn]));
  1710. }
  1711. set {
  1712. this[this.tableuser_import.Роль_сотрудникаColumn] = value;
  1713. }
  1714. }
  1715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1717. public string ФИО {
  1718. get {
  1719. return ((string)(this[this.tableuser_import.ФИОColumn]));
  1720. }
  1721. set {
  1722. this[this.tableuser_import.ФИОColumn] = value;
  1723. }
  1724. }
  1725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1727. public string Логин {
  1728. get {
  1729. return ((string)(this[this.tableuser_import.ЛогинColumn]));
  1730. }
  1731. set {
  1732. this[this.tableuser_import.ЛогинColumn] = value;
  1733. }
  1734. }
  1735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1737. public string Пароль {
  1738. get {
  1739. return ((string)(this[this.tableuser_import.ПарольColumn]));
  1740. }
  1741. set {
  1742. this[this.tableuser_import.ПарольColumn] = value;
  1743. }
  1744. }
  1745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1747. public Заказ_importRow[] GetЗаказ_importRows() {
  1748. if ((this.Table.ChildRelations["FK_Заказ_import_user_import"] == null)) {
  1749. return new Заказ_importRow[0];
  1750. }
  1751. else {
  1752. return ((Заказ_importRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказ_import_user_import"])));
  1753. }
  1754. }
  1755. }
  1756. /// <summary>
  1757. ///Represents strongly named DataRow class.
  1758. ///</summary>
  1759. public partial class Заказ_importRow : global::System.Data.DataRow {
  1760. private Заказ_importDataTable tableЗаказ_import;
  1761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1763. internal Заказ_importRow(global::System.Data.DataRowBuilder rb) :
  1764. base(rb) {
  1765. this.tableЗаказ_import = ((Заказ_importDataTable)(this.Table));
  1766. }
  1767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1769. public int id_заказа {
  1770. get {
  1771. return ((int)(this[this.tableЗаказ_import.id_заказаColumn]));
  1772. }
  1773. set {
  1774. this[this.tableЗаказ_import.id_заказаColumn] = value;
  1775. }
  1776. }
  1777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1779. public string Состав_заказа {
  1780. get {
  1781. return ((string)(this[this.tableЗаказ_import.Состав_заказаColumn]));
  1782. }
  1783. set {
  1784. this[this.tableЗаказ_import.Состав_заказаColumn] = value;
  1785. }
  1786. }
  1787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1789. public System.DateTime Дата_заказа {
  1790. get {
  1791. return ((global::System.DateTime)(this[this.tableЗаказ_import.Дата_заказаColumn]));
  1792. }
  1793. set {
  1794. this[this.tableЗаказ_import.Дата_заказаColumn] = value;
  1795. }
  1796. }
  1797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1799. public System.DateTime Дата_доставки {
  1800. get {
  1801. return ((global::System.DateTime)(this[this.tableЗаказ_import.Дата_доставкиColumn]));
  1802. }
  1803. set {
  1804. this[this.tableЗаказ_import.Дата_доставкиColumn] = value;
  1805. }
  1806. }
  1807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1809. public int Пункт_выдачи {
  1810. get {
  1811. return ((int)(this[this.tableЗаказ_import.Пункт_выдачиColumn]));
  1812. }
  1813. set {
  1814. this[this.tableЗаказ_import.Пункт_выдачиColumn] = value;
  1815. }
  1816. }
  1817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1819. public string ФИО_клиента {
  1820. get {
  1821. try {
  1822. return ((string)(this[this.tableЗаказ_import.ФИО_клиентаColumn]));
  1823. }
  1824. catch (global::System.InvalidCastException e) {
  1825. throw new global::System.Data.StrongTypingException("Значение для столбца \'ФИО_клиента\' в таблице \'Заказ_import\' равно DBNull.", e);
  1826. }
  1827. }
  1828. set {
  1829. this[this.tableЗаказ_import.ФИО_клиентаColumn] = value;
  1830. }
  1831. }
  1832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1834. public int Код_для_получения {
  1835. get {
  1836. return ((int)(this[this.tableЗаказ_import.Код_для_полученияColumn]));
  1837. }
  1838. set {
  1839. this[this.tableЗаказ_import.Код_для_полученияColumn] = value;
  1840. }
  1841. }
  1842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1844. public string Статус_заказа {
  1845. get {
  1846. return ((string)(this[this.tableЗаказ_import.Статус_заказаColumn]));
  1847. }
  1848. set {
  1849. this[this.tableЗаказ_import.Статус_заказаColumn] = value;
  1850. }
  1851. }
  1852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1854. public int id_сотрудника {
  1855. get {
  1856. try {
  1857. return ((int)(this[this.tableЗаказ_import.id_сотрудникаColumn]));
  1858. }
  1859. catch (global::System.InvalidCastException e) {
  1860. throw new global::System.Data.StrongTypingException("Значение для столбца \'id_сотрудника\' в таблице \'Заказ_import\' равно DBNull.", e);
  1861. }
  1862. }
  1863. set {
  1864. this[this.tableЗаказ_import.id_сотрудникаColumn] = value;
  1865. }
  1866. }
  1867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1869. public user_importRow user_importRow {
  1870. get {
  1871. return ((user_importRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказ_import_user_import"])));
  1872. }
  1873. set {
  1874. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказ_import_user_import"]);
  1875. }
  1876. }
  1877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1879. public bool IsФИО_клиентаNull() {
  1880. return this.IsNull(this.tableЗаказ_import.ФИО_клиентаColumn);
  1881. }
  1882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1884. public void SetФИО_клиентаNull() {
  1885. this[this.tableЗаказ_import.ФИО_клиентаColumn] = global::System.Convert.DBNull;
  1886. }
  1887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1889. public bool Isid_сотрудникаNull() {
  1890. return this.IsNull(this.tableЗаказ_import.id_сотрудникаColumn);
  1891. }
  1892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1894. public void Setid_сотрудникаNull() {
  1895. this[this.tableЗаказ_import.id_сотрудникаColumn] = global::System.Convert.DBNull;
  1896. }
  1897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1899. public Пункты_выдачи_importRow[] GetПункты_выдачи_importRows() {
  1900. if ((this.Table.ChildRelations["FK_Пункты выдачи_import_Заказ_import"] == null)) {
  1901. return new Пункты_выдачи_importRow[0];
  1902. }
  1903. else {
  1904. return ((Пункты_выдачи_importRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Пункты выдачи_import_Заказ_import"])));
  1905. }
  1906. }
  1907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1909. public Товар_import_СтройматериалыRow[] GetТовар_import_СтройматериалыRows() {
  1910. if ((this.Table.ChildRelations["FK_Товар_import_Стройматериалы_Заказ_import"] == null)) {
  1911. return new Товар_import_СтройматериалыRow[0];
  1912. }
  1913. else {
  1914. return ((Товар_import_СтройматериалыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Товар_import_Стройматериалы_Заказ_import"])));
  1915. }
  1916. }
  1917. }
  1918. /// <summary>
  1919. ///Represents strongly named DataRow class.
  1920. ///</summary>
  1921. public partial class Пункты_выдачи_importRow : global::System.Data.DataRow {
  1922. private Пункты_выдачи_importDataTable tableПункты_выдачи_import;
  1923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1925. internal Пункты_выдачи_importRow(global::System.Data.DataRowBuilder rb) :
  1926. base(rb) {
  1927. this.tableПункты_выдачи_import = ((Пункты_выдачи_importDataTable)(this.Table));
  1928. }
  1929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1931. public int id_пункта {
  1932. get {
  1933. return ((int)(this[this.tableПункты_выдачи_import.id_пунктаColumn]));
  1934. }
  1935. set {
  1936. this[this.tableПункты_выдачи_import.id_пунктаColumn] = value;
  1937. }
  1938. }
  1939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1941. public string Город {
  1942. get {
  1943. try {
  1944. return ((string)(this[this.tableПункты_выдачи_import.ГородColumn]));
  1945. }
  1946. catch (global::System.InvalidCastException e) {
  1947. throw new global::System.Data.StrongTypingException("Значение для столбца \'Город\' в таблице \'Пункты выдачи_import\' равно DBNull.", e);
  1948. }
  1949. }
  1950. set {
  1951. this[this.tableПункты_выдачи_import.ГородColumn] = value;
  1952. }
  1953. }
  1954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1956. public string Улица {
  1957. get {
  1958. try {
  1959. return ((string)(this[this.tableПункты_выдачи_import.УлицаColumn]));
  1960. }
  1961. catch (global::System.InvalidCastException e) {
  1962. throw new global::System.Data.StrongTypingException("Значение для столбца \'Улица\' в таблице \'Пункты выдачи_import\' равно DBNull.", e);
  1963. }
  1964. }
  1965. set {
  1966. this[this.tableПункты_выдачи_import.УлицаColumn] = value;
  1967. }
  1968. }
  1969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1971. public string Номер {
  1972. get {
  1973. try {
  1974. return ((string)(this[this.tableПункты_выдачи_import.НомерColumn]));
  1975. }
  1976. catch (global::System.InvalidCastException e) {
  1977. throw new global::System.Data.StrongTypingException("Значение для столбца \'Номер\' в таблице \'Пункты выдачи_import\' равно DBNull.", e);
  1978. }
  1979. }
  1980. set {
  1981. this[this.tableПункты_выдачи_import.НомерColumn] = value;
  1982. }
  1983. }
  1984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1986. public int id_заказа {
  1987. get {
  1988. try {
  1989. return ((int)(this[this.tableПункты_выдачи_import.id_заказаColumn]));
  1990. }
  1991. catch (global::System.InvalidCastException e) {
  1992. throw new global::System.Data.StrongTypingException("Значение для столбца \'id_заказа\' в таблице \'Пункты выдачи_import\' равно DBNull.", e);
  1993. }
  1994. }
  1995. set {
  1996. this[this.tableПункты_выдачи_import.id_заказаColumn] = value;
  1997. }
  1998. }
  1999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2001. public Заказ_importRow Заказ_importRow {
  2002. get {
  2003. return ((Заказ_importRow)(this.GetParentRow(this.Table.ParentRelations["FK_Пункты выдачи_import_Заказ_import"])));
  2004. }
  2005. set {
  2006. this.SetParentRow(value, this.Table.ParentRelations["FK_Пункты выдачи_import_Заказ_import"]);
  2007. }
  2008. }
  2009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2011. public bool IsГородNull() {
  2012. return this.IsNull(this.tableПункты_выдачи_import.ГородColumn);
  2013. }
  2014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2016. public void SetГородNull() {
  2017. this[this.tableПункты_выдачи_import.ГородColumn] = global::System.Convert.DBNull;
  2018. }
  2019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2021. public bool IsУлицаNull() {
  2022. return this.IsNull(this.tableПункты_выдачи_import.УлицаColumn);
  2023. }
  2024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2026. public void SetУлицаNull() {
  2027. this[this.tableПункты_выдачи_import.УлицаColumn] = global::System.Convert.DBNull;
  2028. }
  2029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2031. public bool IsНомерNull() {
  2032. return this.IsNull(this.tableПункты_выдачи_import.НомерColumn);
  2033. }
  2034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2036. public void SetНомерNull() {
  2037. this[this.tableПункты_выдачи_import.НомерColumn] = global::System.Convert.DBNull;
  2038. }
  2039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2041. public bool Isid_заказаNull() {
  2042. return this.IsNull(this.tableПункты_выдачи_import.id_заказаColumn);
  2043. }
  2044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2046. public void Setid_заказаNull() {
  2047. this[this.tableПункты_выдачи_import.id_заказаColumn] = global::System.Convert.DBNull;
  2048. }
  2049. }
  2050. /// <summary>
  2051. ///Represents strongly named DataRow class.
  2052. ///</summary>
  2053. public partial class Товар_import_СтройматериалыRow : global::System.Data.DataRow {
  2054. private Товар_import_СтройматериалыDataTable tableТовар_import_Стройматериалы;
  2055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2057. internal Товар_import_СтройматериалыRow(global::System.Data.DataRowBuilder rb) :
  2058. base(rb) {
  2059. this.tableТовар_import_Стройматериалы = ((Товар_import_СтройматериалыDataTable)(this.Table));
  2060. }
  2061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2063. public int id {
  2064. get {
  2065. return ((int)(this[this.tableТовар_import_Стройматериалы.idColumn]));
  2066. }
  2067. set {
  2068. this[this.tableТовар_import_Стройматериалы.idColumn] = value;
  2069. }
  2070. }
  2071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2073. public string Артикул {
  2074. get {
  2075. try {
  2076. return ((string)(this[this.tableТовар_import_Стройматериалы.АртикулColumn]));
  2077. }
  2078. catch (global::System.InvalidCastException e) {
  2079. throw new global::System.Data.StrongTypingException("Значение для столбца \'Артикул\' в таблице \'Товар_import_Стройматериалы\' равно DBNu" +
  2080. "ll.", e);
  2081. }
  2082. }
  2083. set {
  2084. this[this.tableТовар_import_Стройматериалы.АртикулColumn] = value;
  2085. }
  2086. }
  2087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2089. public string Наименование {
  2090. get {
  2091. try {
  2092. return ((string)(this[this.tableТовар_import_Стройматериалы.НаименованиеColumn]));
  2093. }
  2094. catch (global::System.InvalidCastException e) {
  2095. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Товар_import_Стройматериалы\' равно" +
  2096. " DBNull.", e);
  2097. }
  2098. }
  2099. set {
  2100. this[this.tableТовар_import_Стройматериалы.НаименованиеColumn] = value;
  2101. }
  2102. }
  2103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2105. public string Единица_измерения {
  2106. get {
  2107. try {
  2108. return ((string)(this[this.tableТовар_import_Стройматериалы.Единица_измеренияColumn]));
  2109. }
  2110. catch (global::System.InvalidCastException e) {
  2111. throw new global::System.Data.StrongTypingException("Значение для столбца \'Единица_измерения\' в таблице \'Товар_import_Стройматериалы\' " +
  2112. "равно DBNull.", e);
  2113. }
  2114. }
  2115. set {
  2116. this[this.tableТовар_import_Стройматериалы.Единица_измеренияColumn] = value;
  2117. }
  2118. }
  2119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2121. public decimal Стоимость {
  2122. get {
  2123. try {
  2124. return ((decimal)(this[this.tableТовар_import_Стройматериалы.СтоимостьColumn]));
  2125. }
  2126. catch (global::System.InvalidCastException e) {
  2127. throw new global::System.Data.StrongTypingException("Значение для столбца \'Стоимость\' в таблице \'Товар_import_Стройматериалы\' равно DB" +
  2128. "Null.", e);
  2129. }
  2130. }
  2131. set {
  2132. this[this.tableТовар_import_Стройматериалы.СтоимостьColumn] = value;
  2133. }
  2134. }
  2135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2137. public string Размер_максимально_возможной_скидки {
  2138. get {
  2139. try {
  2140. return ((string)(this[this.tableТовар_import_Стройматериалы.Размер_максимально_возможной_скидкиColumn]));
  2141. }
  2142. catch (global::System.InvalidCastException e) {
  2143. throw new global::System.Data.StrongTypingException("Значение для столбца \'Размер_максимально_возможной_скидки\' в таблице \'Товар_impor" +
  2144. "t_Стройматериалы\' равно DBNull.", e);
  2145. }
  2146. }
  2147. set {
  2148. this[this.tableТовар_import_Стройматериалы.Размер_максимально_возможной_скидкиColumn] = value;
  2149. }
  2150. }
  2151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2153. public string Производитель {
  2154. get {
  2155. try {
  2156. return ((string)(this[this.tableТовар_import_Стройматериалы.ПроизводительColumn]));
  2157. }
  2158. catch (global::System.InvalidCastException e) {
  2159. throw new global::System.Data.StrongTypingException("Значение для столбца \'Производитель\' в таблице \'Товар_import_Стройматериалы\' равн" +
  2160. "о DBNull.", e);
  2161. }
  2162. }
  2163. set {
  2164. this[this.tableТовар_import_Стройматериалы.ПроизводительColumn] = value;
  2165. }
  2166. }
  2167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2169. public string Поставщик {
  2170. get {
  2171. try {
  2172. return ((string)(this[this.tableТовар_import_Стройматериалы.ПоставщикColumn]));
  2173. }
  2174. catch (global::System.InvalidCastException e) {
  2175. throw new global::System.Data.StrongTypingException("Значение для столбца \'Поставщик\' в таблице \'Товар_import_Стройматериалы\' равно DB" +
  2176. "Null.", e);
  2177. }
  2178. }
  2179. set {
  2180. this[this.tableТовар_import_Стройматериалы.ПоставщикColumn] = value;
  2181. }
  2182. }
  2183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2185. public string Категория_товара {
  2186. get {
  2187. try {
  2188. return ((string)(this[this.tableТовар_import_Стройматериалы.Категория_товараColumn]));
  2189. }
  2190. catch (global::System.InvalidCastException e) {
  2191. throw new global::System.Data.StrongTypingException("Значение для столбца \'Категория_товара\' в таблице \'Товар_import_Стройматериалы\' р" +
  2192. "авно DBNull.", e);
  2193. }
  2194. }
  2195. set {
  2196. this[this.tableТовар_import_Стройматериалы.Категория_товараColumn] = value;
  2197. }
  2198. }
  2199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2201. public string Действующая_скидка {
  2202. get {
  2203. try {
  2204. return ((string)(this[this.tableТовар_import_Стройматериалы.Действующая_скидкаColumn]));
  2205. }
  2206. catch (global::System.InvalidCastException e) {
  2207. throw new global::System.Data.StrongTypingException("Значение для столбца \'Действующая_скидка\' в таблице \'Товар_import_Стройматериалы\'" +
  2208. " равно DBNull.", e);
  2209. }
  2210. }
  2211. set {
  2212. this[this.tableТовар_import_Стройматериалы.Действующая_скидкаColumn] = value;
  2213. }
  2214. }
  2215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2217. public string Кол_во_на_складе {
  2218. get {
  2219. try {
  2220. return ((string)(this[this.tableТовар_import_Стройматериалы.Кол_во_на_складеColumn]));
  2221. }
  2222. catch (global::System.InvalidCastException e) {
  2223. throw new global::System.Data.StrongTypingException("Значение для столбца \'Кол_во_на_складе\' в таблице \'Товар_import_Стройматериалы\' р" +
  2224. "авно DBNull.", e);
  2225. }
  2226. }
  2227. set {
  2228. this[this.tableТовар_import_Стройматериалы.Кол_во_на_складеColumn] = value;
  2229. }
  2230. }
  2231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2233. public string Описание {
  2234. get {
  2235. try {
  2236. return ((string)(this[this.tableТовар_import_Стройматериалы.ОписаниеColumn]));
  2237. }
  2238. catch (global::System.InvalidCastException e) {
  2239. throw new global::System.Data.StrongTypingException("Значение для столбца \'Описание\' в таблице \'Товар_import_Стройматериалы\' равно DBN" +
  2240. "ull.", e);
  2241. }
  2242. }
  2243. set {
  2244. this[this.tableТовар_import_Стройматериалы.ОписаниеColumn] = value;
  2245. }
  2246. }
  2247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2249. public string Изображение {
  2250. get {
  2251. try {
  2252. return ((string)(this[this.tableТовар_import_Стройматериалы.ИзображениеColumn]));
  2253. }
  2254. catch (global::System.InvalidCastException e) {
  2255. throw new global::System.Data.StrongTypingException("Значение для столбца \'Изображение\' в таблице \'Товар_import_Стройматериалы\' равно " +
  2256. "DBNull.", e);
  2257. }
  2258. }
  2259. set {
  2260. this[this.tableТовар_import_Стройматериалы.ИзображениеColumn] = value;
  2261. }
  2262. }
  2263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2265. public int id_заказа {
  2266. get {
  2267. try {
  2268. return ((int)(this[this.tableТовар_import_Стройматериалы.id_заказаColumn]));
  2269. }
  2270. catch (global::System.InvalidCastException e) {
  2271. throw new global::System.Data.StrongTypingException("Значение для столбца \'id_заказа\' в таблице \'Товар_import_Стройматериалы\' равно DB" +
  2272. "Null.", e);
  2273. }
  2274. }
  2275. set {
  2276. this[this.tableТовар_import_Стройматериалы.id_заказаColumn] = value;
  2277. }
  2278. }
  2279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2281. public Заказ_importRow Заказ_importRow {
  2282. get {
  2283. return ((Заказ_importRow)(this.GetParentRow(this.Table.ParentRelations["FK_Товар_import_Стройматериалы_Заказ_import"])));
  2284. }
  2285. set {
  2286. this.SetParentRow(value, this.Table.ParentRelations["FK_Товар_import_Стройматериалы_Заказ_import"]);
  2287. }
  2288. }
  2289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2291. public bool IsАртикулNull() {
  2292. return this.IsNull(this.tableТовар_import_Стройматериалы.АртикулColumn);
  2293. }
  2294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2296. public void SetАртикулNull() {
  2297. this[this.tableТовар_import_Стройматериалы.АртикулColumn] = global::System.Convert.DBNull;
  2298. }
  2299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2301. public bool IsНаименованиеNull() {
  2302. return this.IsNull(this.tableТовар_import_Стройматериалы.НаименованиеColumn);
  2303. }
  2304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2306. public void SetНаименованиеNull() {
  2307. this[this.tableТовар_import_Стройматериалы.НаименованиеColumn] = global::System.Convert.DBNull;
  2308. }
  2309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2311. public bool IsЕдиница_измеренияNull() {
  2312. return this.IsNull(this.tableТовар_import_Стройматериалы.Единица_измеренияColumn);
  2313. }
  2314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2316. public void SetЕдиница_измеренияNull() {
  2317. this[this.tableТовар_import_Стройматериалы.Единица_измеренияColumn] = global::System.Convert.DBNull;
  2318. }
  2319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2321. public bool IsСтоимостьNull() {
  2322. return this.IsNull(this.tableТовар_import_Стройматериалы.СтоимостьColumn);
  2323. }
  2324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2326. public void SetСтоимостьNull() {
  2327. this[this.tableТовар_import_Стройматериалы.СтоимостьColumn] = global::System.Convert.DBNull;
  2328. }
  2329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2331. public bool IsРазмер_максимально_возможной_скидкиNull() {
  2332. return this.IsNull(this.tableТовар_import_Стройматериалы.Размер_максимально_возможной_скидкиColumn);
  2333. }
  2334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2336. public void SetРазмер_максимально_возможной_скидкиNull() {
  2337. this[this.tableТовар_import_Стройматериалы.Размер_максимально_возможной_скидкиColumn] = global::System.Convert.DBNull;
  2338. }
  2339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2341. public bool IsПроизводительNull() {
  2342. return this.IsNull(this.tableТовар_import_Стройматериалы.ПроизводительColumn);
  2343. }
  2344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2346. public void SetПроизводительNull() {
  2347. this[this.tableТовар_import_Стройматериалы.ПроизводительColumn] = global::System.Convert.DBNull;
  2348. }
  2349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2351. public bool IsПоставщикNull() {
  2352. return this.IsNull(this.tableТовар_import_Стройматериалы.ПоставщикColumn);
  2353. }
  2354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2356. public void SetПоставщикNull() {
  2357. this[this.tableТовар_import_Стройматериалы.ПоставщикColumn] = global::System.Convert.DBNull;
  2358. }
  2359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2361. public bool IsКатегория_товараNull() {
  2362. return this.IsNull(this.tableТовар_import_Стройматериалы.Категория_товараColumn);
  2363. }
  2364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2366. public void SetКатегория_товараNull() {
  2367. this[this.tableТовар_import_Стройматериалы.Категория_товараColumn] = global::System.Convert.DBNull;
  2368. }
  2369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2371. public bool IsДействующая_скидкаNull() {
  2372. return this.IsNull(this.tableТовар_import_Стройматериалы.Действующая_скидкаColumn);
  2373. }
  2374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2376. public void SetДействующая_скидкаNull() {
  2377. this[this.tableТовар_import_Стройматериалы.Действующая_скидкаColumn] = global::System.Convert.DBNull;
  2378. }
  2379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2381. public bool IsКол_во_на_складеNull() {
  2382. return this.IsNull(this.tableТовар_import_Стройматериалы.Кол_во_на_складеColumn);
  2383. }
  2384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2386. public void SetКол_во_на_складеNull() {
  2387. this[this.tableТовар_import_Стройматериалы.Кол_во_на_складеColumn] = global::System.Convert.DBNull;
  2388. }
  2389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2391. public bool IsОписаниеNull() {
  2392. return this.IsNull(this.tableТовар_import_Стройматериалы.ОписаниеColumn);
  2393. }
  2394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2396. public void SetОписаниеNull() {
  2397. this[this.tableТовар_import_Стройматериалы.ОписаниеColumn] = global::System.Convert.DBNull;
  2398. }
  2399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2401. public bool IsИзображениеNull() {
  2402. return this.IsNull(this.tableТовар_import_Стройматериалы.ИзображениеColumn);
  2403. }
  2404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2406. public void SetИзображениеNull() {
  2407. this[this.tableТовар_import_Стройматериалы.ИзображениеColumn] = global::System.Convert.DBNull;
  2408. }
  2409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2411. public bool Isid_заказаNull() {
  2412. return this.IsNull(this.tableТовар_import_Стройматериалы.id_заказаColumn);
  2413. }
  2414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2416. public void Setid_заказаNull() {
  2417. this[this.tableТовар_import_Стройматериалы.id_заказаColumn] = global::System.Convert.DBNull;
  2418. }
  2419. }
  2420. /// <summary>
  2421. ///Row event argument class
  2422. ///</summary>
  2423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2424. public class user_importRowChangeEvent : global::System.EventArgs {
  2425. private user_importRow eventRow;
  2426. private global::System.Data.DataRowAction eventAction;
  2427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2429. public user_importRowChangeEvent(user_importRow row, global::System.Data.DataRowAction action) {
  2430. this.eventRow = row;
  2431. this.eventAction = action;
  2432. }
  2433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2435. public user_importRow Row {
  2436. get {
  2437. return this.eventRow;
  2438. }
  2439. }
  2440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2442. public global::System.Data.DataRowAction Action {
  2443. get {
  2444. return this.eventAction;
  2445. }
  2446. }
  2447. }
  2448. /// <summary>
  2449. ///Row event argument class
  2450. ///</summary>
  2451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2452. public class Заказ_importRowChangeEvent : global::System.EventArgs {
  2453. private Заказ_importRow eventRow;
  2454. private global::System.Data.DataRowAction eventAction;
  2455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2457. public Заказ_importRowChangeEvent(Заказ_importRow row, global::System.Data.DataRowAction action) {
  2458. this.eventRow = row;
  2459. this.eventAction = action;
  2460. }
  2461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2463. public Заказ_importRow Row {
  2464. get {
  2465. return this.eventRow;
  2466. }
  2467. }
  2468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2470. public global::System.Data.DataRowAction Action {
  2471. get {
  2472. return this.eventAction;
  2473. }
  2474. }
  2475. }
  2476. /// <summary>
  2477. ///Row event argument class
  2478. ///</summary>
  2479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2480. public class Пункты_выдачи_importRowChangeEvent : global::System.EventArgs {
  2481. private Пункты_выдачи_importRow eventRow;
  2482. private global::System.Data.DataRowAction eventAction;
  2483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2485. public Пункты_выдачи_importRowChangeEvent(Пункты_выдачи_importRow row, global::System.Data.DataRowAction action) {
  2486. this.eventRow = row;
  2487. this.eventAction = action;
  2488. }
  2489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2491. public Пункты_выдачи_importRow Row {
  2492. get {
  2493. return this.eventRow;
  2494. }
  2495. }
  2496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2498. public global::System.Data.DataRowAction Action {
  2499. get {
  2500. return this.eventAction;
  2501. }
  2502. }
  2503. }
  2504. /// <summary>
  2505. ///Row event argument class
  2506. ///</summary>
  2507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2508. public class Товар_import_СтройматериалыRowChangeEvent : global::System.EventArgs {
  2509. private Товар_import_СтройматериалыRow eventRow;
  2510. private global::System.Data.DataRowAction eventAction;
  2511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2513. public Товар_import_СтройматериалыRowChangeEvent(Товар_import_СтройматериалыRow row, global::System.Data.DataRowAction action) {
  2514. this.eventRow = row;
  2515. this.eventAction = action;
  2516. }
  2517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2519. public Товар_import_СтройматериалыRow Row {
  2520. get {
  2521. return this.eventRow;
  2522. }
  2523. }
  2524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2526. public global::System.Data.DataRowAction Action {
  2527. get {
  2528. return this.eventAction;
  2529. }
  2530. }
  2531. }
  2532. }
  2533. }
  2534. namespace YurevichIS31_Stroymaterialy.IS31YurevichDataSetTableAdapters {
  2535. /// <summary>
  2536. ///Represents the connection and commands used to retrieve and save data.
  2537. ///</summary>
  2538. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2539. [global::System.ComponentModel.ToolboxItem(true)]
  2540. [global::System.ComponentModel.DataObjectAttribute(true)]
  2541. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2542. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2543. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2544. public partial class user_importTableAdapter : global::System.ComponentModel.Component {
  2545. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2546. private global::System.Data.SqlClient.SqlConnection _connection;
  2547. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2548. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2549. private bool _clearBeforeFill;
  2550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2552. public user_importTableAdapter() {
  2553. this.ClearBeforeFill = true;
  2554. }
  2555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2557. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2558. get {
  2559. if ((this._adapter == null)) {
  2560. this.InitAdapter();
  2561. }
  2562. return this._adapter;
  2563. }
  2564. }
  2565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2567. internal global::System.Data.SqlClient.SqlConnection Connection {
  2568. get {
  2569. if ((this._connection == null)) {
  2570. this.InitConnection();
  2571. }
  2572. return this._connection;
  2573. }
  2574. set {
  2575. this._connection = value;
  2576. if ((this.Adapter.InsertCommand != null)) {
  2577. this.Adapter.InsertCommand.Connection = value;
  2578. }
  2579. if ((this.Adapter.DeleteCommand != null)) {
  2580. this.Adapter.DeleteCommand.Connection = value;
  2581. }
  2582. if ((this.Adapter.UpdateCommand != null)) {
  2583. this.Adapter.UpdateCommand.Connection = value;
  2584. }
  2585. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2586. if ((this.CommandCollection[i] != null)) {
  2587. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2588. }
  2589. }
  2590. }
  2591. }
  2592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2594. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2595. get {
  2596. return this._transaction;
  2597. }
  2598. set {
  2599. this._transaction = value;
  2600. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2601. this.CommandCollection[i].Transaction = this._transaction;
  2602. }
  2603. if (((this.Adapter != null)
  2604. && (this.Adapter.DeleteCommand != null))) {
  2605. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2606. }
  2607. if (((this.Adapter != null)
  2608. && (this.Adapter.InsertCommand != null))) {
  2609. this.Adapter.InsertCommand.Transaction = this._transaction;
  2610. }
  2611. if (((this.Adapter != null)
  2612. && (this.Adapter.UpdateCommand != null))) {
  2613. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2614. }
  2615. }
  2616. }
  2617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2619. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2620. get {
  2621. if ((this._commandCollection == null)) {
  2622. this.InitCommandCollection();
  2623. }
  2624. return this._commandCollection;
  2625. }
  2626. }
  2627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2629. public bool ClearBeforeFill {
  2630. get {
  2631. return this._clearBeforeFill;
  2632. }
  2633. set {
  2634. this._clearBeforeFill = value;
  2635. }
  2636. }
  2637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2639. private void InitAdapter() {
  2640. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2641. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2642. tableMapping.SourceTable = "Table";
  2643. tableMapping.DataSetTable = "user_import";
  2644. tableMapping.ColumnMappings.Add("id_сотрудника", "id_сотрудника");
  2645. tableMapping.ColumnMappings.Add("Роль_сотрудника", "Роль_сотрудника");
  2646. tableMapping.ColumnMappings.Add("ФИО", "ФИО");
  2647. tableMapping.ColumnMappings.Add("Логин", "Логин");
  2648. tableMapping.ColumnMappings.Add("Пароль", "Пароль");
  2649. this._adapter.TableMappings.Add(tableMapping);
  2650. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  2651. this._adapter.DeleteCommand.Connection = this.Connection;
  2652. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[user_import] WHERE (([id_сотрудника] = @Original_id_сотрудника" +
  2653. ") AND ([Роль_сотрудника] = @Original_Роль_сотрудника) AND ([ФИО] = @Original_ФИО" +
  2654. ") AND ([Логин] = @Original_Логин) AND ([Пароль] = @Original_Пароль))";
  2655. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  2656. 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, "", "", ""));
  2657. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Роль_сотрудника", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Роль_сотрудника", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2658. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ФИО", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ФИО", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2659. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2660. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2661. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2662. this._adapter.InsertCommand.Connection = this.Connection;
  2663. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[user_import] ([Роль_сотрудника], [ФИО], [Логин], [Пароль]) VAL" +
  2664. "UES (@Роль_сотрудника, @ФИО, @Логин, @Пароль);\r\nSELECT id_сотрудника, Роль_сотру" +
  2665. "дника, ФИО, Логин, Пароль FROM user_import WHERE (id_сотрудника = SCOPE_IDENTITY" +
  2666. "())";
  2667. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2668. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Роль_сотрудника", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Роль_сотрудника", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2669. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ФИО", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ФИО", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2670. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2671. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2672. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  2673. this._adapter.UpdateCommand.Connection = this.Connection;
  2674. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[user_import] SET [Роль_сотрудника] = @Роль_сотрудника, [ФИО] = @ФИО, [Логин] = @Логин, [Пароль] = @Пароль WHERE (([id_сотрудника] = @Original_id_сотрудника) AND ([Роль_сотрудника] = @Original_Роль_сотрудника) AND ([ФИО] = @Original_ФИО) AND ([Логин] = @Original_Логин) AND ([Пароль] = @Original_Пароль));
  2675. SELECT id_сотрудника, Роль_сотрудника, ФИО, Логин, Пароль FROM user_import WHERE (id_сотрудника = @id_сотрудника)";
  2676. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  2677. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Роль_сотрудника", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Роль_сотрудника", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2678. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ФИО", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ФИО", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2679. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2680. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2681. 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, "", "", ""));
  2682. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Роль_сотрудника", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Роль_сотрудника", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2683. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ФИО", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ФИО", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2684. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2685. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2686. 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, "", "", ""));
  2687. }
  2688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2690. private void InitConnection() {
  2691. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2692. this._connection.ConnectionString = global::YurevichIS31_Stroymaterialy.Properties.Settings.Default.IS31YurevichConnectionString;
  2693. }
  2694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2696. private void InitCommandCollection() {
  2697. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2698. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2699. this._commandCollection[0].Connection = this.Connection;
  2700. this._commandCollection[0].CommandText = "SELECT id_сотрудника, Роль_сотрудника, ФИО, Логин, Пароль FROM dbo.user_import";
  2701. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2702. }
  2703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2705. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2706. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2707. public virtual int Fill(IS31YurevichDataSet.user_importDataTable dataTable) {
  2708. this.Adapter.SelectCommand = this.CommandCollection[0];
  2709. if ((this.ClearBeforeFill == true)) {
  2710. dataTable.Clear();
  2711. }
  2712. int returnValue = this.Adapter.Fill(dataTable);
  2713. return returnValue;
  2714. }
  2715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2717. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2718. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2719. public virtual IS31YurevichDataSet.user_importDataTable GetData() {
  2720. this.Adapter.SelectCommand = this.CommandCollection[0];
  2721. IS31YurevichDataSet.user_importDataTable dataTable = new IS31YurevichDataSet.user_importDataTable();
  2722. this.Adapter.Fill(dataTable);
  2723. return dataTable;
  2724. }
  2725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2727. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2728. public virtual int Update(IS31YurevichDataSet.user_importDataTable dataTable) {
  2729. return this.Adapter.Update(dataTable);
  2730. }
  2731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2733. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2734. public virtual int Update(IS31YurevichDataSet dataSet) {
  2735. return this.Adapter.Update(dataSet, "user_import");
  2736. }
  2737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2739. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2740. public virtual int Update(global::System.Data.DataRow dataRow) {
  2741. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2742. dataRow});
  2743. }
  2744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2746. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2747. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2748. return this.Adapter.Update(dataRows);
  2749. }
  2750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2752. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2753. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  2754. public virtual int Delete(int Original_id_сотрудника, string Original_Роль_сотрудника, string Original_ФИО, string Original_Логин, string Original_Пароль) {
  2755. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_сотрудника));
  2756. if ((Original_Роль_сотрудника == null)) {
  2757. throw new global::System.ArgumentNullException("Original_Роль_сотрудника");
  2758. }
  2759. else {
  2760. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Роль_сотрудника));
  2761. }
  2762. if ((Original_ФИО == null)) {
  2763. throw new global::System.ArgumentNullException("Original_ФИО");
  2764. }
  2765. else {
  2766. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_ФИО));
  2767. }
  2768. if ((Original_Логин == null)) {
  2769. throw new global::System.ArgumentNullException("Original_Логин");
  2770. }
  2771. else {
  2772. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Логин));
  2773. }
  2774. if ((Original_Пароль == null)) {
  2775. throw new global::System.ArgumentNullException("Original_Пароль");
  2776. }
  2777. else {
  2778. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Пароль));
  2779. }
  2780. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  2781. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2782. != global::System.Data.ConnectionState.Open)) {
  2783. this.Adapter.DeleteCommand.Connection.Open();
  2784. }
  2785. try {
  2786. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  2787. return returnValue;
  2788. }
  2789. finally {
  2790. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2791. this.Adapter.DeleteCommand.Connection.Close();
  2792. }
  2793. }
  2794. }
  2795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2797. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2798. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2799. public virtual int Insert(string Роль_сотрудника, string ФИО, string Логин, string Пароль) {
  2800. if ((Роль_сотрудника == null)) {
  2801. throw new global::System.ArgumentNullException("Роль_сотрудника");
  2802. }
  2803. else {
  2804. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Роль_сотрудника));
  2805. }
  2806. if ((ФИО == null)) {
  2807. throw new global::System.ArgumentNullException("ФИО");
  2808. }
  2809. else {
  2810. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ФИО));
  2811. }
  2812. if ((Логин == null)) {
  2813. throw new global::System.ArgumentNullException("Логин");
  2814. }
  2815. else {
  2816. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Логин));
  2817. }
  2818. if ((Пароль == null)) {
  2819. throw new global::System.ArgumentNullException("Пароль");
  2820. }
  2821. else {
  2822. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Пароль));
  2823. }
  2824. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2825. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2826. != global::System.Data.ConnectionState.Open)) {
  2827. this.Adapter.InsertCommand.Connection.Open();
  2828. }
  2829. try {
  2830. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2831. return returnValue;
  2832. }
  2833. finally {
  2834. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2835. this.Adapter.InsertCommand.Connection.Close();
  2836. }
  2837. }
  2838. }
  2839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2841. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2842. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2843. public virtual int Update(string Роль_сотрудника, string ФИО, string Логин, string Пароль, int Original_id_сотрудника, string Original_Роль_сотрудника, string Original_ФИО, string Original_Логин, string Original_Пароль, int id_сотрудника) {
  2844. if ((Роль_сотрудника == null)) {
  2845. throw new global::System.ArgumentNullException("Роль_сотрудника");
  2846. }
  2847. else {
  2848. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Роль_сотрудника));
  2849. }
  2850. if ((ФИО == null)) {
  2851. throw new global::System.ArgumentNullException("ФИО");
  2852. }
  2853. else {
  2854. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ФИО));
  2855. }
  2856. if ((Логин == null)) {
  2857. throw new global::System.ArgumentNullException("Логин");
  2858. }
  2859. else {
  2860. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Логин));
  2861. }
  2862. if ((Пароль == null)) {
  2863. throw new global::System.ArgumentNullException("Пароль");
  2864. }
  2865. else {
  2866. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Пароль));
  2867. }
  2868. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_id_сотрудника));
  2869. if ((Original_Роль_сотрудника == null)) {
  2870. throw new global::System.ArgumentNullException("Original_Роль_сотрудника");
  2871. }
  2872. else {
  2873. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Роль_сотрудника));
  2874. }
  2875. if ((Original_ФИО == null)) {
  2876. throw new global::System.ArgumentNullException("Original_ФИО");
  2877. }
  2878. else {
  2879. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_ФИО));
  2880. }
  2881. if ((Original_Логин == null)) {
  2882. throw new global::System.ArgumentNullException("Original_Логин");
  2883. }
  2884. else {
  2885. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Логин));
  2886. }
  2887. if ((Original_Пароль == null)) {
  2888. throw new global::System.ArgumentNullException("Original_Пароль");
  2889. }
  2890. else {
  2891. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Пароль));
  2892. }
  2893. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(id_сотрудника));
  2894. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  2895. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2896. != global::System.Data.ConnectionState.Open)) {
  2897. this.Adapter.UpdateCommand.Connection.Open();
  2898. }
  2899. try {
  2900. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  2901. return returnValue;
  2902. }
  2903. finally {
  2904. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2905. this.Adapter.UpdateCommand.Connection.Close();
  2906. }
  2907. }
  2908. }
  2909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2911. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2912. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2913. public virtual int Update(string Роль_сотрудника, string ФИО, string Логин, string Пароль, int Original_id_сотрудника, string Original_Роль_сотрудника, string Original_ФИО, string Original_Логин, string Original_Пароль) {
  2914. return this.Update(Роль_сотрудника, ФИО, Логин, Пароль, Original_id_сотрудника, Original_Роль_сотрудника, Original_ФИО, Original_Логин, Original_Пароль, Original_id_сотрудника);
  2915. }
  2916. }
  2917. /// <summary>
  2918. ///Represents the connection and commands used to retrieve and save data.
  2919. ///</summary>
  2920. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2921. [global::System.ComponentModel.ToolboxItem(true)]
  2922. [global::System.ComponentModel.DataObjectAttribute(true)]
  2923. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2924. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2925. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2926. public partial class Заказ_importTableAdapter : global::System.ComponentModel.Component {
  2927. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2928. private global::System.Data.SqlClient.SqlConnection _connection;
  2929. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2930. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2931. private bool _clearBeforeFill;
  2932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2934. public Заказ_importTableAdapter() {
  2935. this.ClearBeforeFill = true;
  2936. }
  2937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2939. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2940. get {
  2941. if ((this._adapter == null)) {
  2942. this.InitAdapter();
  2943. }
  2944. return this._adapter;
  2945. }
  2946. }
  2947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2949. internal global::System.Data.SqlClient.SqlConnection Connection {
  2950. get {
  2951. if ((this._connection == null)) {
  2952. this.InitConnection();
  2953. }
  2954. return this._connection;
  2955. }
  2956. set {
  2957. this._connection = value;
  2958. if ((this.Adapter.InsertCommand != null)) {
  2959. this.Adapter.InsertCommand.Connection = value;
  2960. }
  2961. if ((this.Adapter.DeleteCommand != null)) {
  2962. this.Adapter.DeleteCommand.Connection = value;
  2963. }
  2964. if ((this.Adapter.UpdateCommand != null)) {
  2965. this.Adapter.UpdateCommand.Connection = value;
  2966. }
  2967. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2968. if ((this.CommandCollection[i] != null)) {
  2969. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2970. }
  2971. }
  2972. }
  2973. }
  2974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2976. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2977. get {
  2978. return this._transaction;
  2979. }
  2980. set {
  2981. this._transaction = value;
  2982. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2983. this.CommandCollection[i].Transaction = this._transaction;
  2984. }
  2985. if (((this.Adapter != null)
  2986. && (this.Adapter.DeleteCommand != null))) {
  2987. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2988. }
  2989. if (((this.Adapter != null)
  2990. && (this.Adapter.InsertCommand != null))) {
  2991. this.Adapter.InsertCommand.Transaction = this._transaction;
  2992. }
  2993. if (((this.Adapter != null)
  2994. && (this.Adapter.UpdateCommand != null))) {
  2995. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2996. }
  2997. }
  2998. }
  2999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3001. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3002. get {
  3003. if ((this._commandCollection == null)) {
  3004. this.InitCommandCollection();
  3005. }
  3006. return this._commandCollection;
  3007. }
  3008. }
  3009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3011. public bool ClearBeforeFill {
  3012. get {
  3013. return this._clearBeforeFill;
  3014. }
  3015. set {
  3016. this._clearBeforeFill = value;
  3017. }
  3018. }
  3019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3021. private void InitAdapter() {
  3022. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3023. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3024. tableMapping.SourceTable = "Table";
  3025. tableMapping.DataSetTable = "Заказ_import";
  3026. tableMapping.ColumnMappings.Add("id_заказа", "id_заказа");
  3027. tableMapping.ColumnMappings.Add("Состав_заказа", "Состав_заказа");
  3028. tableMapping.ColumnMappings.Add("Дата_заказа", "Дата_заказа");
  3029. tableMapping.ColumnMappings.Add("Дата_доставки", "Дата_доставки");
  3030. tableMapping.ColumnMappings.Add("Пункт_выдачи", "Пункт_выдачи");
  3031. tableMapping.ColumnMappings.Add("ФИО_клиента", "ФИО_клиента");
  3032. tableMapping.ColumnMappings.Add("Код_для_получения", "Код_для_получения");
  3033. tableMapping.ColumnMappings.Add("Статус_заказа", "Статус_заказа");
  3034. tableMapping.ColumnMappings.Add("id_сотрудника", "id_сотрудника");
  3035. this._adapter.TableMappings.Add(tableMapping);
  3036. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3037. this._adapter.DeleteCommand.Connection = this.Connection;
  3038. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Заказ_import] WHERE (([id_заказа] = @Original_id_заказа) AND ([Состав_заказа] = @Original_Состав_заказа) AND ([Дата_заказа] = @Original_Дата_заказа) AND ([Дата_доставки] = @Original_Дата_доставки) AND ([Пункт_выдачи] = @Original_Пункт_выдачи) AND ((@IsNull_ФИО_клиента = 1 AND [ФИО_клиента] IS NULL) OR ([ФИО_клиента] = @Original_ФИО_клиента)) AND ([Код_для_получения] = @Original_Код_для_получения) AND ([Статус_заказа] = @Original_Статус_заказа) AND ((@IsNull_id_сотрудника = 1 AND [id_сотрудника] IS NULL) OR ([id_сотрудника] = @Original_id_сотрудника)))";
  3039. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3040. 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, "", "", ""));
  3041. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Состав_заказа", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Состав_заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3042. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_заказа", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3043. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_доставки", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_доставки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3044. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пункт_выдачи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пункт_выдачи", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3045. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ФИО_клиента", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ФИО_клиента", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3046. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ФИО_клиента", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ФИО_клиента", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3047. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_для_получения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_для_получения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3048. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Статус_заказа", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Статус_заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3049. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_сотрудника", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_сотрудника", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3050. 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, "", "", ""));
  3051. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3052. this._adapter.InsertCommand.Connection = this.Connection;
  3053. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Заказ_import] ([Состав_заказа], [Дата_заказа], [Дата_доставки], [Пункт_выдачи], [ФИО_клиента], [Код_для_получения], [Статус_заказа], [id_сотрудника]) VALUES (@Состав_заказа, @Дата_заказа, @Дата_доставки, @Пункт_выдачи, @ФИО_клиента, @Код_для_получения, @Статус_заказа, @id_сотрудника);
  3054. SELECT id_заказа, Состав_заказа, Дата_заказа, Дата_доставки, Пункт_выдачи, ФИО_клиента, Код_для_получения, Статус_заказа, id_сотрудника FROM Заказ_import WHERE (id_заказа = SCOPE_IDENTITY())";
  3055. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3056. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Состав_заказа", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Состав_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3057. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_заказа", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3058. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_доставки", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_доставки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3059. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пункт_выдачи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пункт_выдачи", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3060. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ФИО_клиента", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ФИО_клиента", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3061. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_для_получения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_для_получения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3062. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Статус_заказа", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Статус_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3063. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_сотрудника", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_сотрудника", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3064. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3065. this._adapter.UpdateCommand.Connection = this.Connection;
  3066. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Заказ_import] SET [Состав_заказа] = @Состав_заказа, [Дата_заказа] = @Дата_заказа, [Дата_доставки] = @Дата_доставки, [Пункт_выдачи] = @Пункт_выдачи, [ФИО_клиента] = @ФИО_клиента, [Код_для_получения] = @Код_для_получения, [Статус_заказа] = @Статус_заказа, [id_сотрудника] = @id_сотрудника WHERE (([id_заказа] = @Original_id_заказа) AND ([Состав_заказа] = @Original_Состав_заказа) AND ([Дата_заказа] = @Original_Дата_заказа) AND ([Дата_доставки] = @Original_Дата_доставки) AND ([Пункт_выдачи] = @Original_Пункт_выдачи) AND ((@IsNull_ФИО_клиента = 1 AND [ФИО_клиента] IS NULL) OR ([ФИО_клиента] = @Original_ФИО_клиента)) AND ([Код_для_получения] = @Original_Код_для_получения) AND ([Статус_заказа] = @Original_Статус_заказа) AND ((@IsNull_id_сотрудника = 1 AND [id_сотрудника] IS NULL) OR ([id_сотрудника] = @Original_id_сотрудника)));
  3067. SELECT id_заказа, Состав_заказа, Дата_заказа, Дата_доставки, Пункт_выдачи, ФИО_клиента, Код_для_получения, Статус_заказа, id_сотрудника FROM Заказ_import WHERE (id_заказа = @id_заказа)";
  3068. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3069. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Состав_заказа", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Состав_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3070. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_заказа", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3071. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_доставки", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_доставки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3072. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пункт_выдачи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пункт_выдачи", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3073. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ФИО_клиента", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ФИО_клиента", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3074. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_для_получения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_для_получения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3075. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Статус_заказа", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Статус_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3076. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_сотрудника", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_сотрудника", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3077. 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, "", "", ""));
  3078. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Состав_заказа", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Состав_заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3079. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_заказа", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3080. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_доставки", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_доставки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3081. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пункт_выдачи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пункт_выдачи", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3082. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ФИО_клиента", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ФИО_клиента", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3083. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ФИО_клиента", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ФИО_клиента", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3084. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_для_получения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_для_получения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3085. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Статус_заказа", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Статус_заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3086. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_сотрудника", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_сотрудника", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3087. 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, "", "", ""));
  3088. 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, "", "", ""));
  3089. }
  3090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3092. private void InitConnection() {
  3093. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3094. this._connection.ConnectionString = global::YurevichIS31_Stroymaterialy.Properties.Settings.Default.IS31YurevichConnectionString;
  3095. }
  3096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3098. private void InitCommandCollection() {
  3099. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3100. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3101. this._commandCollection[0].Connection = this.Connection;
  3102. this._commandCollection[0].CommandText = "SELECT id_заказа, Состав_заказа, Дата_заказа, Дата_доставки, Пункт_выдачи, ФИО_кл" +
  3103. "иента, Код_для_получения, Статус_заказа, id_сотрудника FROM dbo.Заказ_import";
  3104. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3105. }
  3106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3108. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3109. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3110. public virtual int Fill(IS31YurevichDataSet.Заказ_importDataTable dataTable) {
  3111. this.Adapter.SelectCommand = this.CommandCollection[0];
  3112. if ((this.ClearBeforeFill == true)) {
  3113. dataTable.Clear();
  3114. }
  3115. int returnValue = this.Adapter.Fill(dataTable);
  3116. return returnValue;
  3117. }
  3118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3120. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3121. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3122. public virtual IS31YurevichDataSet.Заказ_importDataTable GetData() {
  3123. this.Adapter.SelectCommand = this.CommandCollection[0];
  3124. IS31YurevichDataSet.Заказ_importDataTable dataTable = new IS31YurevichDataSet.Заказ_importDataTable();
  3125. this.Adapter.Fill(dataTable);
  3126. return dataTable;
  3127. }
  3128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3130. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3131. public virtual int Update(IS31YurevichDataSet.Заказ_importDataTable dataTable) {
  3132. return this.Adapter.Update(dataTable);
  3133. }
  3134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3136. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3137. public virtual int Update(IS31YurevichDataSet dataSet) {
  3138. return this.Adapter.Update(dataSet, "Заказ_import");
  3139. }
  3140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3142. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3143. public virtual int Update(global::System.Data.DataRow dataRow) {
  3144. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3145. dataRow});
  3146. }
  3147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3149. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3150. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3151. return this.Adapter.Update(dataRows);
  3152. }
  3153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3155. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3156. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3157. public virtual int Delete(int Original_id_заказа, string Original_Состав_заказа, System.DateTime Original_Дата_заказа, System.DateTime Original_Дата_доставки, int Original_Пункт_выдачи, string Original_ФИО_клиента, int Original_Код_для_получения, string Original_Статус_заказа, global::System.Nullable<int> Original_id_сотрудника) {
  3158. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_заказа));
  3159. if ((Original_Состав_заказа == null)) {
  3160. throw new global::System.ArgumentNullException("Original_Состав_заказа");
  3161. }
  3162. else {
  3163. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Состав_заказа));
  3164. }
  3165. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_Дата_заказа));
  3166. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_Дата_доставки));
  3167. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Пункт_выдачи));
  3168. if ((Original_ФИО_клиента == null)) {
  3169. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  3170. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  3171. }
  3172. else {
  3173. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  3174. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_ФИО_клиента));
  3175. }
  3176. this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_Код_для_получения));
  3177. if ((Original_Статус_заказа == null)) {
  3178. throw new global::System.ArgumentNullException("Original_Статус_заказа");
  3179. }
  3180. else {
  3181. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Статус_заказа));
  3182. }
  3183. if ((Original_id_сотрудника.HasValue == true)) {
  3184. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  3185. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_id_сотрудника.Value));
  3186. }
  3187. else {
  3188. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  3189. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  3190. }
  3191. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3192. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3193. != global::System.Data.ConnectionState.Open)) {
  3194. this.Adapter.DeleteCommand.Connection.Open();
  3195. }
  3196. try {
  3197. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3198. return returnValue;
  3199. }
  3200. finally {
  3201. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3202. this.Adapter.DeleteCommand.Connection.Close();
  3203. }
  3204. }
  3205. }
  3206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3208. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3209. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3210. public virtual int Insert(string Состав_заказа, System.DateTime Дата_заказа, System.DateTime Дата_доставки, int Пункт_выдачи, string ФИО_клиента, int Код_для_получения, string Статус_заказа, global::System.Nullable<int> id_сотрудника) {
  3211. if ((Состав_заказа == null)) {
  3212. throw new global::System.ArgumentNullException("Состав_заказа");
  3213. }
  3214. else {
  3215. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Состав_заказа));
  3216. }
  3217. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Дата_заказа));
  3218. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(Дата_доставки));
  3219. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Пункт_выдачи));
  3220. if ((ФИО_клиента == null)) {
  3221. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  3222. }
  3223. else {
  3224. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(ФИО_клиента));
  3225. }
  3226. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(Код_для_получения));
  3227. if ((Статус_заказа == null)) {
  3228. throw new global::System.ArgumentNullException("Статус_заказа");
  3229. }
  3230. else {
  3231. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Статус_заказа));
  3232. }
  3233. if ((id_сотрудника.HasValue == true)) {
  3234. this.Adapter.InsertCommand.Parameters[7].Value = ((int)(id_сотрудника.Value));
  3235. }
  3236. else {
  3237. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  3238. }
  3239. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3240. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3241. != global::System.Data.ConnectionState.Open)) {
  3242. this.Adapter.InsertCommand.Connection.Open();
  3243. }
  3244. try {
  3245. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3246. return returnValue;
  3247. }
  3248. finally {
  3249. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3250. this.Adapter.InsertCommand.Connection.Close();
  3251. }
  3252. }
  3253. }
  3254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3256. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3257. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3258. public virtual int Update(
  3259. string Состав_заказа,
  3260. System.DateTime Дата_заказа,
  3261. System.DateTime Дата_доставки,
  3262. int Пункт_выдачи,
  3263. string ФИО_клиента,
  3264. int Код_для_получения,
  3265. string Статус_заказа,
  3266. global::System.Nullable<int> id_сотрудника,
  3267. int Original_id_заказа,
  3268. string Original_Состав_заказа,
  3269. System.DateTime Original_Дата_заказа,
  3270. System.DateTime Original_Дата_доставки,
  3271. int Original_Пункт_выдачи,
  3272. string Original_ФИО_клиента,
  3273. int Original_Код_для_получения,
  3274. string Original_Статус_заказа,
  3275. global::System.Nullable<int> Original_id_сотрудника,
  3276. int id_заказа) {
  3277. if ((Состав_заказа == null)) {
  3278. throw new global::System.ArgumentNullException("Состав_заказа");
  3279. }
  3280. else {
  3281. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Состав_заказа));
  3282. }
  3283. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(Дата_заказа));
  3284. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(Дата_доставки));
  3285. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Пункт_выдачи));
  3286. if ((ФИО_клиента == null)) {
  3287. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  3288. }
  3289. else {
  3290. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(ФИО_клиента));
  3291. }
  3292. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Код_для_получения));
  3293. if ((Статус_заказа == null)) {
  3294. throw new global::System.ArgumentNullException("Статус_заказа");
  3295. }
  3296. else {
  3297. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Статус_заказа));
  3298. }
  3299. if ((id_сотрудника.HasValue == true)) {
  3300. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(id_сотрудника.Value));
  3301. }
  3302. else {
  3303. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  3304. }
  3305. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_id_заказа));
  3306. if ((Original_Состав_заказа == null)) {
  3307. throw new global::System.ArgumentNullException("Original_Состав_заказа");
  3308. }
  3309. else {
  3310. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Состав_заказа));
  3311. }
  3312. this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(Original_Дата_заказа));
  3313. this.Adapter.UpdateCommand.Parameters[11].Value = ((System.DateTime)(Original_Дата_доставки));
  3314. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_Пункт_выдачи));
  3315. if ((Original_ФИО_клиента == null)) {
  3316. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  3317. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  3318. }
  3319. else {
  3320. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  3321. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_ФИО_клиента));
  3322. }
  3323. this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_Код_для_получения));
  3324. if ((Original_Статус_заказа == null)) {
  3325. throw new global::System.ArgumentNullException("Original_Статус_заказа");
  3326. }
  3327. else {
  3328. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Статус_заказа));
  3329. }
  3330. if ((Original_id_сотрудника.HasValue == true)) {
  3331. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  3332. this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(Original_id_сотрудника.Value));
  3333. }
  3334. else {
  3335. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  3336. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  3337. }
  3338. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(id_заказа));
  3339. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3340. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3341. != global::System.Data.ConnectionState.Open)) {
  3342. this.Adapter.UpdateCommand.Connection.Open();
  3343. }
  3344. try {
  3345. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3346. return returnValue;
  3347. }
  3348. finally {
  3349. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3350. this.Adapter.UpdateCommand.Connection.Close();
  3351. }
  3352. }
  3353. }
  3354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3356. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3357. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3358. public virtual int Update(
  3359. string Состав_заказа,
  3360. System.DateTime Дата_заказа,
  3361. System.DateTime Дата_доставки,
  3362. int Пункт_выдачи,
  3363. string ФИО_клиента,
  3364. int Код_для_получения,
  3365. string Статус_заказа,
  3366. global::System.Nullable<int> id_сотрудника,
  3367. int Original_id_заказа,
  3368. string Original_Состав_заказа,
  3369. System.DateTime Original_Дата_заказа,
  3370. System.DateTime Original_Дата_доставки,
  3371. int Original_Пункт_выдачи,
  3372. string Original_ФИО_клиента,
  3373. int Original_Код_для_получения,
  3374. string Original_Статус_заказа,
  3375. global::System.Nullable<int> Original_id_сотрудника) {
  3376. return this.Update(Состав_заказа, Дата_заказа, Дата_доставки, Пункт_выдачи, ФИО_клиента, Код_для_получения, Статус_заказа, id_сотрудника, Original_id_заказа, Original_Состав_заказа, Original_Дата_заказа, Original_Дата_доставки, Original_Пункт_выдачи, Original_ФИО_клиента, Original_Код_для_получения, Original_Статус_заказа, Original_id_сотрудника, Original_id_заказа);
  3377. }
  3378. }
  3379. /// <summary>
  3380. ///Represents the connection and commands used to retrieve and save data.
  3381. ///</summary>
  3382. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3383. [global::System.ComponentModel.ToolboxItem(true)]
  3384. [global::System.ComponentModel.DataObjectAttribute(true)]
  3385. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3386. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3387. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3388. public partial class Пункты_выдачи_importTableAdapter : global::System.ComponentModel.Component {
  3389. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3390. private global::System.Data.SqlClient.SqlConnection _connection;
  3391. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3392. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3393. private bool _clearBeforeFill;
  3394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3396. public Пункты_выдачи_importTableAdapter() {
  3397. this.ClearBeforeFill = true;
  3398. }
  3399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3401. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3402. get {
  3403. if ((this._adapter == null)) {
  3404. this.InitAdapter();
  3405. }
  3406. return this._adapter;
  3407. }
  3408. }
  3409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3411. internal global::System.Data.SqlClient.SqlConnection Connection {
  3412. get {
  3413. if ((this._connection == null)) {
  3414. this.InitConnection();
  3415. }
  3416. return this._connection;
  3417. }
  3418. set {
  3419. this._connection = value;
  3420. if ((this.Adapter.InsertCommand != null)) {
  3421. this.Adapter.InsertCommand.Connection = value;
  3422. }
  3423. if ((this.Adapter.DeleteCommand != null)) {
  3424. this.Adapter.DeleteCommand.Connection = value;
  3425. }
  3426. if ((this.Adapter.UpdateCommand != null)) {
  3427. this.Adapter.UpdateCommand.Connection = value;
  3428. }
  3429. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3430. if ((this.CommandCollection[i] != null)) {
  3431. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3432. }
  3433. }
  3434. }
  3435. }
  3436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3438. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3439. get {
  3440. return this._transaction;
  3441. }
  3442. set {
  3443. this._transaction = value;
  3444. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3445. this.CommandCollection[i].Transaction = this._transaction;
  3446. }
  3447. if (((this.Adapter != null)
  3448. && (this.Adapter.DeleteCommand != null))) {
  3449. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3450. }
  3451. if (((this.Adapter != null)
  3452. && (this.Adapter.InsertCommand != null))) {
  3453. this.Adapter.InsertCommand.Transaction = this._transaction;
  3454. }
  3455. if (((this.Adapter != null)
  3456. && (this.Adapter.UpdateCommand != null))) {
  3457. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3458. }
  3459. }
  3460. }
  3461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3463. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3464. get {
  3465. if ((this._commandCollection == null)) {
  3466. this.InitCommandCollection();
  3467. }
  3468. return this._commandCollection;
  3469. }
  3470. }
  3471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3473. public bool ClearBeforeFill {
  3474. get {
  3475. return this._clearBeforeFill;
  3476. }
  3477. set {
  3478. this._clearBeforeFill = value;
  3479. }
  3480. }
  3481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3483. private void InitAdapter() {
  3484. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3485. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3486. tableMapping.SourceTable = "Table";
  3487. tableMapping.DataSetTable = "Пункты выдачи_import";
  3488. tableMapping.ColumnMappings.Add("id_пункта", "id_пункта");
  3489. tableMapping.ColumnMappings.Add("Город", "Город");
  3490. tableMapping.ColumnMappings.Add("Улица", "Улица");
  3491. tableMapping.ColumnMappings.Add("Номер", "Номер");
  3492. tableMapping.ColumnMappings.Add("id_заказа", "id_заказа");
  3493. this._adapter.TableMappings.Add(tableMapping);
  3494. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3495. this._adapter.DeleteCommand.Connection = this.Connection;
  3496. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Пункты выдачи_import] WHERE (([id_пункта] = @Original_id_пункта) AND ((@IsNull_Город = 1 AND [Город] IS NULL) OR ([Город] = @Original_Город)) AND ((@IsNull_Улица = 1 AND [Улица] IS NULL) OR ([Улица] = @Original_Улица)) AND ((@IsNull_Номер = 1 AND [Номер] IS NULL) OR ([Номер] = @Original_Номер)) AND ((@IsNull_id_заказа = 1 AND [id_заказа] IS NULL) OR ([id_заказа] = @Original_id_заказа)))";
  3497. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3498. 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, "", "", ""));
  3499. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Город", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Город", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3500. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Город", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Город", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3501. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Улица", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Улица", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3502. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Улица", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Улица", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3503. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Номер", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3504. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3505. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_заказа", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3506. 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, "", "", ""));
  3507. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3508. this._adapter.InsertCommand.Connection = this.Connection;
  3509. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Пункты выдачи_import] ([Город], [Улица], [Номер], [id_заказа])" +
  3510. " VALUES (@Город, @Улица, @Номер, @id_заказа);\r\nSELECT id_пункта, Город, Улица, Н" +
  3511. "омер, id_заказа FROM [Пункты выдачи_import] WHERE (id_пункта = SCOPE_IDENTITY())" +
  3512. "";
  3513. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3514. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Город", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Город", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3515. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Улица", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Улица", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3516. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3517. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3518. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3519. this._adapter.UpdateCommand.Connection = this.Connection;
  3520. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Пункты выдачи_import] SET [Город] = @Город, [Улица] = @Улица, [Номер] = @Номер, [id_заказа] = @id_заказа WHERE (([id_пункта] = @Original_id_пункта) AND ((@IsNull_Город = 1 AND [Город] IS NULL) OR ([Город] = @Original_Город)) AND ((@IsNull_Улица = 1 AND [Улица] IS NULL) OR ([Улица] = @Original_Улица)) AND ((@IsNull_Номер = 1 AND [Номер] IS NULL) OR ([Номер] = @Original_Номер)) AND ((@IsNull_id_заказа = 1 AND [id_заказа] IS NULL) OR ([id_заказа] = @Original_id_заказа)));
  3521. SELECT id_пункта, Город, Улица, Номер, id_заказа FROM [Пункты выдачи_import] WHERE (id_пункта = @id_пункта)";
  3522. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3523. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Город", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Город", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3524. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Улица", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Улица", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3525. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3526. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3527. 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, "", "", ""));
  3528. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Город", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Город", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3529. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Город", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Город", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3530. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Улица", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Улица", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3531. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Улица", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Улица", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3532. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Номер", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3533. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3534. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_заказа", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3535. 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, "", "", ""));
  3536. 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, "", "", ""));
  3537. }
  3538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3540. private void InitConnection() {
  3541. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3542. this._connection.ConnectionString = global::YurevichIS31_Stroymaterialy.Properties.Settings.Default.IS31YurevichConnectionString;
  3543. }
  3544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3546. private void InitCommandCollection() {
  3547. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3548. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3549. this._commandCollection[0].Connection = this.Connection;
  3550. this._commandCollection[0].CommandText = "SELECT id_пункта, Город, Улица, Номер, id_заказа FROM dbo.[Пункты выдачи_import]";
  3551. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3552. }
  3553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3555. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3556. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3557. public virtual int Fill(IS31YurevichDataSet.Пункты_выдачи_importDataTable dataTable) {
  3558. this.Adapter.SelectCommand = this.CommandCollection[0];
  3559. if ((this.ClearBeforeFill == true)) {
  3560. dataTable.Clear();
  3561. }
  3562. int returnValue = this.Adapter.Fill(dataTable);
  3563. return returnValue;
  3564. }
  3565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3567. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3568. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3569. public virtual IS31YurevichDataSet.Пункты_выдачи_importDataTable GetData() {
  3570. this.Adapter.SelectCommand = this.CommandCollection[0];
  3571. IS31YurevichDataSet.Пункты_выдачи_importDataTable dataTable = new IS31YurevichDataSet.Пункты_выдачи_importDataTable();
  3572. this.Adapter.Fill(dataTable);
  3573. return dataTable;
  3574. }
  3575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3577. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3578. public virtual int Update(IS31YurevichDataSet.Пункты_выдачи_importDataTable dataTable) {
  3579. return this.Adapter.Update(dataTable);
  3580. }
  3581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3583. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3584. public virtual int Update(IS31YurevichDataSet dataSet) {
  3585. return this.Adapter.Update(dataSet, "Пункты выдачи_import");
  3586. }
  3587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3589. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3590. public virtual int Update(global::System.Data.DataRow dataRow) {
  3591. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3592. dataRow});
  3593. }
  3594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3596. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3597. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3598. return this.Adapter.Update(dataRows);
  3599. }
  3600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3602. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3603. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3604. public virtual int Delete(int Original_id_пункта, string Original_Город, string Original_Улица, string Original_Номер, global::System.Nullable<int> Original_id_заказа) {
  3605. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_пункта));
  3606. if ((Original_Город == null)) {
  3607. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3608. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3609. }
  3610. else {
  3611. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3612. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Город));
  3613. }
  3614. if ((Original_Улица == null)) {
  3615. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  3616. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  3617. }
  3618. else {
  3619. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  3620. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Улица));
  3621. }
  3622. if ((Original_Номер == null)) {
  3623. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  3624. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  3625. }
  3626. else {
  3627. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  3628. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Номер));
  3629. }
  3630. if ((Original_id_заказа.HasValue == true)) {
  3631. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  3632. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_id_заказа.Value));
  3633. }
  3634. else {
  3635. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  3636. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  3637. }
  3638. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3639. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3640. != global::System.Data.ConnectionState.Open)) {
  3641. this.Adapter.DeleteCommand.Connection.Open();
  3642. }
  3643. try {
  3644. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3645. return returnValue;
  3646. }
  3647. finally {
  3648. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3649. this.Adapter.DeleteCommand.Connection.Close();
  3650. }
  3651. }
  3652. }
  3653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3655. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3656. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3657. public virtual int Insert(string Город, string Улица, string Номер, global::System.Nullable<int> id_заказа) {
  3658. if ((Город == null)) {
  3659. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  3660. }
  3661. else {
  3662. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Город));
  3663. }
  3664. if ((Улица == null)) {
  3665. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3666. }
  3667. else {
  3668. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Улица));
  3669. }
  3670. if ((Номер == null)) {
  3671. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3672. }
  3673. else {
  3674. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Номер));
  3675. }
  3676. if ((id_заказа.HasValue == true)) {
  3677. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(id_заказа.Value));
  3678. }
  3679. else {
  3680. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3681. }
  3682. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3683. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3684. != global::System.Data.ConnectionState.Open)) {
  3685. this.Adapter.InsertCommand.Connection.Open();
  3686. }
  3687. try {
  3688. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3689. return returnValue;
  3690. }
  3691. finally {
  3692. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3693. this.Adapter.InsertCommand.Connection.Close();
  3694. }
  3695. }
  3696. }
  3697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3699. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3700. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3701. public virtual int Update(string Город, string Улица, string Номер, global::System.Nullable<int> id_заказа, int Original_id_пункта, string Original_Город, string Original_Улица, string Original_Номер, global::System.Nullable<int> Original_id_заказа, int id_пункта) {
  3702. if ((Город == null)) {
  3703. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  3704. }
  3705. else {
  3706. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Город));
  3707. }
  3708. if ((Улица == null)) {
  3709. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3710. }
  3711. else {
  3712. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Улица));
  3713. }
  3714. if ((Номер == null)) {
  3715. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  3716. }
  3717. else {
  3718. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Номер));
  3719. }
  3720. if ((id_заказа.HasValue == true)) {
  3721. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(id_заказа.Value));
  3722. }
  3723. else {
  3724. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  3725. }
  3726. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_id_пункта));
  3727. if ((Original_Город == null)) {
  3728. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  3729. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  3730. }
  3731. else {
  3732. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  3733. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Город));
  3734. }
  3735. if ((Original_Улица == null)) {
  3736. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  3737. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  3738. }
  3739. else {
  3740. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  3741. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Улица));
  3742. }
  3743. if ((Original_Номер == null)) {
  3744. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  3745. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  3746. }
  3747. else {
  3748. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  3749. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Номер));
  3750. }
  3751. if ((Original_id_заказа.HasValue == true)) {
  3752. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  3753. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_id_заказа.Value));
  3754. }
  3755. else {
  3756. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  3757. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  3758. }
  3759. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(id_пункта));
  3760. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3761. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3762. != global::System.Data.ConnectionState.Open)) {
  3763. this.Adapter.UpdateCommand.Connection.Open();
  3764. }
  3765. try {
  3766. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3767. return returnValue;
  3768. }
  3769. finally {
  3770. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3771. this.Adapter.UpdateCommand.Connection.Close();
  3772. }
  3773. }
  3774. }
  3775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3777. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3778. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3779. public virtual int Update(string Город, string Улица, string Номер, global::System.Nullable<int> id_заказа, int Original_id_пункта, string Original_Город, string Original_Улица, string Original_Номер, global::System.Nullable<int> Original_id_заказа) {
  3780. return this.Update(Город, Улица, Номер, id_заказа, Original_id_пункта, Original_Город, Original_Улица, Original_Номер, Original_id_заказа, Original_id_пункта);
  3781. }
  3782. }
  3783. /// <summary>
  3784. ///Represents the connection and commands used to retrieve and save data.
  3785. ///</summary>
  3786. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3787. [global::System.ComponentModel.ToolboxItem(true)]
  3788. [global::System.ComponentModel.DataObjectAttribute(true)]
  3789. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3790. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3791. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3792. public partial class Товар_import_СтройматериалыTableAdapter : global::System.ComponentModel.Component {
  3793. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3794. private global::System.Data.SqlClient.SqlConnection _connection;
  3795. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3796. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3797. private bool _clearBeforeFill;
  3798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3800. public Товар_import_СтройматериалыTableAdapter() {
  3801. this.ClearBeforeFill = true;
  3802. }
  3803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3805. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3806. get {
  3807. if ((this._adapter == null)) {
  3808. this.InitAdapter();
  3809. }
  3810. return this._adapter;
  3811. }
  3812. }
  3813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3815. internal global::System.Data.SqlClient.SqlConnection Connection {
  3816. get {
  3817. if ((this._connection == null)) {
  3818. this.InitConnection();
  3819. }
  3820. return this._connection;
  3821. }
  3822. set {
  3823. this._connection = value;
  3824. if ((this.Adapter.InsertCommand != null)) {
  3825. this.Adapter.InsertCommand.Connection = value;
  3826. }
  3827. if ((this.Adapter.DeleteCommand != null)) {
  3828. this.Adapter.DeleteCommand.Connection = value;
  3829. }
  3830. if ((this.Adapter.UpdateCommand != null)) {
  3831. this.Adapter.UpdateCommand.Connection = value;
  3832. }
  3833. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3834. if ((this.CommandCollection[i] != null)) {
  3835. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3836. }
  3837. }
  3838. }
  3839. }
  3840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3842. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3843. get {
  3844. return this._transaction;
  3845. }
  3846. set {
  3847. this._transaction = value;
  3848. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3849. this.CommandCollection[i].Transaction = this._transaction;
  3850. }
  3851. if (((this.Adapter != null)
  3852. && (this.Adapter.DeleteCommand != null))) {
  3853. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3854. }
  3855. if (((this.Adapter != null)
  3856. && (this.Adapter.InsertCommand != null))) {
  3857. this.Adapter.InsertCommand.Transaction = this._transaction;
  3858. }
  3859. if (((this.Adapter != null)
  3860. && (this.Adapter.UpdateCommand != null))) {
  3861. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3862. }
  3863. }
  3864. }
  3865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3867. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3868. get {
  3869. if ((this._commandCollection == null)) {
  3870. this.InitCommandCollection();
  3871. }
  3872. return this._commandCollection;
  3873. }
  3874. }
  3875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3877. public bool ClearBeforeFill {
  3878. get {
  3879. return this._clearBeforeFill;
  3880. }
  3881. set {
  3882. this._clearBeforeFill = value;
  3883. }
  3884. }
  3885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3887. private void InitAdapter() {
  3888. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3889. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3890. tableMapping.SourceTable = "Table";
  3891. tableMapping.DataSetTable = "Товар_import_Стройматериалы";
  3892. tableMapping.ColumnMappings.Add("id", "id");
  3893. tableMapping.ColumnMappings.Add("Артикул", "Артикул");
  3894. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  3895. tableMapping.ColumnMappings.Add("Единица_измерения", "Единица_измерения");
  3896. tableMapping.ColumnMappings.Add("Стоимость", "Стоимость");
  3897. tableMapping.ColumnMappings.Add("Размер_максимально_возможной_скидки", "Размер_максимально_возможной_скидки");
  3898. tableMapping.ColumnMappings.Add("Производитель", "Производитель");
  3899. tableMapping.ColumnMappings.Add("Поставщик", "Поставщик");
  3900. tableMapping.ColumnMappings.Add("Категория_товара", "Категория_товара");
  3901. tableMapping.ColumnMappings.Add("Действующая_скидка", "Действующая_скидка");
  3902. tableMapping.ColumnMappings.Add("Кол_во_на_складе", "Кол_во_на_складе");
  3903. tableMapping.ColumnMappings.Add("Описание", "Описание");
  3904. tableMapping.ColumnMappings.Add("Изображение", "Изображение");
  3905. tableMapping.ColumnMappings.Add("id_заказа", "id_заказа");
  3906. this._adapter.TableMappings.Add(tableMapping);
  3907. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3908. this._adapter.DeleteCommand.Connection = this.Connection;
  3909. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Товар_import_Стройматериалы] WHERE (([id] = @Original_id) AND " +
  3910. "((@IsNull_Артикул = 1 AND [Артикул] IS NULL) OR ([Артикул] = @Original_Артикул))" +
  3911. " AND ((@IsNull_Наименование = 1 AND [Наименование] IS NULL) OR ([Наименование] =" +
  3912. " @Original_Наименование)) AND ((@IsNull_Единица_измерения = 1 AND [Единица_измер" +
  3913. "ения] IS NULL) OR ([Единица_измерения] = @Original_Единица_измерения)) AND ((@Is" +
  3914. "Null_Стоимость = 1 AND [Стоимость] IS NULL) OR ([Стоимость] = @Original_Стоимост" +
  3915. "ь)) AND ((@IsNull_Размер_максимально_возможной_скидки = 1 AND [Размер_максимальн" +
  3916. "о_возможной_скидки] IS NULL) OR ([Размер_максимально_возможной_скидки] = @Origin" +
  3917. "al_Размер_максимально_возможной_скидки)) AND ((@IsNull_Производитель = 1 AND [Пр" +
  3918. "оизводитель] IS NULL) OR ([Производитель] = @Original_Производитель)) AND ((@IsN" +
  3919. "ull_Поставщик = 1 AND [Поставщик] IS NULL) OR ([Поставщик] = @Original_Поставщик" +
  3920. ")) AND ((@IsNull_Категория_товара = 1 AND [Категория_товара] IS NULL) OR ([Катег" +
  3921. "ория_товара] = @Original_Категория_товара)) AND ((@IsNull_Действующая_скидка = 1" +
  3922. " AND [Действующая_скидка] IS NULL) OR ([Действующая_скидка] = @Original_Действую" +
  3923. "щая_скидка)) AND ((@IsNull_Кол_во_на_складе = 1 AND [Кол_во_на_складе] IS NULL) " +
  3924. "OR ([Кол_во_на_складе] = @Original_Кол_во_на_складе)) AND ((@IsNull_Описание = 1" +
  3925. " AND [Описание] IS NULL) OR ([Описание] = @Original_Описание)) AND ((@IsNull_Изо" +
  3926. "бражение = 1 AND [Изображение] IS NULL) OR ([Изображение] = @Original_Изображени" +
  3927. "е)) AND ((@IsNull_id_заказа = 1 AND [id_заказа] IS NULL) OR ([id_заказа] = @Orig" +
  3928. "inal_id_заказа)))";
  3929. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3930. 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, "", "", ""));
  3931. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Артикул", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3932. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Артикул", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3933. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Наименование", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3934. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3935. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Единица_измерения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Единица_измерения", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3936. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Единица_измерения", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Единица_измерения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3937. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Стоимость", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3938. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3939. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Размер_максимально_возможной_скидки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Размер_максимально_возможной_скидки", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3940. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Размер_максимально_возможной_скидки", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Размер_максимально_возможной_скидки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3941. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Производитель", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Производитель", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3942. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Производитель", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Производитель", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3943. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Поставщик", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Поставщик", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3944. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Поставщик", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Поставщик", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3945. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Категория_товара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Категория_товара", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3946. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Категория_товара", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Категория_товара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3947. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Действующая_скидка", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3948. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3949. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Кол_во_на_складе", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Кол_во_на_складе", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3950. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Кол_во_на_складе", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Кол_во_на_складе", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3951. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Описание", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Описание", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3952. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Описание", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Описание", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3953. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Изображение", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Изображение", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3954. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Изображение", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3955. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_заказа", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3956. 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, "", "", ""));
  3957. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3958. this._adapter.InsertCommand.Connection = this.Connection;
  3959. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Товар_import_Стройматериалы] ([Артикул], [Наименование], [Единица_измерения], [Стоимость], [Размер_максимально_возможной_скидки], [Производитель], [Поставщик], [Категория_товара], [Действующая_скидка], [Кол_во_на_складе], [Описание], [Изображение], [id_заказа]) VALUES (@Артикул, @Наименование, @Единица_измерения, @Стоимость, @Размер_максимально_возможной_скидки, @Производитель, @Поставщик, @Категория_товара, @Действующая_скидка, @Кол_во_на_складе, @Описание, @Изображение, @id_заказа);
  3960. SELECT id, Артикул, Наименование, Единица_измерения, Стоимость, Размер_максимально_возможной_скидки, Производитель, Поставщик, Категория_товара, Действующая_скидка, Кол_во_на_складе, Описание, Изображение, id_заказа FROM Товар_import_Стройматериалы WHERE (id = SCOPE_IDENTITY())";
  3961. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3962. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Артикул", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3963. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3964. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Единица_измерения", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Единица_измерения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3965. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3966. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Размер_максимально_возможной_скидки", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Размер_максимально_возможной_скидки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3967. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Производитель", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Производитель", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3968. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Поставщик", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Поставщик", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3969. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Категория_товара", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Категория_товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3970. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3971. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Кол_во_на_складе", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Кол_во_на_складе", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3972. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Описание", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Описание", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3973. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3974. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3975. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3976. this._adapter.UpdateCommand.Connection = this.Connection;
  3977. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Товар_import_Стройматериалы] SET [Артикул] = @Артикул, [Наименовани" +
  3978. "е] = @Наименование, [Единица_измерения] = @Единица_измерения, [Стоимость] = @Сто" +
  3979. "имость, [Размер_максимально_возможной_скидки] = @Размер_максимально_возможной_ск" +
  3980. "идки, [Производитель] = @Производитель, [Поставщик] = @Поставщик, [Категория_тов" +
  3981. "ара] = @Категория_товара, [Действующая_скидка] = @Действующая_скидка, [Кол_во_на" +
  3982. "_складе] = @Кол_во_на_складе, [Описание] = @Описание, [Изображение] = @Изображен" +
  3983. "ие, [id_заказа] = @id_заказа WHERE (([id] = @Original_id) AND ((@IsNull_Артикул " +
  3984. "= 1 AND [Артикул] IS NULL) OR ([Артикул] = @Original_Артикул)) AND ((@IsNull_Наи" +
  3985. "менование = 1 AND [Наименование] IS NULL) OR ([Наименование] = @Original_Наимено" +
  3986. "вание)) AND ((@IsNull_Единица_измерения = 1 AND [Единица_измерения] IS NULL) OR " +
  3987. "([Единица_измерения] = @Original_Единица_измерения)) AND ((@IsNull_Стоимость = 1" +
  3988. " AND [Стоимость] IS NULL) OR ([Стоимость] = @Original_Стоимость)) AND ((@IsNull_" +
  3989. "Размер_максимально_возможной_скидки = 1 AND [Размер_максимально_возможной_скидки" +
  3990. "] IS NULL) OR ([Размер_максимально_возможной_скидки] = @Original_Размер_максимал" +
  3991. "ьно_возможной_скидки)) AND ((@IsNull_Производитель = 1 AND [Производитель] IS NU" +
  3992. "LL) OR ([Производитель] = @Original_Производитель)) AND ((@IsNull_Поставщик = 1 " +
  3993. "AND [Поставщик] IS NULL) OR ([Поставщик] = @Original_Поставщик)) AND ((@IsNull_К" +
  3994. "атегория_товара = 1 AND [Категория_товара] IS NULL) OR ([Категория_товара] = @Or" +
  3995. "iginal_Категория_товара)) AND ((@IsNull_Действующая_скидка = 1 AND [Действующая_" +
  3996. "скидка] IS NULL) OR ([Действующая_скидка] = @Original_Действующая_скидка)) AND (" +
  3997. "(@IsNull_Кол_во_на_складе = 1 AND [Кол_во_на_складе] IS NULL) OR ([Кол_во_на_скл" +
  3998. "аде] = @Original_Кол_во_на_складе)) AND ((@IsNull_Описание = 1 AND [Описание] IS" +
  3999. " NULL) OR ([Описание] = @Original_Описание)) AND ((@IsNull_Изображение = 1 AND [" +
  4000. "Изображение] IS NULL) OR ([Изображение] = @Original_Изображение)) AND ((@IsNull_" +
  4001. "id_заказа = 1 AND [id_заказа] IS NULL) OR ([id_заказа] = @Original_id_заказа)));" +
  4002. "\r\nSELECT id, Артикул, Наименование, Единица_измерения, Стоимость, Размер_максима" +
  4003. "льно_возможной_скидки, Производитель, Поставщик, Категория_товара, Действующая_с" +
  4004. "кидка, Кол_во_на_складе, Описание, Изображение, id_заказа FROM Товар_import_Стро" +
  4005. "йматериалы WHERE (id = @id)";
  4006. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4007. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Артикул", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4008. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4009. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Единица_измерения", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Единица_измерения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4010. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4011. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Размер_максимально_возможной_скидки", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Размер_максимально_возможной_скидки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4012. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Производитель", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Производитель", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4013. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Поставщик", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Поставщик", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4014. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Категория_товара", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Категория_товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4015. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4016. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Кол_во_на_складе", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Кол_во_на_складе", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4017. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Описание", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Описание", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4018. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4019. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4020. 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, "", "", ""));
  4021. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Артикул", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4022. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Артикул", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4023. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Наименование", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4024. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4025. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Единица_измерения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Единица_измерения", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4026. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Единица_измерения", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Единица_измерения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4027. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Стоимость", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4028. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4029. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Размер_максимально_возможной_скидки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Размер_максимально_возможной_скидки", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4030. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Размер_максимально_возможной_скидки", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Размер_максимально_возможной_скидки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4031. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Производитель", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Производитель", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4032. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Производитель", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Производитель", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4033. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Поставщик", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Поставщик", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4034. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Поставщик", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Поставщик", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4035. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Категория_товара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Категория_товара", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4036. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Категория_товара", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Категория_товара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4037. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Действующая_скидка", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4038. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4039. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Кол_во_на_складе", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Кол_во_на_складе", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4040. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Кол_во_на_складе", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Кол_во_на_складе", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4041. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Описание", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Описание", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4042. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Описание", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Описание", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4043. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Изображение", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Изображение", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4044. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Изображение", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4045. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_заказа", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4046. 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, "", "", ""));
  4047. 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, "", "", ""));
  4048. }
  4049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4051. private void InitConnection() {
  4052. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4053. this._connection.ConnectionString = global::YurevichIS31_Stroymaterialy.Properties.Settings.Default.IS31YurevichConnectionString;
  4054. }
  4055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4057. private void InitCommandCollection() {
  4058. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4059. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4060. this._commandCollection[0].Connection = this.Connection;
  4061. this._commandCollection[0].CommandText = "SELECT id, Артикул, Наименование, Единица_измерения, Стоимость, Размер_максимальн" +
  4062. "о_возможной_скидки, Производитель, Поставщик, Категория_товара, Действующая_скид" +
  4063. "ка, Кол_во_на_складе, Описание, Изображение, id_заказа FROM dbo.Товар_import_Стр" +
  4064. "ойматериалы";
  4065. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4066. }
  4067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4069. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4070. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4071. public virtual int Fill(IS31YurevichDataSet.Товар_import_СтройматериалыDataTable dataTable) {
  4072. this.Adapter.SelectCommand = this.CommandCollection[0];
  4073. if ((this.ClearBeforeFill == true)) {
  4074. dataTable.Clear();
  4075. }
  4076. int returnValue = this.Adapter.Fill(dataTable);
  4077. return returnValue;
  4078. }
  4079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4081. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4082. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4083. public virtual IS31YurevichDataSet.Товар_import_СтройматериалыDataTable GetData() {
  4084. this.Adapter.SelectCommand = this.CommandCollection[0];
  4085. IS31YurevichDataSet.Товар_import_СтройматериалыDataTable dataTable = new IS31YurevichDataSet.Товар_import_СтройматериалыDataTable();
  4086. this.Adapter.Fill(dataTable);
  4087. return dataTable;
  4088. }
  4089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4091. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4092. public virtual int Update(IS31YurevichDataSet.Товар_import_СтройматериалыDataTable dataTable) {
  4093. return this.Adapter.Update(dataTable);
  4094. }
  4095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4097. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4098. public virtual int Update(IS31YurevichDataSet dataSet) {
  4099. return this.Adapter.Update(dataSet, "Товар_import_Стройматериалы");
  4100. }
  4101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4103. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4104. public virtual int Update(global::System.Data.DataRow dataRow) {
  4105. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4106. dataRow});
  4107. }
  4108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4110. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4111. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4112. return this.Adapter.Update(dataRows);
  4113. }
  4114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4116. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4117. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4118. public virtual int Delete(int Original_id, string Original_Артикул, string Original_Наименование, string Original_Единица_измерения, global::System.Nullable<decimal> Original_Стоимость, string Original_Размер_максимально_возможной_скидки, string Original_Производитель, string Original_Поставщик, string Original_Категория_товара, string Original_Действующая_скидка, string Original_Кол_во_на_складе, string Original_Описание, string Original_Изображение, global::System.Nullable<int> Original_id_заказа) {
  4119. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  4120. if ((Original_Артикул == null)) {
  4121. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4122. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4123. }
  4124. else {
  4125. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4126. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Артикул));
  4127. }
  4128. if ((Original_Наименование == null)) {
  4129. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4130. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4131. }
  4132. else {
  4133. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4134. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Наименование));
  4135. }
  4136. if ((Original_Единица_измерения == null)) {
  4137. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4138. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4139. }
  4140. else {
  4141. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4142. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Единица_измерения));
  4143. }
  4144. if ((Original_Стоимость.HasValue == true)) {
  4145. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  4146. this.Adapter.DeleteCommand.Parameters[8].Value = ((decimal)(Original_Стоимость.Value));
  4147. }
  4148. else {
  4149. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  4150. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  4151. }
  4152. if ((Original_Размер_максимально_возможной_скидки == null)) {
  4153. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  4154. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  4155. }
  4156. else {
  4157. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  4158. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Размер_максимально_возможной_скидки));
  4159. }
  4160. if ((Original_Производитель == null)) {
  4161. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  4162. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  4163. }
  4164. else {
  4165. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  4166. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Производитель));
  4167. }
  4168. if ((Original_Поставщик == null)) {
  4169. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  4170. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  4171. }
  4172. else {
  4173. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  4174. this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_Поставщик));
  4175. }
  4176. if ((Original_Категория_товара == null)) {
  4177. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
  4178. this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
  4179. }
  4180. else {
  4181. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
  4182. this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_Категория_товара));
  4183. }
  4184. if ((Original_Действующая_скидка == null)) {
  4185. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
  4186. this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
  4187. }
  4188. else {
  4189. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
  4190. this.Adapter.DeleteCommand.Parameters[18].Value = ((string)(Original_Действующая_скидка));
  4191. }
  4192. if ((Original_Кол_во_на_складе == null)) {
  4193. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
  4194. this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
  4195. }
  4196. else {
  4197. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
  4198. this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_Кол_во_на_складе));
  4199. }
  4200. if ((Original_Описание == null)) {
  4201. this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
  4202. this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
  4203. }
  4204. else {
  4205. this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
  4206. this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_Описание));
  4207. }
  4208. if ((Original_Изображение == null)) {
  4209. this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1));
  4210. this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value;
  4211. }
  4212. else {
  4213. this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0));
  4214. this.Adapter.DeleteCommand.Parameters[24].Value = ((string)(Original_Изображение));
  4215. }
  4216. if ((Original_id_заказа.HasValue == true)) {
  4217. this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0));
  4218. this.Adapter.DeleteCommand.Parameters[26].Value = ((int)(Original_id_заказа.Value));
  4219. }
  4220. else {
  4221. this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1));
  4222. this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value;
  4223. }
  4224. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4225. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4226. != global::System.Data.ConnectionState.Open)) {
  4227. this.Adapter.DeleteCommand.Connection.Open();
  4228. }
  4229. try {
  4230. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4231. return returnValue;
  4232. }
  4233. finally {
  4234. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4235. this.Adapter.DeleteCommand.Connection.Close();
  4236. }
  4237. }
  4238. }
  4239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4241. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4242. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4243. public virtual int Insert(string Артикул, string Наименование, string Единица_измерения, global::System.Nullable<decimal> Стоимость, string Размер_максимально_возможной_скидки, string Производитель, string Поставщик, string Категория_товара, string Действующая_скидка, string Кол_во_на_складе, string Описание, string Изображение, global::System.Nullable<int> id_заказа) {
  4244. if ((Артикул == null)) {
  4245. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4246. }
  4247. else {
  4248. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Артикул));
  4249. }
  4250. if ((Наименование == null)) {
  4251. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4252. }
  4253. else {
  4254. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  4255. }
  4256. if ((Единица_измерения == null)) {
  4257. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4258. }
  4259. else {
  4260. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Единица_измерения));
  4261. }
  4262. if ((Стоимость.HasValue == true)) {
  4263. this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(Стоимость.Value));
  4264. }
  4265. else {
  4266. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4267. }
  4268. if ((Размер_максимально_возможной_скидки == null)) {
  4269. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  4270. }
  4271. else {
  4272. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Размер_максимально_возможной_скидки));
  4273. }
  4274. if ((Производитель == null)) {
  4275. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  4276. }
  4277. else {
  4278. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Производитель));
  4279. }
  4280. if ((Поставщик == null)) {
  4281. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  4282. }
  4283. else {
  4284. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Поставщик));
  4285. }
  4286. if ((Категория_товара == null)) {
  4287. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  4288. }
  4289. else {
  4290. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Категория_товара));
  4291. }
  4292. if ((Действующая_скидка == null)) {
  4293. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  4294. }
  4295. else {
  4296. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(Действующая_скидка));
  4297. }
  4298. if ((Кол_во_на_складе == null)) {
  4299. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  4300. }
  4301. else {
  4302. this.Adapter.InsertCommand.Parameters[9].Value = ((string)(Кол_во_на_складе));
  4303. }
  4304. if ((Описание == null)) {
  4305. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  4306. }
  4307. else {
  4308. this.Adapter.InsertCommand.Parameters[10].Value = ((string)(Описание));
  4309. }
  4310. if ((Изображение == null)) {
  4311. this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
  4312. }
  4313. else {
  4314. this.Adapter.InsertCommand.Parameters[11].Value = ((string)(Изображение));
  4315. }
  4316. if ((id_заказа.HasValue == true)) {
  4317. this.Adapter.InsertCommand.Parameters[12].Value = ((int)(id_заказа.Value));
  4318. }
  4319. else {
  4320. this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
  4321. }
  4322. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4323. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4324. != global::System.Data.ConnectionState.Open)) {
  4325. this.Adapter.InsertCommand.Connection.Open();
  4326. }
  4327. try {
  4328. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4329. return returnValue;
  4330. }
  4331. finally {
  4332. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4333. this.Adapter.InsertCommand.Connection.Close();
  4334. }
  4335. }
  4336. }
  4337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4339. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4340. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4341. public virtual int Update(
  4342. string Артикул,
  4343. string Наименование,
  4344. string Единица_измерения,
  4345. global::System.Nullable<decimal> Стоимость,
  4346. string Размер_максимально_возможной_скидки,
  4347. string Производитель,
  4348. string Поставщик,
  4349. string Категория_товара,
  4350. string Действующая_скидка,
  4351. string Кол_во_на_складе,
  4352. string Описание,
  4353. string Изображение,
  4354. global::System.Nullable<int> id_заказа,
  4355. int Original_id,
  4356. string Original_Артикул,
  4357. string Original_Наименование,
  4358. string Original_Единица_измерения,
  4359. global::System.Nullable<decimal> Original_Стоимость,
  4360. string Original_Размер_максимально_возможной_скидки,
  4361. string Original_Производитель,
  4362. string Original_Поставщик,
  4363. string Original_Категория_товара,
  4364. string Original_Действующая_скидка,
  4365. string Original_Кол_во_на_складе,
  4366. string Original_Описание,
  4367. string Original_Изображение,
  4368. global::System.Nullable<int> Original_id_заказа,
  4369. int id) {
  4370. if ((Артикул == null)) {
  4371. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4372. }
  4373. else {
  4374. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Артикул));
  4375. }
  4376. if ((Наименование == null)) {
  4377. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4378. }
  4379. else {
  4380. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование));
  4381. }
  4382. if ((Единица_измерения == null)) {
  4383. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4384. }
  4385. else {
  4386. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Единица_измерения));
  4387. }
  4388. if ((Стоимость.HasValue == true)) {
  4389. this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(Стоимость.Value));
  4390. }
  4391. else {
  4392. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4393. }
  4394. if ((Размер_максимально_возможной_скидки == null)) {
  4395. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4396. }
  4397. else {
  4398. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Размер_максимально_возможной_скидки));
  4399. }
  4400. if ((Производитель == null)) {
  4401. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  4402. }
  4403. else {
  4404. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Производитель));
  4405. }
  4406. if ((Поставщик == null)) {
  4407. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  4408. }
  4409. else {
  4410. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Поставщик));
  4411. }
  4412. if ((Категория_товара == null)) {
  4413. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  4414. }
  4415. else {
  4416. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Категория_товара));
  4417. }
  4418. if ((Действующая_скидка == null)) {
  4419. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  4420. }
  4421. else {
  4422. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Действующая_скидка));
  4423. }
  4424. if ((Кол_во_на_складе == null)) {
  4425. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  4426. }
  4427. else {
  4428. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Кол_во_на_складе));
  4429. }
  4430. if ((Описание == null)) {
  4431. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  4432. }
  4433. else {
  4434. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Описание));
  4435. }
  4436. if ((Изображение == null)) {
  4437. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  4438. }
  4439. else {
  4440. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Изображение));
  4441. }
  4442. if ((id_заказа.HasValue == true)) {
  4443. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(id_заказа.Value));
  4444. }
  4445. else {
  4446. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  4447. }
  4448. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_id));
  4449. if ((Original_Артикул == null)) {
  4450. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  4451. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  4452. }
  4453. else {
  4454. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  4455. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Артикул));
  4456. }
  4457. if ((Original_Наименование == null)) {
  4458. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  4459. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  4460. }
  4461. else {
  4462. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  4463. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Наименование));
  4464. }
  4465. if ((Original_Единица_измерения == null)) {
  4466. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  4467. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  4468. }
  4469. else {
  4470. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  4471. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Единица_измерения));
  4472. }
  4473. if ((Original_Стоимость.HasValue == true)) {
  4474. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  4475. this.Adapter.UpdateCommand.Parameters[21].Value = ((decimal)(Original_Стоимость.Value));
  4476. }
  4477. else {
  4478. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  4479. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  4480. }
  4481. if ((Original_Размер_максимально_возможной_скидки == null)) {
  4482. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
  4483. this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
  4484. }
  4485. else {
  4486. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
  4487. this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_Размер_максимально_возможной_скидки));
  4488. }
  4489. if ((Original_Производитель == null)) {
  4490. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
  4491. this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
  4492. }
  4493. else {
  4494. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
  4495. this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_Производитель));
  4496. }
  4497. if ((Original_Поставщик == null)) {
  4498. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
  4499. this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
  4500. }
  4501. else {
  4502. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
  4503. this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_Поставщик));
  4504. }
  4505. if ((Original_Категория_товара == null)) {
  4506. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
  4507. this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
  4508. }
  4509. else {
  4510. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
  4511. this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_Категория_товара));
  4512. }
  4513. if ((Original_Действующая_скидка == null)) {
  4514. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
  4515. this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
  4516. }
  4517. else {
  4518. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
  4519. this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_Действующая_скидка));
  4520. }
  4521. if ((Original_Кол_во_на_складе == null)) {
  4522. this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
  4523. this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
  4524. }
  4525. else {
  4526. this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
  4527. this.Adapter.UpdateCommand.Parameters[33].Value = ((string)(Original_Кол_во_на_складе));
  4528. }
  4529. if ((Original_Описание == null)) {
  4530. this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1));
  4531. this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
  4532. }
  4533. else {
  4534. this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
  4535. this.Adapter.UpdateCommand.Parameters[35].Value = ((string)(Original_Описание));
  4536. }
  4537. if ((Original_Изображение == null)) {
  4538. this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1));
  4539. this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value;
  4540. }
  4541. else {
  4542. this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0));
  4543. this.Adapter.UpdateCommand.Parameters[37].Value = ((string)(Original_Изображение));
  4544. }
  4545. if ((Original_id_заказа.HasValue == true)) {
  4546. this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0));
  4547. this.Adapter.UpdateCommand.Parameters[39].Value = ((int)(Original_id_заказа.Value));
  4548. }
  4549. else {
  4550. this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1));
  4551. this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value;
  4552. }
  4553. this.Adapter.UpdateCommand.Parameters[40].Value = ((int)(id));
  4554. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4555. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4556. != global::System.Data.ConnectionState.Open)) {
  4557. this.Adapter.UpdateCommand.Connection.Open();
  4558. }
  4559. try {
  4560. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4561. return returnValue;
  4562. }
  4563. finally {
  4564. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4565. this.Adapter.UpdateCommand.Connection.Close();
  4566. }
  4567. }
  4568. }
  4569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4571. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4572. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4573. public virtual int Update(
  4574. string Артикул,
  4575. string Наименование,
  4576. string Единица_измерения,
  4577. global::System.Nullable<decimal> Стоимость,
  4578. string Размер_максимально_возможной_скидки,
  4579. string Производитель,
  4580. string Поставщик,
  4581. string Категория_товара,
  4582. string Действующая_скидка,
  4583. string Кол_во_на_складе,
  4584. string Описание,
  4585. string Изображение,
  4586. global::System.Nullable<int> id_заказа,
  4587. int Original_id,
  4588. string Original_Артикул,
  4589. string Original_Наименование,
  4590. string Original_Единица_измерения,
  4591. global::System.Nullable<decimal> Original_Стоимость,
  4592. string Original_Размер_максимально_возможной_скидки,
  4593. string Original_Производитель,
  4594. string Original_Поставщик,
  4595. string Original_Категория_товара,
  4596. string Original_Действующая_скидка,
  4597. string Original_Кол_во_на_складе,
  4598. string Original_Описание,
  4599. string Original_Изображение,
  4600. global::System.Nullable<int> Original_id_заказа) {
  4601. return this.Update(Артикул, Наименование, Единица_измерения, Стоимость, Размер_максимально_возможной_скидки, Производитель, Поставщик, Категория_товара, Действующая_скидка, Кол_во_на_складе, Описание, Изображение, id_заказа, Original_id, Original_Артикул, Original_Наименование, Original_Единица_измерения, Original_Стоимость, Original_Размер_максимально_возможной_скидки, Original_Производитель, Original_Поставщик, Original_Категория_товара, Original_Действующая_скидка, Original_Кол_во_на_складе, Original_Описание, Original_Изображение, Original_id_заказа, Original_id);
  4602. }
  4603. }
  4604. /// <summary>
  4605. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  4606. ///</summary>
  4607. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4608. [global::System.ComponentModel.ToolboxItem(true)]
  4609. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  4610. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4611. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  4612. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  4613. private UpdateOrderOption _updateOrder;
  4614. private user_importTableAdapter _user_importTableAdapter;
  4615. private Заказ_importTableAdapter _заказ_importTableAdapter;
  4616. private Пункты_выдачи_importTableAdapter _пункты_выдачи_importTableAdapter;
  4617. private Товар_import_СтройматериалыTableAdapter _товар_import_СтройматериалыTableAdapter;
  4618. private bool _backupDataSetBeforeUpdate;
  4619. private global::System.Data.IDbConnection _connection;
  4620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4622. public UpdateOrderOption UpdateOrder {
  4623. get {
  4624. return this._updateOrder;
  4625. }
  4626. set {
  4627. this._updateOrder = value;
  4628. }
  4629. }
  4630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4632. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4633. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4634. "a", "System.Drawing.Design.UITypeEditor")]
  4635. public user_importTableAdapter user_importTableAdapter {
  4636. get {
  4637. return this._user_importTableAdapter;
  4638. }
  4639. set {
  4640. this._user_importTableAdapter = value;
  4641. }
  4642. }
  4643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4645. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4646. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4647. "a", "System.Drawing.Design.UITypeEditor")]
  4648. public Заказ_importTableAdapter Заказ_importTableAdapter {
  4649. get {
  4650. return this._заказ_importTableAdapter;
  4651. }
  4652. set {
  4653. this._заказ_importTableAdapter = value;
  4654. }
  4655. }
  4656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4658. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4659. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4660. "a", "System.Drawing.Design.UITypeEditor")]
  4661. public Пункты_выдачи_importTableAdapter Пункты_выдачи_importTableAdapter {
  4662. get {
  4663. return this._пункты_выдачи_importTableAdapter;
  4664. }
  4665. set {
  4666. this._пункты_выдачи_importTableAdapter = value;
  4667. }
  4668. }
  4669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4671. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4672. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4673. "a", "System.Drawing.Design.UITypeEditor")]
  4674. public Товар_import_СтройматериалыTableAdapter Товар_import_СтройматериалыTableAdapter {
  4675. get {
  4676. return this._товар_import_СтройматериалыTableAdapter;
  4677. }
  4678. set {
  4679. this._товар_import_СтройматериалыTableAdapter = value;
  4680. }
  4681. }
  4682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4684. public bool BackupDataSetBeforeUpdate {
  4685. get {
  4686. return this._backupDataSetBeforeUpdate;
  4687. }
  4688. set {
  4689. this._backupDataSetBeforeUpdate = value;
  4690. }
  4691. }
  4692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4694. [global::System.ComponentModel.Browsable(false)]
  4695. public global::System.Data.IDbConnection Connection {
  4696. get {
  4697. if ((this._connection != null)) {
  4698. return this._connection;
  4699. }
  4700. if (((this._user_importTableAdapter != null)
  4701. && (this._user_importTableAdapter.Connection != null))) {
  4702. return this._user_importTableAdapter.Connection;
  4703. }
  4704. if (((this._заказ_importTableAdapter != null)
  4705. && (this._заказ_importTableAdapter.Connection != null))) {
  4706. return this._заказ_importTableAdapter.Connection;
  4707. }
  4708. if (((this._пункты_выдачи_importTableAdapter != null)
  4709. && (this._пункты_выдачи_importTableAdapter.Connection != null))) {
  4710. return this._пункты_выдачи_importTableAdapter.Connection;
  4711. }
  4712. if (((this._товар_import_СтройматериалыTableAdapter != null)
  4713. && (this._товар_import_СтройматериалыTableAdapter.Connection != null))) {
  4714. return this._товар_import_СтройматериалыTableAdapter.Connection;
  4715. }
  4716. return null;
  4717. }
  4718. set {
  4719. this._connection = value;
  4720. }
  4721. }
  4722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4724. [global::System.ComponentModel.Browsable(false)]
  4725. public int TableAdapterInstanceCount {
  4726. get {
  4727. int count = 0;
  4728. if ((this._user_importTableAdapter != null)) {
  4729. count = (count + 1);
  4730. }
  4731. if ((this._заказ_importTableAdapter != null)) {
  4732. count = (count + 1);
  4733. }
  4734. if ((this._пункты_выдачи_importTableAdapter != null)) {
  4735. count = (count + 1);
  4736. }
  4737. if ((this._товар_import_СтройматериалыTableAdapter != null)) {
  4738. count = (count + 1);
  4739. }
  4740. return count;
  4741. }
  4742. }
  4743. /// <summary>
  4744. ///Update rows in top-down order.
  4745. ///</summary>
  4746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4748. private int UpdateUpdatedRows(IS31YurevichDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4749. int result = 0;
  4750. if ((this._user_importTableAdapter != null)) {
  4751. global::System.Data.DataRow[] updatedRows = dataSet.user_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4752. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4753. if (((updatedRows != null)
  4754. && (0 < updatedRows.Length))) {
  4755. result = (result + this._user_importTableAdapter.Update(updatedRows));
  4756. allChangedRows.AddRange(updatedRows);
  4757. }
  4758. }
  4759. if ((this._заказ_importTableAdapter != null)) {
  4760. global::System.Data.DataRow[] updatedRows = dataSet.Заказ_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4761. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4762. if (((updatedRows != null)
  4763. && (0 < updatedRows.Length))) {
  4764. result = (result + this._заказ_importTableAdapter.Update(updatedRows));
  4765. allChangedRows.AddRange(updatedRows);
  4766. }
  4767. }
  4768. if ((this._пункты_выдачи_importTableAdapter != null)) {
  4769. global::System.Data.DataRow[] updatedRows = dataSet.Пункты_выдачи_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4770. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4771. if (((updatedRows != null)
  4772. && (0 < updatedRows.Length))) {
  4773. result = (result + this._пункты_выдачи_importTableAdapter.Update(updatedRows));
  4774. allChangedRows.AddRange(updatedRows);
  4775. }
  4776. }
  4777. if ((this._товар_import_СтройматериалыTableAdapter != null)) {
  4778. global::System.Data.DataRow[] updatedRows = dataSet.Товар_import_Стройматериалы.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4779. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4780. if (((updatedRows != null)
  4781. && (0 < updatedRows.Length))) {
  4782. result = (result + this._товар_import_СтройматериалыTableAdapter.Update(updatedRows));
  4783. allChangedRows.AddRange(updatedRows);
  4784. }
  4785. }
  4786. return result;
  4787. }
  4788. /// <summary>
  4789. ///Insert rows in top-down order.
  4790. ///</summary>
  4791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4793. private int UpdateInsertedRows(IS31YurevichDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4794. int result = 0;
  4795. if ((this._user_importTableAdapter != null)) {
  4796. global::System.Data.DataRow[] addedRows = dataSet.user_import.Select(null, null, global::System.Data.DataViewRowState.Added);
  4797. if (((addedRows != null)
  4798. && (0 < addedRows.Length))) {
  4799. result = (result + this._user_importTableAdapter.Update(addedRows));
  4800. allAddedRows.AddRange(addedRows);
  4801. }
  4802. }
  4803. if ((this._заказ_importTableAdapter != null)) {
  4804. global::System.Data.DataRow[] addedRows = dataSet.Заказ_import.Select(null, null, global::System.Data.DataViewRowState.Added);
  4805. if (((addedRows != null)
  4806. && (0 < addedRows.Length))) {
  4807. result = (result + this._заказ_importTableAdapter.Update(addedRows));
  4808. allAddedRows.AddRange(addedRows);
  4809. }
  4810. }
  4811. if ((this._пункты_выдачи_importTableAdapter != null)) {
  4812. global::System.Data.DataRow[] addedRows = dataSet.Пункты_выдачи_import.Select(null, null, global::System.Data.DataViewRowState.Added);
  4813. if (((addedRows != null)
  4814. && (0 < addedRows.Length))) {
  4815. result = (result + this._пункты_выдачи_importTableAdapter.Update(addedRows));
  4816. allAddedRows.AddRange(addedRows);
  4817. }
  4818. }
  4819. if ((this._товар_import_СтройматериалыTableAdapter != null)) {
  4820. global::System.Data.DataRow[] addedRows = dataSet.Товар_import_Стройматериалы.Select(null, null, global::System.Data.DataViewRowState.Added);
  4821. if (((addedRows != null)
  4822. && (0 < addedRows.Length))) {
  4823. result = (result + this._товар_import_СтройматериалыTableAdapter.Update(addedRows));
  4824. allAddedRows.AddRange(addedRows);
  4825. }
  4826. }
  4827. return result;
  4828. }
  4829. /// <summary>
  4830. ///Delete rows in bottom-up order.
  4831. ///</summary>
  4832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4834. private int UpdateDeletedRows(IS31YurevichDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  4835. int result = 0;
  4836. if ((this._товар_import_СтройматериалыTableAdapter != null)) {
  4837. global::System.Data.DataRow[] deletedRows = dataSet.Товар_import_Стройматериалы.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4838. if (((deletedRows != null)
  4839. && (0 < deletedRows.Length))) {
  4840. result = (result + this._товар_import_СтройматериалыTableAdapter.Update(deletedRows));
  4841. allChangedRows.AddRange(deletedRows);
  4842. }
  4843. }
  4844. if ((this._пункты_выдачи_importTableAdapter != null)) {
  4845. global::System.Data.DataRow[] deletedRows = dataSet.Пункты_выдачи_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4846. if (((deletedRows != null)
  4847. && (0 < deletedRows.Length))) {
  4848. result = (result + this._пункты_выдачи_importTableAdapter.Update(deletedRows));
  4849. allChangedRows.AddRange(deletedRows);
  4850. }
  4851. }
  4852. if ((this._заказ_importTableAdapter != null)) {
  4853. global::System.Data.DataRow[] deletedRows = dataSet.Заказ_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4854. if (((deletedRows != null)
  4855. && (0 < deletedRows.Length))) {
  4856. result = (result + this._заказ_importTableAdapter.Update(deletedRows));
  4857. allChangedRows.AddRange(deletedRows);
  4858. }
  4859. }
  4860. if ((this._user_importTableAdapter != null)) {
  4861. global::System.Data.DataRow[] deletedRows = dataSet.user_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4862. if (((deletedRows != null)
  4863. && (0 < deletedRows.Length))) {
  4864. result = (result + this._user_importTableAdapter.Update(deletedRows));
  4865. allChangedRows.AddRange(deletedRows);
  4866. }
  4867. }
  4868. return result;
  4869. }
  4870. /// <summary>
  4871. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  4872. ///</summary>
  4873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4875. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4876. if (((updatedRows == null)
  4877. || (updatedRows.Length < 1))) {
  4878. return updatedRows;
  4879. }
  4880. if (((allAddedRows == null)
  4881. || (allAddedRows.Count < 1))) {
  4882. return updatedRows;
  4883. }
  4884. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4885. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  4886. global::System.Data.DataRow row = updatedRows[i];
  4887. if ((allAddedRows.Contains(row) == false)) {
  4888. realUpdatedRows.Add(row);
  4889. }
  4890. }
  4891. return realUpdatedRows.ToArray();
  4892. }
  4893. /// <summary>
  4894. ///Update all changes to the dataset.
  4895. ///</summary>
  4896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4898. public virtual int UpdateAll(IS31YurevichDataSet dataSet) {
  4899. if ((dataSet == null)) {
  4900. throw new global::System.ArgumentNullException("dataSet");
  4901. }
  4902. if ((dataSet.HasChanges() == false)) {
  4903. return 0;
  4904. }
  4905. if (((this._user_importTableAdapter != null)
  4906. && (this.MatchTableAdapterConnection(this._user_importTableAdapter.Connection) == false))) {
  4907. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4908. "r, должны использовать одинаковую строку подключения.");
  4909. }
  4910. if (((this._заказ_importTableAdapter != null)
  4911. && (this.MatchTableAdapterConnection(this._заказ_importTableAdapter.Connection) == false))) {
  4912. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4913. "r, должны использовать одинаковую строку подключения.");
  4914. }
  4915. if (((this._пункты_выдачи_importTableAdapter != null)
  4916. && (this.MatchTableAdapterConnection(this._пункты_выдачи_importTableAdapter.Connection) == false))) {
  4917. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4918. "r, должны использовать одинаковую строку подключения.");
  4919. }
  4920. if (((this._товар_import_СтройматериалыTableAdapter != null)
  4921. && (this.MatchTableAdapterConnection(this._товар_import_СтройматериалыTableAdapter.Connection) == false))) {
  4922. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4923. "r, должны использовать одинаковую строку подключения.");
  4924. }
  4925. global::System.Data.IDbConnection workConnection = this.Connection;
  4926. if ((workConnection == null)) {
  4927. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  4928. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  4929. }
  4930. bool workConnOpened = false;
  4931. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  4932. == global::System.Data.ConnectionState.Broken)) {
  4933. workConnection.Close();
  4934. }
  4935. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  4936. workConnection.Open();
  4937. workConnOpened = true;
  4938. }
  4939. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  4940. if ((workTransaction == null)) {
  4941. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  4942. "и или текущее состояние не позволяет начать транзакцию.");
  4943. }
  4944. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4945. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4946. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  4947. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  4948. int result = 0;
  4949. global::System.Data.DataSet backupDataSet = null;
  4950. if (this.BackupDataSetBeforeUpdate) {
  4951. backupDataSet = new global::System.Data.DataSet();
  4952. backupDataSet.Merge(dataSet);
  4953. }
  4954. try {
  4955. // ---- Prepare for update -----------
  4956. //
  4957. if ((this._user_importTableAdapter != null)) {
  4958. revertConnections.Add(this._user_importTableAdapter, this._user_importTableAdapter.Connection);
  4959. this._user_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4960. this._user_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4961. if (this._user_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4962. this._user_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4963. adaptersWithAcceptChangesDuringUpdate.Add(this._user_importTableAdapter.Adapter);
  4964. }
  4965. }
  4966. if ((this._заказ_importTableAdapter != null)) {
  4967. revertConnections.Add(this._заказ_importTableAdapter, this._заказ_importTableAdapter.Connection);
  4968. this._заказ_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4969. this._заказ_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4970. if (this._заказ_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4971. this._заказ_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4972. adaptersWithAcceptChangesDuringUpdate.Add(this._заказ_importTableAdapter.Adapter);
  4973. }
  4974. }
  4975. if ((this._пункты_выдачи_importTableAdapter != null)) {
  4976. revertConnections.Add(this._пункты_выдачи_importTableAdapter, this._пункты_выдачи_importTableAdapter.Connection);
  4977. this._пункты_выдачи_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4978. this._пункты_выдачи_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4979. if (this._пункты_выдачи_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4980. this._пункты_выдачи_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4981. adaptersWithAcceptChangesDuringUpdate.Add(this._пункты_выдачи_importTableAdapter.Adapter);
  4982. }
  4983. }
  4984. if ((this._товар_import_СтройматериалыTableAdapter != null)) {
  4985. revertConnections.Add(this._товар_import_СтройматериалыTableAdapter, this._товар_import_СтройматериалыTableAdapter.Connection);
  4986. this._товар_import_СтройматериалыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4987. this._товар_import_СтройматериалыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4988. if (this._товар_import_СтройматериалыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4989. this._товар_import_СтройматериалыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4990. adaptersWithAcceptChangesDuringUpdate.Add(this._товар_import_СтройматериалыTableAdapter.Adapter);
  4991. }
  4992. }
  4993. //
  4994. //---- Perform updates -----------
  4995. //
  4996. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  4997. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  4998. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  4999. }
  5000. else {
  5001. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  5002. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  5003. }
  5004. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  5005. //
  5006. //---- Commit updates -----------
  5007. //
  5008. workTransaction.Commit();
  5009. if ((0 < allAddedRows.Count)) {
  5010. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  5011. allAddedRows.CopyTo(rows);
  5012. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  5013. global::System.Data.DataRow row = rows[i];
  5014. row.AcceptChanges();
  5015. }
  5016. }
  5017. if ((0 < allChangedRows.Count)) {
  5018. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  5019. allChangedRows.CopyTo(rows);
  5020. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  5021. global::System.Data.DataRow row = rows[i];
  5022. row.AcceptChanges();
  5023. }
  5024. }
  5025. }
  5026. catch (global::System.Exception ex) {
  5027. workTransaction.Rollback();
  5028. // ---- Restore the dataset -----------
  5029. if (this.BackupDataSetBeforeUpdate) {
  5030. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  5031. dataSet.Clear();
  5032. dataSet.Merge(backupDataSet);
  5033. }
  5034. else {
  5035. if ((0 < allAddedRows.Count)) {
  5036. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  5037. allAddedRows.CopyTo(rows);
  5038. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  5039. global::System.Data.DataRow row = rows[i];
  5040. row.AcceptChanges();
  5041. row.SetAdded();
  5042. }
  5043. }
  5044. }
  5045. throw ex;
  5046. }
  5047. finally {
  5048. if (workConnOpened) {
  5049. workConnection.Close();
  5050. }
  5051. if ((this._user_importTableAdapter != null)) {
  5052. this._user_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._user_importTableAdapter]));
  5053. this._user_importTableAdapter.Transaction = null;
  5054. }
  5055. if ((this._заказ_importTableAdapter != null)) {
  5056. this._заказ_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._заказ_importTableAdapter]));
  5057. this._заказ_importTableAdapter.Transaction = null;
  5058. }
  5059. if ((this._пункты_выдачи_importTableAdapter != null)) {
  5060. this._пункты_выдачи_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._пункты_выдачи_importTableAdapter]));
  5061. this._пункты_выдачи_importTableAdapter.Transaction = null;
  5062. }
  5063. if ((this._товар_import_СтройматериалыTableAdapter != null)) {
  5064. this._товар_import_СтройматериалыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._товар_import_СтройматериалыTableAdapter]));
  5065. this._товар_import_СтройматериалыTableAdapter.Transaction = null;
  5066. }
  5067. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  5068. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  5069. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  5070. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  5071. global::System.Data.Common.DataAdapter adapter = adapters[i];
  5072. adapter.AcceptChangesDuringUpdate = true;
  5073. }
  5074. }
  5075. }
  5076. return result;
  5077. }
  5078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5080. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  5081. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  5082. }
  5083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5085. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  5086. if ((this._connection != null)) {
  5087. return true;
  5088. }
  5089. if (((this.Connection == null)
  5090. || (inputConnection == null))) {
  5091. return true;
  5092. }
  5093. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  5094. return true;
  5095. }
  5096. return false;
  5097. }
  5098. /// <summary>
  5099. ///Update Order Option
  5100. ///</summary>
  5101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5102. public enum UpdateOrderOption {
  5103. InsertUpdateDelete = 0,
  5104. UpdateInsertDelete = 1,
  5105. }
  5106. /// <summary>
  5107. ///Used to sort self-referenced table's rows
  5108. ///</summary>
  5109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5110. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  5111. private global::System.Data.DataRelation _relation;
  5112. private int _childFirst;
  5113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5115. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  5116. this._relation = relation;
  5117. if (childFirst) {
  5118. this._childFirst = -1;
  5119. }
  5120. else {
  5121. this._childFirst = 1;
  5122. }
  5123. }
  5124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5126. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  5127. global::System.Diagnostics.Debug.Assert((row != null));
  5128. global::System.Data.DataRow root = row;
  5129. distance = 0;
  5130. 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>();
  5131. traversedRows[row] = row;
  5132. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  5133. for (
  5134. ; ((parent != null)
  5135. && (traversedRows.ContainsKey(parent) == false));
  5136. ) {
  5137. distance = (distance + 1);
  5138. root = parent;
  5139. traversedRows[parent] = parent;
  5140. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  5141. }
  5142. if ((distance == 0)) {
  5143. traversedRows.Clear();
  5144. traversedRows[row] = row;
  5145. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  5146. for (
  5147. ; ((parent != null)
  5148. && (traversedRows.ContainsKey(parent) == false));
  5149. ) {
  5150. distance = (distance + 1);
  5151. root = parent;
  5152. traversedRows[parent] = parent;
  5153. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  5154. }
  5155. }
  5156. return root;
  5157. }
  5158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5160. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  5161. if (object.ReferenceEquals(row1, row2)) {
  5162. return 0;
  5163. }
  5164. if ((row1 == null)) {
  5165. return -1;
  5166. }
  5167. if ((row2 == null)) {
  5168. return 1;
  5169. }
  5170. int distance1 = 0;
  5171. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  5172. int distance2 = 0;
  5173. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  5174. if (object.ReferenceEquals(root1, root2)) {
  5175. return (this._childFirst * distance1.CompareTo(distance2));
  5176. }
  5177. else {
  5178. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  5179. && (root2.Table != null)));
  5180. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  5181. return -1;
  5182. }
  5183. else {
  5184. return 1;
  5185. }
  5186. }
  5187. }
  5188. }
  5189. }
  5190. }
  5191. #pragma warning restore 1591