TestWSR4DataSet.Designer.cs 972 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace TestWSR4 {
  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("TestWSR4DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class TestWSR4DataSet : global::System.Data.DataSet {
  22. private AgentDataTable tableAgent;
  23. private AgentPriorityHistoryDataTable tableAgentPriorityHistory;
  24. private AgentTypeDataTable tableAgentType;
  25. private MaterialDataTable tableMaterial;
  26. private MaterialCountHistoryDataTable tableMaterialCountHistory;
  27. private MaterialSupplierDataTable tableMaterialSupplier;
  28. private MaterialTypeDataTable tableMaterialType;
  29. private ProductDataTable tableProduct;
  30. private ProductCostHistoryDataTable tableProductCostHistory;
  31. private ProductMaterialDataTable tableProductMaterial;
  32. private ProductSaleDataTable tableProductSale;
  33. private ProductTypeDataTable tableProductType;
  34. private ShopDataTable tableShop;
  35. private SupplierDataTable tableSupplier;
  36. private ItogSumProductDataTable tableItogSumProduct;
  37. private ProductsPredDataTable tableProductsPred;
  38. private ProizvProductDataTable tableProizvProduct;
  39. private global::System.Data.DataRelation relationFK_Agent_AgentType;
  40. private global::System.Data.DataRelation relationFK_AgentPriorityHistory_Agent;
  41. private global::System.Data.DataRelation relationFK_Material_MaterialType;
  42. private global::System.Data.DataRelation relationFK_MaterialCountHistory_Material;
  43. private global::System.Data.DataRelation relationFK_MaterialSupplier_Material;
  44. private global::System.Data.DataRelation relationFK_MaterialSupplier_Supplier;
  45. private global::System.Data.DataRelation relationFK_Product_ProductType;
  46. private global::System.Data.DataRelation relationFK_ProductCostHistory_Product;
  47. private global::System.Data.DataRelation relationFK_ProductMaterial_Material;
  48. private global::System.Data.DataRelation relationFK_ProductMaterial_Product;
  49. private global::System.Data.DataRelation relationFK_ProductSale_Agent;
  50. private global::System.Data.DataRelation relationFK_ProductSale_Product;
  51. private global::System.Data.DataRelation relationFK_Shop_Agent;
  52. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  53. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  54. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  55. public TestWSR4DataSet() {
  56. this.BeginInit();
  57. this.InitClass();
  58. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  59. base.Tables.CollectionChanged += schemaChangedHandler;
  60. base.Relations.CollectionChanged += schemaChangedHandler;
  61. this.EndInit();
  62. }
  63. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  64. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  65. protected TestWSR4DataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  66. base(info, context, false) {
  67. if ((this.IsBinarySerialized(info, context) == true)) {
  68. this.InitVars(false);
  69. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  70. this.Tables.CollectionChanged += schemaChangedHandler1;
  71. this.Relations.CollectionChanged += schemaChangedHandler1;
  72. return;
  73. }
  74. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  75. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  76. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  77. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  78. if ((ds.Tables["Agent"] != null)) {
  79. base.Tables.Add(new AgentDataTable(ds.Tables["Agent"]));
  80. }
  81. if ((ds.Tables["AgentPriorityHistory"] != null)) {
  82. base.Tables.Add(new AgentPriorityHistoryDataTable(ds.Tables["AgentPriorityHistory"]));
  83. }
  84. if ((ds.Tables["AgentType"] != null)) {
  85. base.Tables.Add(new AgentTypeDataTable(ds.Tables["AgentType"]));
  86. }
  87. if ((ds.Tables["Material"] != null)) {
  88. base.Tables.Add(new MaterialDataTable(ds.Tables["Material"]));
  89. }
  90. if ((ds.Tables["MaterialCountHistory"] != null)) {
  91. base.Tables.Add(new MaterialCountHistoryDataTable(ds.Tables["MaterialCountHistory"]));
  92. }
  93. if ((ds.Tables["MaterialSupplier"] != null)) {
  94. base.Tables.Add(new MaterialSupplierDataTable(ds.Tables["MaterialSupplier"]));
  95. }
  96. if ((ds.Tables["MaterialType"] != null)) {
  97. base.Tables.Add(new MaterialTypeDataTable(ds.Tables["MaterialType"]));
  98. }
  99. if ((ds.Tables["Product"] != null)) {
  100. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  101. }
  102. if ((ds.Tables["ProductCostHistory"] != null)) {
  103. base.Tables.Add(new ProductCostHistoryDataTable(ds.Tables["ProductCostHistory"]));
  104. }
  105. if ((ds.Tables["ProductMaterial"] != null)) {
  106. base.Tables.Add(new ProductMaterialDataTable(ds.Tables["ProductMaterial"]));
  107. }
  108. if ((ds.Tables["ProductSale"] != null)) {
  109. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  110. }
  111. if ((ds.Tables["ProductType"] != null)) {
  112. base.Tables.Add(new ProductTypeDataTable(ds.Tables["ProductType"]));
  113. }
  114. if ((ds.Tables["Shop"] != null)) {
  115. base.Tables.Add(new ShopDataTable(ds.Tables["Shop"]));
  116. }
  117. if ((ds.Tables["Supplier"] != null)) {
  118. base.Tables.Add(new SupplierDataTable(ds.Tables["Supplier"]));
  119. }
  120. if ((ds.Tables["ItogSumProduct"] != null)) {
  121. base.Tables.Add(new ItogSumProductDataTable(ds.Tables["ItogSumProduct"]));
  122. }
  123. if ((ds.Tables["ProductsPred"] != null)) {
  124. base.Tables.Add(new ProductsPredDataTable(ds.Tables["ProductsPred"]));
  125. }
  126. if ((ds.Tables["ProizvProduct"] != null)) {
  127. base.Tables.Add(new ProizvProductDataTable(ds.Tables["ProizvProduct"]));
  128. }
  129. this.DataSetName = ds.DataSetName;
  130. this.Prefix = ds.Prefix;
  131. this.Namespace = ds.Namespace;
  132. this.Locale = ds.Locale;
  133. this.CaseSensitive = ds.CaseSensitive;
  134. this.EnforceConstraints = ds.EnforceConstraints;
  135. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  136. this.InitVars();
  137. }
  138. else {
  139. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  140. }
  141. this.GetSerializationData(info, context);
  142. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  143. base.Tables.CollectionChanged += schemaChangedHandler;
  144. this.Relations.CollectionChanged += schemaChangedHandler;
  145. }
  146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  148. [global::System.ComponentModel.Browsable(false)]
  149. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  150. public AgentDataTable Agent {
  151. get {
  152. return this.tableAgent;
  153. }
  154. }
  155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  157. [global::System.ComponentModel.Browsable(false)]
  158. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  159. public AgentPriorityHistoryDataTable AgentPriorityHistory {
  160. get {
  161. return this.tableAgentPriorityHistory;
  162. }
  163. }
  164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  166. [global::System.ComponentModel.Browsable(false)]
  167. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  168. public AgentTypeDataTable AgentType {
  169. get {
  170. return this.tableAgentType;
  171. }
  172. }
  173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  175. [global::System.ComponentModel.Browsable(false)]
  176. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  177. public MaterialDataTable Material {
  178. get {
  179. return this.tableMaterial;
  180. }
  181. }
  182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  184. [global::System.ComponentModel.Browsable(false)]
  185. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  186. public MaterialCountHistoryDataTable MaterialCountHistory {
  187. get {
  188. return this.tableMaterialCountHistory;
  189. }
  190. }
  191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  193. [global::System.ComponentModel.Browsable(false)]
  194. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  195. public MaterialSupplierDataTable MaterialSupplier {
  196. get {
  197. return this.tableMaterialSupplier;
  198. }
  199. }
  200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  202. [global::System.ComponentModel.Browsable(false)]
  203. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  204. public MaterialTypeDataTable MaterialType {
  205. get {
  206. return this.tableMaterialType;
  207. }
  208. }
  209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  211. [global::System.ComponentModel.Browsable(false)]
  212. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  213. public ProductDataTable Product {
  214. get {
  215. return this.tableProduct;
  216. }
  217. }
  218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  220. [global::System.ComponentModel.Browsable(false)]
  221. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  222. public ProductCostHistoryDataTable ProductCostHistory {
  223. get {
  224. return this.tableProductCostHistory;
  225. }
  226. }
  227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  229. [global::System.ComponentModel.Browsable(false)]
  230. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  231. public ProductMaterialDataTable ProductMaterial {
  232. get {
  233. return this.tableProductMaterial;
  234. }
  235. }
  236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  238. [global::System.ComponentModel.Browsable(false)]
  239. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  240. public ProductSaleDataTable ProductSale {
  241. get {
  242. return this.tableProductSale;
  243. }
  244. }
  245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  247. [global::System.ComponentModel.Browsable(false)]
  248. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  249. public ProductTypeDataTable ProductType {
  250. get {
  251. return this.tableProductType;
  252. }
  253. }
  254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  256. [global::System.ComponentModel.Browsable(false)]
  257. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  258. public ShopDataTable Shop {
  259. get {
  260. return this.tableShop;
  261. }
  262. }
  263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  265. [global::System.ComponentModel.Browsable(false)]
  266. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  267. public SupplierDataTable Supplier {
  268. get {
  269. return this.tableSupplier;
  270. }
  271. }
  272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  274. [global::System.ComponentModel.Browsable(false)]
  275. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  276. public ItogSumProductDataTable ItogSumProduct {
  277. get {
  278. return this.tableItogSumProduct;
  279. }
  280. }
  281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  283. [global::System.ComponentModel.Browsable(false)]
  284. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  285. public ProductsPredDataTable ProductsPred {
  286. get {
  287. return this.tableProductsPred;
  288. }
  289. }
  290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  292. [global::System.ComponentModel.Browsable(false)]
  293. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  294. public ProizvProductDataTable ProizvProduct {
  295. get {
  296. return this.tableProizvProduct;
  297. }
  298. }
  299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  301. [global::System.ComponentModel.BrowsableAttribute(true)]
  302. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  303. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  304. get {
  305. return this._schemaSerializationMode;
  306. }
  307. set {
  308. this._schemaSerializationMode = value;
  309. }
  310. }
  311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  313. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  314. public new global::System.Data.DataTableCollection Tables {
  315. get {
  316. return base.Tables;
  317. }
  318. }
  319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  321. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  322. public new global::System.Data.DataRelationCollection Relations {
  323. get {
  324. return base.Relations;
  325. }
  326. }
  327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  329. protected override void InitializeDerivedDataSet() {
  330. this.BeginInit();
  331. this.InitClass();
  332. this.EndInit();
  333. }
  334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  336. public override global::System.Data.DataSet Clone() {
  337. TestWSR4DataSet cln = ((TestWSR4DataSet)(base.Clone()));
  338. cln.InitVars();
  339. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  340. return cln;
  341. }
  342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  344. protected override bool ShouldSerializeTables() {
  345. return false;
  346. }
  347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  349. protected override bool ShouldSerializeRelations() {
  350. return false;
  351. }
  352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  354. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  355. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  356. this.Reset();
  357. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  358. ds.ReadXml(reader);
  359. if ((ds.Tables["Agent"] != null)) {
  360. base.Tables.Add(new AgentDataTable(ds.Tables["Agent"]));
  361. }
  362. if ((ds.Tables["AgentPriorityHistory"] != null)) {
  363. base.Tables.Add(new AgentPriorityHistoryDataTable(ds.Tables["AgentPriorityHistory"]));
  364. }
  365. if ((ds.Tables["AgentType"] != null)) {
  366. base.Tables.Add(new AgentTypeDataTable(ds.Tables["AgentType"]));
  367. }
  368. if ((ds.Tables["Material"] != null)) {
  369. base.Tables.Add(new MaterialDataTable(ds.Tables["Material"]));
  370. }
  371. if ((ds.Tables["MaterialCountHistory"] != null)) {
  372. base.Tables.Add(new MaterialCountHistoryDataTable(ds.Tables["MaterialCountHistory"]));
  373. }
  374. if ((ds.Tables["MaterialSupplier"] != null)) {
  375. base.Tables.Add(new MaterialSupplierDataTable(ds.Tables["MaterialSupplier"]));
  376. }
  377. if ((ds.Tables["MaterialType"] != null)) {
  378. base.Tables.Add(new MaterialTypeDataTable(ds.Tables["MaterialType"]));
  379. }
  380. if ((ds.Tables["Product"] != null)) {
  381. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  382. }
  383. if ((ds.Tables["ProductCostHistory"] != null)) {
  384. base.Tables.Add(new ProductCostHistoryDataTable(ds.Tables["ProductCostHistory"]));
  385. }
  386. if ((ds.Tables["ProductMaterial"] != null)) {
  387. base.Tables.Add(new ProductMaterialDataTable(ds.Tables["ProductMaterial"]));
  388. }
  389. if ((ds.Tables["ProductSale"] != null)) {
  390. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  391. }
  392. if ((ds.Tables["ProductType"] != null)) {
  393. base.Tables.Add(new ProductTypeDataTable(ds.Tables["ProductType"]));
  394. }
  395. if ((ds.Tables["Shop"] != null)) {
  396. base.Tables.Add(new ShopDataTable(ds.Tables["Shop"]));
  397. }
  398. if ((ds.Tables["Supplier"] != null)) {
  399. base.Tables.Add(new SupplierDataTable(ds.Tables["Supplier"]));
  400. }
  401. if ((ds.Tables["ItogSumProduct"] != null)) {
  402. base.Tables.Add(new ItogSumProductDataTable(ds.Tables["ItogSumProduct"]));
  403. }
  404. if ((ds.Tables["ProductsPred"] != null)) {
  405. base.Tables.Add(new ProductsPredDataTable(ds.Tables["ProductsPred"]));
  406. }
  407. if ((ds.Tables["ProizvProduct"] != null)) {
  408. base.Tables.Add(new ProizvProductDataTable(ds.Tables["ProizvProduct"]));
  409. }
  410. this.DataSetName = ds.DataSetName;
  411. this.Prefix = ds.Prefix;
  412. this.Namespace = ds.Namespace;
  413. this.Locale = ds.Locale;
  414. this.CaseSensitive = ds.CaseSensitive;
  415. this.EnforceConstraints = ds.EnforceConstraints;
  416. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  417. this.InitVars();
  418. }
  419. else {
  420. this.ReadXml(reader);
  421. this.InitVars();
  422. }
  423. }
  424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  426. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  427. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  428. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  429. stream.Position = 0;
  430. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  431. }
  432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  434. internal void InitVars() {
  435. this.InitVars(true);
  436. }
  437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  439. internal void InitVars(bool initTable) {
  440. this.tableAgent = ((AgentDataTable)(base.Tables["Agent"]));
  441. if ((initTable == true)) {
  442. if ((this.tableAgent != null)) {
  443. this.tableAgent.InitVars();
  444. }
  445. }
  446. this.tableAgentPriorityHistory = ((AgentPriorityHistoryDataTable)(base.Tables["AgentPriorityHistory"]));
  447. if ((initTable == true)) {
  448. if ((this.tableAgentPriorityHistory != null)) {
  449. this.tableAgentPriorityHistory.InitVars();
  450. }
  451. }
  452. this.tableAgentType = ((AgentTypeDataTable)(base.Tables["AgentType"]));
  453. if ((initTable == true)) {
  454. if ((this.tableAgentType != null)) {
  455. this.tableAgentType.InitVars();
  456. }
  457. }
  458. this.tableMaterial = ((MaterialDataTable)(base.Tables["Material"]));
  459. if ((initTable == true)) {
  460. if ((this.tableMaterial != null)) {
  461. this.tableMaterial.InitVars();
  462. }
  463. }
  464. this.tableMaterialCountHistory = ((MaterialCountHistoryDataTable)(base.Tables["MaterialCountHistory"]));
  465. if ((initTable == true)) {
  466. if ((this.tableMaterialCountHistory != null)) {
  467. this.tableMaterialCountHistory.InitVars();
  468. }
  469. }
  470. this.tableMaterialSupplier = ((MaterialSupplierDataTable)(base.Tables["MaterialSupplier"]));
  471. if ((initTable == true)) {
  472. if ((this.tableMaterialSupplier != null)) {
  473. this.tableMaterialSupplier.InitVars();
  474. }
  475. }
  476. this.tableMaterialType = ((MaterialTypeDataTable)(base.Tables["MaterialType"]));
  477. if ((initTable == true)) {
  478. if ((this.tableMaterialType != null)) {
  479. this.tableMaterialType.InitVars();
  480. }
  481. }
  482. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  483. if ((initTable == true)) {
  484. if ((this.tableProduct != null)) {
  485. this.tableProduct.InitVars();
  486. }
  487. }
  488. this.tableProductCostHistory = ((ProductCostHistoryDataTable)(base.Tables["ProductCostHistory"]));
  489. if ((initTable == true)) {
  490. if ((this.tableProductCostHistory != null)) {
  491. this.tableProductCostHistory.InitVars();
  492. }
  493. }
  494. this.tableProductMaterial = ((ProductMaterialDataTable)(base.Tables["ProductMaterial"]));
  495. if ((initTable == true)) {
  496. if ((this.tableProductMaterial != null)) {
  497. this.tableProductMaterial.InitVars();
  498. }
  499. }
  500. this.tableProductSale = ((ProductSaleDataTable)(base.Tables["ProductSale"]));
  501. if ((initTable == true)) {
  502. if ((this.tableProductSale != null)) {
  503. this.tableProductSale.InitVars();
  504. }
  505. }
  506. this.tableProductType = ((ProductTypeDataTable)(base.Tables["ProductType"]));
  507. if ((initTable == true)) {
  508. if ((this.tableProductType != null)) {
  509. this.tableProductType.InitVars();
  510. }
  511. }
  512. this.tableShop = ((ShopDataTable)(base.Tables["Shop"]));
  513. if ((initTable == true)) {
  514. if ((this.tableShop != null)) {
  515. this.tableShop.InitVars();
  516. }
  517. }
  518. this.tableSupplier = ((SupplierDataTable)(base.Tables["Supplier"]));
  519. if ((initTable == true)) {
  520. if ((this.tableSupplier != null)) {
  521. this.tableSupplier.InitVars();
  522. }
  523. }
  524. this.tableItogSumProduct = ((ItogSumProductDataTable)(base.Tables["ItogSumProduct"]));
  525. if ((initTable == true)) {
  526. if ((this.tableItogSumProduct != null)) {
  527. this.tableItogSumProduct.InitVars();
  528. }
  529. }
  530. this.tableProductsPred = ((ProductsPredDataTable)(base.Tables["ProductsPred"]));
  531. if ((initTable == true)) {
  532. if ((this.tableProductsPred != null)) {
  533. this.tableProductsPred.InitVars();
  534. }
  535. }
  536. this.tableProizvProduct = ((ProizvProductDataTable)(base.Tables["ProizvProduct"]));
  537. if ((initTable == true)) {
  538. if ((this.tableProizvProduct != null)) {
  539. this.tableProizvProduct.InitVars();
  540. }
  541. }
  542. this.relationFK_Agent_AgentType = this.Relations["FK_Agent_AgentType"];
  543. this.relationFK_AgentPriorityHistory_Agent = this.Relations["FK_AgentPriorityHistory_Agent"];
  544. this.relationFK_Material_MaterialType = this.Relations["FK_Material_MaterialType"];
  545. this.relationFK_MaterialCountHistory_Material = this.Relations["FK_MaterialCountHistory_Material"];
  546. this.relationFK_MaterialSupplier_Material = this.Relations["FK_MaterialSupplier_Material"];
  547. this.relationFK_MaterialSupplier_Supplier = this.Relations["FK_MaterialSupplier_Supplier"];
  548. this.relationFK_Product_ProductType = this.Relations["FK_Product_ProductType"];
  549. this.relationFK_ProductCostHistory_Product = this.Relations["FK_ProductCostHistory_Product"];
  550. this.relationFK_ProductMaterial_Material = this.Relations["FK_ProductMaterial_Material"];
  551. this.relationFK_ProductMaterial_Product = this.Relations["FK_ProductMaterial_Product"];
  552. this.relationFK_ProductSale_Agent = this.Relations["FK_ProductSale_Agent"];
  553. this.relationFK_ProductSale_Product = this.Relations["FK_ProductSale_Product"];
  554. this.relationFK_Shop_Agent = this.Relations["FK_Shop_Agent"];
  555. }
  556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  558. private void InitClass() {
  559. this.DataSetName = "TestWSR4DataSet";
  560. this.Prefix = "";
  561. this.Namespace = "http://tempuri.org/TestWSR4DataSet.xsd";
  562. this.EnforceConstraints = true;
  563. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  564. this.tableAgent = new AgentDataTable();
  565. base.Tables.Add(this.tableAgent);
  566. this.tableAgentPriorityHistory = new AgentPriorityHistoryDataTable();
  567. base.Tables.Add(this.tableAgentPriorityHistory);
  568. this.tableAgentType = new AgentTypeDataTable();
  569. base.Tables.Add(this.tableAgentType);
  570. this.tableMaterial = new MaterialDataTable();
  571. base.Tables.Add(this.tableMaterial);
  572. this.tableMaterialCountHistory = new MaterialCountHistoryDataTable();
  573. base.Tables.Add(this.tableMaterialCountHistory);
  574. this.tableMaterialSupplier = new MaterialSupplierDataTable();
  575. base.Tables.Add(this.tableMaterialSupplier);
  576. this.tableMaterialType = new MaterialTypeDataTable();
  577. base.Tables.Add(this.tableMaterialType);
  578. this.tableProduct = new ProductDataTable();
  579. base.Tables.Add(this.tableProduct);
  580. this.tableProductCostHistory = new ProductCostHistoryDataTable();
  581. base.Tables.Add(this.tableProductCostHistory);
  582. this.tableProductMaterial = new ProductMaterialDataTable();
  583. base.Tables.Add(this.tableProductMaterial);
  584. this.tableProductSale = new ProductSaleDataTable();
  585. base.Tables.Add(this.tableProductSale);
  586. this.tableProductType = new ProductTypeDataTable();
  587. base.Tables.Add(this.tableProductType);
  588. this.tableShop = new ShopDataTable();
  589. base.Tables.Add(this.tableShop);
  590. this.tableSupplier = new SupplierDataTable();
  591. base.Tables.Add(this.tableSupplier);
  592. this.tableItogSumProduct = new ItogSumProductDataTable();
  593. base.Tables.Add(this.tableItogSumProduct);
  594. this.tableProductsPred = new ProductsPredDataTable();
  595. base.Tables.Add(this.tableProductsPred);
  596. this.tableProizvProduct = new ProizvProductDataTable();
  597. base.Tables.Add(this.tableProizvProduct);
  598. this.relationFK_Agent_AgentType = new global::System.Data.DataRelation("FK_Agent_AgentType", new global::System.Data.DataColumn[] {
  599. this.tableAgentType.IDColumn}, new global::System.Data.DataColumn[] {
  600. this.tableAgent.AgentTypeIDColumn}, false);
  601. this.Relations.Add(this.relationFK_Agent_AgentType);
  602. this.relationFK_AgentPriorityHistory_Agent = new global::System.Data.DataRelation("FK_AgentPriorityHistory_Agent", new global::System.Data.DataColumn[] {
  603. this.tableAgent.IDColumn}, new global::System.Data.DataColumn[] {
  604. this.tableAgentPriorityHistory.AgentIDColumn}, false);
  605. this.Relations.Add(this.relationFK_AgentPriorityHistory_Agent);
  606. this.relationFK_Material_MaterialType = new global::System.Data.DataRelation("FK_Material_MaterialType", new global::System.Data.DataColumn[] {
  607. this.tableMaterialType.IDColumn}, new global::System.Data.DataColumn[] {
  608. this.tableMaterial.MaterialTypeIDColumn}, false);
  609. this.Relations.Add(this.relationFK_Material_MaterialType);
  610. this.relationFK_MaterialCountHistory_Material = new global::System.Data.DataRelation("FK_MaterialCountHistory_Material", new global::System.Data.DataColumn[] {
  611. this.tableMaterial.IDColumn}, new global::System.Data.DataColumn[] {
  612. this.tableMaterialCountHistory.MaterialIDColumn}, false);
  613. this.Relations.Add(this.relationFK_MaterialCountHistory_Material);
  614. this.relationFK_MaterialSupplier_Material = new global::System.Data.DataRelation("FK_MaterialSupplier_Material", new global::System.Data.DataColumn[] {
  615. this.tableMaterial.IDColumn}, new global::System.Data.DataColumn[] {
  616. this.tableMaterialSupplier.MaterialIDColumn}, false);
  617. this.Relations.Add(this.relationFK_MaterialSupplier_Material);
  618. this.relationFK_MaterialSupplier_Supplier = new global::System.Data.DataRelation("FK_MaterialSupplier_Supplier", new global::System.Data.DataColumn[] {
  619. this.tableSupplier.IDColumn}, new global::System.Data.DataColumn[] {
  620. this.tableMaterialSupplier.SupplierIDColumn}, false);
  621. this.Relations.Add(this.relationFK_MaterialSupplier_Supplier);
  622. this.relationFK_Product_ProductType = new global::System.Data.DataRelation("FK_Product_ProductType", new global::System.Data.DataColumn[] {
  623. this.tableProductType.IDColumn}, new global::System.Data.DataColumn[] {
  624. this.tableProduct.ProductTypeIDColumn}, false);
  625. this.Relations.Add(this.relationFK_Product_ProductType);
  626. this.relationFK_ProductCostHistory_Product = new global::System.Data.DataRelation("FK_ProductCostHistory_Product", new global::System.Data.DataColumn[] {
  627. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  628. this.tableProductCostHistory.ProductIDColumn}, false);
  629. this.Relations.Add(this.relationFK_ProductCostHistory_Product);
  630. this.relationFK_ProductMaterial_Material = new global::System.Data.DataRelation("FK_ProductMaterial_Material", new global::System.Data.DataColumn[] {
  631. this.tableMaterial.IDColumn}, new global::System.Data.DataColumn[] {
  632. this.tableProductMaterial.MaterialIDColumn}, false);
  633. this.Relations.Add(this.relationFK_ProductMaterial_Material);
  634. this.relationFK_ProductMaterial_Product = new global::System.Data.DataRelation("FK_ProductMaterial_Product", new global::System.Data.DataColumn[] {
  635. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  636. this.tableProductMaterial.ProductIDColumn}, false);
  637. this.Relations.Add(this.relationFK_ProductMaterial_Product);
  638. this.relationFK_ProductSale_Agent = new global::System.Data.DataRelation("FK_ProductSale_Agent", new global::System.Data.DataColumn[] {
  639. this.tableAgent.IDColumn}, new global::System.Data.DataColumn[] {
  640. this.tableProductSale.AgentIDColumn}, false);
  641. this.Relations.Add(this.relationFK_ProductSale_Agent);
  642. this.relationFK_ProductSale_Product = new global::System.Data.DataRelation("FK_ProductSale_Product", new global::System.Data.DataColumn[] {
  643. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  644. this.tableProductSale.ProductIDColumn}, false);
  645. this.Relations.Add(this.relationFK_ProductSale_Product);
  646. this.relationFK_Shop_Agent = new global::System.Data.DataRelation("FK_Shop_Agent", new global::System.Data.DataColumn[] {
  647. this.tableAgent.IDColumn}, new global::System.Data.DataColumn[] {
  648. this.tableShop.AgentIDColumn}, false);
  649. this.Relations.Add(this.relationFK_Shop_Agent);
  650. }
  651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  653. private bool ShouldSerializeAgent() {
  654. return false;
  655. }
  656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  658. private bool ShouldSerializeAgentPriorityHistory() {
  659. return false;
  660. }
  661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  663. private bool ShouldSerializeAgentType() {
  664. return false;
  665. }
  666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  668. private bool ShouldSerializeMaterial() {
  669. return false;
  670. }
  671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  673. private bool ShouldSerializeMaterialCountHistory() {
  674. return false;
  675. }
  676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  678. private bool ShouldSerializeMaterialSupplier() {
  679. return false;
  680. }
  681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  683. private bool ShouldSerializeMaterialType() {
  684. return false;
  685. }
  686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  688. private bool ShouldSerializeProduct() {
  689. return false;
  690. }
  691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  693. private bool ShouldSerializeProductCostHistory() {
  694. return false;
  695. }
  696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  698. private bool ShouldSerializeProductMaterial() {
  699. return false;
  700. }
  701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  703. private bool ShouldSerializeProductSale() {
  704. return false;
  705. }
  706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  708. private bool ShouldSerializeProductType() {
  709. return false;
  710. }
  711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  713. private bool ShouldSerializeShop() {
  714. return false;
  715. }
  716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  718. private bool ShouldSerializeSupplier() {
  719. return false;
  720. }
  721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  723. private bool ShouldSerializeItogSumProduct() {
  724. return false;
  725. }
  726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  728. private bool ShouldSerializeProductsPred() {
  729. return false;
  730. }
  731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  733. private bool ShouldSerializeProizvProduct() {
  734. return false;
  735. }
  736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  738. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  739. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  740. this.InitVars();
  741. }
  742. }
  743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  745. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  746. TestWSR4DataSet ds = new TestWSR4DataSet();
  747. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  748. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  749. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  750. any.Namespace = ds.Namespace;
  751. sequence.Items.Add(any);
  752. type.Particle = sequence;
  753. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  754. if (xs.Contains(dsSchema.TargetNamespace)) {
  755. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  756. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  757. try {
  758. global::System.Xml.Schema.XmlSchema schema = null;
  759. dsSchema.Write(s1);
  760. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  761. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  762. s2.SetLength(0);
  763. schema.Write(s2);
  764. if ((s1.Length == s2.Length)) {
  765. s1.Position = 0;
  766. s2.Position = 0;
  767. for (; ((s1.Position != s1.Length)
  768. && (s1.ReadByte() == s2.ReadByte())); ) {
  769. ;
  770. }
  771. if ((s1.Position == s1.Length)) {
  772. return type;
  773. }
  774. }
  775. }
  776. }
  777. finally {
  778. if ((s1 != null)) {
  779. s1.Close();
  780. }
  781. if ((s2 != null)) {
  782. s2.Close();
  783. }
  784. }
  785. }
  786. xs.Add(dsSchema);
  787. return type;
  788. }
  789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  790. public delegate void AgentRowChangeEventHandler(object sender, AgentRowChangeEvent e);
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  792. public delegate void AgentPriorityHistoryRowChangeEventHandler(object sender, AgentPriorityHistoryRowChangeEvent e);
  793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  794. public delegate void AgentTypeRowChangeEventHandler(object sender, AgentTypeRowChangeEvent e);
  795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  796. public delegate void MaterialRowChangeEventHandler(object sender, MaterialRowChangeEvent e);
  797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  798. public delegate void MaterialCountHistoryRowChangeEventHandler(object sender, MaterialCountHistoryRowChangeEvent e);
  799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  800. public delegate void MaterialSupplierRowChangeEventHandler(object sender, MaterialSupplierRowChangeEvent e);
  801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  802. public delegate void MaterialTypeRowChangeEventHandler(object sender, MaterialTypeRowChangeEvent e);
  803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  804. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  806. public delegate void ProductCostHistoryRowChangeEventHandler(object sender, ProductCostHistoryRowChangeEvent e);
  807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  808. public delegate void ProductMaterialRowChangeEventHandler(object sender, ProductMaterialRowChangeEvent e);
  809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  810. public delegate void ProductSaleRowChangeEventHandler(object sender, ProductSaleRowChangeEvent e);
  811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  812. public delegate void ProductTypeRowChangeEventHandler(object sender, ProductTypeRowChangeEvent e);
  813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  814. public delegate void ShopRowChangeEventHandler(object sender, ShopRowChangeEvent e);
  815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  816. public delegate void SupplierRowChangeEventHandler(object sender, SupplierRowChangeEvent e);
  817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  818. public delegate void ItogSumProductRowChangeEventHandler(object sender, ItogSumProductRowChangeEvent e);
  819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  820. public delegate void ProductsPredRowChangeEventHandler(object sender, ProductsPredRowChangeEvent e);
  821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  822. public delegate void ProizvProductRowChangeEventHandler(object sender, ProizvProductRowChangeEvent e);
  823. /// <summary>
  824. ///Represents the strongly named DataTable class.
  825. ///</summary>
  826. [global::System.Serializable()]
  827. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  828. public partial class AgentDataTable : global::System.Data.TypedTableBase<AgentRow> {
  829. private global::System.Data.DataColumn columnID;
  830. private global::System.Data.DataColumn columnTitle;
  831. private global::System.Data.DataColumn columnAgentTypeID;
  832. private global::System.Data.DataColumn columnAddress;
  833. private global::System.Data.DataColumn columnINN;
  834. private global::System.Data.DataColumn columnKPP;
  835. private global::System.Data.DataColumn columnDirectorName;
  836. private global::System.Data.DataColumn columnPhone;
  837. private global::System.Data.DataColumn columnEmail;
  838. private global::System.Data.DataColumn columnLogo;
  839. private global::System.Data.DataColumn columnPriority;
  840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  842. public AgentDataTable() {
  843. this.TableName = "Agent";
  844. this.BeginInit();
  845. this.InitClass();
  846. this.EndInit();
  847. }
  848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  850. internal AgentDataTable(global::System.Data.DataTable table) {
  851. this.TableName = table.TableName;
  852. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  853. this.CaseSensitive = table.CaseSensitive;
  854. }
  855. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  856. this.Locale = table.Locale;
  857. }
  858. if ((table.Namespace != table.DataSet.Namespace)) {
  859. this.Namespace = table.Namespace;
  860. }
  861. this.Prefix = table.Prefix;
  862. this.MinimumCapacity = table.MinimumCapacity;
  863. }
  864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  866. protected AgentDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  867. base(info, context) {
  868. this.InitVars();
  869. }
  870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  872. public global::System.Data.DataColumn IDColumn {
  873. get {
  874. return this.columnID;
  875. }
  876. }
  877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  879. public global::System.Data.DataColumn TitleColumn {
  880. get {
  881. return this.columnTitle;
  882. }
  883. }
  884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  886. public global::System.Data.DataColumn AgentTypeIDColumn {
  887. get {
  888. return this.columnAgentTypeID;
  889. }
  890. }
  891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  893. public global::System.Data.DataColumn AddressColumn {
  894. get {
  895. return this.columnAddress;
  896. }
  897. }
  898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  900. public global::System.Data.DataColumn INNColumn {
  901. get {
  902. return this.columnINN;
  903. }
  904. }
  905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  907. public global::System.Data.DataColumn KPPColumn {
  908. get {
  909. return this.columnKPP;
  910. }
  911. }
  912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  914. public global::System.Data.DataColumn DirectorNameColumn {
  915. get {
  916. return this.columnDirectorName;
  917. }
  918. }
  919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  921. public global::System.Data.DataColumn PhoneColumn {
  922. get {
  923. return this.columnPhone;
  924. }
  925. }
  926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  928. public global::System.Data.DataColumn EmailColumn {
  929. get {
  930. return this.columnEmail;
  931. }
  932. }
  933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  935. public global::System.Data.DataColumn LogoColumn {
  936. get {
  937. return this.columnLogo;
  938. }
  939. }
  940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  942. public global::System.Data.DataColumn PriorityColumn {
  943. get {
  944. return this.columnPriority;
  945. }
  946. }
  947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  949. [global::System.ComponentModel.Browsable(false)]
  950. public int Count {
  951. get {
  952. return this.Rows.Count;
  953. }
  954. }
  955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  957. public AgentRow this[int index] {
  958. get {
  959. return ((AgentRow)(this.Rows[index]));
  960. }
  961. }
  962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  963. public event AgentRowChangeEventHandler AgentRowChanging;
  964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  965. public event AgentRowChangeEventHandler AgentRowChanged;
  966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  967. public event AgentRowChangeEventHandler AgentRowDeleting;
  968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  969. public event AgentRowChangeEventHandler AgentRowDeleted;
  970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  972. public void AddAgentRow(AgentRow row) {
  973. this.Rows.Add(row);
  974. }
  975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  977. public AgentRow AddAgentRow(string Title, AgentTypeRow parentAgentTypeRowByFK_Agent_AgentType, string Address, string INN, string KPP, string DirectorName, string Phone, string Email, string Logo, int Priority) {
  978. AgentRow rowAgentRow = ((AgentRow)(this.NewRow()));
  979. object[] columnValuesArray = new object[] {
  980. null,
  981. Title,
  982. null,
  983. Address,
  984. INN,
  985. KPP,
  986. DirectorName,
  987. Phone,
  988. Email,
  989. Logo,
  990. Priority};
  991. if ((parentAgentTypeRowByFK_Agent_AgentType != null)) {
  992. columnValuesArray[2] = parentAgentTypeRowByFK_Agent_AgentType[0];
  993. }
  994. rowAgentRow.ItemArray = columnValuesArray;
  995. this.Rows.Add(rowAgentRow);
  996. return rowAgentRow;
  997. }
  998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1000. public AgentRow FindByID(int ID) {
  1001. return ((AgentRow)(this.Rows.Find(new object[] {
  1002. ID})));
  1003. }
  1004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1006. public override global::System.Data.DataTable Clone() {
  1007. AgentDataTable cln = ((AgentDataTable)(base.Clone()));
  1008. cln.InitVars();
  1009. return cln;
  1010. }
  1011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1013. protected override global::System.Data.DataTable CreateInstance() {
  1014. return new AgentDataTable();
  1015. }
  1016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1018. internal void InitVars() {
  1019. this.columnID = base.Columns["ID"];
  1020. this.columnTitle = base.Columns["Title"];
  1021. this.columnAgentTypeID = base.Columns["AgentTypeID"];
  1022. this.columnAddress = base.Columns["Address"];
  1023. this.columnINN = base.Columns["INN"];
  1024. this.columnKPP = base.Columns["KPP"];
  1025. this.columnDirectorName = base.Columns["DirectorName"];
  1026. this.columnPhone = base.Columns["Phone"];
  1027. this.columnEmail = base.Columns["Email"];
  1028. this.columnLogo = base.Columns["Logo"];
  1029. this.columnPriority = base.Columns["Priority"];
  1030. }
  1031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1033. private void InitClass() {
  1034. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1035. base.Columns.Add(this.columnID);
  1036. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  1037. base.Columns.Add(this.columnTitle);
  1038. this.columnAgentTypeID = new global::System.Data.DataColumn("AgentTypeID", typeof(int), null, global::System.Data.MappingType.Element);
  1039. base.Columns.Add(this.columnAgentTypeID);
  1040. this.columnAddress = new global::System.Data.DataColumn("Address", typeof(string), null, global::System.Data.MappingType.Element);
  1041. base.Columns.Add(this.columnAddress);
  1042. this.columnINN = new global::System.Data.DataColumn("INN", typeof(string), null, global::System.Data.MappingType.Element);
  1043. base.Columns.Add(this.columnINN);
  1044. this.columnKPP = new global::System.Data.DataColumn("KPP", typeof(string), null, global::System.Data.MappingType.Element);
  1045. base.Columns.Add(this.columnKPP);
  1046. this.columnDirectorName = new global::System.Data.DataColumn("DirectorName", typeof(string), null, global::System.Data.MappingType.Element);
  1047. base.Columns.Add(this.columnDirectorName);
  1048. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  1049. base.Columns.Add(this.columnPhone);
  1050. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1051. base.Columns.Add(this.columnEmail);
  1052. this.columnLogo = new global::System.Data.DataColumn("Logo", typeof(string), null, global::System.Data.MappingType.Element);
  1053. base.Columns.Add(this.columnLogo);
  1054. this.columnPriority = new global::System.Data.DataColumn("Priority", typeof(int), null, global::System.Data.MappingType.Element);
  1055. base.Columns.Add(this.columnPriority);
  1056. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1057. this.columnID}, true));
  1058. this.columnID.AutoIncrement = true;
  1059. this.columnID.AutoIncrementSeed = -1;
  1060. this.columnID.AutoIncrementStep = -1;
  1061. this.columnID.AllowDBNull = false;
  1062. this.columnID.ReadOnly = true;
  1063. this.columnID.Unique = true;
  1064. this.columnTitle.AllowDBNull = false;
  1065. this.columnTitle.MaxLength = 150;
  1066. this.columnAgentTypeID.AllowDBNull = false;
  1067. this.columnAddress.MaxLength = 300;
  1068. this.columnINN.AllowDBNull = false;
  1069. this.columnINN.MaxLength = 12;
  1070. this.columnKPP.MaxLength = 9;
  1071. this.columnDirectorName.MaxLength = 100;
  1072. this.columnPhone.AllowDBNull = false;
  1073. this.columnPhone.MaxLength = 20;
  1074. this.columnEmail.MaxLength = 255;
  1075. this.columnLogo.MaxLength = 100;
  1076. this.columnPriority.AllowDBNull = false;
  1077. }
  1078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1080. public AgentRow NewAgentRow() {
  1081. return ((AgentRow)(this.NewRow()));
  1082. }
  1083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1085. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1086. return new AgentRow(builder);
  1087. }
  1088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1090. protected override global::System.Type GetRowType() {
  1091. return typeof(AgentRow);
  1092. }
  1093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1095. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1096. base.OnRowChanged(e);
  1097. if ((this.AgentRowChanged != null)) {
  1098. this.AgentRowChanged(this, new AgentRowChangeEvent(((AgentRow)(e.Row)), e.Action));
  1099. }
  1100. }
  1101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1103. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1104. base.OnRowChanging(e);
  1105. if ((this.AgentRowChanging != null)) {
  1106. this.AgentRowChanging(this, new AgentRowChangeEvent(((AgentRow)(e.Row)), e.Action));
  1107. }
  1108. }
  1109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1111. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1112. base.OnRowDeleted(e);
  1113. if ((this.AgentRowDeleted != null)) {
  1114. this.AgentRowDeleted(this, new AgentRowChangeEvent(((AgentRow)(e.Row)), e.Action));
  1115. }
  1116. }
  1117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1119. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1120. base.OnRowDeleting(e);
  1121. if ((this.AgentRowDeleting != null)) {
  1122. this.AgentRowDeleting(this, new AgentRowChangeEvent(((AgentRow)(e.Row)), e.Action));
  1123. }
  1124. }
  1125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1127. public void RemoveAgentRow(AgentRow row) {
  1128. this.Rows.Remove(row);
  1129. }
  1130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1132. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1133. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1134. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1135. TestWSR4DataSet ds = new TestWSR4DataSet();
  1136. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1137. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1138. any1.MinOccurs = new decimal(0);
  1139. any1.MaxOccurs = decimal.MaxValue;
  1140. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1141. sequence.Items.Add(any1);
  1142. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1143. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1144. any2.MinOccurs = new decimal(1);
  1145. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1146. sequence.Items.Add(any2);
  1147. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1148. attribute1.Name = "namespace";
  1149. attribute1.FixedValue = ds.Namespace;
  1150. type.Attributes.Add(attribute1);
  1151. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1152. attribute2.Name = "tableTypeName";
  1153. attribute2.FixedValue = "AgentDataTable";
  1154. type.Attributes.Add(attribute2);
  1155. type.Particle = sequence;
  1156. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1157. if (xs.Contains(dsSchema.TargetNamespace)) {
  1158. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1159. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1160. try {
  1161. global::System.Xml.Schema.XmlSchema schema = null;
  1162. dsSchema.Write(s1);
  1163. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1164. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1165. s2.SetLength(0);
  1166. schema.Write(s2);
  1167. if ((s1.Length == s2.Length)) {
  1168. s1.Position = 0;
  1169. s2.Position = 0;
  1170. for (; ((s1.Position != s1.Length)
  1171. && (s1.ReadByte() == s2.ReadByte())); ) {
  1172. ;
  1173. }
  1174. if ((s1.Position == s1.Length)) {
  1175. return type;
  1176. }
  1177. }
  1178. }
  1179. }
  1180. finally {
  1181. if ((s1 != null)) {
  1182. s1.Close();
  1183. }
  1184. if ((s2 != null)) {
  1185. s2.Close();
  1186. }
  1187. }
  1188. }
  1189. xs.Add(dsSchema);
  1190. return type;
  1191. }
  1192. }
  1193. /// <summary>
  1194. ///Represents the strongly named DataTable class.
  1195. ///</summary>
  1196. [global::System.Serializable()]
  1197. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1198. public partial class AgentPriorityHistoryDataTable : global::System.Data.TypedTableBase<AgentPriorityHistoryRow> {
  1199. private global::System.Data.DataColumn columnID;
  1200. private global::System.Data.DataColumn columnAgentID;
  1201. private global::System.Data.DataColumn columnChangeDate;
  1202. private global::System.Data.DataColumn columnPriorityValue;
  1203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1205. public AgentPriorityHistoryDataTable() {
  1206. this.TableName = "AgentPriorityHistory";
  1207. this.BeginInit();
  1208. this.InitClass();
  1209. this.EndInit();
  1210. }
  1211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1213. internal AgentPriorityHistoryDataTable(global::System.Data.DataTable table) {
  1214. this.TableName = table.TableName;
  1215. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1216. this.CaseSensitive = table.CaseSensitive;
  1217. }
  1218. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1219. this.Locale = table.Locale;
  1220. }
  1221. if ((table.Namespace != table.DataSet.Namespace)) {
  1222. this.Namespace = table.Namespace;
  1223. }
  1224. this.Prefix = table.Prefix;
  1225. this.MinimumCapacity = table.MinimumCapacity;
  1226. }
  1227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1229. protected AgentPriorityHistoryDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1230. base(info, context) {
  1231. this.InitVars();
  1232. }
  1233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1235. public global::System.Data.DataColumn IDColumn {
  1236. get {
  1237. return this.columnID;
  1238. }
  1239. }
  1240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1242. public global::System.Data.DataColumn AgentIDColumn {
  1243. get {
  1244. return this.columnAgentID;
  1245. }
  1246. }
  1247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1249. public global::System.Data.DataColumn ChangeDateColumn {
  1250. get {
  1251. return this.columnChangeDate;
  1252. }
  1253. }
  1254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1256. public global::System.Data.DataColumn PriorityValueColumn {
  1257. get {
  1258. return this.columnPriorityValue;
  1259. }
  1260. }
  1261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1263. [global::System.ComponentModel.Browsable(false)]
  1264. public int Count {
  1265. get {
  1266. return this.Rows.Count;
  1267. }
  1268. }
  1269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1271. public AgentPriorityHistoryRow this[int index] {
  1272. get {
  1273. return ((AgentPriorityHistoryRow)(this.Rows[index]));
  1274. }
  1275. }
  1276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1277. public event AgentPriorityHistoryRowChangeEventHandler AgentPriorityHistoryRowChanging;
  1278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1279. public event AgentPriorityHistoryRowChangeEventHandler AgentPriorityHistoryRowChanged;
  1280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1281. public event AgentPriorityHistoryRowChangeEventHandler AgentPriorityHistoryRowDeleting;
  1282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1283. public event AgentPriorityHistoryRowChangeEventHandler AgentPriorityHistoryRowDeleted;
  1284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1286. public void AddAgentPriorityHistoryRow(AgentPriorityHistoryRow row) {
  1287. this.Rows.Add(row);
  1288. }
  1289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1291. public AgentPriorityHistoryRow AddAgentPriorityHistoryRow(AgentRow parentAgentRowByFK_AgentPriorityHistory_Agent, System.DateTime ChangeDate, int PriorityValue) {
  1292. AgentPriorityHistoryRow rowAgentPriorityHistoryRow = ((AgentPriorityHistoryRow)(this.NewRow()));
  1293. object[] columnValuesArray = new object[] {
  1294. null,
  1295. null,
  1296. ChangeDate,
  1297. PriorityValue};
  1298. if ((parentAgentRowByFK_AgentPriorityHistory_Agent != null)) {
  1299. columnValuesArray[1] = parentAgentRowByFK_AgentPriorityHistory_Agent[0];
  1300. }
  1301. rowAgentPriorityHistoryRow.ItemArray = columnValuesArray;
  1302. this.Rows.Add(rowAgentPriorityHistoryRow);
  1303. return rowAgentPriorityHistoryRow;
  1304. }
  1305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1307. public AgentPriorityHistoryRow FindByID(int ID) {
  1308. return ((AgentPriorityHistoryRow)(this.Rows.Find(new object[] {
  1309. ID})));
  1310. }
  1311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1313. public override global::System.Data.DataTable Clone() {
  1314. AgentPriorityHistoryDataTable cln = ((AgentPriorityHistoryDataTable)(base.Clone()));
  1315. cln.InitVars();
  1316. return cln;
  1317. }
  1318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1320. protected override global::System.Data.DataTable CreateInstance() {
  1321. return new AgentPriorityHistoryDataTable();
  1322. }
  1323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1325. internal void InitVars() {
  1326. this.columnID = base.Columns["ID"];
  1327. this.columnAgentID = base.Columns["AgentID"];
  1328. this.columnChangeDate = base.Columns["ChangeDate"];
  1329. this.columnPriorityValue = base.Columns["PriorityValue"];
  1330. }
  1331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1333. private void InitClass() {
  1334. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1335. base.Columns.Add(this.columnID);
  1336. this.columnAgentID = new global::System.Data.DataColumn("AgentID", typeof(int), null, global::System.Data.MappingType.Element);
  1337. base.Columns.Add(this.columnAgentID);
  1338. this.columnChangeDate = new global::System.Data.DataColumn("ChangeDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1339. base.Columns.Add(this.columnChangeDate);
  1340. this.columnPriorityValue = new global::System.Data.DataColumn("PriorityValue", typeof(int), null, global::System.Data.MappingType.Element);
  1341. base.Columns.Add(this.columnPriorityValue);
  1342. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1343. this.columnID}, true));
  1344. this.columnID.AutoIncrement = true;
  1345. this.columnID.AutoIncrementSeed = -1;
  1346. this.columnID.AutoIncrementStep = -1;
  1347. this.columnID.AllowDBNull = false;
  1348. this.columnID.ReadOnly = true;
  1349. this.columnID.Unique = true;
  1350. this.columnAgentID.AllowDBNull = false;
  1351. this.columnChangeDate.AllowDBNull = false;
  1352. this.columnPriorityValue.AllowDBNull = false;
  1353. }
  1354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1356. public AgentPriorityHistoryRow NewAgentPriorityHistoryRow() {
  1357. return ((AgentPriorityHistoryRow)(this.NewRow()));
  1358. }
  1359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1361. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1362. return new AgentPriorityHistoryRow(builder);
  1363. }
  1364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1366. protected override global::System.Type GetRowType() {
  1367. return typeof(AgentPriorityHistoryRow);
  1368. }
  1369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1371. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1372. base.OnRowChanged(e);
  1373. if ((this.AgentPriorityHistoryRowChanged != null)) {
  1374. this.AgentPriorityHistoryRowChanged(this, new AgentPriorityHistoryRowChangeEvent(((AgentPriorityHistoryRow)(e.Row)), e.Action));
  1375. }
  1376. }
  1377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1379. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1380. base.OnRowChanging(e);
  1381. if ((this.AgentPriorityHistoryRowChanging != null)) {
  1382. this.AgentPriorityHistoryRowChanging(this, new AgentPriorityHistoryRowChangeEvent(((AgentPriorityHistoryRow)(e.Row)), e.Action));
  1383. }
  1384. }
  1385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1387. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1388. base.OnRowDeleted(e);
  1389. if ((this.AgentPriorityHistoryRowDeleted != null)) {
  1390. this.AgentPriorityHistoryRowDeleted(this, new AgentPriorityHistoryRowChangeEvent(((AgentPriorityHistoryRow)(e.Row)), e.Action));
  1391. }
  1392. }
  1393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1395. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1396. base.OnRowDeleting(e);
  1397. if ((this.AgentPriorityHistoryRowDeleting != null)) {
  1398. this.AgentPriorityHistoryRowDeleting(this, new AgentPriorityHistoryRowChangeEvent(((AgentPriorityHistoryRow)(e.Row)), e.Action));
  1399. }
  1400. }
  1401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1403. public void RemoveAgentPriorityHistoryRow(AgentPriorityHistoryRow row) {
  1404. this.Rows.Remove(row);
  1405. }
  1406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1408. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1409. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1410. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1411. TestWSR4DataSet ds = new TestWSR4DataSet();
  1412. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1413. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1414. any1.MinOccurs = new decimal(0);
  1415. any1.MaxOccurs = decimal.MaxValue;
  1416. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1417. sequence.Items.Add(any1);
  1418. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1419. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1420. any2.MinOccurs = new decimal(1);
  1421. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1422. sequence.Items.Add(any2);
  1423. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1424. attribute1.Name = "namespace";
  1425. attribute1.FixedValue = ds.Namespace;
  1426. type.Attributes.Add(attribute1);
  1427. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1428. attribute2.Name = "tableTypeName";
  1429. attribute2.FixedValue = "AgentPriorityHistoryDataTable";
  1430. type.Attributes.Add(attribute2);
  1431. type.Particle = sequence;
  1432. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1433. if (xs.Contains(dsSchema.TargetNamespace)) {
  1434. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1435. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1436. try {
  1437. global::System.Xml.Schema.XmlSchema schema = null;
  1438. dsSchema.Write(s1);
  1439. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1440. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1441. s2.SetLength(0);
  1442. schema.Write(s2);
  1443. if ((s1.Length == s2.Length)) {
  1444. s1.Position = 0;
  1445. s2.Position = 0;
  1446. for (; ((s1.Position != s1.Length)
  1447. && (s1.ReadByte() == s2.ReadByte())); ) {
  1448. ;
  1449. }
  1450. if ((s1.Position == s1.Length)) {
  1451. return type;
  1452. }
  1453. }
  1454. }
  1455. }
  1456. finally {
  1457. if ((s1 != null)) {
  1458. s1.Close();
  1459. }
  1460. if ((s2 != null)) {
  1461. s2.Close();
  1462. }
  1463. }
  1464. }
  1465. xs.Add(dsSchema);
  1466. return type;
  1467. }
  1468. }
  1469. /// <summary>
  1470. ///Represents the strongly named DataTable class.
  1471. ///</summary>
  1472. [global::System.Serializable()]
  1473. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1474. public partial class AgentTypeDataTable : global::System.Data.TypedTableBase<AgentTypeRow> {
  1475. private global::System.Data.DataColumn columnID;
  1476. private global::System.Data.DataColumn columnTitle;
  1477. private global::System.Data.DataColumn columnImage;
  1478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1480. public AgentTypeDataTable() {
  1481. this.TableName = "AgentType";
  1482. this.BeginInit();
  1483. this.InitClass();
  1484. this.EndInit();
  1485. }
  1486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1488. internal AgentTypeDataTable(global::System.Data.DataTable table) {
  1489. this.TableName = table.TableName;
  1490. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1491. this.CaseSensitive = table.CaseSensitive;
  1492. }
  1493. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1494. this.Locale = table.Locale;
  1495. }
  1496. if ((table.Namespace != table.DataSet.Namespace)) {
  1497. this.Namespace = table.Namespace;
  1498. }
  1499. this.Prefix = table.Prefix;
  1500. this.MinimumCapacity = table.MinimumCapacity;
  1501. }
  1502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1504. protected AgentTypeDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1505. base(info, context) {
  1506. this.InitVars();
  1507. }
  1508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1510. public global::System.Data.DataColumn IDColumn {
  1511. get {
  1512. return this.columnID;
  1513. }
  1514. }
  1515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1517. public global::System.Data.DataColumn TitleColumn {
  1518. get {
  1519. return this.columnTitle;
  1520. }
  1521. }
  1522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1524. public global::System.Data.DataColumn ImageColumn {
  1525. get {
  1526. return this.columnImage;
  1527. }
  1528. }
  1529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1531. [global::System.ComponentModel.Browsable(false)]
  1532. public int Count {
  1533. get {
  1534. return this.Rows.Count;
  1535. }
  1536. }
  1537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1539. public AgentTypeRow this[int index] {
  1540. get {
  1541. return ((AgentTypeRow)(this.Rows[index]));
  1542. }
  1543. }
  1544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1545. public event AgentTypeRowChangeEventHandler AgentTypeRowChanging;
  1546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1547. public event AgentTypeRowChangeEventHandler AgentTypeRowChanged;
  1548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1549. public event AgentTypeRowChangeEventHandler AgentTypeRowDeleting;
  1550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1551. public event AgentTypeRowChangeEventHandler AgentTypeRowDeleted;
  1552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1554. public void AddAgentTypeRow(AgentTypeRow row) {
  1555. this.Rows.Add(row);
  1556. }
  1557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1559. public AgentTypeRow AddAgentTypeRow(string Title, string Image) {
  1560. AgentTypeRow rowAgentTypeRow = ((AgentTypeRow)(this.NewRow()));
  1561. object[] columnValuesArray = new object[] {
  1562. null,
  1563. Title,
  1564. Image};
  1565. rowAgentTypeRow.ItemArray = columnValuesArray;
  1566. this.Rows.Add(rowAgentTypeRow);
  1567. return rowAgentTypeRow;
  1568. }
  1569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1571. public AgentTypeRow FindByID(int ID) {
  1572. return ((AgentTypeRow)(this.Rows.Find(new object[] {
  1573. ID})));
  1574. }
  1575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1577. public override global::System.Data.DataTable Clone() {
  1578. AgentTypeDataTable cln = ((AgentTypeDataTable)(base.Clone()));
  1579. cln.InitVars();
  1580. return cln;
  1581. }
  1582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1584. protected override global::System.Data.DataTable CreateInstance() {
  1585. return new AgentTypeDataTable();
  1586. }
  1587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1589. internal void InitVars() {
  1590. this.columnID = base.Columns["ID"];
  1591. this.columnTitle = base.Columns["Title"];
  1592. this.columnImage = base.Columns["Image"];
  1593. }
  1594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1596. private void InitClass() {
  1597. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1598. base.Columns.Add(this.columnID);
  1599. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  1600. base.Columns.Add(this.columnTitle);
  1601. this.columnImage = new global::System.Data.DataColumn("Image", typeof(string), null, global::System.Data.MappingType.Element);
  1602. base.Columns.Add(this.columnImage);
  1603. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1604. this.columnID}, true));
  1605. this.columnID.AutoIncrement = true;
  1606. this.columnID.AutoIncrementSeed = -1;
  1607. this.columnID.AutoIncrementStep = -1;
  1608. this.columnID.AllowDBNull = false;
  1609. this.columnID.ReadOnly = true;
  1610. this.columnID.Unique = true;
  1611. this.columnTitle.AllowDBNull = false;
  1612. this.columnTitle.MaxLength = 50;
  1613. this.columnImage.MaxLength = 100;
  1614. }
  1615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1617. public AgentTypeRow NewAgentTypeRow() {
  1618. return ((AgentTypeRow)(this.NewRow()));
  1619. }
  1620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1622. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1623. return new AgentTypeRow(builder);
  1624. }
  1625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1627. protected override global::System.Type GetRowType() {
  1628. return typeof(AgentTypeRow);
  1629. }
  1630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1632. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1633. base.OnRowChanged(e);
  1634. if ((this.AgentTypeRowChanged != null)) {
  1635. this.AgentTypeRowChanged(this, new AgentTypeRowChangeEvent(((AgentTypeRow)(e.Row)), e.Action));
  1636. }
  1637. }
  1638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1640. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1641. base.OnRowChanging(e);
  1642. if ((this.AgentTypeRowChanging != null)) {
  1643. this.AgentTypeRowChanging(this, new AgentTypeRowChangeEvent(((AgentTypeRow)(e.Row)), e.Action));
  1644. }
  1645. }
  1646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1648. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1649. base.OnRowDeleted(e);
  1650. if ((this.AgentTypeRowDeleted != null)) {
  1651. this.AgentTypeRowDeleted(this, new AgentTypeRowChangeEvent(((AgentTypeRow)(e.Row)), e.Action));
  1652. }
  1653. }
  1654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1656. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1657. base.OnRowDeleting(e);
  1658. if ((this.AgentTypeRowDeleting != null)) {
  1659. this.AgentTypeRowDeleting(this, new AgentTypeRowChangeEvent(((AgentTypeRow)(e.Row)), e.Action));
  1660. }
  1661. }
  1662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1664. public void RemoveAgentTypeRow(AgentTypeRow row) {
  1665. this.Rows.Remove(row);
  1666. }
  1667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1669. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1670. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1671. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1672. TestWSR4DataSet ds = new TestWSR4DataSet();
  1673. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1674. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1675. any1.MinOccurs = new decimal(0);
  1676. any1.MaxOccurs = decimal.MaxValue;
  1677. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1678. sequence.Items.Add(any1);
  1679. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1680. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1681. any2.MinOccurs = new decimal(1);
  1682. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1683. sequence.Items.Add(any2);
  1684. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1685. attribute1.Name = "namespace";
  1686. attribute1.FixedValue = ds.Namespace;
  1687. type.Attributes.Add(attribute1);
  1688. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1689. attribute2.Name = "tableTypeName";
  1690. attribute2.FixedValue = "AgentTypeDataTable";
  1691. type.Attributes.Add(attribute2);
  1692. type.Particle = sequence;
  1693. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1694. if (xs.Contains(dsSchema.TargetNamespace)) {
  1695. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1696. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1697. try {
  1698. global::System.Xml.Schema.XmlSchema schema = null;
  1699. dsSchema.Write(s1);
  1700. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1701. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1702. s2.SetLength(0);
  1703. schema.Write(s2);
  1704. if ((s1.Length == s2.Length)) {
  1705. s1.Position = 0;
  1706. s2.Position = 0;
  1707. for (; ((s1.Position != s1.Length)
  1708. && (s1.ReadByte() == s2.ReadByte())); ) {
  1709. ;
  1710. }
  1711. if ((s1.Position == s1.Length)) {
  1712. return type;
  1713. }
  1714. }
  1715. }
  1716. }
  1717. finally {
  1718. if ((s1 != null)) {
  1719. s1.Close();
  1720. }
  1721. if ((s2 != null)) {
  1722. s2.Close();
  1723. }
  1724. }
  1725. }
  1726. xs.Add(dsSchema);
  1727. return type;
  1728. }
  1729. }
  1730. /// <summary>
  1731. ///Represents the strongly named DataTable class.
  1732. ///</summary>
  1733. [global::System.Serializable()]
  1734. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1735. public partial class MaterialDataTable : global::System.Data.TypedTableBase<MaterialRow> {
  1736. private global::System.Data.DataColumn columnID;
  1737. private global::System.Data.DataColumn columnTitle;
  1738. private global::System.Data.DataColumn columnCountInPack;
  1739. private global::System.Data.DataColumn columnUnit;
  1740. private global::System.Data.DataColumn columnCountInStock;
  1741. private global::System.Data.DataColumn columnMinCount;
  1742. private global::System.Data.DataColumn columnDescription;
  1743. private global::System.Data.DataColumn columnCost;
  1744. private global::System.Data.DataColumn columnImage;
  1745. private global::System.Data.DataColumn columnMaterialTypeID;
  1746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1748. public MaterialDataTable() {
  1749. this.TableName = "Material";
  1750. this.BeginInit();
  1751. this.InitClass();
  1752. this.EndInit();
  1753. }
  1754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1756. internal MaterialDataTable(global::System.Data.DataTable table) {
  1757. this.TableName = table.TableName;
  1758. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1759. this.CaseSensitive = table.CaseSensitive;
  1760. }
  1761. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1762. this.Locale = table.Locale;
  1763. }
  1764. if ((table.Namespace != table.DataSet.Namespace)) {
  1765. this.Namespace = table.Namespace;
  1766. }
  1767. this.Prefix = table.Prefix;
  1768. this.MinimumCapacity = table.MinimumCapacity;
  1769. }
  1770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1772. protected MaterialDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1773. base(info, context) {
  1774. this.InitVars();
  1775. }
  1776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1778. public global::System.Data.DataColumn IDColumn {
  1779. get {
  1780. return this.columnID;
  1781. }
  1782. }
  1783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1785. public global::System.Data.DataColumn TitleColumn {
  1786. get {
  1787. return this.columnTitle;
  1788. }
  1789. }
  1790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1792. public global::System.Data.DataColumn CountInPackColumn {
  1793. get {
  1794. return this.columnCountInPack;
  1795. }
  1796. }
  1797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1799. public global::System.Data.DataColumn UnitColumn {
  1800. get {
  1801. return this.columnUnit;
  1802. }
  1803. }
  1804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1806. public global::System.Data.DataColumn CountInStockColumn {
  1807. get {
  1808. return this.columnCountInStock;
  1809. }
  1810. }
  1811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1813. public global::System.Data.DataColumn MinCountColumn {
  1814. get {
  1815. return this.columnMinCount;
  1816. }
  1817. }
  1818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1820. public global::System.Data.DataColumn DescriptionColumn {
  1821. get {
  1822. return this.columnDescription;
  1823. }
  1824. }
  1825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1827. public global::System.Data.DataColumn CostColumn {
  1828. get {
  1829. return this.columnCost;
  1830. }
  1831. }
  1832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1834. public global::System.Data.DataColumn ImageColumn {
  1835. get {
  1836. return this.columnImage;
  1837. }
  1838. }
  1839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1841. public global::System.Data.DataColumn MaterialTypeIDColumn {
  1842. get {
  1843. return this.columnMaterialTypeID;
  1844. }
  1845. }
  1846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1848. [global::System.ComponentModel.Browsable(false)]
  1849. public int Count {
  1850. get {
  1851. return this.Rows.Count;
  1852. }
  1853. }
  1854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1856. public MaterialRow this[int index] {
  1857. get {
  1858. return ((MaterialRow)(this.Rows[index]));
  1859. }
  1860. }
  1861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1862. public event MaterialRowChangeEventHandler MaterialRowChanging;
  1863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1864. public event MaterialRowChangeEventHandler MaterialRowChanged;
  1865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1866. public event MaterialRowChangeEventHandler MaterialRowDeleting;
  1867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1868. public event MaterialRowChangeEventHandler MaterialRowDeleted;
  1869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1871. public void AddMaterialRow(MaterialRow row) {
  1872. this.Rows.Add(row);
  1873. }
  1874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1876. public MaterialRow AddMaterialRow(string Title, int CountInPack, string Unit, double CountInStock, double MinCount, string Description, decimal Cost, string Image, MaterialTypeRow parentMaterialTypeRowByFK_Material_MaterialType) {
  1877. MaterialRow rowMaterialRow = ((MaterialRow)(this.NewRow()));
  1878. object[] columnValuesArray = new object[] {
  1879. null,
  1880. Title,
  1881. CountInPack,
  1882. Unit,
  1883. CountInStock,
  1884. MinCount,
  1885. Description,
  1886. Cost,
  1887. Image,
  1888. null};
  1889. if ((parentMaterialTypeRowByFK_Material_MaterialType != null)) {
  1890. columnValuesArray[9] = parentMaterialTypeRowByFK_Material_MaterialType[0];
  1891. }
  1892. rowMaterialRow.ItemArray = columnValuesArray;
  1893. this.Rows.Add(rowMaterialRow);
  1894. return rowMaterialRow;
  1895. }
  1896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1898. public MaterialRow FindByID(int ID) {
  1899. return ((MaterialRow)(this.Rows.Find(new object[] {
  1900. ID})));
  1901. }
  1902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1904. public override global::System.Data.DataTable Clone() {
  1905. MaterialDataTable cln = ((MaterialDataTable)(base.Clone()));
  1906. cln.InitVars();
  1907. return cln;
  1908. }
  1909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1911. protected override global::System.Data.DataTable CreateInstance() {
  1912. return new MaterialDataTable();
  1913. }
  1914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1916. internal void InitVars() {
  1917. this.columnID = base.Columns["ID"];
  1918. this.columnTitle = base.Columns["Title"];
  1919. this.columnCountInPack = base.Columns["CountInPack"];
  1920. this.columnUnit = base.Columns["Unit"];
  1921. this.columnCountInStock = base.Columns["CountInStock"];
  1922. this.columnMinCount = base.Columns["MinCount"];
  1923. this.columnDescription = base.Columns["Description"];
  1924. this.columnCost = base.Columns["Cost"];
  1925. this.columnImage = base.Columns["Image"];
  1926. this.columnMaterialTypeID = base.Columns["MaterialTypeID"];
  1927. }
  1928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1930. private void InitClass() {
  1931. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1932. base.Columns.Add(this.columnID);
  1933. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  1934. base.Columns.Add(this.columnTitle);
  1935. this.columnCountInPack = new global::System.Data.DataColumn("CountInPack", typeof(int), null, global::System.Data.MappingType.Element);
  1936. base.Columns.Add(this.columnCountInPack);
  1937. this.columnUnit = new global::System.Data.DataColumn("Unit", typeof(string), null, global::System.Data.MappingType.Element);
  1938. base.Columns.Add(this.columnUnit);
  1939. this.columnCountInStock = new global::System.Data.DataColumn("CountInStock", typeof(double), null, global::System.Data.MappingType.Element);
  1940. base.Columns.Add(this.columnCountInStock);
  1941. this.columnMinCount = new global::System.Data.DataColumn("MinCount", typeof(double), null, global::System.Data.MappingType.Element);
  1942. base.Columns.Add(this.columnMinCount);
  1943. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  1944. base.Columns.Add(this.columnDescription);
  1945. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  1946. base.Columns.Add(this.columnCost);
  1947. this.columnImage = new global::System.Data.DataColumn("Image", typeof(string), null, global::System.Data.MappingType.Element);
  1948. base.Columns.Add(this.columnImage);
  1949. this.columnMaterialTypeID = new global::System.Data.DataColumn("MaterialTypeID", typeof(int), null, global::System.Data.MappingType.Element);
  1950. base.Columns.Add(this.columnMaterialTypeID);
  1951. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1952. this.columnID}, true));
  1953. this.columnID.AutoIncrement = true;
  1954. this.columnID.AutoIncrementSeed = -1;
  1955. this.columnID.AutoIncrementStep = -1;
  1956. this.columnID.AllowDBNull = false;
  1957. this.columnID.ReadOnly = true;
  1958. this.columnID.Unique = true;
  1959. this.columnTitle.AllowDBNull = false;
  1960. this.columnTitle.MaxLength = 100;
  1961. this.columnCountInPack.AllowDBNull = false;
  1962. this.columnUnit.AllowDBNull = false;
  1963. this.columnUnit.MaxLength = 10;
  1964. this.columnMinCount.AllowDBNull = false;
  1965. this.columnDescription.MaxLength = 2147483647;
  1966. this.columnCost.AllowDBNull = false;
  1967. this.columnImage.MaxLength = 100;
  1968. this.columnMaterialTypeID.AllowDBNull = false;
  1969. }
  1970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1972. public MaterialRow NewMaterialRow() {
  1973. return ((MaterialRow)(this.NewRow()));
  1974. }
  1975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1977. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1978. return new MaterialRow(builder);
  1979. }
  1980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1982. protected override global::System.Type GetRowType() {
  1983. return typeof(MaterialRow);
  1984. }
  1985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1987. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1988. base.OnRowChanged(e);
  1989. if ((this.MaterialRowChanged != null)) {
  1990. this.MaterialRowChanged(this, new MaterialRowChangeEvent(((MaterialRow)(e.Row)), e.Action));
  1991. }
  1992. }
  1993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1995. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1996. base.OnRowChanging(e);
  1997. if ((this.MaterialRowChanging != null)) {
  1998. this.MaterialRowChanging(this, new MaterialRowChangeEvent(((MaterialRow)(e.Row)), e.Action));
  1999. }
  2000. }
  2001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2003. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2004. base.OnRowDeleted(e);
  2005. if ((this.MaterialRowDeleted != null)) {
  2006. this.MaterialRowDeleted(this, new MaterialRowChangeEvent(((MaterialRow)(e.Row)), e.Action));
  2007. }
  2008. }
  2009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2011. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2012. base.OnRowDeleting(e);
  2013. if ((this.MaterialRowDeleting != null)) {
  2014. this.MaterialRowDeleting(this, new MaterialRowChangeEvent(((MaterialRow)(e.Row)), e.Action));
  2015. }
  2016. }
  2017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2019. public void RemoveMaterialRow(MaterialRow row) {
  2020. this.Rows.Remove(row);
  2021. }
  2022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2024. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2025. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2026. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2027. TestWSR4DataSet ds = new TestWSR4DataSet();
  2028. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2029. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2030. any1.MinOccurs = new decimal(0);
  2031. any1.MaxOccurs = decimal.MaxValue;
  2032. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2033. sequence.Items.Add(any1);
  2034. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2035. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2036. any2.MinOccurs = new decimal(1);
  2037. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2038. sequence.Items.Add(any2);
  2039. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2040. attribute1.Name = "namespace";
  2041. attribute1.FixedValue = ds.Namespace;
  2042. type.Attributes.Add(attribute1);
  2043. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2044. attribute2.Name = "tableTypeName";
  2045. attribute2.FixedValue = "MaterialDataTable";
  2046. type.Attributes.Add(attribute2);
  2047. type.Particle = sequence;
  2048. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2049. if (xs.Contains(dsSchema.TargetNamespace)) {
  2050. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2051. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2052. try {
  2053. global::System.Xml.Schema.XmlSchema schema = null;
  2054. dsSchema.Write(s1);
  2055. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2056. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2057. s2.SetLength(0);
  2058. schema.Write(s2);
  2059. if ((s1.Length == s2.Length)) {
  2060. s1.Position = 0;
  2061. s2.Position = 0;
  2062. for (; ((s1.Position != s1.Length)
  2063. && (s1.ReadByte() == s2.ReadByte())); ) {
  2064. ;
  2065. }
  2066. if ((s1.Position == s1.Length)) {
  2067. return type;
  2068. }
  2069. }
  2070. }
  2071. }
  2072. finally {
  2073. if ((s1 != null)) {
  2074. s1.Close();
  2075. }
  2076. if ((s2 != null)) {
  2077. s2.Close();
  2078. }
  2079. }
  2080. }
  2081. xs.Add(dsSchema);
  2082. return type;
  2083. }
  2084. }
  2085. /// <summary>
  2086. ///Represents the strongly named DataTable class.
  2087. ///</summary>
  2088. [global::System.Serializable()]
  2089. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2090. public partial class MaterialCountHistoryDataTable : global::System.Data.TypedTableBase<MaterialCountHistoryRow> {
  2091. private global::System.Data.DataColumn columnID;
  2092. private global::System.Data.DataColumn columnMaterialID;
  2093. private global::System.Data.DataColumn columnChangeDate;
  2094. private global::System.Data.DataColumn columnCountValue;
  2095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2097. public MaterialCountHistoryDataTable() {
  2098. this.TableName = "MaterialCountHistory";
  2099. this.BeginInit();
  2100. this.InitClass();
  2101. this.EndInit();
  2102. }
  2103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2105. internal MaterialCountHistoryDataTable(global::System.Data.DataTable table) {
  2106. this.TableName = table.TableName;
  2107. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2108. this.CaseSensitive = table.CaseSensitive;
  2109. }
  2110. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2111. this.Locale = table.Locale;
  2112. }
  2113. if ((table.Namespace != table.DataSet.Namespace)) {
  2114. this.Namespace = table.Namespace;
  2115. }
  2116. this.Prefix = table.Prefix;
  2117. this.MinimumCapacity = table.MinimumCapacity;
  2118. }
  2119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2121. protected MaterialCountHistoryDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2122. base(info, context) {
  2123. this.InitVars();
  2124. }
  2125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2127. public global::System.Data.DataColumn IDColumn {
  2128. get {
  2129. return this.columnID;
  2130. }
  2131. }
  2132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2134. public global::System.Data.DataColumn MaterialIDColumn {
  2135. get {
  2136. return this.columnMaterialID;
  2137. }
  2138. }
  2139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2141. public global::System.Data.DataColumn ChangeDateColumn {
  2142. get {
  2143. return this.columnChangeDate;
  2144. }
  2145. }
  2146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2148. public global::System.Data.DataColumn CountValueColumn {
  2149. get {
  2150. return this.columnCountValue;
  2151. }
  2152. }
  2153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2155. [global::System.ComponentModel.Browsable(false)]
  2156. public int Count {
  2157. get {
  2158. return this.Rows.Count;
  2159. }
  2160. }
  2161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2163. public MaterialCountHistoryRow this[int index] {
  2164. get {
  2165. return ((MaterialCountHistoryRow)(this.Rows[index]));
  2166. }
  2167. }
  2168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2169. public event MaterialCountHistoryRowChangeEventHandler MaterialCountHistoryRowChanging;
  2170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2171. public event MaterialCountHistoryRowChangeEventHandler MaterialCountHistoryRowChanged;
  2172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2173. public event MaterialCountHistoryRowChangeEventHandler MaterialCountHistoryRowDeleting;
  2174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2175. public event MaterialCountHistoryRowChangeEventHandler MaterialCountHistoryRowDeleted;
  2176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2178. public void AddMaterialCountHistoryRow(MaterialCountHistoryRow row) {
  2179. this.Rows.Add(row);
  2180. }
  2181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2183. public MaterialCountHistoryRow AddMaterialCountHistoryRow(MaterialRow parentMaterialRowByFK_MaterialCountHistory_Material, System.DateTime ChangeDate, double CountValue) {
  2184. MaterialCountHistoryRow rowMaterialCountHistoryRow = ((MaterialCountHistoryRow)(this.NewRow()));
  2185. object[] columnValuesArray = new object[] {
  2186. null,
  2187. null,
  2188. ChangeDate,
  2189. CountValue};
  2190. if ((parentMaterialRowByFK_MaterialCountHistory_Material != null)) {
  2191. columnValuesArray[1] = parentMaterialRowByFK_MaterialCountHistory_Material[0];
  2192. }
  2193. rowMaterialCountHistoryRow.ItemArray = columnValuesArray;
  2194. this.Rows.Add(rowMaterialCountHistoryRow);
  2195. return rowMaterialCountHistoryRow;
  2196. }
  2197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2199. public MaterialCountHistoryRow FindByID(int ID) {
  2200. return ((MaterialCountHistoryRow)(this.Rows.Find(new object[] {
  2201. ID})));
  2202. }
  2203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2205. public override global::System.Data.DataTable Clone() {
  2206. MaterialCountHistoryDataTable cln = ((MaterialCountHistoryDataTable)(base.Clone()));
  2207. cln.InitVars();
  2208. return cln;
  2209. }
  2210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2212. protected override global::System.Data.DataTable CreateInstance() {
  2213. return new MaterialCountHistoryDataTable();
  2214. }
  2215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2217. internal void InitVars() {
  2218. this.columnID = base.Columns["ID"];
  2219. this.columnMaterialID = base.Columns["MaterialID"];
  2220. this.columnChangeDate = base.Columns["ChangeDate"];
  2221. this.columnCountValue = base.Columns["CountValue"];
  2222. }
  2223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2225. private void InitClass() {
  2226. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2227. base.Columns.Add(this.columnID);
  2228. this.columnMaterialID = new global::System.Data.DataColumn("MaterialID", typeof(int), null, global::System.Data.MappingType.Element);
  2229. base.Columns.Add(this.columnMaterialID);
  2230. this.columnChangeDate = new global::System.Data.DataColumn("ChangeDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2231. base.Columns.Add(this.columnChangeDate);
  2232. this.columnCountValue = new global::System.Data.DataColumn("CountValue", typeof(double), null, global::System.Data.MappingType.Element);
  2233. base.Columns.Add(this.columnCountValue);
  2234. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2235. this.columnID}, true));
  2236. this.columnID.AutoIncrement = true;
  2237. this.columnID.AutoIncrementSeed = -1;
  2238. this.columnID.AutoIncrementStep = -1;
  2239. this.columnID.AllowDBNull = false;
  2240. this.columnID.ReadOnly = true;
  2241. this.columnID.Unique = true;
  2242. this.columnMaterialID.AllowDBNull = false;
  2243. this.columnChangeDate.AllowDBNull = false;
  2244. this.columnCountValue.AllowDBNull = false;
  2245. }
  2246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2248. public MaterialCountHistoryRow NewMaterialCountHistoryRow() {
  2249. return ((MaterialCountHistoryRow)(this.NewRow()));
  2250. }
  2251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2253. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2254. return new MaterialCountHistoryRow(builder);
  2255. }
  2256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2258. protected override global::System.Type GetRowType() {
  2259. return typeof(MaterialCountHistoryRow);
  2260. }
  2261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2263. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2264. base.OnRowChanged(e);
  2265. if ((this.MaterialCountHistoryRowChanged != null)) {
  2266. this.MaterialCountHistoryRowChanged(this, new MaterialCountHistoryRowChangeEvent(((MaterialCountHistoryRow)(e.Row)), e.Action));
  2267. }
  2268. }
  2269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2271. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2272. base.OnRowChanging(e);
  2273. if ((this.MaterialCountHistoryRowChanging != null)) {
  2274. this.MaterialCountHistoryRowChanging(this, new MaterialCountHistoryRowChangeEvent(((MaterialCountHistoryRow)(e.Row)), e.Action));
  2275. }
  2276. }
  2277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2279. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2280. base.OnRowDeleted(e);
  2281. if ((this.MaterialCountHistoryRowDeleted != null)) {
  2282. this.MaterialCountHistoryRowDeleted(this, new MaterialCountHistoryRowChangeEvent(((MaterialCountHistoryRow)(e.Row)), e.Action));
  2283. }
  2284. }
  2285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2287. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2288. base.OnRowDeleting(e);
  2289. if ((this.MaterialCountHistoryRowDeleting != null)) {
  2290. this.MaterialCountHistoryRowDeleting(this, new MaterialCountHistoryRowChangeEvent(((MaterialCountHistoryRow)(e.Row)), e.Action));
  2291. }
  2292. }
  2293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2295. public void RemoveMaterialCountHistoryRow(MaterialCountHistoryRow row) {
  2296. this.Rows.Remove(row);
  2297. }
  2298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2300. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2301. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2302. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2303. TestWSR4DataSet ds = new TestWSR4DataSet();
  2304. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2305. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2306. any1.MinOccurs = new decimal(0);
  2307. any1.MaxOccurs = decimal.MaxValue;
  2308. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2309. sequence.Items.Add(any1);
  2310. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2311. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2312. any2.MinOccurs = new decimal(1);
  2313. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2314. sequence.Items.Add(any2);
  2315. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2316. attribute1.Name = "namespace";
  2317. attribute1.FixedValue = ds.Namespace;
  2318. type.Attributes.Add(attribute1);
  2319. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2320. attribute2.Name = "tableTypeName";
  2321. attribute2.FixedValue = "MaterialCountHistoryDataTable";
  2322. type.Attributes.Add(attribute2);
  2323. type.Particle = sequence;
  2324. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2325. if (xs.Contains(dsSchema.TargetNamespace)) {
  2326. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2327. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2328. try {
  2329. global::System.Xml.Schema.XmlSchema schema = null;
  2330. dsSchema.Write(s1);
  2331. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2332. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2333. s2.SetLength(0);
  2334. schema.Write(s2);
  2335. if ((s1.Length == s2.Length)) {
  2336. s1.Position = 0;
  2337. s2.Position = 0;
  2338. for (; ((s1.Position != s1.Length)
  2339. && (s1.ReadByte() == s2.ReadByte())); ) {
  2340. ;
  2341. }
  2342. if ((s1.Position == s1.Length)) {
  2343. return type;
  2344. }
  2345. }
  2346. }
  2347. }
  2348. finally {
  2349. if ((s1 != null)) {
  2350. s1.Close();
  2351. }
  2352. if ((s2 != null)) {
  2353. s2.Close();
  2354. }
  2355. }
  2356. }
  2357. xs.Add(dsSchema);
  2358. return type;
  2359. }
  2360. }
  2361. /// <summary>
  2362. ///Represents the strongly named DataTable class.
  2363. ///</summary>
  2364. [global::System.Serializable()]
  2365. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2366. public partial class MaterialSupplierDataTable : global::System.Data.TypedTableBase<MaterialSupplierRow> {
  2367. private global::System.Data.DataColumn columnMaterialID;
  2368. private global::System.Data.DataColumn columnSupplierID;
  2369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2371. public MaterialSupplierDataTable() {
  2372. this.TableName = "MaterialSupplier";
  2373. this.BeginInit();
  2374. this.InitClass();
  2375. this.EndInit();
  2376. }
  2377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2379. internal MaterialSupplierDataTable(global::System.Data.DataTable table) {
  2380. this.TableName = table.TableName;
  2381. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2382. this.CaseSensitive = table.CaseSensitive;
  2383. }
  2384. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2385. this.Locale = table.Locale;
  2386. }
  2387. if ((table.Namespace != table.DataSet.Namespace)) {
  2388. this.Namespace = table.Namespace;
  2389. }
  2390. this.Prefix = table.Prefix;
  2391. this.MinimumCapacity = table.MinimumCapacity;
  2392. }
  2393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2395. protected MaterialSupplierDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2396. base(info, context) {
  2397. this.InitVars();
  2398. }
  2399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2401. public global::System.Data.DataColumn MaterialIDColumn {
  2402. get {
  2403. return this.columnMaterialID;
  2404. }
  2405. }
  2406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2408. public global::System.Data.DataColumn SupplierIDColumn {
  2409. get {
  2410. return this.columnSupplierID;
  2411. }
  2412. }
  2413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2415. [global::System.ComponentModel.Browsable(false)]
  2416. public int Count {
  2417. get {
  2418. return this.Rows.Count;
  2419. }
  2420. }
  2421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2423. public MaterialSupplierRow this[int index] {
  2424. get {
  2425. return ((MaterialSupplierRow)(this.Rows[index]));
  2426. }
  2427. }
  2428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2429. public event MaterialSupplierRowChangeEventHandler MaterialSupplierRowChanging;
  2430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2431. public event MaterialSupplierRowChangeEventHandler MaterialSupplierRowChanged;
  2432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2433. public event MaterialSupplierRowChangeEventHandler MaterialSupplierRowDeleting;
  2434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2435. public event MaterialSupplierRowChangeEventHandler MaterialSupplierRowDeleted;
  2436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2438. public void AddMaterialSupplierRow(MaterialSupplierRow row) {
  2439. this.Rows.Add(row);
  2440. }
  2441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2443. public MaterialSupplierRow AddMaterialSupplierRow(MaterialRow parentMaterialRowByFK_MaterialSupplier_Material, SupplierRow parentSupplierRowByFK_MaterialSupplier_Supplier) {
  2444. MaterialSupplierRow rowMaterialSupplierRow = ((MaterialSupplierRow)(this.NewRow()));
  2445. object[] columnValuesArray = new object[] {
  2446. null,
  2447. null};
  2448. if ((parentMaterialRowByFK_MaterialSupplier_Material != null)) {
  2449. columnValuesArray[0] = parentMaterialRowByFK_MaterialSupplier_Material[0];
  2450. }
  2451. if ((parentSupplierRowByFK_MaterialSupplier_Supplier != null)) {
  2452. columnValuesArray[1] = parentSupplierRowByFK_MaterialSupplier_Supplier[0];
  2453. }
  2454. rowMaterialSupplierRow.ItemArray = columnValuesArray;
  2455. this.Rows.Add(rowMaterialSupplierRow);
  2456. return rowMaterialSupplierRow;
  2457. }
  2458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2460. public MaterialSupplierRow FindByMaterialIDSupplierID(int MaterialID, int SupplierID) {
  2461. return ((MaterialSupplierRow)(this.Rows.Find(new object[] {
  2462. MaterialID,
  2463. SupplierID})));
  2464. }
  2465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2467. public override global::System.Data.DataTable Clone() {
  2468. MaterialSupplierDataTable cln = ((MaterialSupplierDataTable)(base.Clone()));
  2469. cln.InitVars();
  2470. return cln;
  2471. }
  2472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2474. protected override global::System.Data.DataTable CreateInstance() {
  2475. return new MaterialSupplierDataTable();
  2476. }
  2477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2479. internal void InitVars() {
  2480. this.columnMaterialID = base.Columns["MaterialID"];
  2481. this.columnSupplierID = base.Columns["SupplierID"];
  2482. }
  2483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2485. private void InitClass() {
  2486. this.columnMaterialID = new global::System.Data.DataColumn("MaterialID", typeof(int), null, global::System.Data.MappingType.Element);
  2487. base.Columns.Add(this.columnMaterialID);
  2488. this.columnSupplierID = new global::System.Data.DataColumn("SupplierID", typeof(int), null, global::System.Data.MappingType.Element);
  2489. base.Columns.Add(this.columnSupplierID);
  2490. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2491. this.columnMaterialID,
  2492. this.columnSupplierID}, true));
  2493. this.columnMaterialID.AllowDBNull = false;
  2494. this.columnSupplierID.AllowDBNull = false;
  2495. }
  2496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2498. public MaterialSupplierRow NewMaterialSupplierRow() {
  2499. return ((MaterialSupplierRow)(this.NewRow()));
  2500. }
  2501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2503. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2504. return new MaterialSupplierRow(builder);
  2505. }
  2506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2508. protected override global::System.Type GetRowType() {
  2509. return typeof(MaterialSupplierRow);
  2510. }
  2511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2513. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2514. base.OnRowChanged(e);
  2515. if ((this.MaterialSupplierRowChanged != null)) {
  2516. this.MaterialSupplierRowChanged(this, new MaterialSupplierRowChangeEvent(((MaterialSupplierRow)(e.Row)), e.Action));
  2517. }
  2518. }
  2519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2521. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2522. base.OnRowChanging(e);
  2523. if ((this.MaterialSupplierRowChanging != null)) {
  2524. this.MaterialSupplierRowChanging(this, new MaterialSupplierRowChangeEvent(((MaterialSupplierRow)(e.Row)), e.Action));
  2525. }
  2526. }
  2527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2529. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2530. base.OnRowDeleted(e);
  2531. if ((this.MaterialSupplierRowDeleted != null)) {
  2532. this.MaterialSupplierRowDeleted(this, new MaterialSupplierRowChangeEvent(((MaterialSupplierRow)(e.Row)), e.Action));
  2533. }
  2534. }
  2535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2537. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2538. base.OnRowDeleting(e);
  2539. if ((this.MaterialSupplierRowDeleting != null)) {
  2540. this.MaterialSupplierRowDeleting(this, new MaterialSupplierRowChangeEvent(((MaterialSupplierRow)(e.Row)), e.Action));
  2541. }
  2542. }
  2543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2545. public void RemoveMaterialSupplierRow(MaterialSupplierRow row) {
  2546. this.Rows.Remove(row);
  2547. }
  2548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2550. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2551. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2552. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2553. TestWSR4DataSet ds = new TestWSR4DataSet();
  2554. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2555. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2556. any1.MinOccurs = new decimal(0);
  2557. any1.MaxOccurs = decimal.MaxValue;
  2558. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2559. sequence.Items.Add(any1);
  2560. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2561. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2562. any2.MinOccurs = new decimal(1);
  2563. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2564. sequence.Items.Add(any2);
  2565. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2566. attribute1.Name = "namespace";
  2567. attribute1.FixedValue = ds.Namespace;
  2568. type.Attributes.Add(attribute1);
  2569. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2570. attribute2.Name = "tableTypeName";
  2571. attribute2.FixedValue = "MaterialSupplierDataTable";
  2572. type.Attributes.Add(attribute2);
  2573. type.Particle = sequence;
  2574. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2575. if (xs.Contains(dsSchema.TargetNamespace)) {
  2576. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2577. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2578. try {
  2579. global::System.Xml.Schema.XmlSchema schema = null;
  2580. dsSchema.Write(s1);
  2581. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2582. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2583. s2.SetLength(0);
  2584. schema.Write(s2);
  2585. if ((s1.Length == s2.Length)) {
  2586. s1.Position = 0;
  2587. s2.Position = 0;
  2588. for (; ((s1.Position != s1.Length)
  2589. && (s1.ReadByte() == s2.ReadByte())); ) {
  2590. ;
  2591. }
  2592. if ((s1.Position == s1.Length)) {
  2593. return type;
  2594. }
  2595. }
  2596. }
  2597. }
  2598. finally {
  2599. if ((s1 != null)) {
  2600. s1.Close();
  2601. }
  2602. if ((s2 != null)) {
  2603. s2.Close();
  2604. }
  2605. }
  2606. }
  2607. xs.Add(dsSchema);
  2608. return type;
  2609. }
  2610. }
  2611. /// <summary>
  2612. ///Represents the strongly named DataTable class.
  2613. ///</summary>
  2614. [global::System.Serializable()]
  2615. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2616. public partial class MaterialTypeDataTable : global::System.Data.TypedTableBase<MaterialTypeRow> {
  2617. private global::System.Data.DataColumn columnID;
  2618. private global::System.Data.DataColumn columnTitle;
  2619. private global::System.Data.DataColumn columnDefectedPercent;
  2620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2622. public MaterialTypeDataTable() {
  2623. this.TableName = "MaterialType";
  2624. this.BeginInit();
  2625. this.InitClass();
  2626. this.EndInit();
  2627. }
  2628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2630. internal MaterialTypeDataTable(global::System.Data.DataTable table) {
  2631. this.TableName = table.TableName;
  2632. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2633. this.CaseSensitive = table.CaseSensitive;
  2634. }
  2635. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2636. this.Locale = table.Locale;
  2637. }
  2638. if ((table.Namespace != table.DataSet.Namespace)) {
  2639. this.Namespace = table.Namespace;
  2640. }
  2641. this.Prefix = table.Prefix;
  2642. this.MinimumCapacity = table.MinimumCapacity;
  2643. }
  2644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2646. protected MaterialTypeDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2647. base(info, context) {
  2648. this.InitVars();
  2649. }
  2650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2652. public global::System.Data.DataColumn IDColumn {
  2653. get {
  2654. return this.columnID;
  2655. }
  2656. }
  2657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2659. public global::System.Data.DataColumn TitleColumn {
  2660. get {
  2661. return this.columnTitle;
  2662. }
  2663. }
  2664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2666. public global::System.Data.DataColumn DefectedPercentColumn {
  2667. get {
  2668. return this.columnDefectedPercent;
  2669. }
  2670. }
  2671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2673. [global::System.ComponentModel.Browsable(false)]
  2674. public int Count {
  2675. get {
  2676. return this.Rows.Count;
  2677. }
  2678. }
  2679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2681. public MaterialTypeRow this[int index] {
  2682. get {
  2683. return ((MaterialTypeRow)(this.Rows[index]));
  2684. }
  2685. }
  2686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2687. public event MaterialTypeRowChangeEventHandler MaterialTypeRowChanging;
  2688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2689. public event MaterialTypeRowChangeEventHandler MaterialTypeRowChanged;
  2690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2691. public event MaterialTypeRowChangeEventHandler MaterialTypeRowDeleting;
  2692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2693. public event MaterialTypeRowChangeEventHandler MaterialTypeRowDeleted;
  2694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2696. public void AddMaterialTypeRow(MaterialTypeRow row) {
  2697. this.Rows.Add(row);
  2698. }
  2699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2701. public MaterialTypeRow AddMaterialTypeRow(string Title, double DefectedPercent) {
  2702. MaterialTypeRow rowMaterialTypeRow = ((MaterialTypeRow)(this.NewRow()));
  2703. object[] columnValuesArray = new object[] {
  2704. null,
  2705. Title,
  2706. DefectedPercent};
  2707. rowMaterialTypeRow.ItemArray = columnValuesArray;
  2708. this.Rows.Add(rowMaterialTypeRow);
  2709. return rowMaterialTypeRow;
  2710. }
  2711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2713. public MaterialTypeRow FindByID(int ID) {
  2714. return ((MaterialTypeRow)(this.Rows.Find(new object[] {
  2715. ID})));
  2716. }
  2717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2719. public override global::System.Data.DataTable Clone() {
  2720. MaterialTypeDataTable cln = ((MaterialTypeDataTable)(base.Clone()));
  2721. cln.InitVars();
  2722. return cln;
  2723. }
  2724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2726. protected override global::System.Data.DataTable CreateInstance() {
  2727. return new MaterialTypeDataTable();
  2728. }
  2729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2731. internal void InitVars() {
  2732. this.columnID = base.Columns["ID"];
  2733. this.columnTitle = base.Columns["Title"];
  2734. this.columnDefectedPercent = base.Columns["DefectedPercent"];
  2735. }
  2736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2738. private void InitClass() {
  2739. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2740. base.Columns.Add(this.columnID);
  2741. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2742. base.Columns.Add(this.columnTitle);
  2743. this.columnDefectedPercent = new global::System.Data.DataColumn("DefectedPercent", typeof(double), null, global::System.Data.MappingType.Element);
  2744. base.Columns.Add(this.columnDefectedPercent);
  2745. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2746. this.columnID}, true));
  2747. this.columnID.AutoIncrement = true;
  2748. this.columnID.AutoIncrementSeed = -1;
  2749. this.columnID.AutoIncrementStep = -1;
  2750. this.columnID.AllowDBNull = false;
  2751. this.columnID.ReadOnly = true;
  2752. this.columnID.Unique = true;
  2753. this.columnTitle.AllowDBNull = false;
  2754. this.columnTitle.MaxLength = 50;
  2755. }
  2756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2758. public MaterialTypeRow NewMaterialTypeRow() {
  2759. return ((MaterialTypeRow)(this.NewRow()));
  2760. }
  2761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2763. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2764. return new MaterialTypeRow(builder);
  2765. }
  2766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2768. protected override global::System.Type GetRowType() {
  2769. return typeof(MaterialTypeRow);
  2770. }
  2771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2773. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2774. base.OnRowChanged(e);
  2775. if ((this.MaterialTypeRowChanged != null)) {
  2776. this.MaterialTypeRowChanged(this, new MaterialTypeRowChangeEvent(((MaterialTypeRow)(e.Row)), e.Action));
  2777. }
  2778. }
  2779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2781. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2782. base.OnRowChanging(e);
  2783. if ((this.MaterialTypeRowChanging != null)) {
  2784. this.MaterialTypeRowChanging(this, new MaterialTypeRowChangeEvent(((MaterialTypeRow)(e.Row)), e.Action));
  2785. }
  2786. }
  2787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2789. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2790. base.OnRowDeleted(e);
  2791. if ((this.MaterialTypeRowDeleted != null)) {
  2792. this.MaterialTypeRowDeleted(this, new MaterialTypeRowChangeEvent(((MaterialTypeRow)(e.Row)), e.Action));
  2793. }
  2794. }
  2795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2797. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2798. base.OnRowDeleting(e);
  2799. if ((this.MaterialTypeRowDeleting != null)) {
  2800. this.MaterialTypeRowDeleting(this, new MaterialTypeRowChangeEvent(((MaterialTypeRow)(e.Row)), e.Action));
  2801. }
  2802. }
  2803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2805. public void RemoveMaterialTypeRow(MaterialTypeRow row) {
  2806. this.Rows.Remove(row);
  2807. }
  2808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2810. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2811. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2812. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2813. TestWSR4DataSet ds = new TestWSR4DataSet();
  2814. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2815. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2816. any1.MinOccurs = new decimal(0);
  2817. any1.MaxOccurs = decimal.MaxValue;
  2818. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2819. sequence.Items.Add(any1);
  2820. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2821. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2822. any2.MinOccurs = new decimal(1);
  2823. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2824. sequence.Items.Add(any2);
  2825. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2826. attribute1.Name = "namespace";
  2827. attribute1.FixedValue = ds.Namespace;
  2828. type.Attributes.Add(attribute1);
  2829. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2830. attribute2.Name = "tableTypeName";
  2831. attribute2.FixedValue = "MaterialTypeDataTable";
  2832. type.Attributes.Add(attribute2);
  2833. type.Particle = sequence;
  2834. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2835. if (xs.Contains(dsSchema.TargetNamespace)) {
  2836. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2837. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2838. try {
  2839. global::System.Xml.Schema.XmlSchema schema = null;
  2840. dsSchema.Write(s1);
  2841. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2842. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2843. s2.SetLength(0);
  2844. schema.Write(s2);
  2845. if ((s1.Length == s2.Length)) {
  2846. s1.Position = 0;
  2847. s2.Position = 0;
  2848. for (; ((s1.Position != s1.Length)
  2849. && (s1.ReadByte() == s2.ReadByte())); ) {
  2850. ;
  2851. }
  2852. if ((s1.Position == s1.Length)) {
  2853. return type;
  2854. }
  2855. }
  2856. }
  2857. }
  2858. finally {
  2859. if ((s1 != null)) {
  2860. s1.Close();
  2861. }
  2862. if ((s2 != null)) {
  2863. s2.Close();
  2864. }
  2865. }
  2866. }
  2867. xs.Add(dsSchema);
  2868. return type;
  2869. }
  2870. }
  2871. /// <summary>
  2872. ///Represents the strongly named DataTable class.
  2873. ///</summary>
  2874. [global::System.Serializable()]
  2875. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2876. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  2877. private global::System.Data.DataColumn columnID;
  2878. private global::System.Data.DataColumn columnTitle;
  2879. private global::System.Data.DataColumn columnProductTypeID;
  2880. private global::System.Data.DataColumn columnArticleNumber;
  2881. private global::System.Data.DataColumn columnDescription;
  2882. private global::System.Data.DataColumn columnImage;
  2883. private global::System.Data.DataColumn columnProductionPersonCount;
  2884. private global::System.Data.DataColumn columnProductionWorkshopNumber;
  2885. private global::System.Data.DataColumn columnMinCostForAgent;
  2886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2888. public ProductDataTable() {
  2889. this.TableName = "Product";
  2890. this.BeginInit();
  2891. this.InitClass();
  2892. this.EndInit();
  2893. }
  2894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2896. internal ProductDataTable(global::System.Data.DataTable table) {
  2897. this.TableName = table.TableName;
  2898. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2899. this.CaseSensitive = table.CaseSensitive;
  2900. }
  2901. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2902. this.Locale = table.Locale;
  2903. }
  2904. if ((table.Namespace != table.DataSet.Namespace)) {
  2905. this.Namespace = table.Namespace;
  2906. }
  2907. this.Prefix = table.Prefix;
  2908. this.MinimumCapacity = table.MinimumCapacity;
  2909. }
  2910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2912. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2913. base(info, context) {
  2914. this.InitVars();
  2915. }
  2916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2918. public global::System.Data.DataColumn IDColumn {
  2919. get {
  2920. return this.columnID;
  2921. }
  2922. }
  2923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2925. public global::System.Data.DataColumn TitleColumn {
  2926. get {
  2927. return this.columnTitle;
  2928. }
  2929. }
  2930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2932. public global::System.Data.DataColumn ProductTypeIDColumn {
  2933. get {
  2934. return this.columnProductTypeID;
  2935. }
  2936. }
  2937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2939. public global::System.Data.DataColumn ArticleNumberColumn {
  2940. get {
  2941. return this.columnArticleNumber;
  2942. }
  2943. }
  2944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2946. public global::System.Data.DataColumn DescriptionColumn {
  2947. get {
  2948. return this.columnDescription;
  2949. }
  2950. }
  2951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2953. public global::System.Data.DataColumn ImageColumn {
  2954. get {
  2955. return this.columnImage;
  2956. }
  2957. }
  2958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2960. public global::System.Data.DataColumn ProductionPersonCountColumn {
  2961. get {
  2962. return this.columnProductionPersonCount;
  2963. }
  2964. }
  2965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2967. public global::System.Data.DataColumn ProductionWorkshopNumberColumn {
  2968. get {
  2969. return this.columnProductionWorkshopNumber;
  2970. }
  2971. }
  2972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2974. public global::System.Data.DataColumn MinCostForAgentColumn {
  2975. get {
  2976. return this.columnMinCostForAgent;
  2977. }
  2978. }
  2979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2981. [global::System.ComponentModel.Browsable(false)]
  2982. public int Count {
  2983. get {
  2984. return this.Rows.Count;
  2985. }
  2986. }
  2987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2989. public ProductRow this[int index] {
  2990. get {
  2991. return ((ProductRow)(this.Rows[index]));
  2992. }
  2993. }
  2994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2995. public event ProductRowChangeEventHandler ProductRowChanging;
  2996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2997. public event ProductRowChangeEventHandler ProductRowChanged;
  2998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2999. public event ProductRowChangeEventHandler ProductRowDeleting;
  3000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3001. public event ProductRowChangeEventHandler ProductRowDeleted;
  3002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3004. public void AddProductRow(ProductRow row) {
  3005. this.Rows.Add(row);
  3006. }
  3007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3009. public ProductRow AddProductRow(string Title, ProductTypeRow parentProductTypeRowByFK_Product_ProductType, string ArticleNumber, string Description, string Image, int ProductionPersonCount, int ProductionWorkshopNumber, decimal MinCostForAgent) {
  3010. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  3011. object[] columnValuesArray = new object[] {
  3012. null,
  3013. Title,
  3014. null,
  3015. ArticleNumber,
  3016. Description,
  3017. Image,
  3018. ProductionPersonCount,
  3019. ProductionWorkshopNumber,
  3020. MinCostForAgent};
  3021. if ((parentProductTypeRowByFK_Product_ProductType != null)) {
  3022. columnValuesArray[2] = parentProductTypeRowByFK_Product_ProductType[0];
  3023. }
  3024. rowProductRow.ItemArray = columnValuesArray;
  3025. this.Rows.Add(rowProductRow);
  3026. return rowProductRow;
  3027. }
  3028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3030. public ProductRow FindByID(int ID) {
  3031. return ((ProductRow)(this.Rows.Find(new object[] {
  3032. ID})));
  3033. }
  3034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3036. public override global::System.Data.DataTable Clone() {
  3037. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  3038. cln.InitVars();
  3039. return cln;
  3040. }
  3041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3043. protected override global::System.Data.DataTable CreateInstance() {
  3044. return new ProductDataTable();
  3045. }
  3046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3048. internal void InitVars() {
  3049. this.columnID = base.Columns["ID"];
  3050. this.columnTitle = base.Columns["Title"];
  3051. this.columnProductTypeID = base.Columns["ProductTypeID"];
  3052. this.columnArticleNumber = base.Columns["ArticleNumber"];
  3053. this.columnDescription = base.Columns["Description"];
  3054. this.columnImage = base.Columns["Image"];
  3055. this.columnProductionPersonCount = base.Columns["ProductionPersonCount"];
  3056. this.columnProductionWorkshopNumber = base.Columns["ProductionWorkshopNumber"];
  3057. this.columnMinCostForAgent = base.Columns["MinCostForAgent"];
  3058. }
  3059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3061. private void InitClass() {
  3062. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3063. base.Columns.Add(this.columnID);
  3064. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3065. base.Columns.Add(this.columnTitle);
  3066. this.columnProductTypeID = new global::System.Data.DataColumn("ProductTypeID", typeof(int), null, global::System.Data.MappingType.Element);
  3067. base.Columns.Add(this.columnProductTypeID);
  3068. this.columnArticleNumber = new global::System.Data.DataColumn("ArticleNumber", typeof(string), null, global::System.Data.MappingType.Element);
  3069. base.Columns.Add(this.columnArticleNumber);
  3070. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  3071. base.Columns.Add(this.columnDescription);
  3072. this.columnImage = new global::System.Data.DataColumn("Image", typeof(string), null, global::System.Data.MappingType.Element);
  3073. base.Columns.Add(this.columnImage);
  3074. this.columnProductionPersonCount = new global::System.Data.DataColumn("ProductionPersonCount", typeof(int), null, global::System.Data.MappingType.Element);
  3075. base.Columns.Add(this.columnProductionPersonCount);
  3076. this.columnProductionWorkshopNumber = new global::System.Data.DataColumn("ProductionWorkshopNumber", typeof(int), null, global::System.Data.MappingType.Element);
  3077. base.Columns.Add(this.columnProductionWorkshopNumber);
  3078. this.columnMinCostForAgent = new global::System.Data.DataColumn("MinCostForAgent", typeof(decimal), null, global::System.Data.MappingType.Element);
  3079. base.Columns.Add(this.columnMinCostForAgent);
  3080. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3081. this.columnID}, true));
  3082. this.columnID.AutoIncrement = true;
  3083. this.columnID.AutoIncrementSeed = -1;
  3084. this.columnID.AutoIncrementStep = -1;
  3085. this.columnID.AllowDBNull = false;
  3086. this.columnID.ReadOnly = true;
  3087. this.columnID.Unique = true;
  3088. this.columnTitle.AllowDBNull = false;
  3089. this.columnTitle.MaxLength = 100;
  3090. this.columnArticleNumber.AllowDBNull = false;
  3091. this.columnArticleNumber.MaxLength = 10;
  3092. this.columnDescription.MaxLength = 2147483647;
  3093. this.columnImage.MaxLength = 100;
  3094. this.columnMinCostForAgent.AllowDBNull = false;
  3095. }
  3096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3098. public ProductRow NewProductRow() {
  3099. return ((ProductRow)(this.NewRow()));
  3100. }
  3101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3103. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3104. return new ProductRow(builder);
  3105. }
  3106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3108. protected override global::System.Type GetRowType() {
  3109. return typeof(ProductRow);
  3110. }
  3111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3113. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3114. base.OnRowChanged(e);
  3115. if ((this.ProductRowChanged != null)) {
  3116. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  3117. }
  3118. }
  3119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3121. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3122. base.OnRowChanging(e);
  3123. if ((this.ProductRowChanging != null)) {
  3124. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  3125. }
  3126. }
  3127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3129. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3130. base.OnRowDeleted(e);
  3131. if ((this.ProductRowDeleted != null)) {
  3132. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  3133. }
  3134. }
  3135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3137. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3138. base.OnRowDeleting(e);
  3139. if ((this.ProductRowDeleting != null)) {
  3140. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  3141. }
  3142. }
  3143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3145. public void RemoveProductRow(ProductRow row) {
  3146. this.Rows.Remove(row);
  3147. }
  3148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3150. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3151. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3152. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3153. TestWSR4DataSet ds = new TestWSR4DataSet();
  3154. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3155. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3156. any1.MinOccurs = new decimal(0);
  3157. any1.MaxOccurs = decimal.MaxValue;
  3158. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3159. sequence.Items.Add(any1);
  3160. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3161. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3162. any2.MinOccurs = new decimal(1);
  3163. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3164. sequence.Items.Add(any2);
  3165. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3166. attribute1.Name = "namespace";
  3167. attribute1.FixedValue = ds.Namespace;
  3168. type.Attributes.Add(attribute1);
  3169. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3170. attribute2.Name = "tableTypeName";
  3171. attribute2.FixedValue = "ProductDataTable";
  3172. type.Attributes.Add(attribute2);
  3173. type.Particle = sequence;
  3174. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3175. if (xs.Contains(dsSchema.TargetNamespace)) {
  3176. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3177. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3178. try {
  3179. global::System.Xml.Schema.XmlSchema schema = null;
  3180. dsSchema.Write(s1);
  3181. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3182. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3183. s2.SetLength(0);
  3184. schema.Write(s2);
  3185. if ((s1.Length == s2.Length)) {
  3186. s1.Position = 0;
  3187. s2.Position = 0;
  3188. for (; ((s1.Position != s1.Length)
  3189. && (s1.ReadByte() == s2.ReadByte())); ) {
  3190. ;
  3191. }
  3192. if ((s1.Position == s1.Length)) {
  3193. return type;
  3194. }
  3195. }
  3196. }
  3197. }
  3198. finally {
  3199. if ((s1 != null)) {
  3200. s1.Close();
  3201. }
  3202. if ((s2 != null)) {
  3203. s2.Close();
  3204. }
  3205. }
  3206. }
  3207. xs.Add(dsSchema);
  3208. return type;
  3209. }
  3210. }
  3211. /// <summary>
  3212. ///Represents the strongly named DataTable class.
  3213. ///</summary>
  3214. [global::System.Serializable()]
  3215. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3216. public partial class ProductCostHistoryDataTable : global::System.Data.TypedTableBase<ProductCostHistoryRow> {
  3217. private global::System.Data.DataColumn columnID;
  3218. private global::System.Data.DataColumn columnProductID;
  3219. private global::System.Data.DataColumn columnChangeDate;
  3220. private global::System.Data.DataColumn columnCostValue;
  3221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3223. public ProductCostHistoryDataTable() {
  3224. this.TableName = "ProductCostHistory";
  3225. this.BeginInit();
  3226. this.InitClass();
  3227. this.EndInit();
  3228. }
  3229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3231. internal ProductCostHistoryDataTable(global::System.Data.DataTable table) {
  3232. this.TableName = table.TableName;
  3233. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3234. this.CaseSensitive = table.CaseSensitive;
  3235. }
  3236. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3237. this.Locale = table.Locale;
  3238. }
  3239. if ((table.Namespace != table.DataSet.Namespace)) {
  3240. this.Namespace = table.Namespace;
  3241. }
  3242. this.Prefix = table.Prefix;
  3243. this.MinimumCapacity = table.MinimumCapacity;
  3244. }
  3245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3247. protected ProductCostHistoryDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3248. base(info, context) {
  3249. this.InitVars();
  3250. }
  3251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3253. public global::System.Data.DataColumn IDColumn {
  3254. get {
  3255. return this.columnID;
  3256. }
  3257. }
  3258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3260. public global::System.Data.DataColumn ProductIDColumn {
  3261. get {
  3262. return this.columnProductID;
  3263. }
  3264. }
  3265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3267. public global::System.Data.DataColumn ChangeDateColumn {
  3268. get {
  3269. return this.columnChangeDate;
  3270. }
  3271. }
  3272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3274. public global::System.Data.DataColumn CostValueColumn {
  3275. get {
  3276. return this.columnCostValue;
  3277. }
  3278. }
  3279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3281. [global::System.ComponentModel.Browsable(false)]
  3282. public int Count {
  3283. get {
  3284. return this.Rows.Count;
  3285. }
  3286. }
  3287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3289. public ProductCostHistoryRow this[int index] {
  3290. get {
  3291. return ((ProductCostHistoryRow)(this.Rows[index]));
  3292. }
  3293. }
  3294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3295. public event ProductCostHistoryRowChangeEventHandler ProductCostHistoryRowChanging;
  3296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3297. public event ProductCostHistoryRowChangeEventHandler ProductCostHistoryRowChanged;
  3298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3299. public event ProductCostHistoryRowChangeEventHandler ProductCostHistoryRowDeleting;
  3300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3301. public event ProductCostHistoryRowChangeEventHandler ProductCostHistoryRowDeleted;
  3302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3304. public void AddProductCostHistoryRow(ProductCostHistoryRow row) {
  3305. this.Rows.Add(row);
  3306. }
  3307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3309. public ProductCostHistoryRow AddProductCostHistoryRow(ProductRow parentProductRowByFK_ProductCostHistory_Product, System.DateTime ChangeDate, decimal CostValue) {
  3310. ProductCostHistoryRow rowProductCostHistoryRow = ((ProductCostHistoryRow)(this.NewRow()));
  3311. object[] columnValuesArray = new object[] {
  3312. null,
  3313. null,
  3314. ChangeDate,
  3315. CostValue};
  3316. if ((parentProductRowByFK_ProductCostHistory_Product != null)) {
  3317. columnValuesArray[1] = parentProductRowByFK_ProductCostHistory_Product[0];
  3318. }
  3319. rowProductCostHistoryRow.ItemArray = columnValuesArray;
  3320. this.Rows.Add(rowProductCostHistoryRow);
  3321. return rowProductCostHistoryRow;
  3322. }
  3323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3325. public ProductCostHistoryRow FindByID(int ID) {
  3326. return ((ProductCostHistoryRow)(this.Rows.Find(new object[] {
  3327. ID})));
  3328. }
  3329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3331. public override global::System.Data.DataTable Clone() {
  3332. ProductCostHistoryDataTable cln = ((ProductCostHistoryDataTable)(base.Clone()));
  3333. cln.InitVars();
  3334. return cln;
  3335. }
  3336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3338. protected override global::System.Data.DataTable CreateInstance() {
  3339. return new ProductCostHistoryDataTable();
  3340. }
  3341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3343. internal void InitVars() {
  3344. this.columnID = base.Columns["ID"];
  3345. this.columnProductID = base.Columns["ProductID"];
  3346. this.columnChangeDate = base.Columns["ChangeDate"];
  3347. this.columnCostValue = base.Columns["CostValue"];
  3348. }
  3349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3351. private void InitClass() {
  3352. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3353. base.Columns.Add(this.columnID);
  3354. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  3355. base.Columns.Add(this.columnProductID);
  3356. this.columnChangeDate = new global::System.Data.DataColumn("ChangeDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3357. base.Columns.Add(this.columnChangeDate);
  3358. this.columnCostValue = new global::System.Data.DataColumn("CostValue", typeof(decimal), null, global::System.Data.MappingType.Element);
  3359. base.Columns.Add(this.columnCostValue);
  3360. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3361. this.columnID}, true));
  3362. this.columnID.AutoIncrement = true;
  3363. this.columnID.AutoIncrementSeed = -1;
  3364. this.columnID.AutoIncrementStep = -1;
  3365. this.columnID.AllowDBNull = false;
  3366. this.columnID.ReadOnly = true;
  3367. this.columnID.Unique = true;
  3368. this.columnProductID.AllowDBNull = false;
  3369. this.columnChangeDate.AllowDBNull = false;
  3370. this.columnCostValue.AllowDBNull = false;
  3371. }
  3372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3374. public ProductCostHistoryRow NewProductCostHistoryRow() {
  3375. return ((ProductCostHistoryRow)(this.NewRow()));
  3376. }
  3377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3379. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3380. return new ProductCostHistoryRow(builder);
  3381. }
  3382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3384. protected override global::System.Type GetRowType() {
  3385. return typeof(ProductCostHistoryRow);
  3386. }
  3387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3389. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3390. base.OnRowChanged(e);
  3391. if ((this.ProductCostHistoryRowChanged != null)) {
  3392. this.ProductCostHistoryRowChanged(this, new ProductCostHistoryRowChangeEvent(((ProductCostHistoryRow)(e.Row)), e.Action));
  3393. }
  3394. }
  3395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3397. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3398. base.OnRowChanging(e);
  3399. if ((this.ProductCostHistoryRowChanging != null)) {
  3400. this.ProductCostHistoryRowChanging(this, new ProductCostHistoryRowChangeEvent(((ProductCostHistoryRow)(e.Row)), e.Action));
  3401. }
  3402. }
  3403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3405. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3406. base.OnRowDeleted(e);
  3407. if ((this.ProductCostHistoryRowDeleted != null)) {
  3408. this.ProductCostHistoryRowDeleted(this, new ProductCostHistoryRowChangeEvent(((ProductCostHistoryRow)(e.Row)), e.Action));
  3409. }
  3410. }
  3411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3413. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3414. base.OnRowDeleting(e);
  3415. if ((this.ProductCostHistoryRowDeleting != null)) {
  3416. this.ProductCostHistoryRowDeleting(this, new ProductCostHistoryRowChangeEvent(((ProductCostHistoryRow)(e.Row)), e.Action));
  3417. }
  3418. }
  3419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3421. public void RemoveProductCostHistoryRow(ProductCostHistoryRow row) {
  3422. this.Rows.Remove(row);
  3423. }
  3424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3426. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3427. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3428. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3429. TestWSR4DataSet ds = new TestWSR4DataSet();
  3430. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3431. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3432. any1.MinOccurs = new decimal(0);
  3433. any1.MaxOccurs = decimal.MaxValue;
  3434. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3435. sequence.Items.Add(any1);
  3436. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3437. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3438. any2.MinOccurs = new decimal(1);
  3439. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3440. sequence.Items.Add(any2);
  3441. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3442. attribute1.Name = "namespace";
  3443. attribute1.FixedValue = ds.Namespace;
  3444. type.Attributes.Add(attribute1);
  3445. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3446. attribute2.Name = "tableTypeName";
  3447. attribute2.FixedValue = "ProductCostHistoryDataTable";
  3448. type.Attributes.Add(attribute2);
  3449. type.Particle = sequence;
  3450. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3451. if (xs.Contains(dsSchema.TargetNamespace)) {
  3452. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3453. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3454. try {
  3455. global::System.Xml.Schema.XmlSchema schema = null;
  3456. dsSchema.Write(s1);
  3457. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3458. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3459. s2.SetLength(0);
  3460. schema.Write(s2);
  3461. if ((s1.Length == s2.Length)) {
  3462. s1.Position = 0;
  3463. s2.Position = 0;
  3464. for (; ((s1.Position != s1.Length)
  3465. && (s1.ReadByte() == s2.ReadByte())); ) {
  3466. ;
  3467. }
  3468. if ((s1.Position == s1.Length)) {
  3469. return type;
  3470. }
  3471. }
  3472. }
  3473. }
  3474. finally {
  3475. if ((s1 != null)) {
  3476. s1.Close();
  3477. }
  3478. if ((s2 != null)) {
  3479. s2.Close();
  3480. }
  3481. }
  3482. }
  3483. xs.Add(dsSchema);
  3484. return type;
  3485. }
  3486. }
  3487. /// <summary>
  3488. ///Represents the strongly named DataTable class.
  3489. ///</summary>
  3490. [global::System.Serializable()]
  3491. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3492. public partial class ProductMaterialDataTable : global::System.Data.TypedTableBase<ProductMaterialRow> {
  3493. private global::System.Data.DataColumn columnProductID;
  3494. private global::System.Data.DataColumn columnMaterialID;
  3495. private global::System.Data.DataColumn columnCount;
  3496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3498. public ProductMaterialDataTable() {
  3499. this.TableName = "ProductMaterial";
  3500. this.BeginInit();
  3501. this.InitClass();
  3502. this.EndInit();
  3503. }
  3504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3506. internal ProductMaterialDataTable(global::System.Data.DataTable table) {
  3507. this.TableName = table.TableName;
  3508. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3509. this.CaseSensitive = table.CaseSensitive;
  3510. }
  3511. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3512. this.Locale = table.Locale;
  3513. }
  3514. if ((table.Namespace != table.DataSet.Namespace)) {
  3515. this.Namespace = table.Namespace;
  3516. }
  3517. this.Prefix = table.Prefix;
  3518. this.MinimumCapacity = table.MinimumCapacity;
  3519. }
  3520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3522. protected ProductMaterialDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3523. base(info, context) {
  3524. this.InitVars();
  3525. }
  3526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3528. public global::System.Data.DataColumn ProductIDColumn {
  3529. get {
  3530. return this.columnProductID;
  3531. }
  3532. }
  3533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3535. public global::System.Data.DataColumn MaterialIDColumn {
  3536. get {
  3537. return this.columnMaterialID;
  3538. }
  3539. }
  3540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3542. public global::System.Data.DataColumn CountColumn {
  3543. get {
  3544. return this.columnCount;
  3545. }
  3546. }
  3547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3549. [global::System.ComponentModel.Browsable(false)]
  3550. public int Count {
  3551. get {
  3552. return this.Rows.Count;
  3553. }
  3554. }
  3555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3557. public ProductMaterialRow this[int index] {
  3558. get {
  3559. return ((ProductMaterialRow)(this.Rows[index]));
  3560. }
  3561. }
  3562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3563. public event ProductMaterialRowChangeEventHandler ProductMaterialRowChanging;
  3564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3565. public event ProductMaterialRowChangeEventHandler ProductMaterialRowChanged;
  3566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3567. public event ProductMaterialRowChangeEventHandler ProductMaterialRowDeleting;
  3568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3569. public event ProductMaterialRowChangeEventHandler ProductMaterialRowDeleted;
  3570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3572. public void AddProductMaterialRow(ProductMaterialRow row) {
  3573. this.Rows.Add(row);
  3574. }
  3575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3577. public ProductMaterialRow AddProductMaterialRow(ProductRow parentProductRowByFK_ProductMaterial_Product, MaterialRow parentMaterialRowByFK_ProductMaterial_Material, double Count) {
  3578. ProductMaterialRow rowProductMaterialRow = ((ProductMaterialRow)(this.NewRow()));
  3579. object[] columnValuesArray = new object[] {
  3580. null,
  3581. null,
  3582. Count};
  3583. if ((parentProductRowByFK_ProductMaterial_Product != null)) {
  3584. columnValuesArray[0] = parentProductRowByFK_ProductMaterial_Product[0];
  3585. }
  3586. if ((parentMaterialRowByFK_ProductMaterial_Material != null)) {
  3587. columnValuesArray[1] = parentMaterialRowByFK_ProductMaterial_Material[0];
  3588. }
  3589. rowProductMaterialRow.ItemArray = columnValuesArray;
  3590. this.Rows.Add(rowProductMaterialRow);
  3591. return rowProductMaterialRow;
  3592. }
  3593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3595. public ProductMaterialRow FindByProductIDMaterialID(int ProductID, int MaterialID) {
  3596. return ((ProductMaterialRow)(this.Rows.Find(new object[] {
  3597. ProductID,
  3598. MaterialID})));
  3599. }
  3600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3602. public override global::System.Data.DataTable Clone() {
  3603. ProductMaterialDataTable cln = ((ProductMaterialDataTable)(base.Clone()));
  3604. cln.InitVars();
  3605. return cln;
  3606. }
  3607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3609. protected override global::System.Data.DataTable CreateInstance() {
  3610. return new ProductMaterialDataTable();
  3611. }
  3612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3614. internal void InitVars() {
  3615. this.columnProductID = base.Columns["ProductID"];
  3616. this.columnMaterialID = base.Columns["MaterialID"];
  3617. this.columnCount = base.Columns["Count"];
  3618. }
  3619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3621. private void InitClass() {
  3622. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  3623. base.Columns.Add(this.columnProductID);
  3624. this.columnMaterialID = new global::System.Data.DataColumn("MaterialID", typeof(int), null, global::System.Data.MappingType.Element);
  3625. base.Columns.Add(this.columnMaterialID);
  3626. this.columnCount = new global::System.Data.DataColumn("Count", typeof(double), null, global::System.Data.MappingType.Element);
  3627. base.Columns.Add(this.columnCount);
  3628. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3629. this.columnProductID,
  3630. this.columnMaterialID}, true));
  3631. this.columnProductID.AllowDBNull = false;
  3632. this.columnMaterialID.AllowDBNull = false;
  3633. }
  3634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3636. public ProductMaterialRow NewProductMaterialRow() {
  3637. return ((ProductMaterialRow)(this.NewRow()));
  3638. }
  3639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3641. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3642. return new ProductMaterialRow(builder);
  3643. }
  3644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3646. protected override global::System.Type GetRowType() {
  3647. return typeof(ProductMaterialRow);
  3648. }
  3649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3651. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3652. base.OnRowChanged(e);
  3653. if ((this.ProductMaterialRowChanged != null)) {
  3654. this.ProductMaterialRowChanged(this, new ProductMaterialRowChangeEvent(((ProductMaterialRow)(e.Row)), e.Action));
  3655. }
  3656. }
  3657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3659. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3660. base.OnRowChanging(e);
  3661. if ((this.ProductMaterialRowChanging != null)) {
  3662. this.ProductMaterialRowChanging(this, new ProductMaterialRowChangeEvent(((ProductMaterialRow)(e.Row)), e.Action));
  3663. }
  3664. }
  3665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3667. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3668. base.OnRowDeleted(e);
  3669. if ((this.ProductMaterialRowDeleted != null)) {
  3670. this.ProductMaterialRowDeleted(this, new ProductMaterialRowChangeEvent(((ProductMaterialRow)(e.Row)), e.Action));
  3671. }
  3672. }
  3673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3675. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3676. base.OnRowDeleting(e);
  3677. if ((this.ProductMaterialRowDeleting != null)) {
  3678. this.ProductMaterialRowDeleting(this, new ProductMaterialRowChangeEvent(((ProductMaterialRow)(e.Row)), e.Action));
  3679. }
  3680. }
  3681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3683. public void RemoveProductMaterialRow(ProductMaterialRow row) {
  3684. this.Rows.Remove(row);
  3685. }
  3686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3688. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3689. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3690. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3691. TestWSR4DataSet ds = new TestWSR4DataSet();
  3692. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3693. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3694. any1.MinOccurs = new decimal(0);
  3695. any1.MaxOccurs = decimal.MaxValue;
  3696. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3697. sequence.Items.Add(any1);
  3698. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3699. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3700. any2.MinOccurs = new decimal(1);
  3701. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3702. sequence.Items.Add(any2);
  3703. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3704. attribute1.Name = "namespace";
  3705. attribute1.FixedValue = ds.Namespace;
  3706. type.Attributes.Add(attribute1);
  3707. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3708. attribute2.Name = "tableTypeName";
  3709. attribute2.FixedValue = "ProductMaterialDataTable";
  3710. type.Attributes.Add(attribute2);
  3711. type.Particle = sequence;
  3712. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3713. if (xs.Contains(dsSchema.TargetNamespace)) {
  3714. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3715. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3716. try {
  3717. global::System.Xml.Schema.XmlSchema schema = null;
  3718. dsSchema.Write(s1);
  3719. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3720. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3721. s2.SetLength(0);
  3722. schema.Write(s2);
  3723. if ((s1.Length == s2.Length)) {
  3724. s1.Position = 0;
  3725. s2.Position = 0;
  3726. for (; ((s1.Position != s1.Length)
  3727. && (s1.ReadByte() == s2.ReadByte())); ) {
  3728. ;
  3729. }
  3730. if ((s1.Position == s1.Length)) {
  3731. return type;
  3732. }
  3733. }
  3734. }
  3735. }
  3736. finally {
  3737. if ((s1 != null)) {
  3738. s1.Close();
  3739. }
  3740. if ((s2 != null)) {
  3741. s2.Close();
  3742. }
  3743. }
  3744. }
  3745. xs.Add(dsSchema);
  3746. return type;
  3747. }
  3748. }
  3749. /// <summary>
  3750. ///Represents the strongly named DataTable class.
  3751. ///</summary>
  3752. [global::System.Serializable()]
  3753. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3754. public partial class ProductSaleDataTable : global::System.Data.TypedTableBase<ProductSaleRow> {
  3755. private global::System.Data.DataColumn columnID;
  3756. private global::System.Data.DataColumn columnAgentID;
  3757. private global::System.Data.DataColumn columnProductID;
  3758. private global::System.Data.DataColumn columnSaleDate;
  3759. private global::System.Data.DataColumn columnProductCount;
  3760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3762. public ProductSaleDataTable() {
  3763. this.TableName = "ProductSale";
  3764. this.BeginInit();
  3765. this.InitClass();
  3766. this.EndInit();
  3767. }
  3768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3770. internal ProductSaleDataTable(global::System.Data.DataTable table) {
  3771. this.TableName = table.TableName;
  3772. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3773. this.CaseSensitive = table.CaseSensitive;
  3774. }
  3775. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3776. this.Locale = table.Locale;
  3777. }
  3778. if ((table.Namespace != table.DataSet.Namespace)) {
  3779. this.Namespace = table.Namespace;
  3780. }
  3781. this.Prefix = table.Prefix;
  3782. this.MinimumCapacity = table.MinimumCapacity;
  3783. }
  3784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3786. protected ProductSaleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3787. base(info, context) {
  3788. this.InitVars();
  3789. }
  3790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3792. public global::System.Data.DataColumn IDColumn {
  3793. get {
  3794. return this.columnID;
  3795. }
  3796. }
  3797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3799. public global::System.Data.DataColumn AgentIDColumn {
  3800. get {
  3801. return this.columnAgentID;
  3802. }
  3803. }
  3804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3806. public global::System.Data.DataColumn ProductIDColumn {
  3807. get {
  3808. return this.columnProductID;
  3809. }
  3810. }
  3811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3813. public global::System.Data.DataColumn SaleDateColumn {
  3814. get {
  3815. return this.columnSaleDate;
  3816. }
  3817. }
  3818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3820. public global::System.Data.DataColumn ProductCountColumn {
  3821. get {
  3822. return this.columnProductCount;
  3823. }
  3824. }
  3825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3827. [global::System.ComponentModel.Browsable(false)]
  3828. public int Count {
  3829. get {
  3830. return this.Rows.Count;
  3831. }
  3832. }
  3833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3835. public ProductSaleRow this[int index] {
  3836. get {
  3837. return ((ProductSaleRow)(this.Rows[index]));
  3838. }
  3839. }
  3840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3841. public event ProductSaleRowChangeEventHandler ProductSaleRowChanging;
  3842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3843. public event ProductSaleRowChangeEventHandler ProductSaleRowChanged;
  3844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3845. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleting;
  3846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3847. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleted;
  3848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3850. public void AddProductSaleRow(ProductSaleRow row) {
  3851. this.Rows.Add(row);
  3852. }
  3853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3855. public ProductSaleRow AddProductSaleRow(AgentRow parentAgentRowByFK_ProductSale_Agent, ProductRow parentProductRowByFK_ProductSale_Product, System.DateTime SaleDate, int ProductCount) {
  3856. ProductSaleRow rowProductSaleRow = ((ProductSaleRow)(this.NewRow()));
  3857. object[] columnValuesArray = new object[] {
  3858. null,
  3859. null,
  3860. null,
  3861. SaleDate,
  3862. ProductCount};
  3863. if ((parentAgentRowByFK_ProductSale_Agent != null)) {
  3864. columnValuesArray[1] = parentAgentRowByFK_ProductSale_Agent[0];
  3865. }
  3866. if ((parentProductRowByFK_ProductSale_Product != null)) {
  3867. columnValuesArray[2] = parentProductRowByFK_ProductSale_Product[0];
  3868. }
  3869. rowProductSaleRow.ItemArray = columnValuesArray;
  3870. this.Rows.Add(rowProductSaleRow);
  3871. return rowProductSaleRow;
  3872. }
  3873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3875. public ProductSaleRow FindByID(int ID) {
  3876. return ((ProductSaleRow)(this.Rows.Find(new object[] {
  3877. ID})));
  3878. }
  3879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3881. public override global::System.Data.DataTable Clone() {
  3882. ProductSaleDataTable cln = ((ProductSaleDataTable)(base.Clone()));
  3883. cln.InitVars();
  3884. return cln;
  3885. }
  3886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3888. protected override global::System.Data.DataTable CreateInstance() {
  3889. return new ProductSaleDataTable();
  3890. }
  3891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3893. internal void InitVars() {
  3894. this.columnID = base.Columns["ID"];
  3895. this.columnAgentID = base.Columns["AgentID"];
  3896. this.columnProductID = base.Columns["ProductID"];
  3897. this.columnSaleDate = base.Columns["SaleDate"];
  3898. this.columnProductCount = base.Columns["ProductCount"];
  3899. }
  3900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3902. private void InitClass() {
  3903. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3904. base.Columns.Add(this.columnID);
  3905. this.columnAgentID = new global::System.Data.DataColumn("AgentID", typeof(int), null, global::System.Data.MappingType.Element);
  3906. base.Columns.Add(this.columnAgentID);
  3907. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  3908. base.Columns.Add(this.columnProductID);
  3909. this.columnSaleDate = new global::System.Data.DataColumn("SaleDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3910. base.Columns.Add(this.columnSaleDate);
  3911. this.columnProductCount = new global::System.Data.DataColumn("ProductCount", typeof(int), null, global::System.Data.MappingType.Element);
  3912. base.Columns.Add(this.columnProductCount);
  3913. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3914. this.columnID}, true));
  3915. this.columnID.AutoIncrement = true;
  3916. this.columnID.AutoIncrementSeed = -1;
  3917. this.columnID.AutoIncrementStep = -1;
  3918. this.columnID.AllowDBNull = false;
  3919. this.columnID.ReadOnly = true;
  3920. this.columnID.Unique = true;
  3921. this.columnAgentID.AllowDBNull = false;
  3922. this.columnProductID.AllowDBNull = false;
  3923. this.columnSaleDate.AllowDBNull = false;
  3924. this.columnProductCount.AllowDBNull = false;
  3925. }
  3926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3928. public ProductSaleRow NewProductSaleRow() {
  3929. return ((ProductSaleRow)(this.NewRow()));
  3930. }
  3931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3933. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3934. return new ProductSaleRow(builder);
  3935. }
  3936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3938. protected override global::System.Type GetRowType() {
  3939. return typeof(ProductSaleRow);
  3940. }
  3941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3943. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3944. base.OnRowChanged(e);
  3945. if ((this.ProductSaleRowChanged != null)) {
  3946. this.ProductSaleRowChanged(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3947. }
  3948. }
  3949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3951. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3952. base.OnRowChanging(e);
  3953. if ((this.ProductSaleRowChanging != null)) {
  3954. this.ProductSaleRowChanging(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3955. }
  3956. }
  3957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3959. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3960. base.OnRowDeleted(e);
  3961. if ((this.ProductSaleRowDeleted != null)) {
  3962. this.ProductSaleRowDeleted(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3963. }
  3964. }
  3965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3967. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3968. base.OnRowDeleting(e);
  3969. if ((this.ProductSaleRowDeleting != null)) {
  3970. this.ProductSaleRowDeleting(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3971. }
  3972. }
  3973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3975. public void RemoveProductSaleRow(ProductSaleRow row) {
  3976. this.Rows.Remove(row);
  3977. }
  3978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3980. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3981. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3982. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3983. TestWSR4DataSet ds = new TestWSR4DataSet();
  3984. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3985. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3986. any1.MinOccurs = new decimal(0);
  3987. any1.MaxOccurs = decimal.MaxValue;
  3988. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3989. sequence.Items.Add(any1);
  3990. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3991. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3992. any2.MinOccurs = new decimal(1);
  3993. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3994. sequence.Items.Add(any2);
  3995. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3996. attribute1.Name = "namespace";
  3997. attribute1.FixedValue = ds.Namespace;
  3998. type.Attributes.Add(attribute1);
  3999. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4000. attribute2.Name = "tableTypeName";
  4001. attribute2.FixedValue = "ProductSaleDataTable";
  4002. type.Attributes.Add(attribute2);
  4003. type.Particle = sequence;
  4004. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4005. if (xs.Contains(dsSchema.TargetNamespace)) {
  4006. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4007. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4008. try {
  4009. global::System.Xml.Schema.XmlSchema schema = null;
  4010. dsSchema.Write(s1);
  4011. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4012. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4013. s2.SetLength(0);
  4014. schema.Write(s2);
  4015. if ((s1.Length == s2.Length)) {
  4016. s1.Position = 0;
  4017. s2.Position = 0;
  4018. for (; ((s1.Position != s1.Length)
  4019. && (s1.ReadByte() == s2.ReadByte())); ) {
  4020. ;
  4021. }
  4022. if ((s1.Position == s1.Length)) {
  4023. return type;
  4024. }
  4025. }
  4026. }
  4027. }
  4028. finally {
  4029. if ((s1 != null)) {
  4030. s1.Close();
  4031. }
  4032. if ((s2 != null)) {
  4033. s2.Close();
  4034. }
  4035. }
  4036. }
  4037. xs.Add(dsSchema);
  4038. return type;
  4039. }
  4040. }
  4041. /// <summary>
  4042. ///Represents the strongly named DataTable class.
  4043. ///</summary>
  4044. [global::System.Serializable()]
  4045. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4046. public partial class ProductTypeDataTable : global::System.Data.TypedTableBase<ProductTypeRow> {
  4047. private global::System.Data.DataColumn columnID;
  4048. private global::System.Data.DataColumn columnTitle;
  4049. private global::System.Data.DataColumn columnDefectedPercent;
  4050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4052. public ProductTypeDataTable() {
  4053. this.TableName = "ProductType";
  4054. this.BeginInit();
  4055. this.InitClass();
  4056. this.EndInit();
  4057. }
  4058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4060. internal ProductTypeDataTable(global::System.Data.DataTable table) {
  4061. this.TableName = table.TableName;
  4062. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4063. this.CaseSensitive = table.CaseSensitive;
  4064. }
  4065. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4066. this.Locale = table.Locale;
  4067. }
  4068. if ((table.Namespace != table.DataSet.Namespace)) {
  4069. this.Namespace = table.Namespace;
  4070. }
  4071. this.Prefix = table.Prefix;
  4072. this.MinimumCapacity = table.MinimumCapacity;
  4073. }
  4074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4076. protected ProductTypeDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4077. base(info, context) {
  4078. this.InitVars();
  4079. }
  4080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4082. public global::System.Data.DataColumn IDColumn {
  4083. get {
  4084. return this.columnID;
  4085. }
  4086. }
  4087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4089. public global::System.Data.DataColumn TitleColumn {
  4090. get {
  4091. return this.columnTitle;
  4092. }
  4093. }
  4094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4096. public global::System.Data.DataColumn DefectedPercentColumn {
  4097. get {
  4098. return this.columnDefectedPercent;
  4099. }
  4100. }
  4101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4103. [global::System.ComponentModel.Browsable(false)]
  4104. public int Count {
  4105. get {
  4106. return this.Rows.Count;
  4107. }
  4108. }
  4109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4111. public ProductTypeRow this[int index] {
  4112. get {
  4113. return ((ProductTypeRow)(this.Rows[index]));
  4114. }
  4115. }
  4116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4117. public event ProductTypeRowChangeEventHandler ProductTypeRowChanging;
  4118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4119. public event ProductTypeRowChangeEventHandler ProductTypeRowChanged;
  4120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4121. public event ProductTypeRowChangeEventHandler ProductTypeRowDeleting;
  4122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4123. public event ProductTypeRowChangeEventHandler ProductTypeRowDeleted;
  4124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4126. public void AddProductTypeRow(ProductTypeRow row) {
  4127. this.Rows.Add(row);
  4128. }
  4129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4131. public ProductTypeRow AddProductTypeRow(string Title, double DefectedPercent) {
  4132. ProductTypeRow rowProductTypeRow = ((ProductTypeRow)(this.NewRow()));
  4133. object[] columnValuesArray = new object[] {
  4134. null,
  4135. Title,
  4136. DefectedPercent};
  4137. rowProductTypeRow.ItemArray = columnValuesArray;
  4138. this.Rows.Add(rowProductTypeRow);
  4139. return rowProductTypeRow;
  4140. }
  4141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4143. public ProductTypeRow FindByID(int ID) {
  4144. return ((ProductTypeRow)(this.Rows.Find(new object[] {
  4145. ID})));
  4146. }
  4147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4149. public override global::System.Data.DataTable Clone() {
  4150. ProductTypeDataTable cln = ((ProductTypeDataTable)(base.Clone()));
  4151. cln.InitVars();
  4152. return cln;
  4153. }
  4154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4156. protected override global::System.Data.DataTable CreateInstance() {
  4157. return new ProductTypeDataTable();
  4158. }
  4159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4161. internal void InitVars() {
  4162. this.columnID = base.Columns["ID"];
  4163. this.columnTitle = base.Columns["Title"];
  4164. this.columnDefectedPercent = base.Columns["DefectedPercent"];
  4165. }
  4166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4168. private void InitClass() {
  4169. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  4170. base.Columns.Add(this.columnID);
  4171. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  4172. base.Columns.Add(this.columnTitle);
  4173. this.columnDefectedPercent = new global::System.Data.DataColumn("DefectedPercent", typeof(double), null, global::System.Data.MappingType.Element);
  4174. base.Columns.Add(this.columnDefectedPercent);
  4175. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4176. this.columnID}, true));
  4177. this.columnID.AutoIncrement = true;
  4178. this.columnID.AutoIncrementSeed = -1;
  4179. this.columnID.AutoIncrementStep = -1;
  4180. this.columnID.AllowDBNull = false;
  4181. this.columnID.ReadOnly = true;
  4182. this.columnID.Unique = true;
  4183. this.columnTitle.AllowDBNull = false;
  4184. this.columnTitle.MaxLength = 50;
  4185. }
  4186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4188. public ProductTypeRow NewProductTypeRow() {
  4189. return ((ProductTypeRow)(this.NewRow()));
  4190. }
  4191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4193. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4194. return new ProductTypeRow(builder);
  4195. }
  4196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4198. protected override global::System.Type GetRowType() {
  4199. return typeof(ProductTypeRow);
  4200. }
  4201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4203. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4204. base.OnRowChanged(e);
  4205. if ((this.ProductTypeRowChanged != null)) {
  4206. this.ProductTypeRowChanged(this, new ProductTypeRowChangeEvent(((ProductTypeRow)(e.Row)), e.Action));
  4207. }
  4208. }
  4209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4211. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4212. base.OnRowChanging(e);
  4213. if ((this.ProductTypeRowChanging != null)) {
  4214. this.ProductTypeRowChanging(this, new ProductTypeRowChangeEvent(((ProductTypeRow)(e.Row)), e.Action));
  4215. }
  4216. }
  4217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4219. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4220. base.OnRowDeleted(e);
  4221. if ((this.ProductTypeRowDeleted != null)) {
  4222. this.ProductTypeRowDeleted(this, new ProductTypeRowChangeEvent(((ProductTypeRow)(e.Row)), e.Action));
  4223. }
  4224. }
  4225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4227. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4228. base.OnRowDeleting(e);
  4229. if ((this.ProductTypeRowDeleting != null)) {
  4230. this.ProductTypeRowDeleting(this, new ProductTypeRowChangeEvent(((ProductTypeRow)(e.Row)), e.Action));
  4231. }
  4232. }
  4233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4235. public void RemoveProductTypeRow(ProductTypeRow row) {
  4236. this.Rows.Remove(row);
  4237. }
  4238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4240. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4241. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4242. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4243. TestWSR4DataSet ds = new TestWSR4DataSet();
  4244. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4245. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4246. any1.MinOccurs = new decimal(0);
  4247. any1.MaxOccurs = decimal.MaxValue;
  4248. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4249. sequence.Items.Add(any1);
  4250. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4251. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4252. any2.MinOccurs = new decimal(1);
  4253. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4254. sequence.Items.Add(any2);
  4255. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4256. attribute1.Name = "namespace";
  4257. attribute1.FixedValue = ds.Namespace;
  4258. type.Attributes.Add(attribute1);
  4259. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4260. attribute2.Name = "tableTypeName";
  4261. attribute2.FixedValue = "ProductTypeDataTable";
  4262. type.Attributes.Add(attribute2);
  4263. type.Particle = sequence;
  4264. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4265. if (xs.Contains(dsSchema.TargetNamespace)) {
  4266. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4267. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4268. try {
  4269. global::System.Xml.Schema.XmlSchema schema = null;
  4270. dsSchema.Write(s1);
  4271. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4272. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4273. s2.SetLength(0);
  4274. schema.Write(s2);
  4275. if ((s1.Length == s2.Length)) {
  4276. s1.Position = 0;
  4277. s2.Position = 0;
  4278. for (; ((s1.Position != s1.Length)
  4279. && (s1.ReadByte() == s2.ReadByte())); ) {
  4280. ;
  4281. }
  4282. if ((s1.Position == s1.Length)) {
  4283. return type;
  4284. }
  4285. }
  4286. }
  4287. }
  4288. finally {
  4289. if ((s1 != null)) {
  4290. s1.Close();
  4291. }
  4292. if ((s2 != null)) {
  4293. s2.Close();
  4294. }
  4295. }
  4296. }
  4297. xs.Add(dsSchema);
  4298. return type;
  4299. }
  4300. }
  4301. /// <summary>
  4302. ///Represents the strongly named DataTable class.
  4303. ///</summary>
  4304. [global::System.Serializable()]
  4305. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4306. public partial class ShopDataTable : global::System.Data.TypedTableBase<ShopRow> {
  4307. private global::System.Data.DataColumn columnID;
  4308. private global::System.Data.DataColumn columnTitle;
  4309. private global::System.Data.DataColumn columnAddress;
  4310. private global::System.Data.DataColumn columnAgentID;
  4311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4313. public ShopDataTable() {
  4314. this.TableName = "Shop";
  4315. this.BeginInit();
  4316. this.InitClass();
  4317. this.EndInit();
  4318. }
  4319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4321. internal ShopDataTable(global::System.Data.DataTable table) {
  4322. this.TableName = table.TableName;
  4323. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4324. this.CaseSensitive = table.CaseSensitive;
  4325. }
  4326. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4327. this.Locale = table.Locale;
  4328. }
  4329. if ((table.Namespace != table.DataSet.Namespace)) {
  4330. this.Namespace = table.Namespace;
  4331. }
  4332. this.Prefix = table.Prefix;
  4333. this.MinimumCapacity = table.MinimumCapacity;
  4334. }
  4335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4337. protected ShopDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4338. base(info, context) {
  4339. this.InitVars();
  4340. }
  4341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4343. public global::System.Data.DataColumn IDColumn {
  4344. get {
  4345. return this.columnID;
  4346. }
  4347. }
  4348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4350. public global::System.Data.DataColumn TitleColumn {
  4351. get {
  4352. return this.columnTitle;
  4353. }
  4354. }
  4355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4357. public global::System.Data.DataColumn AddressColumn {
  4358. get {
  4359. return this.columnAddress;
  4360. }
  4361. }
  4362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4364. public global::System.Data.DataColumn AgentIDColumn {
  4365. get {
  4366. return this.columnAgentID;
  4367. }
  4368. }
  4369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4371. [global::System.ComponentModel.Browsable(false)]
  4372. public int Count {
  4373. get {
  4374. return this.Rows.Count;
  4375. }
  4376. }
  4377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4379. public ShopRow this[int index] {
  4380. get {
  4381. return ((ShopRow)(this.Rows[index]));
  4382. }
  4383. }
  4384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4385. public event ShopRowChangeEventHandler ShopRowChanging;
  4386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4387. public event ShopRowChangeEventHandler ShopRowChanged;
  4388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4389. public event ShopRowChangeEventHandler ShopRowDeleting;
  4390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4391. public event ShopRowChangeEventHandler ShopRowDeleted;
  4392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4394. public void AddShopRow(ShopRow row) {
  4395. this.Rows.Add(row);
  4396. }
  4397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4399. public ShopRow AddShopRow(string Title, string Address, AgentRow parentAgentRowByFK_Shop_Agent) {
  4400. ShopRow rowShopRow = ((ShopRow)(this.NewRow()));
  4401. object[] columnValuesArray = new object[] {
  4402. null,
  4403. Title,
  4404. Address,
  4405. null};
  4406. if ((parentAgentRowByFK_Shop_Agent != null)) {
  4407. columnValuesArray[3] = parentAgentRowByFK_Shop_Agent[0];
  4408. }
  4409. rowShopRow.ItemArray = columnValuesArray;
  4410. this.Rows.Add(rowShopRow);
  4411. return rowShopRow;
  4412. }
  4413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4415. public ShopRow FindByID(int ID) {
  4416. return ((ShopRow)(this.Rows.Find(new object[] {
  4417. ID})));
  4418. }
  4419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4421. public override global::System.Data.DataTable Clone() {
  4422. ShopDataTable cln = ((ShopDataTable)(base.Clone()));
  4423. cln.InitVars();
  4424. return cln;
  4425. }
  4426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4428. protected override global::System.Data.DataTable CreateInstance() {
  4429. return new ShopDataTable();
  4430. }
  4431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4433. internal void InitVars() {
  4434. this.columnID = base.Columns["ID"];
  4435. this.columnTitle = base.Columns["Title"];
  4436. this.columnAddress = base.Columns["Address"];
  4437. this.columnAgentID = base.Columns["AgentID"];
  4438. }
  4439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4441. private void InitClass() {
  4442. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  4443. base.Columns.Add(this.columnID);
  4444. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  4445. base.Columns.Add(this.columnTitle);
  4446. this.columnAddress = new global::System.Data.DataColumn("Address", typeof(string), null, global::System.Data.MappingType.Element);
  4447. base.Columns.Add(this.columnAddress);
  4448. this.columnAgentID = new global::System.Data.DataColumn("AgentID", typeof(int), null, global::System.Data.MappingType.Element);
  4449. base.Columns.Add(this.columnAgentID);
  4450. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4451. this.columnID}, true));
  4452. this.columnID.AutoIncrement = true;
  4453. this.columnID.AutoIncrementSeed = -1;
  4454. this.columnID.AutoIncrementStep = -1;
  4455. this.columnID.AllowDBNull = false;
  4456. this.columnID.ReadOnly = true;
  4457. this.columnID.Unique = true;
  4458. this.columnTitle.AllowDBNull = false;
  4459. this.columnTitle.MaxLength = 150;
  4460. this.columnAddress.MaxLength = 300;
  4461. this.columnAgentID.AllowDBNull = false;
  4462. }
  4463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4465. public ShopRow NewShopRow() {
  4466. return ((ShopRow)(this.NewRow()));
  4467. }
  4468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4470. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4471. return new ShopRow(builder);
  4472. }
  4473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4475. protected override global::System.Type GetRowType() {
  4476. return typeof(ShopRow);
  4477. }
  4478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4480. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4481. base.OnRowChanged(e);
  4482. if ((this.ShopRowChanged != null)) {
  4483. this.ShopRowChanged(this, new ShopRowChangeEvent(((ShopRow)(e.Row)), e.Action));
  4484. }
  4485. }
  4486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4488. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4489. base.OnRowChanging(e);
  4490. if ((this.ShopRowChanging != null)) {
  4491. this.ShopRowChanging(this, new ShopRowChangeEvent(((ShopRow)(e.Row)), e.Action));
  4492. }
  4493. }
  4494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4496. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4497. base.OnRowDeleted(e);
  4498. if ((this.ShopRowDeleted != null)) {
  4499. this.ShopRowDeleted(this, new ShopRowChangeEvent(((ShopRow)(e.Row)), e.Action));
  4500. }
  4501. }
  4502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4504. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4505. base.OnRowDeleting(e);
  4506. if ((this.ShopRowDeleting != null)) {
  4507. this.ShopRowDeleting(this, new ShopRowChangeEvent(((ShopRow)(e.Row)), e.Action));
  4508. }
  4509. }
  4510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4512. public void RemoveShopRow(ShopRow row) {
  4513. this.Rows.Remove(row);
  4514. }
  4515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4517. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4518. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4519. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4520. TestWSR4DataSet ds = new TestWSR4DataSet();
  4521. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4522. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4523. any1.MinOccurs = new decimal(0);
  4524. any1.MaxOccurs = decimal.MaxValue;
  4525. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4526. sequence.Items.Add(any1);
  4527. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4528. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4529. any2.MinOccurs = new decimal(1);
  4530. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4531. sequence.Items.Add(any2);
  4532. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4533. attribute1.Name = "namespace";
  4534. attribute1.FixedValue = ds.Namespace;
  4535. type.Attributes.Add(attribute1);
  4536. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4537. attribute2.Name = "tableTypeName";
  4538. attribute2.FixedValue = "ShopDataTable";
  4539. type.Attributes.Add(attribute2);
  4540. type.Particle = sequence;
  4541. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4542. if (xs.Contains(dsSchema.TargetNamespace)) {
  4543. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4544. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4545. try {
  4546. global::System.Xml.Schema.XmlSchema schema = null;
  4547. dsSchema.Write(s1);
  4548. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4549. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4550. s2.SetLength(0);
  4551. schema.Write(s2);
  4552. if ((s1.Length == s2.Length)) {
  4553. s1.Position = 0;
  4554. s2.Position = 0;
  4555. for (; ((s1.Position != s1.Length)
  4556. && (s1.ReadByte() == s2.ReadByte())); ) {
  4557. ;
  4558. }
  4559. if ((s1.Position == s1.Length)) {
  4560. return type;
  4561. }
  4562. }
  4563. }
  4564. }
  4565. finally {
  4566. if ((s1 != null)) {
  4567. s1.Close();
  4568. }
  4569. if ((s2 != null)) {
  4570. s2.Close();
  4571. }
  4572. }
  4573. }
  4574. xs.Add(dsSchema);
  4575. return type;
  4576. }
  4577. }
  4578. /// <summary>
  4579. ///Represents the strongly named DataTable class.
  4580. ///</summary>
  4581. [global::System.Serializable()]
  4582. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4583. public partial class SupplierDataTable : global::System.Data.TypedTableBase<SupplierRow> {
  4584. private global::System.Data.DataColumn columnID;
  4585. private global::System.Data.DataColumn columnTitle;
  4586. private global::System.Data.DataColumn columnINN;
  4587. private global::System.Data.DataColumn columnStartDate;
  4588. private global::System.Data.DataColumn columnQualityRating;
  4589. private global::System.Data.DataColumn columnSupplierType;
  4590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4592. public SupplierDataTable() {
  4593. this.TableName = "Supplier";
  4594. this.BeginInit();
  4595. this.InitClass();
  4596. this.EndInit();
  4597. }
  4598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4600. internal SupplierDataTable(global::System.Data.DataTable table) {
  4601. this.TableName = table.TableName;
  4602. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4603. this.CaseSensitive = table.CaseSensitive;
  4604. }
  4605. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4606. this.Locale = table.Locale;
  4607. }
  4608. if ((table.Namespace != table.DataSet.Namespace)) {
  4609. this.Namespace = table.Namespace;
  4610. }
  4611. this.Prefix = table.Prefix;
  4612. this.MinimumCapacity = table.MinimumCapacity;
  4613. }
  4614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4616. protected SupplierDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4617. base(info, context) {
  4618. this.InitVars();
  4619. }
  4620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4622. public global::System.Data.DataColumn IDColumn {
  4623. get {
  4624. return this.columnID;
  4625. }
  4626. }
  4627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4629. public global::System.Data.DataColumn TitleColumn {
  4630. get {
  4631. return this.columnTitle;
  4632. }
  4633. }
  4634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4636. public global::System.Data.DataColumn INNColumn {
  4637. get {
  4638. return this.columnINN;
  4639. }
  4640. }
  4641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4643. public global::System.Data.DataColumn StartDateColumn {
  4644. get {
  4645. return this.columnStartDate;
  4646. }
  4647. }
  4648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4650. public global::System.Data.DataColumn QualityRatingColumn {
  4651. get {
  4652. return this.columnQualityRating;
  4653. }
  4654. }
  4655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4657. public global::System.Data.DataColumn SupplierTypeColumn {
  4658. get {
  4659. return this.columnSupplierType;
  4660. }
  4661. }
  4662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4664. [global::System.ComponentModel.Browsable(false)]
  4665. public int Count {
  4666. get {
  4667. return this.Rows.Count;
  4668. }
  4669. }
  4670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4672. public SupplierRow this[int index] {
  4673. get {
  4674. return ((SupplierRow)(this.Rows[index]));
  4675. }
  4676. }
  4677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4678. public event SupplierRowChangeEventHandler SupplierRowChanging;
  4679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4680. public event SupplierRowChangeEventHandler SupplierRowChanged;
  4681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4682. public event SupplierRowChangeEventHandler SupplierRowDeleting;
  4683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4684. public event SupplierRowChangeEventHandler SupplierRowDeleted;
  4685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4687. public void AddSupplierRow(SupplierRow row) {
  4688. this.Rows.Add(row);
  4689. }
  4690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4692. public SupplierRow AddSupplierRow(string Title, string INN, System.DateTime StartDate, int QualityRating, string SupplierType) {
  4693. SupplierRow rowSupplierRow = ((SupplierRow)(this.NewRow()));
  4694. object[] columnValuesArray = new object[] {
  4695. null,
  4696. Title,
  4697. INN,
  4698. StartDate,
  4699. QualityRating,
  4700. SupplierType};
  4701. rowSupplierRow.ItemArray = columnValuesArray;
  4702. this.Rows.Add(rowSupplierRow);
  4703. return rowSupplierRow;
  4704. }
  4705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4707. public SupplierRow FindByID(int ID) {
  4708. return ((SupplierRow)(this.Rows.Find(new object[] {
  4709. ID})));
  4710. }
  4711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4713. public override global::System.Data.DataTable Clone() {
  4714. SupplierDataTable cln = ((SupplierDataTable)(base.Clone()));
  4715. cln.InitVars();
  4716. return cln;
  4717. }
  4718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4720. protected override global::System.Data.DataTable CreateInstance() {
  4721. return new SupplierDataTable();
  4722. }
  4723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4725. internal void InitVars() {
  4726. this.columnID = base.Columns["ID"];
  4727. this.columnTitle = base.Columns["Title"];
  4728. this.columnINN = base.Columns["INN"];
  4729. this.columnStartDate = base.Columns["StartDate"];
  4730. this.columnQualityRating = base.Columns["QualityRating"];
  4731. this.columnSupplierType = base.Columns["SupplierType"];
  4732. }
  4733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4735. private void InitClass() {
  4736. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  4737. base.Columns.Add(this.columnID);
  4738. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  4739. base.Columns.Add(this.columnTitle);
  4740. this.columnINN = new global::System.Data.DataColumn("INN", typeof(string), null, global::System.Data.MappingType.Element);
  4741. base.Columns.Add(this.columnINN);
  4742. this.columnStartDate = new global::System.Data.DataColumn("StartDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  4743. base.Columns.Add(this.columnStartDate);
  4744. this.columnQualityRating = new global::System.Data.DataColumn("QualityRating", typeof(int), null, global::System.Data.MappingType.Element);
  4745. base.Columns.Add(this.columnQualityRating);
  4746. this.columnSupplierType = new global::System.Data.DataColumn("SupplierType", typeof(string), null, global::System.Data.MappingType.Element);
  4747. base.Columns.Add(this.columnSupplierType);
  4748. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4749. this.columnID}, true));
  4750. this.columnID.AutoIncrement = true;
  4751. this.columnID.AutoIncrementSeed = -1;
  4752. this.columnID.AutoIncrementStep = -1;
  4753. this.columnID.AllowDBNull = false;
  4754. this.columnID.ReadOnly = true;
  4755. this.columnID.Unique = true;
  4756. this.columnTitle.AllowDBNull = false;
  4757. this.columnTitle.MaxLength = 150;
  4758. this.columnINN.AllowDBNull = false;
  4759. this.columnINN.MaxLength = 12;
  4760. this.columnStartDate.AllowDBNull = false;
  4761. this.columnSupplierType.MaxLength = 20;
  4762. }
  4763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4765. public SupplierRow NewSupplierRow() {
  4766. return ((SupplierRow)(this.NewRow()));
  4767. }
  4768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4770. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4771. return new SupplierRow(builder);
  4772. }
  4773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4775. protected override global::System.Type GetRowType() {
  4776. return typeof(SupplierRow);
  4777. }
  4778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4780. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4781. base.OnRowChanged(e);
  4782. if ((this.SupplierRowChanged != null)) {
  4783. this.SupplierRowChanged(this, new SupplierRowChangeEvent(((SupplierRow)(e.Row)), e.Action));
  4784. }
  4785. }
  4786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4788. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4789. base.OnRowChanging(e);
  4790. if ((this.SupplierRowChanging != null)) {
  4791. this.SupplierRowChanging(this, new SupplierRowChangeEvent(((SupplierRow)(e.Row)), e.Action));
  4792. }
  4793. }
  4794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4796. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4797. base.OnRowDeleted(e);
  4798. if ((this.SupplierRowDeleted != null)) {
  4799. this.SupplierRowDeleted(this, new SupplierRowChangeEvent(((SupplierRow)(e.Row)), e.Action));
  4800. }
  4801. }
  4802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4804. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4805. base.OnRowDeleting(e);
  4806. if ((this.SupplierRowDeleting != null)) {
  4807. this.SupplierRowDeleting(this, new SupplierRowChangeEvent(((SupplierRow)(e.Row)), e.Action));
  4808. }
  4809. }
  4810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4812. public void RemoveSupplierRow(SupplierRow row) {
  4813. this.Rows.Remove(row);
  4814. }
  4815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4817. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4818. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4819. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4820. TestWSR4DataSet ds = new TestWSR4DataSet();
  4821. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4822. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4823. any1.MinOccurs = new decimal(0);
  4824. any1.MaxOccurs = decimal.MaxValue;
  4825. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4826. sequence.Items.Add(any1);
  4827. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4828. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4829. any2.MinOccurs = new decimal(1);
  4830. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4831. sequence.Items.Add(any2);
  4832. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4833. attribute1.Name = "namespace";
  4834. attribute1.FixedValue = ds.Namespace;
  4835. type.Attributes.Add(attribute1);
  4836. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4837. attribute2.Name = "tableTypeName";
  4838. attribute2.FixedValue = "SupplierDataTable";
  4839. type.Attributes.Add(attribute2);
  4840. type.Particle = sequence;
  4841. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4842. if (xs.Contains(dsSchema.TargetNamespace)) {
  4843. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4844. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4845. try {
  4846. global::System.Xml.Schema.XmlSchema schema = null;
  4847. dsSchema.Write(s1);
  4848. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4849. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4850. s2.SetLength(0);
  4851. schema.Write(s2);
  4852. if ((s1.Length == s2.Length)) {
  4853. s1.Position = 0;
  4854. s2.Position = 0;
  4855. for (; ((s1.Position != s1.Length)
  4856. && (s1.ReadByte() == s2.ReadByte())); ) {
  4857. ;
  4858. }
  4859. if ((s1.Position == s1.Length)) {
  4860. return type;
  4861. }
  4862. }
  4863. }
  4864. }
  4865. finally {
  4866. if ((s1 != null)) {
  4867. s1.Close();
  4868. }
  4869. if ((s2 != null)) {
  4870. s2.Close();
  4871. }
  4872. }
  4873. }
  4874. xs.Add(dsSchema);
  4875. return type;
  4876. }
  4877. }
  4878. /// <summary>
  4879. ///Represents the strongly named DataTable class.
  4880. ///</summary>
  4881. [global::System.Serializable()]
  4882. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4883. public partial class ItogSumProductDataTable : global::System.Data.TypedTableBase<ItogSumProductRow> {
  4884. private global::System.Data.DataColumn columnProduct;
  4885. private global::System.Data.DataColumn columnCost;
  4886. private global::System.Data.DataColumn columnID;
  4887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4889. public ItogSumProductDataTable() {
  4890. this.TableName = "ItogSumProduct";
  4891. this.BeginInit();
  4892. this.InitClass();
  4893. this.EndInit();
  4894. }
  4895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4897. internal ItogSumProductDataTable(global::System.Data.DataTable table) {
  4898. this.TableName = table.TableName;
  4899. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4900. this.CaseSensitive = table.CaseSensitive;
  4901. }
  4902. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4903. this.Locale = table.Locale;
  4904. }
  4905. if ((table.Namespace != table.DataSet.Namespace)) {
  4906. this.Namespace = table.Namespace;
  4907. }
  4908. this.Prefix = table.Prefix;
  4909. this.MinimumCapacity = table.MinimumCapacity;
  4910. }
  4911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4913. protected ItogSumProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4914. base(info, context) {
  4915. this.InitVars();
  4916. }
  4917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4919. public global::System.Data.DataColumn ProductColumn {
  4920. get {
  4921. return this.columnProduct;
  4922. }
  4923. }
  4924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4926. public global::System.Data.DataColumn CostColumn {
  4927. get {
  4928. return this.columnCost;
  4929. }
  4930. }
  4931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4933. public global::System.Data.DataColumn IDColumn {
  4934. get {
  4935. return this.columnID;
  4936. }
  4937. }
  4938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4940. [global::System.ComponentModel.Browsable(false)]
  4941. public int Count {
  4942. get {
  4943. return this.Rows.Count;
  4944. }
  4945. }
  4946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4948. public ItogSumProductRow this[int index] {
  4949. get {
  4950. return ((ItogSumProductRow)(this.Rows[index]));
  4951. }
  4952. }
  4953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4954. public event ItogSumProductRowChangeEventHandler ItogSumProductRowChanging;
  4955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4956. public event ItogSumProductRowChangeEventHandler ItogSumProductRowChanged;
  4957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4958. public event ItogSumProductRowChangeEventHandler ItogSumProductRowDeleting;
  4959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4960. public event ItogSumProductRowChangeEventHandler ItogSumProductRowDeleted;
  4961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4963. public void AddItogSumProductRow(ItogSumProductRow row) {
  4964. this.Rows.Add(row);
  4965. }
  4966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4968. public ItogSumProductRow AddItogSumProductRow(string Product, double Cost, int ID) {
  4969. ItogSumProductRow rowItogSumProductRow = ((ItogSumProductRow)(this.NewRow()));
  4970. object[] columnValuesArray = new object[] {
  4971. Product,
  4972. Cost,
  4973. ID};
  4974. rowItogSumProductRow.ItemArray = columnValuesArray;
  4975. this.Rows.Add(rowItogSumProductRow);
  4976. return rowItogSumProductRow;
  4977. }
  4978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4980. public ItogSumProductRow FindByID(int ID) {
  4981. return ((ItogSumProductRow)(this.Rows.Find(new object[] {
  4982. ID})));
  4983. }
  4984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4986. public override global::System.Data.DataTable Clone() {
  4987. ItogSumProductDataTable cln = ((ItogSumProductDataTable)(base.Clone()));
  4988. cln.InitVars();
  4989. return cln;
  4990. }
  4991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4993. protected override global::System.Data.DataTable CreateInstance() {
  4994. return new ItogSumProductDataTable();
  4995. }
  4996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4998. internal void InitVars() {
  4999. this.columnProduct = base.Columns["Product"];
  5000. this.columnCost = base.Columns["Cost"];
  5001. this.columnID = base.Columns["ID"];
  5002. }
  5003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5005. private void InitClass() {
  5006. this.columnProduct = new global::System.Data.DataColumn("Product", typeof(string), null, global::System.Data.MappingType.Element);
  5007. base.Columns.Add(this.columnProduct);
  5008. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(double), null, global::System.Data.MappingType.Element);
  5009. base.Columns.Add(this.columnCost);
  5010. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  5011. base.Columns.Add(this.columnID);
  5012. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  5013. this.columnID}, true));
  5014. this.columnProduct.AllowDBNull = false;
  5015. this.columnProduct.MaxLength = 100;
  5016. this.columnID.AllowDBNull = false;
  5017. this.columnID.Unique = true;
  5018. }
  5019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5021. public ItogSumProductRow NewItogSumProductRow() {
  5022. return ((ItogSumProductRow)(this.NewRow()));
  5023. }
  5024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5026. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  5027. return new ItogSumProductRow(builder);
  5028. }
  5029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5031. protected override global::System.Type GetRowType() {
  5032. return typeof(ItogSumProductRow);
  5033. }
  5034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5036. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  5037. base.OnRowChanged(e);
  5038. if ((this.ItogSumProductRowChanged != null)) {
  5039. this.ItogSumProductRowChanged(this, new ItogSumProductRowChangeEvent(((ItogSumProductRow)(e.Row)), e.Action));
  5040. }
  5041. }
  5042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5044. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  5045. base.OnRowChanging(e);
  5046. if ((this.ItogSumProductRowChanging != null)) {
  5047. this.ItogSumProductRowChanging(this, new ItogSumProductRowChangeEvent(((ItogSumProductRow)(e.Row)), e.Action));
  5048. }
  5049. }
  5050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5052. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  5053. base.OnRowDeleted(e);
  5054. if ((this.ItogSumProductRowDeleted != null)) {
  5055. this.ItogSumProductRowDeleted(this, new ItogSumProductRowChangeEvent(((ItogSumProductRow)(e.Row)), e.Action));
  5056. }
  5057. }
  5058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5060. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  5061. base.OnRowDeleting(e);
  5062. if ((this.ItogSumProductRowDeleting != null)) {
  5063. this.ItogSumProductRowDeleting(this, new ItogSumProductRowChangeEvent(((ItogSumProductRow)(e.Row)), e.Action));
  5064. }
  5065. }
  5066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5068. public void RemoveItogSumProductRow(ItogSumProductRow row) {
  5069. this.Rows.Remove(row);
  5070. }
  5071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5073. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  5074. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  5075. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  5076. TestWSR4DataSet ds = new TestWSR4DataSet();
  5077. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  5078. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  5079. any1.MinOccurs = new decimal(0);
  5080. any1.MaxOccurs = decimal.MaxValue;
  5081. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5082. sequence.Items.Add(any1);
  5083. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  5084. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  5085. any2.MinOccurs = new decimal(1);
  5086. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5087. sequence.Items.Add(any2);
  5088. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5089. attribute1.Name = "namespace";
  5090. attribute1.FixedValue = ds.Namespace;
  5091. type.Attributes.Add(attribute1);
  5092. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5093. attribute2.Name = "tableTypeName";
  5094. attribute2.FixedValue = "ItogSumProductDataTable";
  5095. type.Attributes.Add(attribute2);
  5096. type.Particle = sequence;
  5097. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  5098. if (xs.Contains(dsSchema.TargetNamespace)) {
  5099. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  5100. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  5101. try {
  5102. global::System.Xml.Schema.XmlSchema schema = null;
  5103. dsSchema.Write(s1);
  5104. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  5105. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  5106. s2.SetLength(0);
  5107. schema.Write(s2);
  5108. if ((s1.Length == s2.Length)) {
  5109. s1.Position = 0;
  5110. s2.Position = 0;
  5111. for (; ((s1.Position != s1.Length)
  5112. && (s1.ReadByte() == s2.ReadByte())); ) {
  5113. ;
  5114. }
  5115. if ((s1.Position == s1.Length)) {
  5116. return type;
  5117. }
  5118. }
  5119. }
  5120. }
  5121. finally {
  5122. if ((s1 != null)) {
  5123. s1.Close();
  5124. }
  5125. if ((s2 != null)) {
  5126. s2.Close();
  5127. }
  5128. }
  5129. }
  5130. xs.Add(dsSchema);
  5131. return type;
  5132. }
  5133. }
  5134. /// <summary>
  5135. ///Represents the strongly named DataTable class.
  5136. ///</summary>
  5137. [global::System.Serializable()]
  5138. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  5139. public partial class ProductsPredDataTable : global::System.Data.TypedTableBase<ProductsPredRow> {
  5140. private global::System.Data.DataColumn columnID;
  5141. private global::System.Data.DataColumn columnTitle;
  5142. private global::System.Data.DataColumn columnType;
  5143. private global::System.Data.DataColumn columnCost;
  5144. private global::System.Data.DataColumn columnArticleNumber;
  5145. private global::System.Data.DataColumn columnProductionPersonCount;
  5146. private global::System.Data.DataColumn columnProductionWorkshopNumber;
  5147. private global::System.Data.DataColumn columnMinCostForAgent;
  5148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5150. public ProductsPredDataTable() {
  5151. this.TableName = "ProductsPred";
  5152. this.BeginInit();
  5153. this.InitClass();
  5154. this.EndInit();
  5155. }
  5156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5158. internal ProductsPredDataTable(global::System.Data.DataTable table) {
  5159. this.TableName = table.TableName;
  5160. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  5161. this.CaseSensitive = table.CaseSensitive;
  5162. }
  5163. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  5164. this.Locale = table.Locale;
  5165. }
  5166. if ((table.Namespace != table.DataSet.Namespace)) {
  5167. this.Namespace = table.Namespace;
  5168. }
  5169. this.Prefix = table.Prefix;
  5170. this.MinimumCapacity = table.MinimumCapacity;
  5171. }
  5172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5174. protected ProductsPredDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  5175. base(info, context) {
  5176. this.InitVars();
  5177. }
  5178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5180. public global::System.Data.DataColumn IDColumn {
  5181. get {
  5182. return this.columnID;
  5183. }
  5184. }
  5185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5187. public global::System.Data.DataColumn TitleColumn {
  5188. get {
  5189. return this.columnTitle;
  5190. }
  5191. }
  5192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5194. public global::System.Data.DataColumn TypeColumn {
  5195. get {
  5196. return this.columnType;
  5197. }
  5198. }
  5199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5201. public global::System.Data.DataColumn CostColumn {
  5202. get {
  5203. return this.columnCost;
  5204. }
  5205. }
  5206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5208. public global::System.Data.DataColumn ArticleNumberColumn {
  5209. get {
  5210. return this.columnArticleNumber;
  5211. }
  5212. }
  5213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5215. public global::System.Data.DataColumn ProductionPersonCountColumn {
  5216. get {
  5217. return this.columnProductionPersonCount;
  5218. }
  5219. }
  5220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5222. public global::System.Data.DataColumn ProductionWorkshopNumberColumn {
  5223. get {
  5224. return this.columnProductionWorkshopNumber;
  5225. }
  5226. }
  5227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5229. public global::System.Data.DataColumn MinCostForAgentColumn {
  5230. get {
  5231. return this.columnMinCostForAgent;
  5232. }
  5233. }
  5234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5236. [global::System.ComponentModel.Browsable(false)]
  5237. public int Count {
  5238. get {
  5239. return this.Rows.Count;
  5240. }
  5241. }
  5242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5244. public ProductsPredRow this[int index] {
  5245. get {
  5246. return ((ProductsPredRow)(this.Rows[index]));
  5247. }
  5248. }
  5249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5250. public event ProductsPredRowChangeEventHandler ProductsPredRowChanging;
  5251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5252. public event ProductsPredRowChangeEventHandler ProductsPredRowChanged;
  5253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5254. public event ProductsPredRowChangeEventHandler ProductsPredRowDeleting;
  5255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5256. public event ProductsPredRowChangeEventHandler ProductsPredRowDeleted;
  5257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5259. public void AddProductsPredRow(ProductsPredRow row) {
  5260. this.Rows.Add(row);
  5261. }
  5262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5264. public ProductsPredRow AddProductsPredRow(int ID, string Title, string Type, double Cost, string ArticleNumber, int ProductionPersonCount, int ProductionWorkshopNumber, decimal MinCostForAgent) {
  5265. ProductsPredRow rowProductsPredRow = ((ProductsPredRow)(this.NewRow()));
  5266. object[] columnValuesArray = new object[] {
  5267. ID,
  5268. Title,
  5269. Type,
  5270. Cost,
  5271. ArticleNumber,
  5272. ProductionPersonCount,
  5273. ProductionWorkshopNumber,
  5274. MinCostForAgent};
  5275. rowProductsPredRow.ItemArray = columnValuesArray;
  5276. this.Rows.Add(rowProductsPredRow);
  5277. return rowProductsPredRow;
  5278. }
  5279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5281. public ProductsPredRow FindByID(int ID) {
  5282. return ((ProductsPredRow)(this.Rows.Find(new object[] {
  5283. ID})));
  5284. }
  5285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5287. public override global::System.Data.DataTable Clone() {
  5288. ProductsPredDataTable cln = ((ProductsPredDataTable)(base.Clone()));
  5289. cln.InitVars();
  5290. return cln;
  5291. }
  5292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5294. protected override global::System.Data.DataTable CreateInstance() {
  5295. return new ProductsPredDataTable();
  5296. }
  5297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5299. internal void InitVars() {
  5300. this.columnID = base.Columns["ID"];
  5301. this.columnTitle = base.Columns["Title"];
  5302. this.columnType = base.Columns["Type"];
  5303. this.columnCost = base.Columns["Cost"];
  5304. this.columnArticleNumber = base.Columns["ArticleNumber"];
  5305. this.columnProductionPersonCount = base.Columns["ProductionPersonCount"];
  5306. this.columnProductionWorkshopNumber = base.Columns["ProductionWorkshopNumber"];
  5307. this.columnMinCostForAgent = base.Columns["MinCostForAgent"];
  5308. }
  5309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5311. private void InitClass() {
  5312. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  5313. base.Columns.Add(this.columnID);
  5314. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  5315. base.Columns.Add(this.columnTitle);
  5316. this.columnType = new global::System.Data.DataColumn("Type", typeof(string), null, global::System.Data.MappingType.Element);
  5317. base.Columns.Add(this.columnType);
  5318. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(double), null, global::System.Data.MappingType.Element);
  5319. base.Columns.Add(this.columnCost);
  5320. this.columnArticleNumber = new global::System.Data.DataColumn("ArticleNumber", typeof(string), null, global::System.Data.MappingType.Element);
  5321. base.Columns.Add(this.columnArticleNumber);
  5322. this.columnProductionPersonCount = new global::System.Data.DataColumn("ProductionPersonCount", typeof(int), null, global::System.Data.MappingType.Element);
  5323. base.Columns.Add(this.columnProductionPersonCount);
  5324. this.columnProductionWorkshopNumber = new global::System.Data.DataColumn("ProductionWorkshopNumber", typeof(int), null, global::System.Data.MappingType.Element);
  5325. base.Columns.Add(this.columnProductionWorkshopNumber);
  5326. this.columnMinCostForAgent = new global::System.Data.DataColumn("MinCostForAgent", typeof(decimal), null, global::System.Data.MappingType.Element);
  5327. base.Columns.Add(this.columnMinCostForAgent);
  5328. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  5329. this.columnID}, true));
  5330. this.columnID.AllowDBNull = false;
  5331. this.columnID.Unique = true;
  5332. this.columnTitle.AllowDBNull = false;
  5333. this.columnTitle.MaxLength = 100;
  5334. this.columnType.AllowDBNull = false;
  5335. this.columnType.MaxLength = 50;
  5336. this.columnArticleNumber.AllowDBNull = false;
  5337. this.columnArticleNumber.MaxLength = 10;
  5338. this.columnMinCostForAgent.AllowDBNull = false;
  5339. }
  5340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5342. public ProductsPredRow NewProductsPredRow() {
  5343. return ((ProductsPredRow)(this.NewRow()));
  5344. }
  5345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5347. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  5348. return new ProductsPredRow(builder);
  5349. }
  5350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5352. protected override global::System.Type GetRowType() {
  5353. return typeof(ProductsPredRow);
  5354. }
  5355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5357. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  5358. base.OnRowChanged(e);
  5359. if ((this.ProductsPredRowChanged != null)) {
  5360. this.ProductsPredRowChanged(this, new ProductsPredRowChangeEvent(((ProductsPredRow)(e.Row)), e.Action));
  5361. }
  5362. }
  5363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5365. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  5366. base.OnRowChanging(e);
  5367. if ((this.ProductsPredRowChanging != null)) {
  5368. this.ProductsPredRowChanging(this, new ProductsPredRowChangeEvent(((ProductsPredRow)(e.Row)), e.Action));
  5369. }
  5370. }
  5371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5373. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  5374. base.OnRowDeleted(e);
  5375. if ((this.ProductsPredRowDeleted != null)) {
  5376. this.ProductsPredRowDeleted(this, new ProductsPredRowChangeEvent(((ProductsPredRow)(e.Row)), e.Action));
  5377. }
  5378. }
  5379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5381. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  5382. base.OnRowDeleting(e);
  5383. if ((this.ProductsPredRowDeleting != null)) {
  5384. this.ProductsPredRowDeleting(this, new ProductsPredRowChangeEvent(((ProductsPredRow)(e.Row)), e.Action));
  5385. }
  5386. }
  5387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5389. public void RemoveProductsPredRow(ProductsPredRow row) {
  5390. this.Rows.Remove(row);
  5391. }
  5392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5394. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  5395. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  5396. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  5397. TestWSR4DataSet ds = new TestWSR4DataSet();
  5398. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  5399. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  5400. any1.MinOccurs = new decimal(0);
  5401. any1.MaxOccurs = decimal.MaxValue;
  5402. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5403. sequence.Items.Add(any1);
  5404. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  5405. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  5406. any2.MinOccurs = new decimal(1);
  5407. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5408. sequence.Items.Add(any2);
  5409. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5410. attribute1.Name = "namespace";
  5411. attribute1.FixedValue = ds.Namespace;
  5412. type.Attributes.Add(attribute1);
  5413. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5414. attribute2.Name = "tableTypeName";
  5415. attribute2.FixedValue = "ProductsPredDataTable";
  5416. type.Attributes.Add(attribute2);
  5417. type.Particle = sequence;
  5418. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  5419. if (xs.Contains(dsSchema.TargetNamespace)) {
  5420. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  5421. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  5422. try {
  5423. global::System.Xml.Schema.XmlSchema schema = null;
  5424. dsSchema.Write(s1);
  5425. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  5426. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  5427. s2.SetLength(0);
  5428. schema.Write(s2);
  5429. if ((s1.Length == s2.Length)) {
  5430. s1.Position = 0;
  5431. s2.Position = 0;
  5432. for (; ((s1.Position != s1.Length)
  5433. && (s1.ReadByte() == s2.ReadByte())); ) {
  5434. ;
  5435. }
  5436. if ((s1.Position == s1.Length)) {
  5437. return type;
  5438. }
  5439. }
  5440. }
  5441. }
  5442. finally {
  5443. if ((s1 != null)) {
  5444. s1.Close();
  5445. }
  5446. if ((s2 != null)) {
  5447. s2.Close();
  5448. }
  5449. }
  5450. }
  5451. xs.Add(dsSchema);
  5452. return type;
  5453. }
  5454. }
  5455. /// <summary>
  5456. ///Represents the strongly named DataTable class.
  5457. ///</summary>
  5458. [global::System.Serializable()]
  5459. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  5460. public partial class ProizvProductDataTable : global::System.Data.TypedTableBase<ProizvProductRow> {
  5461. private global::System.Data.DataColumn columnID;
  5462. private global::System.Data.DataColumn columnProduct;
  5463. private global::System.Data.DataColumn columnMaterial;
  5464. private global::System.Data.DataColumn columnCount;
  5465. private global::System.Data.DataColumn columnCost;
  5466. private global::System.Data.DataColumn columnProizv;
  5467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5469. public ProizvProductDataTable() {
  5470. this.TableName = "ProizvProduct";
  5471. this.BeginInit();
  5472. this.InitClass();
  5473. this.EndInit();
  5474. }
  5475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5477. internal ProizvProductDataTable(global::System.Data.DataTable table) {
  5478. this.TableName = table.TableName;
  5479. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  5480. this.CaseSensitive = table.CaseSensitive;
  5481. }
  5482. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  5483. this.Locale = table.Locale;
  5484. }
  5485. if ((table.Namespace != table.DataSet.Namespace)) {
  5486. this.Namespace = table.Namespace;
  5487. }
  5488. this.Prefix = table.Prefix;
  5489. this.MinimumCapacity = table.MinimumCapacity;
  5490. }
  5491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5493. protected ProizvProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  5494. base(info, context) {
  5495. this.InitVars();
  5496. }
  5497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5499. public global::System.Data.DataColumn IDColumn {
  5500. get {
  5501. return this.columnID;
  5502. }
  5503. }
  5504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5506. public global::System.Data.DataColumn ProductColumn {
  5507. get {
  5508. return this.columnProduct;
  5509. }
  5510. }
  5511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5513. public global::System.Data.DataColumn MaterialColumn {
  5514. get {
  5515. return this.columnMaterial;
  5516. }
  5517. }
  5518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5520. public global::System.Data.DataColumn CountColumn {
  5521. get {
  5522. return this.columnCount;
  5523. }
  5524. }
  5525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5527. public global::System.Data.DataColumn CostColumn {
  5528. get {
  5529. return this.columnCost;
  5530. }
  5531. }
  5532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5534. public global::System.Data.DataColumn ProizvColumn {
  5535. get {
  5536. return this.columnProizv;
  5537. }
  5538. }
  5539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5541. [global::System.ComponentModel.Browsable(false)]
  5542. public int Count {
  5543. get {
  5544. return this.Rows.Count;
  5545. }
  5546. }
  5547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5549. public ProizvProductRow this[int index] {
  5550. get {
  5551. return ((ProizvProductRow)(this.Rows[index]));
  5552. }
  5553. }
  5554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5555. public event ProizvProductRowChangeEventHandler ProizvProductRowChanging;
  5556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5557. public event ProizvProductRowChangeEventHandler ProizvProductRowChanged;
  5558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5559. public event ProizvProductRowChangeEventHandler ProizvProductRowDeleting;
  5560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5561. public event ProizvProductRowChangeEventHandler ProizvProductRowDeleted;
  5562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5564. public void AddProizvProductRow(ProizvProductRow row) {
  5565. this.Rows.Add(row);
  5566. }
  5567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5569. public ProizvProductRow AddProizvProductRow(int ID, string Product, string Material, double Count, decimal Cost, double Proizv) {
  5570. ProizvProductRow rowProizvProductRow = ((ProizvProductRow)(this.NewRow()));
  5571. object[] columnValuesArray = new object[] {
  5572. ID,
  5573. Product,
  5574. Material,
  5575. Count,
  5576. Cost,
  5577. Proizv};
  5578. rowProizvProductRow.ItemArray = columnValuesArray;
  5579. this.Rows.Add(rowProizvProductRow);
  5580. return rowProizvProductRow;
  5581. }
  5582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5584. public ProizvProductRow FindByID(int ID) {
  5585. return ((ProizvProductRow)(this.Rows.Find(new object[] {
  5586. ID})));
  5587. }
  5588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5590. public override global::System.Data.DataTable Clone() {
  5591. ProizvProductDataTable cln = ((ProizvProductDataTable)(base.Clone()));
  5592. cln.InitVars();
  5593. return cln;
  5594. }
  5595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5597. protected override global::System.Data.DataTable CreateInstance() {
  5598. return new ProizvProductDataTable();
  5599. }
  5600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5602. internal void InitVars() {
  5603. this.columnID = base.Columns["ID"];
  5604. this.columnProduct = base.Columns["Product"];
  5605. this.columnMaterial = base.Columns["Material"];
  5606. this.columnCount = base.Columns["Count"];
  5607. this.columnCost = base.Columns["Cost"];
  5608. this.columnProizv = base.Columns["Proizv"];
  5609. }
  5610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5612. private void InitClass() {
  5613. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  5614. base.Columns.Add(this.columnID);
  5615. this.columnProduct = new global::System.Data.DataColumn("Product", typeof(string), null, global::System.Data.MappingType.Element);
  5616. base.Columns.Add(this.columnProduct);
  5617. this.columnMaterial = new global::System.Data.DataColumn("Material", typeof(string), null, global::System.Data.MappingType.Element);
  5618. base.Columns.Add(this.columnMaterial);
  5619. this.columnCount = new global::System.Data.DataColumn("Count", typeof(double), null, global::System.Data.MappingType.Element);
  5620. base.Columns.Add(this.columnCount);
  5621. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  5622. base.Columns.Add(this.columnCost);
  5623. this.columnProizv = new global::System.Data.DataColumn("Proizv", typeof(double), null, global::System.Data.MappingType.Element);
  5624. base.Columns.Add(this.columnProizv);
  5625. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  5626. this.columnID}, true));
  5627. this.columnID.AllowDBNull = false;
  5628. this.columnID.Unique = true;
  5629. this.columnProduct.AllowDBNull = false;
  5630. this.columnProduct.MaxLength = 100;
  5631. this.columnMaterial.AllowDBNull = false;
  5632. this.columnMaterial.MaxLength = 100;
  5633. this.columnCost.AllowDBNull = false;
  5634. this.columnProizv.ReadOnly = true;
  5635. }
  5636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5638. public ProizvProductRow NewProizvProductRow() {
  5639. return ((ProizvProductRow)(this.NewRow()));
  5640. }
  5641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5643. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  5644. return new ProizvProductRow(builder);
  5645. }
  5646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5648. protected override global::System.Type GetRowType() {
  5649. return typeof(ProizvProductRow);
  5650. }
  5651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5653. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  5654. base.OnRowChanged(e);
  5655. if ((this.ProizvProductRowChanged != null)) {
  5656. this.ProizvProductRowChanged(this, new ProizvProductRowChangeEvent(((ProizvProductRow)(e.Row)), e.Action));
  5657. }
  5658. }
  5659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5661. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  5662. base.OnRowChanging(e);
  5663. if ((this.ProizvProductRowChanging != null)) {
  5664. this.ProizvProductRowChanging(this, new ProizvProductRowChangeEvent(((ProizvProductRow)(e.Row)), e.Action));
  5665. }
  5666. }
  5667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5669. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  5670. base.OnRowDeleted(e);
  5671. if ((this.ProizvProductRowDeleted != null)) {
  5672. this.ProizvProductRowDeleted(this, new ProizvProductRowChangeEvent(((ProizvProductRow)(e.Row)), e.Action));
  5673. }
  5674. }
  5675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5677. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  5678. base.OnRowDeleting(e);
  5679. if ((this.ProizvProductRowDeleting != null)) {
  5680. this.ProizvProductRowDeleting(this, new ProizvProductRowChangeEvent(((ProizvProductRow)(e.Row)), e.Action));
  5681. }
  5682. }
  5683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5685. public void RemoveProizvProductRow(ProizvProductRow row) {
  5686. this.Rows.Remove(row);
  5687. }
  5688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5690. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  5691. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  5692. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  5693. TestWSR4DataSet ds = new TestWSR4DataSet();
  5694. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  5695. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  5696. any1.MinOccurs = new decimal(0);
  5697. any1.MaxOccurs = decimal.MaxValue;
  5698. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5699. sequence.Items.Add(any1);
  5700. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  5701. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  5702. any2.MinOccurs = new decimal(1);
  5703. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5704. sequence.Items.Add(any2);
  5705. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5706. attribute1.Name = "namespace";
  5707. attribute1.FixedValue = ds.Namespace;
  5708. type.Attributes.Add(attribute1);
  5709. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5710. attribute2.Name = "tableTypeName";
  5711. attribute2.FixedValue = "ProizvProductDataTable";
  5712. type.Attributes.Add(attribute2);
  5713. type.Particle = sequence;
  5714. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  5715. if (xs.Contains(dsSchema.TargetNamespace)) {
  5716. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  5717. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  5718. try {
  5719. global::System.Xml.Schema.XmlSchema schema = null;
  5720. dsSchema.Write(s1);
  5721. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  5722. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  5723. s2.SetLength(0);
  5724. schema.Write(s2);
  5725. if ((s1.Length == s2.Length)) {
  5726. s1.Position = 0;
  5727. s2.Position = 0;
  5728. for (; ((s1.Position != s1.Length)
  5729. && (s1.ReadByte() == s2.ReadByte())); ) {
  5730. ;
  5731. }
  5732. if ((s1.Position == s1.Length)) {
  5733. return type;
  5734. }
  5735. }
  5736. }
  5737. }
  5738. finally {
  5739. if ((s1 != null)) {
  5740. s1.Close();
  5741. }
  5742. if ((s2 != null)) {
  5743. s2.Close();
  5744. }
  5745. }
  5746. }
  5747. xs.Add(dsSchema);
  5748. return type;
  5749. }
  5750. }
  5751. /// <summary>
  5752. ///Represents strongly named DataRow class.
  5753. ///</summary>
  5754. public partial class AgentRow : global::System.Data.DataRow {
  5755. private AgentDataTable tableAgent;
  5756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5758. internal AgentRow(global::System.Data.DataRowBuilder rb) :
  5759. base(rb) {
  5760. this.tableAgent = ((AgentDataTable)(this.Table));
  5761. }
  5762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5764. public int ID {
  5765. get {
  5766. return ((int)(this[this.tableAgent.IDColumn]));
  5767. }
  5768. set {
  5769. this[this.tableAgent.IDColumn] = value;
  5770. }
  5771. }
  5772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5774. public string Title {
  5775. get {
  5776. return ((string)(this[this.tableAgent.TitleColumn]));
  5777. }
  5778. set {
  5779. this[this.tableAgent.TitleColumn] = value;
  5780. }
  5781. }
  5782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5784. public int AgentTypeID {
  5785. get {
  5786. return ((int)(this[this.tableAgent.AgentTypeIDColumn]));
  5787. }
  5788. set {
  5789. this[this.tableAgent.AgentTypeIDColumn] = value;
  5790. }
  5791. }
  5792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5794. public string Address {
  5795. get {
  5796. try {
  5797. return ((string)(this[this.tableAgent.AddressColumn]));
  5798. }
  5799. catch (global::System.InvalidCastException e) {
  5800. throw new global::System.Data.StrongTypingException("Значение для столбца \'Address\' в таблице \'Agent\' равно DBNull.", e);
  5801. }
  5802. }
  5803. set {
  5804. this[this.tableAgent.AddressColumn] = value;
  5805. }
  5806. }
  5807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5809. public string INN {
  5810. get {
  5811. return ((string)(this[this.tableAgent.INNColumn]));
  5812. }
  5813. set {
  5814. this[this.tableAgent.INNColumn] = value;
  5815. }
  5816. }
  5817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5819. public string KPP {
  5820. get {
  5821. try {
  5822. return ((string)(this[this.tableAgent.KPPColumn]));
  5823. }
  5824. catch (global::System.InvalidCastException e) {
  5825. throw new global::System.Data.StrongTypingException("Значение для столбца \'KPP\' в таблице \'Agent\' равно DBNull.", e);
  5826. }
  5827. }
  5828. set {
  5829. this[this.tableAgent.KPPColumn] = value;
  5830. }
  5831. }
  5832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5834. public string DirectorName {
  5835. get {
  5836. try {
  5837. return ((string)(this[this.tableAgent.DirectorNameColumn]));
  5838. }
  5839. catch (global::System.InvalidCastException e) {
  5840. throw new global::System.Data.StrongTypingException("Значение для столбца \'DirectorName\' в таблице \'Agent\' равно DBNull.", e);
  5841. }
  5842. }
  5843. set {
  5844. this[this.tableAgent.DirectorNameColumn] = value;
  5845. }
  5846. }
  5847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5849. public string Phone {
  5850. get {
  5851. return ((string)(this[this.tableAgent.PhoneColumn]));
  5852. }
  5853. set {
  5854. this[this.tableAgent.PhoneColumn] = value;
  5855. }
  5856. }
  5857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5859. public string Email {
  5860. get {
  5861. try {
  5862. return ((string)(this[this.tableAgent.EmailColumn]));
  5863. }
  5864. catch (global::System.InvalidCastException e) {
  5865. throw new global::System.Data.StrongTypingException("Значение для столбца \'Email\' в таблице \'Agent\' равно DBNull.", e);
  5866. }
  5867. }
  5868. set {
  5869. this[this.tableAgent.EmailColumn] = value;
  5870. }
  5871. }
  5872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5874. public string Logo {
  5875. get {
  5876. try {
  5877. return ((string)(this[this.tableAgent.LogoColumn]));
  5878. }
  5879. catch (global::System.InvalidCastException e) {
  5880. throw new global::System.Data.StrongTypingException("Значение для столбца \'Logo\' в таблице \'Agent\' равно DBNull.", e);
  5881. }
  5882. }
  5883. set {
  5884. this[this.tableAgent.LogoColumn] = value;
  5885. }
  5886. }
  5887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5889. public int Priority {
  5890. get {
  5891. return ((int)(this[this.tableAgent.PriorityColumn]));
  5892. }
  5893. set {
  5894. this[this.tableAgent.PriorityColumn] = value;
  5895. }
  5896. }
  5897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5899. public AgentTypeRow AgentTypeRow {
  5900. get {
  5901. return ((AgentTypeRow)(this.GetParentRow(this.Table.ParentRelations["FK_Agent_AgentType"])));
  5902. }
  5903. set {
  5904. this.SetParentRow(value, this.Table.ParentRelations["FK_Agent_AgentType"]);
  5905. }
  5906. }
  5907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5909. public bool IsAddressNull() {
  5910. return this.IsNull(this.tableAgent.AddressColumn);
  5911. }
  5912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5914. public void SetAddressNull() {
  5915. this[this.tableAgent.AddressColumn] = global::System.Convert.DBNull;
  5916. }
  5917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5919. public bool IsKPPNull() {
  5920. return this.IsNull(this.tableAgent.KPPColumn);
  5921. }
  5922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5924. public void SetKPPNull() {
  5925. this[this.tableAgent.KPPColumn] = global::System.Convert.DBNull;
  5926. }
  5927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5929. public bool IsDirectorNameNull() {
  5930. return this.IsNull(this.tableAgent.DirectorNameColumn);
  5931. }
  5932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5934. public void SetDirectorNameNull() {
  5935. this[this.tableAgent.DirectorNameColumn] = global::System.Convert.DBNull;
  5936. }
  5937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5939. public bool IsEmailNull() {
  5940. return this.IsNull(this.tableAgent.EmailColumn);
  5941. }
  5942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5944. public void SetEmailNull() {
  5945. this[this.tableAgent.EmailColumn] = global::System.Convert.DBNull;
  5946. }
  5947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5949. public bool IsLogoNull() {
  5950. return this.IsNull(this.tableAgent.LogoColumn);
  5951. }
  5952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5954. public void SetLogoNull() {
  5955. this[this.tableAgent.LogoColumn] = global::System.Convert.DBNull;
  5956. }
  5957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5959. public AgentPriorityHistoryRow[] GetAgentPriorityHistoryRows() {
  5960. if ((this.Table.ChildRelations["FK_AgentPriorityHistory_Agent"] == null)) {
  5961. return new AgentPriorityHistoryRow[0];
  5962. }
  5963. else {
  5964. return ((AgentPriorityHistoryRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AgentPriorityHistory_Agent"])));
  5965. }
  5966. }
  5967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5969. public ProductSaleRow[] GetProductSaleRows() {
  5970. if ((this.Table.ChildRelations["FK_ProductSale_Agent"] == null)) {
  5971. return new ProductSaleRow[0];
  5972. }
  5973. else {
  5974. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_Agent"])));
  5975. }
  5976. }
  5977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5979. public ShopRow[] GetShopRows() {
  5980. if ((this.Table.ChildRelations["FK_Shop_Agent"] == null)) {
  5981. return new ShopRow[0];
  5982. }
  5983. else {
  5984. return ((ShopRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Shop_Agent"])));
  5985. }
  5986. }
  5987. }
  5988. /// <summary>
  5989. ///Represents strongly named DataRow class.
  5990. ///</summary>
  5991. public partial class AgentPriorityHistoryRow : global::System.Data.DataRow {
  5992. private AgentPriorityHistoryDataTable tableAgentPriorityHistory;
  5993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5995. internal AgentPriorityHistoryRow(global::System.Data.DataRowBuilder rb) :
  5996. base(rb) {
  5997. this.tableAgentPriorityHistory = ((AgentPriorityHistoryDataTable)(this.Table));
  5998. }
  5999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6001. public int ID {
  6002. get {
  6003. return ((int)(this[this.tableAgentPriorityHistory.IDColumn]));
  6004. }
  6005. set {
  6006. this[this.tableAgentPriorityHistory.IDColumn] = value;
  6007. }
  6008. }
  6009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6011. public int AgentID {
  6012. get {
  6013. return ((int)(this[this.tableAgentPriorityHistory.AgentIDColumn]));
  6014. }
  6015. set {
  6016. this[this.tableAgentPriorityHistory.AgentIDColumn] = value;
  6017. }
  6018. }
  6019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6021. public System.DateTime ChangeDate {
  6022. get {
  6023. return ((global::System.DateTime)(this[this.tableAgentPriorityHistory.ChangeDateColumn]));
  6024. }
  6025. set {
  6026. this[this.tableAgentPriorityHistory.ChangeDateColumn] = value;
  6027. }
  6028. }
  6029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6031. public int PriorityValue {
  6032. get {
  6033. return ((int)(this[this.tableAgentPriorityHistory.PriorityValueColumn]));
  6034. }
  6035. set {
  6036. this[this.tableAgentPriorityHistory.PriorityValueColumn] = value;
  6037. }
  6038. }
  6039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6041. public AgentRow AgentRow {
  6042. get {
  6043. return ((AgentRow)(this.GetParentRow(this.Table.ParentRelations["FK_AgentPriorityHistory_Agent"])));
  6044. }
  6045. set {
  6046. this.SetParentRow(value, this.Table.ParentRelations["FK_AgentPriorityHistory_Agent"]);
  6047. }
  6048. }
  6049. }
  6050. /// <summary>
  6051. ///Represents strongly named DataRow class.
  6052. ///</summary>
  6053. public partial class AgentTypeRow : global::System.Data.DataRow {
  6054. private AgentTypeDataTable tableAgentType;
  6055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6057. internal AgentTypeRow(global::System.Data.DataRowBuilder rb) :
  6058. base(rb) {
  6059. this.tableAgentType = ((AgentTypeDataTable)(this.Table));
  6060. }
  6061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6063. public int ID {
  6064. get {
  6065. return ((int)(this[this.tableAgentType.IDColumn]));
  6066. }
  6067. set {
  6068. this[this.tableAgentType.IDColumn] = value;
  6069. }
  6070. }
  6071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6073. public string Title {
  6074. get {
  6075. return ((string)(this[this.tableAgentType.TitleColumn]));
  6076. }
  6077. set {
  6078. this[this.tableAgentType.TitleColumn] = value;
  6079. }
  6080. }
  6081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6083. public string Image {
  6084. get {
  6085. try {
  6086. return ((string)(this[this.tableAgentType.ImageColumn]));
  6087. }
  6088. catch (global::System.InvalidCastException e) {
  6089. throw new global::System.Data.StrongTypingException("Значение для столбца \'Image\' в таблице \'AgentType\' равно DBNull.", e);
  6090. }
  6091. }
  6092. set {
  6093. this[this.tableAgentType.ImageColumn] = value;
  6094. }
  6095. }
  6096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6098. public bool IsImageNull() {
  6099. return this.IsNull(this.tableAgentType.ImageColumn);
  6100. }
  6101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6103. public void SetImageNull() {
  6104. this[this.tableAgentType.ImageColumn] = global::System.Convert.DBNull;
  6105. }
  6106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6108. public AgentRow[] GetAgentRows() {
  6109. if ((this.Table.ChildRelations["FK_Agent_AgentType"] == null)) {
  6110. return new AgentRow[0];
  6111. }
  6112. else {
  6113. return ((AgentRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Agent_AgentType"])));
  6114. }
  6115. }
  6116. }
  6117. /// <summary>
  6118. ///Represents strongly named DataRow class.
  6119. ///</summary>
  6120. public partial class MaterialRow : global::System.Data.DataRow {
  6121. private MaterialDataTable tableMaterial;
  6122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6124. internal MaterialRow(global::System.Data.DataRowBuilder rb) :
  6125. base(rb) {
  6126. this.tableMaterial = ((MaterialDataTable)(this.Table));
  6127. }
  6128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6130. public int ID {
  6131. get {
  6132. return ((int)(this[this.tableMaterial.IDColumn]));
  6133. }
  6134. set {
  6135. this[this.tableMaterial.IDColumn] = value;
  6136. }
  6137. }
  6138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6140. public string Title {
  6141. get {
  6142. return ((string)(this[this.tableMaterial.TitleColumn]));
  6143. }
  6144. set {
  6145. this[this.tableMaterial.TitleColumn] = value;
  6146. }
  6147. }
  6148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6150. public int CountInPack {
  6151. get {
  6152. return ((int)(this[this.tableMaterial.CountInPackColumn]));
  6153. }
  6154. set {
  6155. this[this.tableMaterial.CountInPackColumn] = value;
  6156. }
  6157. }
  6158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6160. public string Unit {
  6161. get {
  6162. return ((string)(this[this.tableMaterial.UnitColumn]));
  6163. }
  6164. set {
  6165. this[this.tableMaterial.UnitColumn] = value;
  6166. }
  6167. }
  6168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6170. public double CountInStock {
  6171. get {
  6172. try {
  6173. return ((double)(this[this.tableMaterial.CountInStockColumn]));
  6174. }
  6175. catch (global::System.InvalidCastException e) {
  6176. throw new global::System.Data.StrongTypingException("Значение для столбца \'CountInStock\' в таблице \'Material\' равно DBNull.", e);
  6177. }
  6178. }
  6179. set {
  6180. this[this.tableMaterial.CountInStockColumn] = value;
  6181. }
  6182. }
  6183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6185. public double MinCount {
  6186. get {
  6187. return ((double)(this[this.tableMaterial.MinCountColumn]));
  6188. }
  6189. set {
  6190. this[this.tableMaterial.MinCountColumn] = value;
  6191. }
  6192. }
  6193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6195. public string Description {
  6196. get {
  6197. try {
  6198. return ((string)(this[this.tableMaterial.DescriptionColumn]));
  6199. }
  6200. catch (global::System.InvalidCastException e) {
  6201. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Material\' равно DBNull.", e);
  6202. }
  6203. }
  6204. set {
  6205. this[this.tableMaterial.DescriptionColumn] = value;
  6206. }
  6207. }
  6208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6210. public decimal Cost {
  6211. get {
  6212. return ((decimal)(this[this.tableMaterial.CostColumn]));
  6213. }
  6214. set {
  6215. this[this.tableMaterial.CostColumn] = value;
  6216. }
  6217. }
  6218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6220. public string Image {
  6221. get {
  6222. try {
  6223. return ((string)(this[this.tableMaterial.ImageColumn]));
  6224. }
  6225. catch (global::System.InvalidCastException e) {
  6226. throw new global::System.Data.StrongTypingException("Значение для столбца \'Image\' в таблице \'Material\' равно DBNull.", e);
  6227. }
  6228. }
  6229. set {
  6230. this[this.tableMaterial.ImageColumn] = value;
  6231. }
  6232. }
  6233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6235. public int MaterialTypeID {
  6236. get {
  6237. return ((int)(this[this.tableMaterial.MaterialTypeIDColumn]));
  6238. }
  6239. set {
  6240. this[this.tableMaterial.MaterialTypeIDColumn] = value;
  6241. }
  6242. }
  6243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6245. public MaterialTypeRow MaterialTypeRow {
  6246. get {
  6247. return ((MaterialTypeRow)(this.GetParentRow(this.Table.ParentRelations["FK_Material_MaterialType"])));
  6248. }
  6249. set {
  6250. this.SetParentRow(value, this.Table.ParentRelations["FK_Material_MaterialType"]);
  6251. }
  6252. }
  6253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6255. public bool IsCountInStockNull() {
  6256. return this.IsNull(this.tableMaterial.CountInStockColumn);
  6257. }
  6258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6260. public void SetCountInStockNull() {
  6261. this[this.tableMaterial.CountInStockColumn] = global::System.Convert.DBNull;
  6262. }
  6263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6265. public bool IsDescriptionNull() {
  6266. return this.IsNull(this.tableMaterial.DescriptionColumn);
  6267. }
  6268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6270. public void SetDescriptionNull() {
  6271. this[this.tableMaterial.DescriptionColumn] = global::System.Convert.DBNull;
  6272. }
  6273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6275. public bool IsImageNull() {
  6276. return this.IsNull(this.tableMaterial.ImageColumn);
  6277. }
  6278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6280. public void SetImageNull() {
  6281. this[this.tableMaterial.ImageColumn] = global::System.Convert.DBNull;
  6282. }
  6283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6285. public MaterialCountHistoryRow[] GetMaterialCountHistoryRows() {
  6286. if ((this.Table.ChildRelations["FK_MaterialCountHistory_Material"] == null)) {
  6287. return new MaterialCountHistoryRow[0];
  6288. }
  6289. else {
  6290. return ((MaterialCountHistoryRow[])(base.GetChildRows(this.Table.ChildRelations["FK_MaterialCountHistory_Material"])));
  6291. }
  6292. }
  6293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6295. public MaterialSupplierRow[] GetMaterialSupplierRows() {
  6296. if ((this.Table.ChildRelations["FK_MaterialSupplier_Material"] == null)) {
  6297. return new MaterialSupplierRow[0];
  6298. }
  6299. else {
  6300. return ((MaterialSupplierRow[])(base.GetChildRows(this.Table.ChildRelations["FK_MaterialSupplier_Material"])));
  6301. }
  6302. }
  6303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6305. public ProductMaterialRow[] GetProductMaterialRows() {
  6306. if ((this.Table.ChildRelations["FK_ProductMaterial_Material"] == null)) {
  6307. return new ProductMaterialRow[0];
  6308. }
  6309. else {
  6310. return ((ProductMaterialRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductMaterial_Material"])));
  6311. }
  6312. }
  6313. }
  6314. /// <summary>
  6315. ///Represents strongly named DataRow class.
  6316. ///</summary>
  6317. public partial class MaterialCountHistoryRow : global::System.Data.DataRow {
  6318. private MaterialCountHistoryDataTable tableMaterialCountHistory;
  6319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6321. internal MaterialCountHistoryRow(global::System.Data.DataRowBuilder rb) :
  6322. base(rb) {
  6323. this.tableMaterialCountHistory = ((MaterialCountHistoryDataTable)(this.Table));
  6324. }
  6325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6327. public int ID {
  6328. get {
  6329. return ((int)(this[this.tableMaterialCountHistory.IDColumn]));
  6330. }
  6331. set {
  6332. this[this.tableMaterialCountHistory.IDColumn] = value;
  6333. }
  6334. }
  6335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6337. public int MaterialID {
  6338. get {
  6339. return ((int)(this[this.tableMaterialCountHistory.MaterialIDColumn]));
  6340. }
  6341. set {
  6342. this[this.tableMaterialCountHistory.MaterialIDColumn] = value;
  6343. }
  6344. }
  6345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6347. public System.DateTime ChangeDate {
  6348. get {
  6349. return ((global::System.DateTime)(this[this.tableMaterialCountHistory.ChangeDateColumn]));
  6350. }
  6351. set {
  6352. this[this.tableMaterialCountHistory.ChangeDateColumn] = value;
  6353. }
  6354. }
  6355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6357. public double CountValue {
  6358. get {
  6359. return ((double)(this[this.tableMaterialCountHistory.CountValueColumn]));
  6360. }
  6361. set {
  6362. this[this.tableMaterialCountHistory.CountValueColumn] = value;
  6363. }
  6364. }
  6365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6367. public MaterialRow MaterialRow {
  6368. get {
  6369. return ((MaterialRow)(this.GetParentRow(this.Table.ParentRelations["FK_MaterialCountHistory_Material"])));
  6370. }
  6371. set {
  6372. this.SetParentRow(value, this.Table.ParentRelations["FK_MaterialCountHistory_Material"]);
  6373. }
  6374. }
  6375. }
  6376. /// <summary>
  6377. ///Represents strongly named DataRow class.
  6378. ///</summary>
  6379. public partial class MaterialSupplierRow : global::System.Data.DataRow {
  6380. private MaterialSupplierDataTable tableMaterialSupplier;
  6381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6383. internal MaterialSupplierRow(global::System.Data.DataRowBuilder rb) :
  6384. base(rb) {
  6385. this.tableMaterialSupplier = ((MaterialSupplierDataTable)(this.Table));
  6386. }
  6387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6389. public int MaterialID {
  6390. get {
  6391. return ((int)(this[this.tableMaterialSupplier.MaterialIDColumn]));
  6392. }
  6393. set {
  6394. this[this.tableMaterialSupplier.MaterialIDColumn] = value;
  6395. }
  6396. }
  6397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6399. public int SupplierID {
  6400. get {
  6401. return ((int)(this[this.tableMaterialSupplier.SupplierIDColumn]));
  6402. }
  6403. set {
  6404. this[this.tableMaterialSupplier.SupplierIDColumn] = value;
  6405. }
  6406. }
  6407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6409. public MaterialRow MaterialRow {
  6410. get {
  6411. return ((MaterialRow)(this.GetParentRow(this.Table.ParentRelations["FK_MaterialSupplier_Material"])));
  6412. }
  6413. set {
  6414. this.SetParentRow(value, this.Table.ParentRelations["FK_MaterialSupplier_Material"]);
  6415. }
  6416. }
  6417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6419. public SupplierRow SupplierRow {
  6420. get {
  6421. return ((SupplierRow)(this.GetParentRow(this.Table.ParentRelations["FK_MaterialSupplier_Supplier"])));
  6422. }
  6423. set {
  6424. this.SetParentRow(value, this.Table.ParentRelations["FK_MaterialSupplier_Supplier"]);
  6425. }
  6426. }
  6427. }
  6428. /// <summary>
  6429. ///Represents strongly named DataRow class.
  6430. ///</summary>
  6431. public partial class MaterialTypeRow : global::System.Data.DataRow {
  6432. private MaterialTypeDataTable tableMaterialType;
  6433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6435. internal MaterialTypeRow(global::System.Data.DataRowBuilder rb) :
  6436. base(rb) {
  6437. this.tableMaterialType = ((MaterialTypeDataTable)(this.Table));
  6438. }
  6439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6441. public int ID {
  6442. get {
  6443. return ((int)(this[this.tableMaterialType.IDColumn]));
  6444. }
  6445. set {
  6446. this[this.tableMaterialType.IDColumn] = value;
  6447. }
  6448. }
  6449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6451. public string Title {
  6452. get {
  6453. return ((string)(this[this.tableMaterialType.TitleColumn]));
  6454. }
  6455. set {
  6456. this[this.tableMaterialType.TitleColumn] = value;
  6457. }
  6458. }
  6459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6461. public double DefectedPercent {
  6462. get {
  6463. try {
  6464. return ((double)(this[this.tableMaterialType.DefectedPercentColumn]));
  6465. }
  6466. catch (global::System.InvalidCastException e) {
  6467. throw new global::System.Data.StrongTypingException("Значение для столбца \'DefectedPercent\' в таблице \'MaterialType\' равно DBNull.", e);
  6468. }
  6469. }
  6470. set {
  6471. this[this.tableMaterialType.DefectedPercentColumn] = value;
  6472. }
  6473. }
  6474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6476. public bool IsDefectedPercentNull() {
  6477. return this.IsNull(this.tableMaterialType.DefectedPercentColumn);
  6478. }
  6479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6481. public void SetDefectedPercentNull() {
  6482. this[this.tableMaterialType.DefectedPercentColumn] = global::System.Convert.DBNull;
  6483. }
  6484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6486. public MaterialRow[] GetMaterialRows() {
  6487. if ((this.Table.ChildRelations["FK_Material_MaterialType"] == null)) {
  6488. return new MaterialRow[0];
  6489. }
  6490. else {
  6491. return ((MaterialRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Material_MaterialType"])));
  6492. }
  6493. }
  6494. }
  6495. /// <summary>
  6496. ///Represents strongly named DataRow class.
  6497. ///</summary>
  6498. public partial class ProductRow : global::System.Data.DataRow {
  6499. private ProductDataTable tableProduct;
  6500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6502. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  6503. base(rb) {
  6504. this.tableProduct = ((ProductDataTable)(this.Table));
  6505. }
  6506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6508. public int ID {
  6509. get {
  6510. return ((int)(this[this.tableProduct.IDColumn]));
  6511. }
  6512. set {
  6513. this[this.tableProduct.IDColumn] = value;
  6514. }
  6515. }
  6516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6518. public string Title {
  6519. get {
  6520. return ((string)(this[this.tableProduct.TitleColumn]));
  6521. }
  6522. set {
  6523. this[this.tableProduct.TitleColumn] = value;
  6524. }
  6525. }
  6526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6528. public int ProductTypeID {
  6529. get {
  6530. try {
  6531. return ((int)(this[this.tableProduct.ProductTypeIDColumn]));
  6532. }
  6533. catch (global::System.InvalidCastException e) {
  6534. throw new global::System.Data.StrongTypingException("Значение для столбца \'ProductTypeID\' в таблице \'Product\' равно DBNull.", e);
  6535. }
  6536. }
  6537. set {
  6538. this[this.tableProduct.ProductTypeIDColumn] = value;
  6539. }
  6540. }
  6541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6543. public string ArticleNumber {
  6544. get {
  6545. return ((string)(this[this.tableProduct.ArticleNumberColumn]));
  6546. }
  6547. set {
  6548. this[this.tableProduct.ArticleNumberColumn] = value;
  6549. }
  6550. }
  6551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6553. public string Description {
  6554. get {
  6555. try {
  6556. return ((string)(this[this.tableProduct.DescriptionColumn]));
  6557. }
  6558. catch (global::System.InvalidCastException e) {
  6559. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Product\' равно DBNull.", e);
  6560. }
  6561. }
  6562. set {
  6563. this[this.tableProduct.DescriptionColumn] = value;
  6564. }
  6565. }
  6566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6568. public string Image {
  6569. get {
  6570. try {
  6571. return ((string)(this[this.tableProduct.ImageColumn]));
  6572. }
  6573. catch (global::System.InvalidCastException e) {
  6574. throw new global::System.Data.StrongTypingException("Значение для столбца \'Image\' в таблице \'Product\' равно DBNull.", e);
  6575. }
  6576. }
  6577. set {
  6578. this[this.tableProduct.ImageColumn] = value;
  6579. }
  6580. }
  6581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6583. public int ProductionPersonCount {
  6584. get {
  6585. try {
  6586. return ((int)(this[this.tableProduct.ProductionPersonCountColumn]));
  6587. }
  6588. catch (global::System.InvalidCastException e) {
  6589. throw new global::System.Data.StrongTypingException("Значение для столбца \'ProductionPersonCount\' в таблице \'Product\' равно DBNull.", e);
  6590. }
  6591. }
  6592. set {
  6593. this[this.tableProduct.ProductionPersonCountColumn] = value;
  6594. }
  6595. }
  6596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6598. public int ProductionWorkshopNumber {
  6599. get {
  6600. try {
  6601. return ((int)(this[this.tableProduct.ProductionWorkshopNumberColumn]));
  6602. }
  6603. catch (global::System.InvalidCastException e) {
  6604. throw new global::System.Data.StrongTypingException("Значение для столбца \'ProductionWorkshopNumber\' в таблице \'Product\' равно DBNull." +
  6605. "", e);
  6606. }
  6607. }
  6608. set {
  6609. this[this.tableProduct.ProductionWorkshopNumberColumn] = value;
  6610. }
  6611. }
  6612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6614. public decimal MinCostForAgent {
  6615. get {
  6616. return ((decimal)(this[this.tableProduct.MinCostForAgentColumn]));
  6617. }
  6618. set {
  6619. this[this.tableProduct.MinCostForAgentColumn] = value;
  6620. }
  6621. }
  6622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6624. public ProductTypeRow ProductTypeRow {
  6625. get {
  6626. return ((ProductTypeRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_ProductType"])));
  6627. }
  6628. set {
  6629. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_ProductType"]);
  6630. }
  6631. }
  6632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6634. public bool IsProductTypeIDNull() {
  6635. return this.IsNull(this.tableProduct.ProductTypeIDColumn);
  6636. }
  6637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6639. public void SetProductTypeIDNull() {
  6640. this[this.tableProduct.ProductTypeIDColumn] = global::System.Convert.DBNull;
  6641. }
  6642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6644. public bool IsDescriptionNull() {
  6645. return this.IsNull(this.tableProduct.DescriptionColumn);
  6646. }
  6647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6649. public void SetDescriptionNull() {
  6650. this[this.tableProduct.DescriptionColumn] = global::System.Convert.DBNull;
  6651. }
  6652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6654. public bool IsImageNull() {
  6655. return this.IsNull(this.tableProduct.ImageColumn);
  6656. }
  6657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6659. public void SetImageNull() {
  6660. this[this.tableProduct.ImageColumn] = global::System.Convert.DBNull;
  6661. }
  6662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6664. public bool IsProductionPersonCountNull() {
  6665. return this.IsNull(this.tableProduct.ProductionPersonCountColumn);
  6666. }
  6667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6669. public void SetProductionPersonCountNull() {
  6670. this[this.tableProduct.ProductionPersonCountColumn] = global::System.Convert.DBNull;
  6671. }
  6672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6674. public bool IsProductionWorkshopNumberNull() {
  6675. return this.IsNull(this.tableProduct.ProductionWorkshopNumberColumn);
  6676. }
  6677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6679. public void SetProductionWorkshopNumberNull() {
  6680. this[this.tableProduct.ProductionWorkshopNumberColumn] = global::System.Convert.DBNull;
  6681. }
  6682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6684. public ProductCostHistoryRow[] GetProductCostHistoryRows() {
  6685. if ((this.Table.ChildRelations["FK_ProductCostHistory_Product"] == null)) {
  6686. return new ProductCostHistoryRow[0];
  6687. }
  6688. else {
  6689. return ((ProductCostHistoryRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductCostHistory_Product"])));
  6690. }
  6691. }
  6692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6694. public ProductMaterialRow[] GetProductMaterialRows() {
  6695. if ((this.Table.ChildRelations["FK_ProductMaterial_Product"] == null)) {
  6696. return new ProductMaterialRow[0];
  6697. }
  6698. else {
  6699. return ((ProductMaterialRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductMaterial_Product"])));
  6700. }
  6701. }
  6702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6704. public ProductSaleRow[] GetProductSaleRows() {
  6705. if ((this.Table.ChildRelations["FK_ProductSale_Product"] == null)) {
  6706. return new ProductSaleRow[0];
  6707. }
  6708. else {
  6709. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_Product"])));
  6710. }
  6711. }
  6712. }
  6713. /// <summary>
  6714. ///Represents strongly named DataRow class.
  6715. ///</summary>
  6716. public partial class ProductCostHistoryRow : global::System.Data.DataRow {
  6717. private ProductCostHistoryDataTable tableProductCostHistory;
  6718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6720. internal ProductCostHistoryRow(global::System.Data.DataRowBuilder rb) :
  6721. base(rb) {
  6722. this.tableProductCostHistory = ((ProductCostHistoryDataTable)(this.Table));
  6723. }
  6724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6726. public int ID {
  6727. get {
  6728. return ((int)(this[this.tableProductCostHistory.IDColumn]));
  6729. }
  6730. set {
  6731. this[this.tableProductCostHistory.IDColumn] = value;
  6732. }
  6733. }
  6734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6736. public int ProductID {
  6737. get {
  6738. return ((int)(this[this.tableProductCostHistory.ProductIDColumn]));
  6739. }
  6740. set {
  6741. this[this.tableProductCostHistory.ProductIDColumn] = value;
  6742. }
  6743. }
  6744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6746. public System.DateTime ChangeDate {
  6747. get {
  6748. return ((global::System.DateTime)(this[this.tableProductCostHistory.ChangeDateColumn]));
  6749. }
  6750. set {
  6751. this[this.tableProductCostHistory.ChangeDateColumn] = value;
  6752. }
  6753. }
  6754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6756. public decimal CostValue {
  6757. get {
  6758. return ((decimal)(this[this.tableProductCostHistory.CostValueColumn]));
  6759. }
  6760. set {
  6761. this[this.tableProductCostHistory.CostValueColumn] = value;
  6762. }
  6763. }
  6764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6766. public ProductRow ProductRow {
  6767. get {
  6768. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductCostHistory_Product"])));
  6769. }
  6770. set {
  6771. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductCostHistory_Product"]);
  6772. }
  6773. }
  6774. }
  6775. /// <summary>
  6776. ///Represents strongly named DataRow class.
  6777. ///</summary>
  6778. public partial class ProductMaterialRow : global::System.Data.DataRow {
  6779. private ProductMaterialDataTable tableProductMaterial;
  6780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6782. internal ProductMaterialRow(global::System.Data.DataRowBuilder rb) :
  6783. base(rb) {
  6784. this.tableProductMaterial = ((ProductMaterialDataTable)(this.Table));
  6785. }
  6786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6788. public int ProductID {
  6789. get {
  6790. return ((int)(this[this.tableProductMaterial.ProductIDColumn]));
  6791. }
  6792. set {
  6793. this[this.tableProductMaterial.ProductIDColumn] = value;
  6794. }
  6795. }
  6796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6798. public int MaterialID {
  6799. get {
  6800. return ((int)(this[this.tableProductMaterial.MaterialIDColumn]));
  6801. }
  6802. set {
  6803. this[this.tableProductMaterial.MaterialIDColumn] = value;
  6804. }
  6805. }
  6806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6808. public double Count {
  6809. get {
  6810. try {
  6811. return ((double)(this[this.tableProductMaterial.CountColumn]));
  6812. }
  6813. catch (global::System.InvalidCastException e) {
  6814. throw new global::System.Data.StrongTypingException("Значение для столбца \'Count\' в таблице \'ProductMaterial\' равно DBNull.", e);
  6815. }
  6816. }
  6817. set {
  6818. this[this.tableProductMaterial.CountColumn] = value;
  6819. }
  6820. }
  6821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6823. public MaterialRow MaterialRow {
  6824. get {
  6825. return ((MaterialRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductMaterial_Material"])));
  6826. }
  6827. set {
  6828. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductMaterial_Material"]);
  6829. }
  6830. }
  6831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6833. public ProductRow ProductRow {
  6834. get {
  6835. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductMaterial_Product"])));
  6836. }
  6837. set {
  6838. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductMaterial_Product"]);
  6839. }
  6840. }
  6841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6843. public bool IsCountNull() {
  6844. return this.IsNull(this.tableProductMaterial.CountColumn);
  6845. }
  6846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6848. public void SetCountNull() {
  6849. this[this.tableProductMaterial.CountColumn] = global::System.Convert.DBNull;
  6850. }
  6851. }
  6852. /// <summary>
  6853. ///Represents strongly named DataRow class.
  6854. ///</summary>
  6855. public partial class ProductSaleRow : global::System.Data.DataRow {
  6856. private ProductSaleDataTable tableProductSale;
  6857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6859. internal ProductSaleRow(global::System.Data.DataRowBuilder rb) :
  6860. base(rb) {
  6861. this.tableProductSale = ((ProductSaleDataTable)(this.Table));
  6862. }
  6863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6865. public int ID {
  6866. get {
  6867. return ((int)(this[this.tableProductSale.IDColumn]));
  6868. }
  6869. set {
  6870. this[this.tableProductSale.IDColumn] = value;
  6871. }
  6872. }
  6873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6875. public int AgentID {
  6876. get {
  6877. return ((int)(this[this.tableProductSale.AgentIDColumn]));
  6878. }
  6879. set {
  6880. this[this.tableProductSale.AgentIDColumn] = value;
  6881. }
  6882. }
  6883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6885. public int ProductID {
  6886. get {
  6887. return ((int)(this[this.tableProductSale.ProductIDColumn]));
  6888. }
  6889. set {
  6890. this[this.tableProductSale.ProductIDColumn] = value;
  6891. }
  6892. }
  6893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6895. public System.DateTime SaleDate {
  6896. get {
  6897. return ((global::System.DateTime)(this[this.tableProductSale.SaleDateColumn]));
  6898. }
  6899. set {
  6900. this[this.tableProductSale.SaleDateColumn] = value;
  6901. }
  6902. }
  6903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6905. public int ProductCount {
  6906. get {
  6907. return ((int)(this[this.tableProductSale.ProductCountColumn]));
  6908. }
  6909. set {
  6910. this[this.tableProductSale.ProductCountColumn] = value;
  6911. }
  6912. }
  6913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6915. public AgentRow AgentRow {
  6916. get {
  6917. return ((AgentRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_Agent"])));
  6918. }
  6919. set {
  6920. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_Agent"]);
  6921. }
  6922. }
  6923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6925. public ProductRow ProductRow {
  6926. get {
  6927. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_Product"])));
  6928. }
  6929. set {
  6930. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_Product"]);
  6931. }
  6932. }
  6933. }
  6934. /// <summary>
  6935. ///Represents strongly named DataRow class.
  6936. ///</summary>
  6937. public partial class ProductTypeRow : global::System.Data.DataRow {
  6938. private ProductTypeDataTable tableProductType;
  6939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6941. internal ProductTypeRow(global::System.Data.DataRowBuilder rb) :
  6942. base(rb) {
  6943. this.tableProductType = ((ProductTypeDataTable)(this.Table));
  6944. }
  6945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6947. public int ID {
  6948. get {
  6949. return ((int)(this[this.tableProductType.IDColumn]));
  6950. }
  6951. set {
  6952. this[this.tableProductType.IDColumn] = value;
  6953. }
  6954. }
  6955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6957. public string Title {
  6958. get {
  6959. return ((string)(this[this.tableProductType.TitleColumn]));
  6960. }
  6961. set {
  6962. this[this.tableProductType.TitleColumn] = value;
  6963. }
  6964. }
  6965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6967. public double DefectedPercent {
  6968. get {
  6969. try {
  6970. return ((double)(this[this.tableProductType.DefectedPercentColumn]));
  6971. }
  6972. catch (global::System.InvalidCastException e) {
  6973. throw new global::System.Data.StrongTypingException("Значение для столбца \'DefectedPercent\' в таблице \'ProductType\' равно DBNull.", e);
  6974. }
  6975. }
  6976. set {
  6977. this[this.tableProductType.DefectedPercentColumn] = value;
  6978. }
  6979. }
  6980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6982. public bool IsDefectedPercentNull() {
  6983. return this.IsNull(this.tableProductType.DefectedPercentColumn);
  6984. }
  6985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6987. public void SetDefectedPercentNull() {
  6988. this[this.tableProductType.DefectedPercentColumn] = global::System.Convert.DBNull;
  6989. }
  6990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6992. public ProductRow[] GetProductRows() {
  6993. if ((this.Table.ChildRelations["FK_Product_ProductType"] == null)) {
  6994. return new ProductRow[0];
  6995. }
  6996. else {
  6997. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_ProductType"])));
  6998. }
  6999. }
  7000. }
  7001. /// <summary>
  7002. ///Represents strongly named DataRow class.
  7003. ///</summary>
  7004. public partial class ShopRow : global::System.Data.DataRow {
  7005. private ShopDataTable tableShop;
  7006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7008. internal ShopRow(global::System.Data.DataRowBuilder rb) :
  7009. base(rb) {
  7010. this.tableShop = ((ShopDataTable)(this.Table));
  7011. }
  7012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7014. public int ID {
  7015. get {
  7016. return ((int)(this[this.tableShop.IDColumn]));
  7017. }
  7018. set {
  7019. this[this.tableShop.IDColumn] = value;
  7020. }
  7021. }
  7022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7024. public string Title {
  7025. get {
  7026. return ((string)(this[this.tableShop.TitleColumn]));
  7027. }
  7028. set {
  7029. this[this.tableShop.TitleColumn] = value;
  7030. }
  7031. }
  7032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7034. public string Address {
  7035. get {
  7036. try {
  7037. return ((string)(this[this.tableShop.AddressColumn]));
  7038. }
  7039. catch (global::System.InvalidCastException e) {
  7040. throw new global::System.Data.StrongTypingException("Значение для столбца \'Address\' в таблице \'Shop\' равно DBNull.", e);
  7041. }
  7042. }
  7043. set {
  7044. this[this.tableShop.AddressColumn] = value;
  7045. }
  7046. }
  7047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7049. public int AgentID {
  7050. get {
  7051. return ((int)(this[this.tableShop.AgentIDColumn]));
  7052. }
  7053. set {
  7054. this[this.tableShop.AgentIDColumn] = value;
  7055. }
  7056. }
  7057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7059. public AgentRow AgentRow {
  7060. get {
  7061. return ((AgentRow)(this.GetParentRow(this.Table.ParentRelations["FK_Shop_Agent"])));
  7062. }
  7063. set {
  7064. this.SetParentRow(value, this.Table.ParentRelations["FK_Shop_Agent"]);
  7065. }
  7066. }
  7067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7069. public bool IsAddressNull() {
  7070. return this.IsNull(this.tableShop.AddressColumn);
  7071. }
  7072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7074. public void SetAddressNull() {
  7075. this[this.tableShop.AddressColumn] = global::System.Convert.DBNull;
  7076. }
  7077. }
  7078. /// <summary>
  7079. ///Represents strongly named DataRow class.
  7080. ///</summary>
  7081. public partial class SupplierRow : global::System.Data.DataRow {
  7082. private SupplierDataTable tableSupplier;
  7083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7085. internal SupplierRow(global::System.Data.DataRowBuilder rb) :
  7086. base(rb) {
  7087. this.tableSupplier = ((SupplierDataTable)(this.Table));
  7088. }
  7089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7091. public int ID {
  7092. get {
  7093. return ((int)(this[this.tableSupplier.IDColumn]));
  7094. }
  7095. set {
  7096. this[this.tableSupplier.IDColumn] = value;
  7097. }
  7098. }
  7099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7101. public string Title {
  7102. get {
  7103. return ((string)(this[this.tableSupplier.TitleColumn]));
  7104. }
  7105. set {
  7106. this[this.tableSupplier.TitleColumn] = value;
  7107. }
  7108. }
  7109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7111. public string INN {
  7112. get {
  7113. return ((string)(this[this.tableSupplier.INNColumn]));
  7114. }
  7115. set {
  7116. this[this.tableSupplier.INNColumn] = value;
  7117. }
  7118. }
  7119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7121. public System.DateTime StartDate {
  7122. get {
  7123. return ((global::System.DateTime)(this[this.tableSupplier.StartDateColumn]));
  7124. }
  7125. set {
  7126. this[this.tableSupplier.StartDateColumn] = value;
  7127. }
  7128. }
  7129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7131. public int QualityRating {
  7132. get {
  7133. try {
  7134. return ((int)(this[this.tableSupplier.QualityRatingColumn]));
  7135. }
  7136. catch (global::System.InvalidCastException e) {
  7137. throw new global::System.Data.StrongTypingException("Значение для столбца \'QualityRating\' в таблице \'Supplier\' равно DBNull.", e);
  7138. }
  7139. }
  7140. set {
  7141. this[this.tableSupplier.QualityRatingColumn] = value;
  7142. }
  7143. }
  7144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7146. public string SupplierType {
  7147. get {
  7148. try {
  7149. return ((string)(this[this.tableSupplier.SupplierTypeColumn]));
  7150. }
  7151. catch (global::System.InvalidCastException e) {
  7152. throw new global::System.Data.StrongTypingException("Значение для столбца \'SupplierType\' в таблице \'Supplier\' равно DBNull.", e);
  7153. }
  7154. }
  7155. set {
  7156. this[this.tableSupplier.SupplierTypeColumn] = value;
  7157. }
  7158. }
  7159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7161. public bool IsQualityRatingNull() {
  7162. return this.IsNull(this.tableSupplier.QualityRatingColumn);
  7163. }
  7164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7166. public void SetQualityRatingNull() {
  7167. this[this.tableSupplier.QualityRatingColumn] = global::System.Convert.DBNull;
  7168. }
  7169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7171. public bool IsSupplierTypeNull() {
  7172. return this.IsNull(this.tableSupplier.SupplierTypeColumn);
  7173. }
  7174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7176. public void SetSupplierTypeNull() {
  7177. this[this.tableSupplier.SupplierTypeColumn] = global::System.Convert.DBNull;
  7178. }
  7179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7181. public MaterialSupplierRow[] GetMaterialSupplierRows() {
  7182. if ((this.Table.ChildRelations["FK_MaterialSupplier_Supplier"] == null)) {
  7183. return new MaterialSupplierRow[0];
  7184. }
  7185. else {
  7186. return ((MaterialSupplierRow[])(base.GetChildRows(this.Table.ChildRelations["FK_MaterialSupplier_Supplier"])));
  7187. }
  7188. }
  7189. }
  7190. /// <summary>
  7191. ///Represents strongly named DataRow class.
  7192. ///</summary>
  7193. public partial class ItogSumProductRow : global::System.Data.DataRow {
  7194. private ItogSumProductDataTable tableItogSumProduct;
  7195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7197. internal ItogSumProductRow(global::System.Data.DataRowBuilder rb) :
  7198. base(rb) {
  7199. this.tableItogSumProduct = ((ItogSumProductDataTable)(this.Table));
  7200. }
  7201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7203. public string Product {
  7204. get {
  7205. return ((string)(this[this.tableItogSumProduct.ProductColumn]));
  7206. }
  7207. set {
  7208. this[this.tableItogSumProduct.ProductColumn] = value;
  7209. }
  7210. }
  7211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7213. public double Cost {
  7214. get {
  7215. try {
  7216. return ((double)(this[this.tableItogSumProduct.CostColumn]));
  7217. }
  7218. catch (global::System.InvalidCastException e) {
  7219. throw new global::System.Data.StrongTypingException("Значение для столбца \'Cost\' в таблице \'ItogSumProduct\' равно DBNull.", e);
  7220. }
  7221. }
  7222. set {
  7223. this[this.tableItogSumProduct.CostColumn] = value;
  7224. }
  7225. }
  7226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7228. public int ID {
  7229. get {
  7230. return ((int)(this[this.tableItogSumProduct.IDColumn]));
  7231. }
  7232. set {
  7233. this[this.tableItogSumProduct.IDColumn] = value;
  7234. }
  7235. }
  7236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7238. public bool IsCostNull() {
  7239. return this.IsNull(this.tableItogSumProduct.CostColumn);
  7240. }
  7241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7243. public void SetCostNull() {
  7244. this[this.tableItogSumProduct.CostColumn] = global::System.Convert.DBNull;
  7245. }
  7246. }
  7247. /// <summary>
  7248. ///Represents strongly named DataRow class.
  7249. ///</summary>
  7250. public partial class ProductsPredRow : global::System.Data.DataRow {
  7251. private ProductsPredDataTable tableProductsPred;
  7252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7254. internal ProductsPredRow(global::System.Data.DataRowBuilder rb) :
  7255. base(rb) {
  7256. this.tableProductsPred = ((ProductsPredDataTable)(this.Table));
  7257. }
  7258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7260. public int ID {
  7261. get {
  7262. return ((int)(this[this.tableProductsPred.IDColumn]));
  7263. }
  7264. set {
  7265. this[this.tableProductsPred.IDColumn] = value;
  7266. }
  7267. }
  7268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7270. public string Title {
  7271. get {
  7272. return ((string)(this[this.tableProductsPred.TitleColumn]));
  7273. }
  7274. set {
  7275. this[this.tableProductsPred.TitleColumn] = value;
  7276. }
  7277. }
  7278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7280. public string Type {
  7281. get {
  7282. return ((string)(this[this.tableProductsPred.TypeColumn]));
  7283. }
  7284. set {
  7285. this[this.tableProductsPred.TypeColumn] = value;
  7286. }
  7287. }
  7288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7290. public double Cost {
  7291. get {
  7292. try {
  7293. return ((double)(this[this.tableProductsPred.CostColumn]));
  7294. }
  7295. catch (global::System.InvalidCastException e) {
  7296. throw new global::System.Data.StrongTypingException("Значение для столбца \'Cost\' в таблице \'ProductsPred\' равно DBNull.", e);
  7297. }
  7298. }
  7299. set {
  7300. this[this.tableProductsPred.CostColumn] = value;
  7301. }
  7302. }
  7303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7305. public string ArticleNumber {
  7306. get {
  7307. return ((string)(this[this.tableProductsPred.ArticleNumberColumn]));
  7308. }
  7309. set {
  7310. this[this.tableProductsPred.ArticleNumberColumn] = value;
  7311. }
  7312. }
  7313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7315. public int ProductionPersonCount {
  7316. get {
  7317. try {
  7318. return ((int)(this[this.tableProductsPred.ProductionPersonCountColumn]));
  7319. }
  7320. catch (global::System.InvalidCastException e) {
  7321. throw new global::System.Data.StrongTypingException("Значение для столбца \'ProductionPersonCount\' в таблице \'ProductsPred\' равно DBNul" +
  7322. "l.", e);
  7323. }
  7324. }
  7325. set {
  7326. this[this.tableProductsPred.ProductionPersonCountColumn] = value;
  7327. }
  7328. }
  7329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7331. public int ProductionWorkshopNumber {
  7332. get {
  7333. try {
  7334. return ((int)(this[this.tableProductsPred.ProductionWorkshopNumberColumn]));
  7335. }
  7336. catch (global::System.InvalidCastException e) {
  7337. throw new global::System.Data.StrongTypingException("Значение для столбца \'ProductionWorkshopNumber\' в таблице \'ProductsPred\' равно DB" +
  7338. "Null.", e);
  7339. }
  7340. }
  7341. set {
  7342. this[this.tableProductsPred.ProductionWorkshopNumberColumn] = value;
  7343. }
  7344. }
  7345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7347. public decimal MinCostForAgent {
  7348. get {
  7349. return ((decimal)(this[this.tableProductsPred.MinCostForAgentColumn]));
  7350. }
  7351. set {
  7352. this[this.tableProductsPred.MinCostForAgentColumn] = value;
  7353. }
  7354. }
  7355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7357. public bool IsCostNull() {
  7358. return this.IsNull(this.tableProductsPred.CostColumn);
  7359. }
  7360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7362. public void SetCostNull() {
  7363. this[this.tableProductsPred.CostColumn] = global::System.Convert.DBNull;
  7364. }
  7365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7367. public bool IsProductionPersonCountNull() {
  7368. return this.IsNull(this.tableProductsPred.ProductionPersonCountColumn);
  7369. }
  7370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7372. public void SetProductionPersonCountNull() {
  7373. this[this.tableProductsPred.ProductionPersonCountColumn] = global::System.Convert.DBNull;
  7374. }
  7375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7377. public bool IsProductionWorkshopNumberNull() {
  7378. return this.IsNull(this.tableProductsPred.ProductionWorkshopNumberColumn);
  7379. }
  7380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7382. public void SetProductionWorkshopNumberNull() {
  7383. this[this.tableProductsPred.ProductionWorkshopNumberColumn] = global::System.Convert.DBNull;
  7384. }
  7385. }
  7386. /// <summary>
  7387. ///Represents strongly named DataRow class.
  7388. ///</summary>
  7389. public partial class ProizvProductRow : global::System.Data.DataRow {
  7390. private ProizvProductDataTable tableProizvProduct;
  7391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7393. internal ProizvProductRow(global::System.Data.DataRowBuilder rb) :
  7394. base(rb) {
  7395. this.tableProizvProduct = ((ProizvProductDataTable)(this.Table));
  7396. }
  7397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7399. public int ID {
  7400. get {
  7401. return ((int)(this[this.tableProizvProduct.IDColumn]));
  7402. }
  7403. set {
  7404. this[this.tableProizvProduct.IDColumn] = value;
  7405. }
  7406. }
  7407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7409. public string Product {
  7410. get {
  7411. return ((string)(this[this.tableProizvProduct.ProductColumn]));
  7412. }
  7413. set {
  7414. this[this.tableProizvProduct.ProductColumn] = value;
  7415. }
  7416. }
  7417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7419. public string Material {
  7420. get {
  7421. return ((string)(this[this.tableProizvProduct.MaterialColumn]));
  7422. }
  7423. set {
  7424. this[this.tableProizvProduct.MaterialColumn] = value;
  7425. }
  7426. }
  7427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7429. public double Count {
  7430. get {
  7431. try {
  7432. return ((double)(this[this.tableProizvProduct.CountColumn]));
  7433. }
  7434. catch (global::System.InvalidCastException e) {
  7435. throw new global::System.Data.StrongTypingException("Значение для столбца \'Count\' в таблице \'ProizvProduct\' равно DBNull.", e);
  7436. }
  7437. }
  7438. set {
  7439. this[this.tableProizvProduct.CountColumn] = value;
  7440. }
  7441. }
  7442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7444. public decimal Cost {
  7445. get {
  7446. return ((decimal)(this[this.tableProizvProduct.CostColumn]));
  7447. }
  7448. set {
  7449. this[this.tableProizvProduct.CostColumn] = value;
  7450. }
  7451. }
  7452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7454. public double Proizv {
  7455. get {
  7456. try {
  7457. return ((double)(this[this.tableProizvProduct.ProizvColumn]));
  7458. }
  7459. catch (global::System.InvalidCastException e) {
  7460. throw new global::System.Data.StrongTypingException("Значение для столбца \'Proizv\' в таблице \'ProizvProduct\' равно DBNull.", e);
  7461. }
  7462. }
  7463. set {
  7464. this[this.tableProizvProduct.ProizvColumn] = value;
  7465. }
  7466. }
  7467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7469. public bool IsCountNull() {
  7470. return this.IsNull(this.tableProizvProduct.CountColumn);
  7471. }
  7472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7474. public void SetCountNull() {
  7475. this[this.tableProizvProduct.CountColumn] = global::System.Convert.DBNull;
  7476. }
  7477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7479. public bool IsProizvNull() {
  7480. return this.IsNull(this.tableProizvProduct.ProizvColumn);
  7481. }
  7482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7484. public void SetProizvNull() {
  7485. this[this.tableProizvProduct.ProizvColumn] = global::System.Convert.DBNull;
  7486. }
  7487. }
  7488. /// <summary>
  7489. ///Row event argument class
  7490. ///</summary>
  7491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7492. public class AgentRowChangeEvent : global::System.EventArgs {
  7493. private AgentRow eventRow;
  7494. private global::System.Data.DataRowAction eventAction;
  7495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7497. public AgentRowChangeEvent(AgentRow row, global::System.Data.DataRowAction action) {
  7498. this.eventRow = row;
  7499. this.eventAction = action;
  7500. }
  7501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7503. public AgentRow Row {
  7504. get {
  7505. return this.eventRow;
  7506. }
  7507. }
  7508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7510. public global::System.Data.DataRowAction Action {
  7511. get {
  7512. return this.eventAction;
  7513. }
  7514. }
  7515. }
  7516. /// <summary>
  7517. ///Row event argument class
  7518. ///</summary>
  7519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7520. public class AgentPriorityHistoryRowChangeEvent : global::System.EventArgs {
  7521. private AgentPriorityHistoryRow eventRow;
  7522. private global::System.Data.DataRowAction eventAction;
  7523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7525. public AgentPriorityHistoryRowChangeEvent(AgentPriorityHistoryRow row, global::System.Data.DataRowAction action) {
  7526. this.eventRow = row;
  7527. this.eventAction = action;
  7528. }
  7529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7531. public AgentPriorityHistoryRow Row {
  7532. get {
  7533. return this.eventRow;
  7534. }
  7535. }
  7536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7538. public global::System.Data.DataRowAction Action {
  7539. get {
  7540. return this.eventAction;
  7541. }
  7542. }
  7543. }
  7544. /// <summary>
  7545. ///Row event argument class
  7546. ///</summary>
  7547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7548. public class AgentTypeRowChangeEvent : global::System.EventArgs {
  7549. private AgentTypeRow eventRow;
  7550. private global::System.Data.DataRowAction eventAction;
  7551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7553. public AgentTypeRowChangeEvent(AgentTypeRow row, global::System.Data.DataRowAction action) {
  7554. this.eventRow = row;
  7555. this.eventAction = action;
  7556. }
  7557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7559. public AgentTypeRow Row {
  7560. get {
  7561. return this.eventRow;
  7562. }
  7563. }
  7564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7566. public global::System.Data.DataRowAction Action {
  7567. get {
  7568. return this.eventAction;
  7569. }
  7570. }
  7571. }
  7572. /// <summary>
  7573. ///Row event argument class
  7574. ///</summary>
  7575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7576. public class MaterialRowChangeEvent : global::System.EventArgs {
  7577. private MaterialRow eventRow;
  7578. private global::System.Data.DataRowAction eventAction;
  7579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7581. public MaterialRowChangeEvent(MaterialRow row, global::System.Data.DataRowAction action) {
  7582. this.eventRow = row;
  7583. this.eventAction = action;
  7584. }
  7585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7587. public MaterialRow Row {
  7588. get {
  7589. return this.eventRow;
  7590. }
  7591. }
  7592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7594. public global::System.Data.DataRowAction Action {
  7595. get {
  7596. return this.eventAction;
  7597. }
  7598. }
  7599. }
  7600. /// <summary>
  7601. ///Row event argument class
  7602. ///</summary>
  7603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7604. public class MaterialCountHistoryRowChangeEvent : global::System.EventArgs {
  7605. private MaterialCountHistoryRow eventRow;
  7606. private global::System.Data.DataRowAction eventAction;
  7607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7609. public MaterialCountHistoryRowChangeEvent(MaterialCountHistoryRow row, global::System.Data.DataRowAction action) {
  7610. this.eventRow = row;
  7611. this.eventAction = action;
  7612. }
  7613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7615. public MaterialCountHistoryRow Row {
  7616. get {
  7617. return this.eventRow;
  7618. }
  7619. }
  7620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7622. public global::System.Data.DataRowAction Action {
  7623. get {
  7624. return this.eventAction;
  7625. }
  7626. }
  7627. }
  7628. /// <summary>
  7629. ///Row event argument class
  7630. ///</summary>
  7631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7632. public class MaterialSupplierRowChangeEvent : global::System.EventArgs {
  7633. private MaterialSupplierRow eventRow;
  7634. private global::System.Data.DataRowAction eventAction;
  7635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7637. public MaterialSupplierRowChangeEvent(MaterialSupplierRow row, global::System.Data.DataRowAction action) {
  7638. this.eventRow = row;
  7639. this.eventAction = action;
  7640. }
  7641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7643. public MaterialSupplierRow Row {
  7644. get {
  7645. return this.eventRow;
  7646. }
  7647. }
  7648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7650. public global::System.Data.DataRowAction Action {
  7651. get {
  7652. return this.eventAction;
  7653. }
  7654. }
  7655. }
  7656. /// <summary>
  7657. ///Row event argument class
  7658. ///</summary>
  7659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7660. public class MaterialTypeRowChangeEvent : global::System.EventArgs {
  7661. private MaterialTypeRow eventRow;
  7662. private global::System.Data.DataRowAction eventAction;
  7663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7665. public MaterialTypeRowChangeEvent(MaterialTypeRow row, global::System.Data.DataRowAction action) {
  7666. this.eventRow = row;
  7667. this.eventAction = action;
  7668. }
  7669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7671. public MaterialTypeRow Row {
  7672. get {
  7673. return this.eventRow;
  7674. }
  7675. }
  7676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7678. public global::System.Data.DataRowAction Action {
  7679. get {
  7680. return this.eventAction;
  7681. }
  7682. }
  7683. }
  7684. /// <summary>
  7685. ///Row event argument class
  7686. ///</summary>
  7687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7688. public class ProductRowChangeEvent : global::System.EventArgs {
  7689. private ProductRow eventRow;
  7690. private global::System.Data.DataRowAction eventAction;
  7691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7693. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  7694. this.eventRow = row;
  7695. this.eventAction = action;
  7696. }
  7697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7699. public ProductRow Row {
  7700. get {
  7701. return this.eventRow;
  7702. }
  7703. }
  7704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7706. public global::System.Data.DataRowAction Action {
  7707. get {
  7708. return this.eventAction;
  7709. }
  7710. }
  7711. }
  7712. /// <summary>
  7713. ///Row event argument class
  7714. ///</summary>
  7715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7716. public class ProductCostHistoryRowChangeEvent : global::System.EventArgs {
  7717. private ProductCostHistoryRow eventRow;
  7718. private global::System.Data.DataRowAction eventAction;
  7719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7721. public ProductCostHistoryRowChangeEvent(ProductCostHistoryRow row, global::System.Data.DataRowAction action) {
  7722. this.eventRow = row;
  7723. this.eventAction = action;
  7724. }
  7725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7727. public ProductCostHistoryRow Row {
  7728. get {
  7729. return this.eventRow;
  7730. }
  7731. }
  7732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7734. public global::System.Data.DataRowAction Action {
  7735. get {
  7736. return this.eventAction;
  7737. }
  7738. }
  7739. }
  7740. /// <summary>
  7741. ///Row event argument class
  7742. ///</summary>
  7743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7744. public class ProductMaterialRowChangeEvent : global::System.EventArgs {
  7745. private ProductMaterialRow eventRow;
  7746. private global::System.Data.DataRowAction eventAction;
  7747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7749. public ProductMaterialRowChangeEvent(ProductMaterialRow row, global::System.Data.DataRowAction action) {
  7750. this.eventRow = row;
  7751. this.eventAction = action;
  7752. }
  7753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7755. public ProductMaterialRow Row {
  7756. get {
  7757. return this.eventRow;
  7758. }
  7759. }
  7760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7762. public global::System.Data.DataRowAction Action {
  7763. get {
  7764. return this.eventAction;
  7765. }
  7766. }
  7767. }
  7768. /// <summary>
  7769. ///Row event argument class
  7770. ///</summary>
  7771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7772. public class ProductSaleRowChangeEvent : global::System.EventArgs {
  7773. private ProductSaleRow eventRow;
  7774. private global::System.Data.DataRowAction eventAction;
  7775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7777. public ProductSaleRowChangeEvent(ProductSaleRow row, global::System.Data.DataRowAction action) {
  7778. this.eventRow = row;
  7779. this.eventAction = action;
  7780. }
  7781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7783. public ProductSaleRow Row {
  7784. get {
  7785. return this.eventRow;
  7786. }
  7787. }
  7788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7790. public global::System.Data.DataRowAction Action {
  7791. get {
  7792. return this.eventAction;
  7793. }
  7794. }
  7795. }
  7796. /// <summary>
  7797. ///Row event argument class
  7798. ///</summary>
  7799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7800. public class ProductTypeRowChangeEvent : global::System.EventArgs {
  7801. private ProductTypeRow eventRow;
  7802. private global::System.Data.DataRowAction eventAction;
  7803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7805. public ProductTypeRowChangeEvent(ProductTypeRow row, global::System.Data.DataRowAction action) {
  7806. this.eventRow = row;
  7807. this.eventAction = action;
  7808. }
  7809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7811. public ProductTypeRow Row {
  7812. get {
  7813. return this.eventRow;
  7814. }
  7815. }
  7816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7818. public global::System.Data.DataRowAction Action {
  7819. get {
  7820. return this.eventAction;
  7821. }
  7822. }
  7823. }
  7824. /// <summary>
  7825. ///Row event argument class
  7826. ///</summary>
  7827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7828. public class ShopRowChangeEvent : global::System.EventArgs {
  7829. private ShopRow eventRow;
  7830. private global::System.Data.DataRowAction eventAction;
  7831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7833. public ShopRowChangeEvent(ShopRow row, global::System.Data.DataRowAction action) {
  7834. this.eventRow = row;
  7835. this.eventAction = action;
  7836. }
  7837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7839. public ShopRow Row {
  7840. get {
  7841. return this.eventRow;
  7842. }
  7843. }
  7844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7846. public global::System.Data.DataRowAction Action {
  7847. get {
  7848. return this.eventAction;
  7849. }
  7850. }
  7851. }
  7852. /// <summary>
  7853. ///Row event argument class
  7854. ///</summary>
  7855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7856. public class SupplierRowChangeEvent : global::System.EventArgs {
  7857. private SupplierRow eventRow;
  7858. private global::System.Data.DataRowAction eventAction;
  7859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7861. public SupplierRowChangeEvent(SupplierRow row, global::System.Data.DataRowAction action) {
  7862. this.eventRow = row;
  7863. this.eventAction = action;
  7864. }
  7865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7867. public SupplierRow Row {
  7868. get {
  7869. return this.eventRow;
  7870. }
  7871. }
  7872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7874. public global::System.Data.DataRowAction Action {
  7875. get {
  7876. return this.eventAction;
  7877. }
  7878. }
  7879. }
  7880. /// <summary>
  7881. ///Row event argument class
  7882. ///</summary>
  7883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7884. public class ItogSumProductRowChangeEvent : global::System.EventArgs {
  7885. private ItogSumProductRow eventRow;
  7886. private global::System.Data.DataRowAction eventAction;
  7887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7889. public ItogSumProductRowChangeEvent(ItogSumProductRow row, global::System.Data.DataRowAction action) {
  7890. this.eventRow = row;
  7891. this.eventAction = action;
  7892. }
  7893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7895. public ItogSumProductRow Row {
  7896. get {
  7897. return this.eventRow;
  7898. }
  7899. }
  7900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7902. public global::System.Data.DataRowAction Action {
  7903. get {
  7904. return this.eventAction;
  7905. }
  7906. }
  7907. }
  7908. /// <summary>
  7909. ///Row event argument class
  7910. ///</summary>
  7911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7912. public class ProductsPredRowChangeEvent : global::System.EventArgs {
  7913. private ProductsPredRow eventRow;
  7914. private global::System.Data.DataRowAction eventAction;
  7915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7917. public ProductsPredRowChangeEvent(ProductsPredRow row, global::System.Data.DataRowAction action) {
  7918. this.eventRow = row;
  7919. this.eventAction = action;
  7920. }
  7921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7923. public ProductsPredRow Row {
  7924. get {
  7925. return this.eventRow;
  7926. }
  7927. }
  7928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7930. public global::System.Data.DataRowAction Action {
  7931. get {
  7932. return this.eventAction;
  7933. }
  7934. }
  7935. }
  7936. /// <summary>
  7937. ///Row event argument class
  7938. ///</summary>
  7939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7940. public class ProizvProductRowChangeEvent : global::System.EventArgs {
  7941. private ProizvProductRow eventRow;
  7942. private global::System.Data.DataRowAction eventAction;
  7943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7945. public ProizvProductRowChangeEvent(ProizvProductRow row, global::System.Data.DataRowAction action) {
  7946. this.eventRow = row;
  7947. this.eventAction = action;
  7948. }
  7949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7951. public ProizvProductRow Row {
  7952. get {
  7953. return this.eventRow;
  7954. }
  7955. }
  7956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7958. public global::System.Data.DataRowAction Action {
  7959. get {
  7960. return this.eventAction;
  7961. }
  7962. }
  7963. }
  7964. }
  7965. }
  7966. namespace TestWSR4.TestWSR4DataSetTableAdapters {
  7967. /// <summary>
  7968. ///Represents the connection and commands used to retrieve and save data.
  7969. ///</summary>
  7970. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7971. [global::System.ComponentModel.ToolboxItem(true)]
  7972. [global::System.ComponentModel.DataObjectAttribute(true)]
  7973. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7974. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7975. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7976. public partial class AgentTableAdapter : global::System.ComponentModel.Component {
  7977. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7978. private global::System.Data.SqlClient.SqlConnection _connection;
  7979. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7980. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7981. private bool _clearBeforeFill;
  7982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7984. public AgentTableAdapter() {
  7985. this.ClearBeforeFill = true;
  7986. }
  7987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7989. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7990. get {
  7991. if ((this._adapter == null)) {
  7992. this.InitAdapter();
  7993. }
  7994. return this._adapter;
  7995. }
  7996. }
  7997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7999. internal global::System.Data.SqlClient.SqlConnection Connection {
  8000. get {
  8001. if ((this._connection == null)) {
  8002. this.InitConnection();
  8003. }
  8004. return this._connection;
  8005. }
  8006. set {
  8007. this._connection = value;
  8008. if ((this.Adapter.InsertCommand != null)) {
  8009. this.Adapter.InsertCommand.Connection = value;
  8010. }
  8011. if ((this.Adapter.DeleteCommand != null)) {
  8012. this.Adapter.DeleteCommand.Connection = value;
  8013. }
  8014. if ((this.Adapter.UpdateCommand != null)) {
  8015. this.Adapter.UpdateCommand.Connection = value;
  8016. }
  8017. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8018. if ((this.CommandCollection[i] != null)) {
  8019. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8020. }
  8021. }
  8022. }
  8023. }
  8024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8026. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8027. get {
  8028. return this._transaction;
  8029. }
  8030. set {
  8031. this._transaction = value;
  8032. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8033. this.CommandCollection[i].Transaction = this._transaction;
  8034. }
  8035. if (((this.Adapter != null)
  8036. && (this.Adapter.DeleteCommand != null))) {
  8037. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8038. }
  8039. if (((this.Adapter != null)
  8040. && (this.Adapter.InsertCommand != null))) {
  8041. this.Adapter.InsertCommand.Transaction = this._transaction;
  8042. }
  8043. if (((this.Adapter != null)
  8044. && (this.Adapter.UpdateCommand != null))) {
  8045. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8046. }
  8047. }
  8048. }
  8049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8051. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8052. get {
  8053. if ((this._commandCollection == null)) {
  8054. this.InitCommandCollection();
  8055. }
  8056. return this._commandCollection;
  8057. }
  8058. }
  8059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8061. public bool ClearBeforeFill {
  8062. get {
  8063. return this._clearBeforeFill;
  8064. }
  8065. set {
  8066. this._clearBeforeFill = value;
  8067. }
  8068. }
  8069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8071. private void InitAdapter() {
  8072. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8073. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8074. tableMapping.SourceTable = "Table";
  8075. tableMapping.DataSetTable = "Agent";
  8076. tableMapping.ColumnMappings.Add("ID", "ID");
  8077. tableMapping.ColumnMappings.Add("Title", "Title");
  8078. tableMapping.ColumnMappings.Add("AgentTypeID", "AgentTypeID");
  8079. tableMapping.ColumnMappings.Add("Address", "Address");
  8080. tableMapping.ColumnMappings.Add("INN", "INN");
  8081. tableMapping.ColumnMappings.Add("KPP", "KPP");
  8082. tableMapping.ColumnMappings.Add("DirectorName", "DirectorName");
  8083. tableMapping.ColumnMappings.Add("Phone", "Phone");
  8084. tableMapping.ColumnMappings.Add("Email", "Email");
  8085. tableMapping.ColumnMappings.Add("Logo", "Logo");
  8086. tableMapping.ColumnMappings.Add("Priority", "Priority");
  8087. this._adapter.TableMappings.Add(tableMapping);
  8088. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8089. this._adapter.DeleteCommand.Connection = this.Connection;
  8090. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Agent] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([AgentTypeID] = @Original_AgentTypeID) AND ((@IsNull_Address = 1 AND [Address] IS NULL) OR ([Address] = @Original_Address)) AND ([INN] = @Original_INN) AND ((@IsNull_KPP = 1 AND [KPP] IS NULL) OR ([KPP] = @Original_KPP)) AND ((@IsNull_DirectorName = 1 AND [DirectorName] IS NULL) OR ([DirectorName] = @Original_DirectorName)) AND ([Phone] = @Original_Phone) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNull_Logo = 1 AND [Logo] IS NULL) OR ([Logo] = @Original_Logo)) AND ([Priority] = @Original_Priority))";
  8091. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8092. 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, "", "", ""));
  8093. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8094. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AgentTypeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AgentTypeID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8095. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Address", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8096. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Address", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8097. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_INN", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8098. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KPP", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KPP", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8099. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KPP", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KPP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8100. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DirectorName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DirectorName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8101. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DirectorName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DirectorName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8102. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8103. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8104. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8105. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Logo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Logo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8106. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Logo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Logo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8107. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Priority", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Priority", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8108. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8109. this._adapter.InsertCommand.Connection = this.Connection;
  8110. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Agent] ([Title], [AgentTypeID], [Address], [INN], [KPP], [DirectorName], [Phone], [Email], [Logo], [Priority]) VALUES (@Title, @AgentTypeID, @Address, @INN, @KPP, @DirectorName, @Phone, @Email, @Logo, @Priority);
  8111. SELECT ID, Title, AgentTypeID, Address, INN, KPP, DirectorName, Phone, Email, Logo, Priority FROM Agent WHERE (ID = SCOPE_IDENTITY())";
  8112. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8113. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8114. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AgentTypeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AgentTypeID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8115. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Address", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8116. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@INN", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8117. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KPP", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KPP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8118. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DirectorName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DirectorName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8119. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8120. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8121. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Logo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Logo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8122. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Priority", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Priority", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8123. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8124. this._adapter.UpdateCommand.Connection = this.Connection;
  8125. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Agent] SET [Title] = @Title, [AgentTypeID] = @AgentTypeID, [Address] = @Address, [INN] = @INN, [KPP] = @KPP, [DirectorName] = @DirectorName, [Phone] = @Phone, [Email] = @Email, [Logo] = @Logo, [Priority] = @Priority WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([AgentTypeID] = @Original_AgentTypeID) AND ((@IsNull_Address = 1 AND [Address] IS NULL) OR ([Address] = @Original_Address)) AND ([INN] = @Original_INN) AND ((@IsNull_KPP = 1 AND [KPP] IS NULL) OR ([KPP] = @Original_KPP)) AND ((@IsNull_DirectorName = 1 AND [DirectorName] IS NULL) OR ([DirectorName] = @Original_DirectorName)) AND ([Phone] = @Original_Phone) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNull_Logo = 1 AND [Logo] IS NULL) OR ([Logo] = @Original_Logo)) AND ([Priority] = @Original_Priority));
  8126. SELECT ID, Title, AgentTypeID, Address, INN, KPP, DirectorName, Phone, Email, Logo, Priority FROM Agent WHERE (ID = @ID)";
  8127. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8128. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8129. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AgentTypeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AgentTypeID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8130. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Address", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8131. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@INN", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8132. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KPP", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KPP", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8133. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DirectorName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DirectorName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8134. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8135. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8136. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Logo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Logo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8137. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Priority", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Priority", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8138. 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, "", "", ""));
  8139. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8140. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AgentTypeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AgentTypeID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8141. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Address", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8142. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Address", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8143. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_INN", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8144. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_KPP", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KPP", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8145. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_KPP", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KPP", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8146. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DirectorName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DirectorName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8147. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DirectorName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DirectorName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8148. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8149. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8150. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8151. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Logo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Logo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8152. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Logo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Logo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8153. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Priority", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Priority", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8154. 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, "", "", ""));
  8155. }
  8156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8158. private void InitConnection() {
  8159. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8160. this._connection.ConnectionString = global::TestWSR4.Properties.Settings.Default.TestWSR4ConnectionString;
  8161. }
  8162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8164. private void InitCommandCollection() {
  8165. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8166. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8167. this._commandCollection[0].Connection = this.Connection;
  8168. this._commandCollection[0].CommandText = "SELECT ID, Title, AgentTypeID, Address, INN, KPP, DirectorName, Phone, Email, Log" +
  8169. "o, Priority FROM dbo.Agent";
  8170. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8171. }
  8172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8174. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8175. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8176. public virtual int Fill(TestWSR4DataSet.AgentDataTable dataTable) {
  8177. this.Adapter.SelectCommand = this.CommandCollection[0];
  8178. if ((this.ClearBeforeFill == true)) {
  8179. dataTable.Clear();
  8180. }
  8181. int returnValue = this.Adapter.Fill(dataTable);
  8182. return returnValue;
  8183. }
  8184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8186. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8187. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8188. public virtual TestWSR4DataSet.AgentDataTable GetData() {
  8189. this.Adapter.SelectCommand = this.CommandCollection[0];
  8190. TestWSR4DataSet.AgentDataTable dataTable = new TestWSR4DataSet.AgentDataTable();
  8191. this.Adapter.Fill(dataTable);
  8192. return dataTable;
  8193. }
  8194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8196. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8197. public virtual int Update(TestWSR4DataSet.AgentDataTable dataTable) {
  8198. return this.Adapter.Update(dataTable);
  8199. }
  8200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8202. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8203. public virtual int Update(TestWSR4DataSet dataSet) {
  8204. return this.Adapter.Update(dataSet, "Agent");
  8205. }
  8206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8208. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8209. public virtual int Update(global::System.Data.DataRow dataRow) {
  8210. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8211. dataRow});
  8212. }
  8213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8215. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8216. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8217. return this.Adapter.Update(dataRows);
  8218. }
  8219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8221. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8222. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8223. public virtual int Delete(int Original_ID, string Original_Title, int Original_AgentTypeID, string Original_Address, string Original_INN, string Original_KPP, string Original_DirectorName, string Original_Phone, string Original_Email, string Original_Logo, int Original_Priority) {
  8224. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8225. if ((Original_Title == null)) {
  8226. throw new global::System.ArgumentNullException("Original_Title");
  8227. }
  8228. else {
  8229. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  8230. }
  8231. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_AgentTypeID));
  8232. if ((Original_Address == null)) {
  8233. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8234. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8235. }
  8236. else {
  8237. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8238. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Address));
  8239. }
  8240. if ((Original_INN == null)) {
  8241. throw new global::System.ArgumentNullException("Original_INN");
  8242. }
  8243. else {
  8244. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_INN));
  8245. }
  8246. if ((Original_KPP == null)) {
  8247. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  8248. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  8249. }
  8250. else {
  8251. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  8252. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_KPP));
  8253. }
  8254. if ((Original_DirectorName == null)) {
  8255. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
  8256. this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
  8257. }
  8258. else {
  8259. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
  8260. this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_DirectorName));
  8261. }
  8262. if ((Original_Phone == null)) {
  8263. throw new global::System.ArgumentNullException("Original_Phone");
  8264. }
  8265. else {
  8266. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Phone));
  8267. }
  8268. if ((Original_Email == null)) {
  8269. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  8270. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  8271. }
  8272. else {
  8273. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  8274. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Email));
  8275. }
  8276. if ((Original_Logo == null)) {
  8277. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  8278. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  8279. }
  8280. else {
  8281. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  8282. this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_Logo));
  8283. }
  8284. this.Adapter.DeleteCommand.Parameters[15].Value = ((int)(Original_Priority));
  8285. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8286. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8287. != global::System.Data.ConnectionState.Open)) {
  8288. this.Adapter.DeleteCommand.Connection.Open();
  8289. }
  8290. try {
  8291. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8292. return returnValue;
  8293. }
  8294. finally {
  8295. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8296. this.Adapter.DeleteCommand.Connection.Close();
  8297. }
  8298. }
  8299. }
  8300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8302. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8303. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8304. public virtual int Insert(string Title, int AgentTypeID, string Address, string INN, string KPP, string DirectorName, string Phone, string Email, string Logo, int Priority) {
  8305. if ((Title == null)) {
  8306. throw new global::System.ArgumentNullException("Title");
  8307. }
  8308. else {
  8309. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  8310. }
  8311. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(AgentTypeID));
  8312. if ((Address == null)) {
  8313. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8314. }
  8315. else {
  8316. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Address));
  8317. }
  8318. if ((INN == null)) {
  8319. throw new global::System.ArgumentNullException("INN");
  8320. }
  8321. else {
  8322. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(INN));
  8323. }
  8324. if ((KPP == null)) {
  8325. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  8326. }
  8327. else {
  8328. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(KPP));
  8329. }
  8330. if ((DirectorName == null)) {
  8331. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  8332. }
  8333. else {
  8334. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(DirectorName));
  8335. }
  8336. if ((Phone == null)) {
  8337. throw new global::System.ArgumentNullException("Phone");
  8338. }
  8339. else {
  8340. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Phone));
  8341. }
  8342. if ((Email == null)) {
  8343. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  8344. }
  8345. else {
  8346. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Email));
  8347. }
  8348. if ((Logo == null)) {
  8349. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  8350. }
  8351. else {
  8352. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(Logo));
  8353. }
  8354. this.Adapter.InsertCommand.Parameters[9].Value = ((int)(Priority));
  8355. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8356. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8357. != global::System.Data.ConnectionState.Open)) {
  8358. this.Adapter.InsertCommand.Connection.Open();
  8359. }
  8360. try {
  8361. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8362. return returnValue;
  8363. }
  8364. finally {
  8365. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8366. this.Adapter.InsertCommand.Connection.Close();
  8367. }
  8368. }
  8369. }
  8370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8372. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8373. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8374. public virtual int Update(
  8375. string Title,
  8376. int AgentTypeID,
  8377. string Address,
  8378. string INN,
  8379. string KPP,
  8380. string DirectorName,
  8381. string Phone,
  8382. string Email,
  8383. string Logo,
  8384. int Priority,
  8385. int Original_ID,
  8386. string Original_Title,
  8387. int Original_AgentTypeID,
  8388. string Original_Address,
  8389. string Original_INN,
  8390. string Original_KPP,
  8391. string Original_DirectorName,
  8392. string Original_Phone,
  8393. string Original_Email,
  8394. string Original_Logo,
  8395. int Original_Priority,
  8396. int ID) {
  8397. if ((Title == null)) {
  8398. throw new global::System.ArgumentNullException("Title");
  8399. }
  8400. else {
  8401. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  8402. }
  8403. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(AgentTypeID));
  8404. if ((Address == null)) {
  8405. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8406. }
  8407. else {
  8408. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Address));
  8409. }
  8410. if ((INN == null)) {
  8411. throw new global::System.ArgumentNullException("INN");
  8412. }
  8413. else {
  8414. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(INN));
  8415. }
  8416. if ((KPP == null)) {
  8417. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  8418. }
  8419. else {
  8420. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(KPP));
  8421. }
  8422. if ((DirectorName == null)) {
  8423. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8424. }
  8425. else {
  8426. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(DirectorName));
  8427. }
  8428. if ((Phone == null)) {
  8429. throw new global::System.ArgumentNullException("Phone");
  8430. }
  8431. else {
  8432. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Phone));
  8433. }
  8434. if ((Email == null)) {
  8435. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  8436. }
  8437. else {
  8438. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Email));
  8439. }
  8440. if ((Logo == null)) {
  8441. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  8442. }
  8443. else {
  8444. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Logo));
  8445. }
  8446. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Priority));
  8447. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_ID));
  8448. if ((Original_Title == null)) {
  8449. throw new global::System.ArgumentNullException("Original_Title");
  8450. }
  8451. else {
  8452. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Title));
  8453. }
  8454. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_AgentTypeID));
  8455. if ((Original_Address == null)) {
  8456. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  8457. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  8458. }
  8459. else {
  8460. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  8461. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Address));
  8462. }
  8463. if ((Original_INN == null)) {
  8464. throw new global::System.ArgumentNullException("Original_INN");
  8465. }
  8466. else {
  8467. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_INN));
  8468. }
  8469. if ((Original_KPP == null)) {
  8470. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  8471. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  8472. }
  8473. else {
  8474. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  8475. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_KPP));
  8476. }
  8477. if ((Original_DirectorName == null)) {
  8478. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  8479. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  8480. }
  8481. else {
  8482. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  8483. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_DirectorName));
  8484. }
  8485. if ((Original_Phone == null)) {
  8486. throw new global::System.ArgumentNullException("Original_Phone");
  8487. }
  8488. else {
  8489. this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_Phone));
  8490. }
  8491. if ((Original_Email == null)) {
  8492. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
  8493. this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
  8494. }
  8495. else {
  8496. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
  8497. this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_Email));
  8498. }
  8499. if ((Original_Logo == null)) {
  8500. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
  8501. this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
  8502. }
  8503. else {
  8504. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
  8505. this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_Logo));
  8506. }
  8507. this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(Original_Priority));
  8508. this.Adapter.UpdateCommand.Parameters[26].Value = ((int)(ID));
  8509. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8510. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8511. != global::System.Data.ConnectionState.Open)) {
  8512. this.Adapter.UpdateCommand.Connection.Open();
  8513. }
  8514. try {
  8515. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8516. return returnValue;
  8517. }
  8518. finally {
  8519. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8520. this.Adapter.UpdateCommand.Connection.Close();
  8521. }
  8522. }
  8523. }
  8524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8526. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8527. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8528. public virtual int Update(
  8529. string Title,
  8530. int AgentTypeID,
  8531. string Address,
  8532. string INN,
  8533. string KPP,
  8534. string DirectorName,
  8535. string Phone,
  8536. string Email,
  8537. string Logo,
  8538. int Priority,
  8539. int Original_ID,
  8540. string Original_Title,
  8541. int Original_AgentTypeID,
  8542. string Original_Address,
  8543. string Original_INN,
  8544. string Original_KPP,
  8545. string Original_DirectorName,
  8546. string Original_Phone,
  8547. string Original_Email,
  8548. string Original_Logo,
  8549. int Original_Priority) {
  8550. return this.Update(Title, AgentTypeID, Address, INN, KPP, DirectorName, Phone, Email, Logo, Priority, Original_ID, Original_Title, Original_AgentTypeID, Original_Address, Original_INN, Original_KPP, Original_DirectorName, Original_Phone, Original_Email, Original_Logo, Original_Priority, Original_ID);
  8551. }
  8552. }
  8553. /// <summary>
  8554. ///Represents the connection and commands used to retrieve and save data.
  8555. ///</summary>
  8556. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8557. [global::System.ComponentModel.ToolboxItem(true)]
  8558. [global::System.ComponentModel.DataObjectAttribute(true)]
  8559. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8560. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8561. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8562. public partial class AgentPriorityHistoryTableAdapter : global::System.ComponentModel.Component {
  8563. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8564. private global::System.Data.SqlClient.SqlConnection _connection;
  8565. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8566. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8567. private bool _clearBeforeFill;
  8568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8570. public AgentPriorityHistoryTableAdapter() {
  8571. this.ClearBeforeFill = true;
  8572. }
  8573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8575. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8576. get {
  8577. if ((this._adapter == null)) {
  8578. this.InitAdapter();
  8579. }
  8580. return this._adapter;
  8581. }
  8582. }
  8583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8585. internal global::System.Data.SqlClient.SqlConnection Connection {
  8586. get {
  8587. if ((this._connection == null)) {
  8588. this.InitConnection();
  8589. }
  8590. return this._connection;
  8591. }
  8592. set {
  8593. this._connection = value;
  8594. if ((this.Adapter.InsertCommand != null)) {
  8595. this.Adapter.InsertCommand.Connection = value;
  8596. }
  8597. if ((this.Adapter.DeleteCommand != null)) {
  8598. this.Adapter.DeleteCommand.Connection = value;
  8599. }
  8600. if ((this.Adapter.UpdateCommand != null)) {
  8601. this.Adapter.UpdateCommand.Connection = value;
  8602. }
  8603. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8604. if ((this.CommandCollection[i] != null)) {
  8605. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8606. }
  8607. }
  8608. }
  8609. }
  8610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8612. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8613. get {
  8614. return this._transaction;
  8615. }
  8616. set {
  8617. this._transaction = value;
  8618. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8619. this.CommandCollection[i].Transaction = this._transaction;
  8620. }
  8621. if (((this.Adapter != null)
  8622. && (this.Adapter.DeleteCommand != null))) {
  8623. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8624. }
  8625. if (((this.Adapter != null)
  8626. && (this.Adapter.InsertCommand != null))) {
  8627. this.Adapter.InsertCommand.Transaction = this._transaction;
  8628. }
  8629. if (((this.Adapter != null)
  8630. && (this.Adapter.UpdateCommand != null))) {
  8631. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8632. }
  8633. }
  8634. }
  8635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8637. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8638. get {
  8639. if ((this._commandCollection == null)) {
  8640. this.InitCommandCollection();
  8641. }
  8642. return this._commandCollection;
  8643. }
  8644. }
  8645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8647. public bool ClearBeforeFill {
  8648. get {
  8649. return this._clearBeforeFill;
  8650. }
  8651. set {
  8652. this._clearBeforeFill = value;
  8653. }
  8654. }
  8655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8657. private void InitAdapter() {
  8658. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8659. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8660. tableMapping.SourceTable = "Table";
  8661. tableMapping.DataSetTable = "AgentPriorityHistory";
  8662. tableMapping.ColumnMappings.Add("ID", "ID");
  8663. tableMapping.ColumnMappings.Add("AgentID", "AgentID");
  8664. tableMapping.ColumnMappings.Add("ChangeDate", "ChangeDate");
  8665. tableMapping.ColumnMappings.Add("PriorityValue", "PriorityValue");
  8666. this._adapter.TableMappings.Add(tableMapping);
  8667. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8668. this._adapter.DeleteCommand.Connection = this.Connection;
  8669. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AgentPriorityHistory] WHERE (([ID] = @Original_ID) AND ([Agent" +
  8670. "ID] = @Original_AgentID) AND ([ChangeDate] = @Original_ChangeDate) AND ([Priorit" +
  8671. "yValue] = @Original_PriorityValue))";
  8672. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8673. 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, "", "", ""));
  8674. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AgentID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AgentID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8675. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ChangeDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ChangeDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8676. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PriorityValue", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PriorityValue", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8677. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8678. this._adapter.InsertCommand.Connection = this.Connection;
  8679. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AgentPriorityHistory] ([AgentID], [ChangeDate], [PriorityValue" +
  8680. "]) VALUES (@AgentID, @ChangeDate, @PriorityValue);\r\nSELECT ID, AgentID, ChangeDa" +
  8681. "te, PriorityValue FROM AgentPriorityHistory WHERE (ID = SCOPE_IDENTITY())";
  8682. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8683. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AgentID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AgentID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8684. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ChangeDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ChangeDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8685. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PriorityValue", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PriorityValue", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8686. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8687. this._adapter.UpdateCommand.Connection = this.Connection;
  8688. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AgentPriorityHistory] SET [AgentID] = @AgentID, [ChangeDate] = @ChangeDate, [PriorityValue] = @PriorityValue WHERE (([ID] = @Original_ID) AND ([AgentID] = @Original_AgentID) AND ([ChangeDate] = @Original_ChangeDate) AND ([PriorityValue] = @Original_PriorityValue));
  8689. SELECT ID, AgentID, ChangeDate, PriorityValue FROM AgentPriorityHistory WHERE (ID = @ID)";
  8690. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8691. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AgentID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AgentID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8692. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ChangeDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ChangeDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8693. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PriorityValue", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PriorityValue", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8694. 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, "", "", ""));
  8695. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AgentID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AgentID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8696. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ChangeDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ChangeDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8697. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PriorityValue", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PriorityValue", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8698. 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, "", "", ""));
  8699. }
  8700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8702. private void InitConnection() {
  8703. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8704. this._connection.ConnectionString = global::TestWSR4.Properties.Settings.Default.TestWSR4ConnectionString;
  8705. }
  8706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8708. private void InitCommandCollection() {
  8709. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8710. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8711. this._commandCollection[0].Connection = this.Connection;
  8712. this._commandCollection[0].CommandText = "SELECT ID, AgentID, ChangeDate, PriorityValue FROM dbo.AgentPriorityHistory";
  8713. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8714. }
  8715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8717. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8718. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8719. public virtual int Fill(TestWSR4DataSet.AgentPriorityHistoryDataTable dataTable) {
  8720. this.Adapter.SelectCommand = this.CommandCollection[0];
  8721. if ((this.ClearBeforeFill == true)) {
  8722. dataTable.Clear();
  8723. }
  8724. int returnValue = this.Adapter.Fill(dataTable);
  8725. return returnValue;
  8726. }
  8727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8729. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8730. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8731. public virtual TestWSR4DataSet.AgentPriorityHistoryDataTable GetData() {
  8732. this.Adapter.SelectCommand = this.CommandCollection[0];
  8733. TestWSR4DataSet.AgentPriorityHistoryDataTable dataTable = new TestWSR4DataSet.AgentPriorityHistoryDataTable();
  8734. this.Adapter.Fill(dataTable);
  8735. return dataTable;
  8736. }
  8737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8739. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8740. public virtual int Update(TestWSR4DataSet.AgentPriorityHistoryDataTable dataTable) {
  8741. return this.Adapter.Update(dataTable);
  8742. }
  8743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8745. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8746. public virtual int Update(TestWSR4DataSet dataSet) {
  8747. return this.Adapter.Update(dataSet, "AgentPriorityHistory");
  8748. }
  8749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8751. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8752. public virtual int Update(global::System.Data.DataRow dataRow) {
  8753. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8754. dataRow});
  8755. }
  8756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8758. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8759. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8760. return this.Adapter.Update(dataRows);
  8761. }
  8762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8764. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8765. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8766. public virtual int Delete(int Original_ID, int Original_AgentID, System.DateTime Original_ChangeDate, int Original_PriorityValue) {
  8767. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8768. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_AgentID));
  8769. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_ChangeDate));
  8770. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_PriorityValue));
  8771. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8772. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8773. != global::System.Data.ConnectionState.Open)) {
  8774. this.Adapter.DeleteCommand.Connection.Open();
  8775. }
  8776. try {
  8777. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8778. return returnValue;
  8779. }
  8780. finally {
  8781. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8782. this.Adapter.DeleteCommand.Connection.Close();
  8783. }
  8784. }
  8785. }
  8786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8788. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8789. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8790. public virtual int Insert(int AgentID, System.DateTime ChangeDate, int PriorityValue) {
  8791. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(AgentID));
  8792. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(ChangeDate));
  8793. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(PriorityValue));
  8794. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8795. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8796. != global::System.Data.ConnectionState.Open)) {
  8797. this.Adapter.InsertCommand.Connection.Open();
  8798. }
  8799. try {
  8800. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8801. return returnValue;
  8802. }
  8803. finally {
  8804. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8805. this.Adapter.InsertCommand.Connection.Close();
  8806. }
  8807. }
  8808. }
  8809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8811. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8812. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8813. public virtual int Update(int AgentID, System.DateTime ChangeDate, int PriorityValue, int Original_ID, int Original_AgentID, System.DateTime Original_ChangeDate, int Original_PriorityValue, int ID) {
  8814. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(AgentID));
  8815. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(ChangeDate));
  8816. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(PriorityValue));
  8817. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID));
  8818. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_AgentID));
  8819. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_ChangeDate));
  8820. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_PriorityValue));
  8821. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(ID));
  8822. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8823. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8824. != global::System.Data.ConnectionState.Open)) {
  8825. this.Adapter.UpdateCommand.Connection.Open();
  8826. }
  8827. try {
  8828. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8829. return returnValue;
  8830. }
  8831. finally {
  8832. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8833. this.Adapter.UpdateCommand.Connection.Close();
  8834. }
  8835. }
  8836. }
  8837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8839. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8840. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8841. public virtual int Update(int AgentID, System.DateTime ChangeDate, int PriorityValue, int Original_ID, int Original_AgentID, System.DateTime Original_ChangeDate, int Original_PriorityValue) {
  8842. return this.Update(AgentID, ChangeDate, PriorityValue, Original_ID, Original_AgentID, Original_ChangeDate, Original_PriorityValue, Original_ID);
  8843. }
  8844. }
  8845. /// <summary>
  8846. ///Represents the connection and commands used to retrieve and save data.
  8847. ///</summary>
  8848. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8849. [global::System.ComponentModel.ToolboxItem(true)]
  8850. [global::System.ComponentModel.DataObjectAttribute(true)]
  8851. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8852. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8853. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8854. public partial class AgentTypeTableAdapter : global::System.ComponentModel.Component {
  8855. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8856. private global::System.Data.SqlClient.SqlConnection _connection;
  8857. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8858. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8859. private bool _clearBeforeFill;
  8860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8862. public AgentTypeTableAdapter() {
  8863. this.ClearBeforeFill = true;
  8864. }
  8865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8867. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8868. get {
  8869. if ((this._adapter == null)) {
  8870. this.InitAdapter();
  8871. }
  8872. return this._adapter;
  8873. }
  8874. }
  8875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8877. internal global::System.Data.SqlClient.SqlConnection Connection {
  8878. get {
  8879. if ((this._connection == null)) {
  8880. this.InitConnection();
  8881. }
  8882. return this._connection;
  8883. }
  8884. set {
  8885. this._connection = value;
  8886. if ((this.Adapter.InsertCommand != null)) {
  8887. this.Adapter.InsertCommand.Connection = value;
  8888. }
  8889. if ((this.Adapter.DeleteCommand != null)) {
  8890. this.Adapter.DeleteCommand.Connection = value;
  8891. }
  8892. if ((this.Adapter.UpdateCommand != null)) {
  8893. this.Adapter.UpdateCommand.Connection = value;
  8894. }
  8895. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8896. if ((this.CommandCollection[i] != null)) {
  8897. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8898. }
  8899. }
  8900. }
  8901. }
  8902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8904. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8905. get {
  8906. return this._transaction;
  8907. }
  8908. set {
  8909. this._transaction = value;
  8910. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8911. this.CommandCollection[i].Transaction = this._transaction;
  8912. }
  8913. if (((this.Adapter != null)
  8914. && (this.Adapter.DeleteCommand != null))) {
  8915. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8916. }
  8917. if (((this.Adapter != null)
  8918. && (this.Adapter.InsertCommand != null))) {
  8919. this.Adapter.InsertCommand.Transaction = this._transaction;
  8920. }
  8921. if (((this.Adapter != null)
  8922. && (this.Adapter.UpdateCommand != null))) {
  8923. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8924. }
  8925. }
  8926. }
  8927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8929. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8930. get {
  8931. if ((this._commandCollection == null)) {
  8932. this.InitCommandCollection();
  8933. }
  8934. return this._commandCollection;
  8935. }
  8936. }
  8937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8939. public bool ClearBeforeFill {
  8940. get {
  8941. return this._clearBeforeFill;
  8942. }
  8943. set {
  8944. this._clearBeforeFill = value;
  8945. }
  8946. }
  8947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8949. private void InitAdapter() {
  8950. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8951. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8952. tableMapping.SourceTable = "Table";
  8953. tableMapping.DataSetTable = "AgentType";
  8954. tableMapping.ColumnMappings.Add("ID", "ID");
  8955. tableMapping.ColumnMappings.Add("Title", "Title");
  8956. tableMapping.ColumnMappings.Add("Image", "Image");
  8957. this._adapter.TableMappings.Add(tableMapping);
  8958. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8959. this._adapter.DeleteCommand.Connection = this.Connection;
  8960. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AgentType] WHERE (([ID] = @Original_ID) AND ([Title] = @Origin" +
  8961. "al_Title) AND ((@IsNull_Image = 1 AND [Image] IS NULL) OR ([Image] = @Original_I" +
  8962. "mage)))";
  8963. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8964. 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, "", "", ""));
  8965. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8966. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Image", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8967. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Image", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8968. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8969. this._adapter.InsertCommand.Connection = this.Connection;
  8970. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AgentType] ([Title], [Image]) VALUES (@Title, @Image);\r\nSELECT" +
  8971. " ID, Title, Image FROM AgentType WHERE (ID = SCOPE_IDENTITY())";
  8972. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8973. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8974. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Image", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8975. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8976. this._adapter.UpdateCommand.Connection = this.Connection;
  8977. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AgentType] SET [Title] = @Title, [Image] = @Image WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ((@IsNull_Image = 1 AND [Image] IS NULL) OR ([Image] = @Original_Image)));
  8978. SELECT ID, Title, Image FROM AgentType WHERE (ID = @ID)";
  8979. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8980. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8981. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Image", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8982. 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, "", "", ""));
  8983. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8984. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Image", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8985. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Image", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8986. 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, "", "", ""));
  8987. }
  8988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8990. private void InitConnection() {
  8991. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8992. this._connection.ConnectionString = global::TestWSR4.Properties.Settings.Default.TestWSR4ConnectionString;
  8993. }
  8994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8996. private void InitCommandCollection() {
  8997. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8998. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8999. this._commandCollection[0].Connection = this.Connection;
  9000. this._commandCollection[0].CommandText = "SELECT ID, Title, Image FROM dbo.AgentType";
  9001. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9002. }
  9003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9005. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9006. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9007. public virtual int Fill(TestWSR4DataSet.AgentTypeDataTable dataTable) {
  9008. this.Adapter.SelectCommand = this.CommandCollection[0];
  9009. if ((this.ClearBeforeFill == true)) {
  9010. dataTable.Clear();
  9011. }
  9012. int returnValue = this.Adapter.Fill(dataTable);
  9013. return returnValue;
  9014. }
  9015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9017. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9018. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9019. public virtual TestWSR4DataSet.AgentTypeDataTable GetData() {
  9020. this.Adapter.SelectCommand = this.CommandCollection[0];
  9021. TestWSR4DataSet.AgentTypeDataTable dataTable = new TestWSR4DataSet.AgentTypeDataTable();
  9022. this.Adapter.Fill(dataTable);
  9023. return dataTable;
  9024. }
  9025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9027. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9028. public virtual int Update(TestWSR4DataSet.AgentTypeDataTable dataTable) {
  9029. return this.Adapter.Update(dataTable);
  9030. }
  9031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9033. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9034. public virtual int Update(TestWSR4DataSet dataSet) {
  9035. return this.Adapter.Update(dataSet, "AgentType");
  9036. }
  9037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9039. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9040. public virtual int Update(global::System.Data.DataRow dataRow) {
  9041. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9042. dataRow});
  9043. }
  9044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9046. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9047. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9048. return this.Adapter.Update(dataRows);
  9049. }
  9050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9052. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9053. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9054. public virtual int Delete(int Original_ID, string Original_Title, string Original_Image) {
  9055. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9056. if ((Original_Title == null)) {
  9057. throw new global::System.ArgumentNullException("Original_Title");
  9058. }
  9059. else {
  9060. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  9061. }
  9062. if ((Original_Image == null)) {
  9063. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  9064. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  9065. }
  9066. else {
  9067. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  9068. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Image));
  9069. }
  9070. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9071. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9072. != global::System.Data.ConnectionState.Open)) {
  9073. this.Adapter.DeleteCommand.Connection.Open();
  9074. }
  9075. try {
  9076. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9077. return returnValue;
  9078. }
  9079. finally {
  9080. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9081. this.Adapter.DeleteCommand.Connection.Close();
  9082. }
  9083. }
  9084. }
  9085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9087. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9088. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9089. public virtual int Insert(string Title, string Image) {
  9090. if ((Title == null)) {
  9091. throw new global::System.ArgumentNullException("Title");
  9092. }
  9093. else {
  9094. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  9095. }
  9096. if ((Image == null)) {
  9097. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9098. }
  9099. else {
  9100. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Image));
  9101. }
  9102. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9103. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9104. != global::System.Data.ConnectionState.Open)) {
  9105. this.Adapter.InsertCommand.Connection.Open();
  9106. }
  9107. try {
  9108. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9109. return returnValue;
  9110. }
  9111. finally {
  9112. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9113. this.Adapter.InsertCommand.Connection.Close();
  9114. }
  9115. }
  9116. }
  9117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9119. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9120. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9121. public virtual int Update(string Title, string Image, int Original_ID, string Original_Title, string Original_Image, int ID) {
  9122. if ((Title == null)) {
  9123. throw new global::System.ArgumentNullException("Title");
  9124. }
  9125. else {
  9126. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  9127. }
  9128. if ((Image == null)) {
  9129. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9130. }
  9131. else {
  9132. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Image));
  9133. }
  9134. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  9135. if ((Original_Title == null)) {
  9136. throw new global::System.ArgumentNullException("Original_Title");
  9137. }
  9138. else {
  9139. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  9140. }
  9141. if ((Original_Image == null)) {
  9142. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  9143. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  9144. }
  9145. else {
  9146. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  9147. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Image));
  9148. }
  9149. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ID));
  9150. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9151. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9152. != global::System.Data.ConnectionState.Open)) {
  9153. this.Adapter.UpdateCommand.Connection.Open();
  9154. }
  9155. try {
  9156. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9157. return returnValue;
  9158. }
  9159. finally {
  9160. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9161. this.Adapter.UpdateCommand.Connection.Close();
  9162. }
  9163. }
  9164. }
  9165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9167. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9168. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9169. public virtual int Update(string Title, string Image, int Original_ID, string Original_Title, string Original_Image) {
  9170. return this.Update(Title, Image, Original_ID, Original_Title, Original_Image, Original_ID);
  9171. }
  9172. }
  9173. /// <summary>
  9174. ///Represents the connection and commands used to retrieve and save data.
  9175. ///</summary>
  9176. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9177. [global::System.ComponentModel.ToolboxItem(true)]
  9178. [global::System.ComponentModel.DataObjectAttribute(true)]
  9179. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9180. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9181. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9182. public partial class MaterialTableAdapter : global::System.ComponentModel.Component {
  9183. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9184. private global::System.Data.SqlClient.SqlConnection _connection;
  9185. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9186. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9187. private bool _clearBeforeFill;
  9188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9190. public MaterialTableAdapter() {
  9191. this.ClearBeforeFill = true;
  9192. }
  9193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9195. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9196. get {
  9197. if ((this._adapter == null)) {
  9198. this.InitAdapter();
  9199. }
  9200. return this._adapter;
  9201. }
  9202. }
  9203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9205. internal global::System.Data.SqlClient.SqlConnection Connection {
  9206. get {
  9207. if ((this._connection == null)) {
  9208. this.InitConnection();
  9209. }
  9210. return this._connection;
  9211. }
  9212. set {
  9213. this._connection = value;
  9214. if ((this.Adapter.InsertCommand != null)) {
  9215. this.Adapter.InsertCommand.Connection = value;
  9216. }
  9217. if ((this.Adapter.DeleteCommand != null)) {
  9218. this.Adapter.DeleteCommand.Connection = value;
  9219. }
  9220. if ((this.Adapter.UpdateCommand != null)) {
  9221. this.Adapter.UpdateCommand.Connection = value;
  9222. }
  9223. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9224. if ((this.CommandCollection[i] != null)) {
  9225. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9226. }
  9227. }
  9228. }
  9229. }
  9230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9232. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9233. get {
  9234. return this._transaction;
  9235. }
  9236. set {
  9237. this._transaction = value;
  9238. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9239. this.CommandCollection[i].Transaction = this._transaction;
  9240. }
  9241. if (((this.Adapter != null)
  9242. && (this.Adapter.DeleteCommand != null))) {
  9243. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9244. }
  9245. if (((this.Adapter != null)
  9246. && (this.Adapter.InsertCommand != null))) {
  9247. this.Adapter.InsertCommand.Transaction = this._transaction;
  9248. }
  9249. if (((this.Adapter != null)
  9250. && (this.Adapter.UpdateCommand != null))) {
  9251. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9252. }
  9253. }
  9254. }
  9255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9257. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9258. get {
  9259. if ((this._commandCollection == null)) {
  9260. this.InitCommandCollection();
  9261. }
  9262. return this._commandCollection;
  9263. }
  9264. }
  9265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9267. public bool ClearBeforeFill {
  9268. get {
  9269. return this._clearBeforeFill;
  9270. }
  9271. set {
  9272. this._clearBeforeFill = value;
  9273. }
  9274. }
  9275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9277. private void InitAdapter() {
  9278. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9279. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9280. tableMapping.SourceTable = "Table";
  9281. tableMapping.DataSetTable = "Material";
  9282. tableMapping.ColumnMappings.Add("ID", "ID");
  9283. tableMapping.ColumnMappings.Add("Title", "Title");
  9284. tableMapping.ColumnMappings.Add("CountInPack", "CountInPack");
  9285. tableMapping.ColumnMappings.Add("Unit", "Unit");
  9286. tableMapping.ColumnMappings.Add("CountInStock", "CountInStock");
  9287. tableMapping.ColumnMappings.Add("MinCount", "MinCount");
  9288. tableMapping.ColumnMappings.Add("Description", "Description");
  9289. tableMapping.ColumnMappings.Add("Cost", "Cost");
  9290. tableMapping.ColumnMappings.Add("Image", "Image");
  9291. tableMapping.ColumnMappings.Add("MaterialTypeID", "MaterialTypeID");
  9292. this._adapter.TableMappings.Add(tableMapping);
  9293. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9294. this._adapter.DeleteCommand.Connection = this.Connection;
  9295. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Material] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([CountInPack] = @Original_CountInPack) AND ([Unit] = @Original_Unit) AND ((@IsNull_CountInStock = 1 AND [CountInStock] IS NULL) OR ([CountInStock] = @Original_CountInStock)) AND ([MinCount] = @Original_MinCount) AND ([Cost] = @Original_Cost) AND ((@IsNull_Image = 1 AND [Image] IS NULL) OR ([Image] = @Original_Image)) AND ([MaterialTypeID] = @Original_MaterialTypeID))";
  9296. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9297. 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, "", "", ""));
  9298. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9299. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountInPack", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountInPack", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9300. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Unit", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Unit", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9301. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountInStock", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountInStock", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9302. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountInStock", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountInStock", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9303. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MinCount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9304. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9305. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Image", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9306. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Image", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9307. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MaterialTypeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterialTypeID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9308. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9309. this._adapter.InsertCommand.Connection = this.Connection;
  9310. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Material] ([Title], [CountInPack], [Unit], [CountInStock], [MinCount], [Description], [Cost], [Image], [MaterialTypeID]) VALUES (@Title, @CountInPack, @Unit, @CountInStock, @MinCount, @Description, @Cost, @Image, @MaterialTypeID);
  9311. SELECT ID, Title, CountInPack, Unit, CountInStock, MinCount, Description, Cost, Image, MaterialTypeID FROM Material WHERE (ID = SCOPE_IDENTITY())";
  9312. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9313. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9314. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountInPack", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountInPack", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9315. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Unit", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Unit", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9316. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountInStock", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountInStock", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9317. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MinCount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9318. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9319. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9320. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Image", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9321. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaterialTypeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterialTypeID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9322. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9323. this._adapter.UpdateCommand.Connection = this.Connection;
  9324. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Material] SET [Title] = @Title, [CountInPack] = @CountInPack, [Unit] = @Unit, [CountInStock] = @CountInStock, [MinCount] = @MinCount, [Description] = @Description, [Cost] = @Cost, [Image] = @Image, [MaterialTypeID] = @MaterialTypeID WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([CountInPack] = @Original_CountInPack) AND ([Unit] = @Original_Unit) AND ((@IsNull_CountInStock = 1 AND [CountInStock] IS NULL) OR ([CountInStock] = @Original_CountInStock)) AND ([MinCount] = @Original_MinCount) AND ([Cost] = @Original_Cost) AND ((@IsNull_Image = 1 AND [Image] IS NULL) OR ([Image] = @Original_Image)) AND ([MaterialTypeID] = @Original_MaterialTypeID));
  9325. SELECT ID, Title, CountInPack, Unit, CountInStock, MinCount, Description, Cost, Image, MaterialTypeID FROM Material WHERE (ID = @ID)";
  9326. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9327. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9328. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountInPack", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountInPack", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9329. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Unit", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Unit", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9330. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountInStock", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountInStock", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9331. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MinCount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9332. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9333. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9334. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Image", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9335. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaterialTypeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterialTypeID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9336. 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, "", "", ""));
  9337. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9338. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountInPack", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountInPack", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9339. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Unit", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Unit", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9340. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountInStock", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountInStock", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9341. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountInStock", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountInStock", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9342. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MinCount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9343. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9344. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Image", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9345. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Image", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9346. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MaterialTypeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterialTypeID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9347. 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, "", "", ""));
  9348. }
  9349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9351. private void InitConnection() {
  9352. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9353. this._connection.ConnectionString = global::TestWSR4.Properties.Settings.Default.TestWSR4ConnectionString;
  9354. }
  9355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9357. private void InitCommandCollection() {
  9358. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9359. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9360. this._commandCollection[0].Connection = this.Connection;
  9361. this._commandCollection[0].CommandText = "SELECT ID, Title, CountInPack, Unit, CountInStock, MinCount, Description, Cost, I" +
  9362. "mage, MaterialTypeID FROM dbo.Material";
  9363. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9364. }
  9365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9367. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9368. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9369. public virtual int Fill(TestWSR4DataSet.MaterialDataTable dataTable) {
  9370. this.Adapter.SelectCommand = this.CommandCollection[0];
  9371. if ((this.ClearBeforeFill == true)) {
  9372. dataTable.Clear();
  9373. }
  9374. int returnValue = this.Adapter.Fill(dataTable);
  9375. return returnValue;
  9376. }
  9377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9379. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9380. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9381. public virtual TestWSR4DataSet.MaterialDataTable GetData() {
  9382. this.Adapter.SelectCommand = this.CommandCollection[0];
  9383. TestWSR4DataSet.MaterialDataTable dataTable = new TestWSR4DataSet.MaterialDataTable();
  9384. this.Adapter.Fill(dataTable);
  9385. return dataTable;
  9386. }
  9387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9389. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9390. public virtual int Update(TestWSR4DataSet.MaterialDataTable dataTable) {
  9391. return this.Adapter.Update(dataTable);
  9392. }
  9393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9395. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9396. public virtual int Update(TestWSR4DataSet dataSet) {
  9397. return this.Adapter.Update(dataSet, "Material");
  9398. }
  9399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9401. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9402. public virtual int Update(global::System.Data.DataRow dataRow) {
  9403. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9404. dataRow});
  9405. }
  9406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9408. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9409. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9410. return this.Adapter.Update(dataRows);
  9411. }
  9412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9414. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9415. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9416. public virtual int Delete(int Original_ID, string Original_Title, int Original_CountInPack, string Original_Unit, global::System.Nullable<double> Original_CountInStock, double Original_MinCount, decimal Original_Cost, string Original_Image, int Original_MaterialTypeID) {
  9417. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9418. if ((Original_Title == null)) {
  9419. throw new global::System.ArgumentNullException("Original_Title");
  9420. }
  9421. else {
  9422. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  9423. }
  9424. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_CountInPack));
  9425. if ((Original_Unit == null)) {
  9426. throw new global::System.ArgumentNullException("Original_Unit");
  9427. }
  9428. else {
  9429. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Unit));
  9430. }
  9431. if ((Original_CountInStock.HasValue == true)) {
  9432. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  9433. this.Adapter.DeleteCommand.Parameters[5].Value = ((double)(Original_CountInStock.Value));
  9434. }
  9435. else {
  9436. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  9437. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  9438. }
  9439. this.Adapter.DeleteCommand.Parameters[6].Value = ((double)(Original_MinCount));
  9440. this.Adapter.DeleteCommand.Parameters[7].Value = ((decimal)(Original_Cost));
  9441. if ((Original_Image == null)) {
  9442. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
  9443. this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
  9444. }
  9445. else {
  9446. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
  9447. this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_Image));
  9448. }
  9449. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_MaterialTypeID));
  9450. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9451. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9452. != global::System.Data.ConnectionState.Open)) {
  9453. this.Adapter.DeleteCommand.Connection.Open();
  9454. }
  9455. try {
  9456. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9457. return returnValue;
  9458. }
  9459. finally {
  9460. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9461. this.Adapter.DeleteCommand.Connection.Close();
  9462. }
  9463. }
  9464. }
  9465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9467. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9468. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9469. public virtual int Insert(string Title, int CountInPack, string Unit, global::System.Nullable<double> CountInStock, double MinCount, string Description, decimal Cost, string Image, int MaterialTypeID) {
  9470. if ((Title == null)) {
  9471. throw new global::System.ArgumentNullException("Title");
  9472. }
  9473. else {
  9474. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  9475. }
  9476. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(CountInPack));
  9477. if ((Unit == null)) {
  9478. throw new global::System.ArgumentNullException("Unit");
  9479. }
  9480. else {
  9481. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Unit));
  9482. }
  9483. if ((CountInStock.HasValue == true)) {
  9484. this.Adapter.InsertCommand.Parameters[3].Value = ((double)(CountInStock.Value));
  9485. }
  9486. else {
  9487. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9488. }
  9489. this.Adapter.InsertCommand.Parameters[4].Value = ((double)(MinCount));
  9490. if ((Description == null)) {
  9491. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  9492. }
  9493. else {
  9494. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Description));
  9495. }
  9496. this.Adapter.InsertCommand.Parameters[6].Value = ((decimal)(Cost));
  9497. if ((Image == null)) {
  9498. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  9499. }
  9500. else {
  9501. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Image));
  9502. }
  9503. this.Adapter.InsertCommand.Parameters[8].Value = ((int)(MaterialTypeID));
  9504. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9505. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9506. != global::System.Data.ConnectionState.Open)) {
  9507. this.Adapter.InsertCommand.Connection.Open();
  9508. }
  9509. try {
  9510. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9511. return returnValue;
  9512. }
  9513. finally {
  9514. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9515. this.Adapter.InsertCommand.Connection.Close();
  9516. }
  9517. }
  9518. }
  9519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9521. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9522. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9523. public virtual int Update(
  9524. string Title,
  9525. int CountInPack,
  9526. string Unit,
  9527. global::System.Nullable<double> CountInStock,
  9528. double MinCount,
  9529. string Description,
  9530. decimal Cost,
  9531. string Image,
  9532. int MaterialTypeID,
  9533. int Original_ID,
  9534. string Original_Title,
  9535. int Original_CountInPack,
  9536. string Original_Unit,
  9537. global::System.Nullable<double> Original_CountInStock,
  9538. double Original_MinCount,
  9539. decimal Original_Cost,
  9540. string Original_Image,
  9541. int Original_MaterialTypeID,
  9542. int ID) {
  9543. if ((Title == null)) {
  9544. throw new global::System.ArgumentNullException("Title");
  9545. }
  9546. else {
  9547. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  9548. }
  9549. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(CountInPack));
  9550. if ((Unit == null)) {
  9551. throw new global::System.ArgumentNullException("Unit");
  9552. }
  9553. else {
  9554. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Unit));
  9555. }
  9556. if ((CountInStock.HasValue == true)) {
  9557. this.Adapter.UpdateCommand.Parameters[3].Value = ((double)(CountInStock.Value));
  9558. }
  9559. else {
  9560. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9561. }
  9562. this.Adapter.UpdateCommand.Parameters[4].Value = ((double)(MinCount));
  9563. if ((Description == null)) {
  9564. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  9565. }
  9566. else {
  9567. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Description));
  9568. }
  9569. this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(Cost));
  9570. if ((Image == null)) {
  9571. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  9572. }
  9573. else {
  9574. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Image));
  9575. }
  9576. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(MaterialTypeID));
  9577. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ID));
  9578. if ((Original_Title == null)) {
  9579. throw new global::System.ArgumentNullException("Original_Title");
  9580. }
  9581. else {
  9582. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Title));
  9583. }
  9584. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_CountInPack));
  9585. if ((Original_Unit == null)) {
  9586. throw new global::System.ArgumentNullException("Original_Unit");
  9587. }
  9588. else {
  9589. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Unit));
  9590. }
  9591. if ((Original_CountInStock.HasValue == true)) {
  9592. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  9593. this.Adapter.UpdateCommand.Parameters[14].Value = ((double)(Original_CountInStock.Value));
  9594. }
  9595. else {
  9596. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  9597. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  9598. }
  9599. this.Adapter.UpdateCommand.Parameters[15].Value = ((double)(Original_MinCount));
  9600. this.Adapter.UpdateCommand.Parameters[16].Value = ((decimal)(Original_Cost));
  9601. if ((Original_Image == null)) {
  9602. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  9603. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  9604. }
  9605. else {
  9606. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  9607. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Image));
  9608. }
  9609. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_MaterialTypeID));
  9610. this.Adapter.UpdateCommand.Parameters[20].Value = ((int)(ID));
  9611. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9612. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9613. != global::System.Data.ConnectionState.Open)) {
  9614. this.Adapter.UpdateCommand.Connection.Open();
  9615. }
  9616. try {
  9617. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9618. return returnValue;
  9619. }
  9620. finally {
  9621. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9622. this.Adapter.UpdateCommand.Connection.Close();
  9623. }
  9624. }
  9625. }
  9626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9628. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9629. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9630. public virtual int Update(
  9631. string Title,
  9632. int CountInPack,
  9633. string Unit,
  9634. global::System.Nullable<double> CountInStock,
  9635. double MinCount,
  9636. string Description,
  9637. decimal Cost,
  9638. string Image,
  9639. int MaterialTypeID,
  9640. int Original_ID,
  9641. string Original_Title,
  9642. int Original_CountInPack,
  9643. string Original_Unit,
  9644. global::System.Nullable<double> Original_CountInStock,
  9645. double Original_MinCount,
  9646. decimal Original_Cost,
  9647. string Original_Image,
  9648. int Original_MaterialTypeID) {
  9649. return this.Update(Title, CountInPack, Unit, CountInStock, MinCount, Description, Cost, Image, MaterialTypeID, Original_ID, Original_Title, Original_CountInPack, Original_Unit, Original_CountInStock, Original_MinCount, Original_Cost, Original_Image, Original_MaterialTypeID, Original_ID);
  9650. }
  9651. }
  9652. /// <summary>
  9653. ///Represents the connection and commands used to retrieve and save data.
  9654. ///</summary>
  9655. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9656. [global::System.ComponentModel.ToolboxItem(true)]
  9657. [global::System.ComponentModel.DataObjectAttribute(true)]
  9658. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9659. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9660. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9661. public partial class MaterialCountHistoryTableAdapter : global::System.ComponentModel.Component {
  9662. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9663. private global::System.Data.SqlClient.SqlConnection _connection;
  9664. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9665. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9666. private bool _clearBeforeFill;
  9667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9669. public MaterialCountHistoryTableAdapter() {
  9670. this.ClearBeforeFill = true;
  9671. }
  9672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9674. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9675. get {
  9676. if ((this._adapter == null)) {
  9677. this.InitAdapter();
  9678. }
  9679. return this._adapter;
  9680. }
  9681. }
  9682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9684. internal global::System.Data.SqlClient.SqlConnection Connection {
  9685. get {
  9686. if ((this._connection == null)) {
  9687. this.InitConnection();
  9688. }
  9689. return this._connection;
  9690. }
  9691. set {
  9692. this._connection = value;
  9693. if ((this.Adapter.InsertCommand != null)) {
  9694. this.Adapter.InsertCommand.Connection = value;
  9695. }
  9696. if ((this.Adapter.DeleteCommand != null)) {
  9697. this.Adapter.DeleteCommand.Connection = value;
  9698. }
  9699. if ((this.Adapter.UpdateCommand != null)) {
  9700. this.Adapter.UpdateCommand.Connection = value;
  9701. }
  9702. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9703. if ((this.CommandCollection[i] != null)) {
  9704. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9705. }
  9706. }
  9707. }
  9708. }
  9709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9711. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9712. get {
  9713. return this._transaction;
  9714. }
  9715. set {
  9716. this._transaction = value;
  9717. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9718. this.CommandCollection[i].Transaction = this._transaction;
  9719. }
  9720. if (((this.Adapter != null)
  9721. && (this.Adapter.DeleteCommand != null))) {
  9722. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9723. }
  9724. if (((this.Adapter != null)
  9725. && (this.Adapter.InsertCommand != null))) {
  9726. this.Adapter.InsertCommand.Transaction = this._transaction;
  9727. }
  9728. if (((this.Adapter != null)
  9729. && (this.Adapter.UpdateCommand != null))) {
  9730. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9731. }
  9732. }
  9733. }
  9734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9736. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9737. get {
  9738. if ((this._commandCollection == null)) {
  9739. this.InitCommandCollection();
  9740. }
  9741. return this._commandCollection;
  9742. }
  9743. }
  9744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9746. public bool ClearBeforeFill {
  9747. get {
  9748. return this._clearBeforeFill;
  9749. }
  9750. set {
  9751. this._clearBeforeFill = value;
  9752. }
  9753. }
  9754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9756. private void InitAdapter() {
  9757. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9758. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9759. tableMapping.SourceTable = "Table";
  9760. tableMapping.DataSetTable = "MaterialCountHistory";
  9761. tableMapping.ColumnMappings.Add("ID", "ID");
  9762. tableMapping.ColumnMappings.Add("MaterialID", "MaterialID");
  9763. tableMapping.ColumnMappings.Add("ChangeDate", "ChangeDate");
  9764. tableMapping.ColumnMappings.Add("CountValue", "CountValue");
  9765. this._adapter.TableMappings.Add(tableMapping);
  9766. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9767. this._adapter.DeleteCommand.Connection = this.Connection;
  9768. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[MaterialCountHistory] WHERE (([ID] = @Original_ID) AND ([Mater" +
  9769. "ialID] = @Original_MaterialID) AND ([ChangeDate] = @Original_ChangeDate) AND ([C" +
  9770. "ountValue] = @Original_CountValue))";
  9771. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9772. 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, "", "", ""));
  9773. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MaterialID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterialID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9774. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ChangeDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ChangeDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9775. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountValue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountValue", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9776. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9777. this._adapter.InsertCommand.Connection = this.Connection;
  9778. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[MaterialCountHistory] ([MaterialID], [ChangeDate], [CountValue" +
  9779. "]) VALUES (@MaterialID, @ChangeDate, @CountValue);\r\nSELECT ID, MaterialID, Chang" +
  9780. "eDate, CountValue FROM MaterialCountHistory WHERE (ID = SCOPE_IDENTITY())";
  9781. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9782. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaterialID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterialID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9783. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ChangeDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ChangeDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9784. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountValue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountValue", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9785. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9786. this._adapter.UpdateCommand.Connection = this.Connection;
  9787. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[MaterialCountHistory] SET [MaterialID] = @MaterialID, [ChangeDate] = @ChangeDate, [CountValue] = @CountValue WHERE (([ID] = @Original_ID) AND ([MaterialID] = @Original_MaterialID) AND ([ChangeDate] = @Original_ChangeDate) AND ([CountValue] = @Original_CountValue));
  9788. SELECT ID, MaterialID, ChangeDate, CountValue FROM MaterialCountHistory WHERE (ID = @ID)";
  9789. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9790. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaterialID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterialID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9791. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ChangeDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ChangeDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9792. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountValue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountValue", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9793. 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, "", "", ""));
  9794. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MaterialID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterialID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9795. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ChangeDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ChangeDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9796. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountValue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountValue", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9797. 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, "", "", ""));
  9798. }
  9799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9801. private void InitConnection() {
  9802. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9803. this._connection.ConnectionString = global::TestWSR4.Properties.Settings.Default.TestWSR4ConnectionString;
  9804. }
  9805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9807. private void InitCommandCollection() {
  9808. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9809. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9810. this._commandCollection[0].Connection = this.Connection;
  9811. this._commandCollection[0].CommandText = "SELECT ID, MaterialID, ChangeDate, CountValue FROM dbo.MaterialCountHistory";
  9812. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9813. }
  9814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9816. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9817. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9818. public virtual int Fill(TestWSR4DataSet.MaterialCountHistoryDataTable dataTable) {
  9819. this.Adapter.SelectCommand = this.CommandCollection[0];
  9820. if ((this.ClearBeforeFill == true)) {
  9821. dataTable.Clear();
  9822. }
  9823. int returnValue = this.Adapter.Fill(dataTable);
  9824. return returnValue;
  9825. }
  9826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9828. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9829. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9830. public virtual TestWSR4DataSet.MaterialCountHistoryDataTable GetData() {
  9831. this.Adapter.SelectCommand = this.CommandCollection[0];
  9832. TestWSR4DataSet.MaterialCountHistoryDataTable dataTable = new TestWSR4DataSet.MaterialCountHistoryDataTable();
  9833. this.Adapter.Fill(dataTable);
  9834. return dataTable;
  9835. }
  9836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9838. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9839. public virtual int Update(TestWSR4DataSet.MaterialCountHistoryDataTable dataTable) {
  9840. return this.Adapter.Update(dataTable);
  9841. }
  9842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9844. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9845. public virtual int Update(TestWSR4DataSet dataSet) {
  9846. return this.Adapter.Update(dataSet, "MaterialCountHistory");
  9847. }
  9848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9850. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9851. public virtual int Update(global::System.Data.DataRow dataRow) {
  9852. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9853. dataRow});
  9854. }
  9855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9857. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9858. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9859. return this.Adapter.Update(dataRows);
  9860. }
  9861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9863. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9864. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9865. public virtual int Delete(int Original_ID, int Original_MaterialID, System.DateTime Original_ChangeDate, double Original_CountValue) {
  9866. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9867. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_MaterialID));
  9868. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_ChangeDate));
  9869. this.Adapter.DeleteCommand.Parameters[3].Value = ((double)(Original_CountValue));
  9870. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9871. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9872. != global::System.Data.ConnectionState.Open)) {
  9873. this.Adapter.DeleteCommand.Connection.Open();
  9874. }
  9875. try {
  9876. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9877. return returnValue;
  9878. }
  9879. finally {
  9880. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9881. this.Adapter.DeleteCommand.Connection.Close();
  9882. }
  9883. }
  9884. }
  9885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9887. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9888. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9889. public virtual int Insert(int MaterialID, System.DateTime ChangeDate, double CountValue) {
  9890. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(MaterialID));
  9891. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(ChangeDate));
  9892. this.Adapter.InsertCommand.Parameters[2].Value = ((double)(CountValue));
  9893. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9894. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9895. != global::System.Data.ConnectionState.Open)) {
  9896. this.Adapter.InsertCommand.Connection.Open();
  9897. }
  9898. try {
  9899. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9900. return returnValue;
  9901. }
  9902. finally {
  9903. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9904. this.Adapter.InsertCommand.Connection.Close();
  9905. }
  9906. }
  9907. }
  9908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9910. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9911. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9912. public virtual int Update(int MaterialID, System.DateTime ChangeDate, double CountValue, int Original_ID, int Original_MaterialID, System.DateTime Original_ChangeDate, double Original_CountValue, int ID) {
  9913. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(MaterialID));
  9914. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(ChangeDate));
  9915. this.Adapter.UpdateCommand.Parameters[2].Value = ((double)(CountValue));
  9916. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID));
  9917. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_MaterialID));
  9918. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_ChangeDate));
  9919. this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(Original_CountValue));
  9920. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(ID));
  9921. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9922. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9923. != global::System.Data.ConnectionState.Open)) {
  9924. this.Adapter.UpdateCommand.Connection.Open();
  9925. }
  9926. try {
  9927. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9928. return returnValue;
  9929. }
  9930. finally {
  9931. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9932. this.Adapter.UpdateCommand.Connection.Close();
  9933. }
  9934. }
  9935. }
  9936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9938. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9939. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9940. public virtual int Update(int MaterialID, System.DateTime ChangeDate, double CountValue, int Original_ID, int Original_MaterialID, System.DateTime Original_ChangeDate, double Original_CountValue) {
  9941. return this.Update(MaterialID, ChangeDate, CountValue, Original_ID, Original_MaterialID, Original_ChangeDate, Original_CountValue, Original_ID);
  9942. }
  9943. }
  9944. /// <summary>
  9945. ///Represents the connection and commands used to retrieve and save data.
  9946. ///</summary>
  9947. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9948. [global::System.ComponentModel.ToolboxItem(true)]
  9949. [global::System.ComponentModel.DataObjectAttribute(true)]
  9950. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9951. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9952. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9953. public partial class MaterialSupplierTableAdapter : global::System.ComponentModel.Component {
  9954. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9955. private global::System.Data.SqlClient.SqlConnection _connection;
  9956. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9957. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9958. private bool _clearBeforeFill;
  9959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9961. public MaterialSupplierTableAdapter() {
  9962. this.ClearBeforeFill = true;
  9963. }
  9964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9966. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9967. get {
  9968. if ((this._adapter == null)) {
  9969. this.InitAdapter();
  9970. }
  9971. return this._adapter;
  9972. }
  9973. }
  9974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9976. internal global::System.Data.SqlClient.SqlConnection Connection {
  9977. get {
  9978. if ((this._connection == null)) {
  9979. this.InitConnection();
  9980. }
  9981. return this._connection;
  9982. }
  9983. set {
  9984. this._connection = value;
  9985. if ((this.Adapter.InsertCommand != null)) {
  9986. this.Adapter.InsertCommand.Connection = value;
  9987. }
  9988. if ((this.Adapter.DeleteCommand != null)) {
  9989. this.Adapter.DeleteCommand.Connection = value;
  9990. }
  9991. if ((this.Adapter.UpdateCommand != null)) {
  9992. this.Adapter.UpdateCommand.Connection = value;
  9993. }
  9994. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9995. if ((this.CommandCollection[i] != null)) {
  9996. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9997. }
  9998. }
  9999. }
  10000. }
  10001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10003. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10004. get {
  10005. return this._transaction;
  10006. }
  10007. set {
  10008. this._transaction = value;
  10009. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10010. this.CommandCollection[i].Transaction = this._transaction;
  10011. }
  10012. if (((this.Adapter != null)
  10013. && (this.Adapter.DeleteCommand != null))) {
  10014. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10015. }
  10016. if (((this.Adapter != null)
  10017. && (this.Adapter.InsertCommand != null))) {
  10018. this.Adapter.InsertCommand.Transaction = this._transaction;
  10019. }
  10020. if (((this.Adapter != null)
  10021. && (this.Adapter.UpdateCommand != null))) {
  10022. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10023. }
  10024. }
  10025. }
  10026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10028. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10029. get {
  10030. if ((this._commandCollection == null)) {
  10031. this.InitCommandCollection();
  10032. }
  10033. return this._commandCollection;
  10034. }
  10035. }
  10036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10038. public bool ClearBeforeFill {
  10039. get {
  10040. return this._clearBeforeFill;
  10041. }
  10042. set {
  10043. this._clearBeforeFill = value;
  10044. }
  10045. }
  10046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10048. private void InitAdapter() {
  10049. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10050. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10051. tableMapping.SourceTable = "Table";
  10052. tableMapping.DataSetTable = "MaterialSupplier";
  10053. tableMapping.ColumnMappings.Add("MaterialID", "MaterialID");
  10054. tableMapping.ColumnMappings.Add("SupplierID", "SupplierID");
  10055. this._adapter.TableMappings.Add(tableMapping);
  10056. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10057. this._adapter.DeleteCommand.Connection = this.Connection;
  10058. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[MaterialSupplier] WHERE (([MaterialID] = @Original_MaterialID)" +
  10059. " AND ([SupplierID] = @Original_SupplierID))";
  10060. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10061. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MaterialID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterialID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10062. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SupplierID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10063. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10064. this._adapter.InsertCommand.Connection = this.Connection;
  10065. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[MaterialSupplier] ([MaterialID], [SupplierID]) VALUES (@Materi" +
  10066. "alID, @SupplierID);\r\nSELECT MaterialID, SupplierID FROM MaterialSupplier WHERE (" +
  10067. "MaterialID = @MaterialID) AND (SupplierID = @SupplierID)";
  10068. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10069. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaterialID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterialID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10070. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SupplierID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10071. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10072. this._adapter.UpdateCommand.Connection = this.Connection;
  10073. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[MaterialSupplier] SET [MaterialID] = @MaterialID, [SupplierID] = @SupplierID WHERE (([MaterialID] = @Original_MaterialID) AND ([SupplierID] = @Original_SupplierID));
  10074. SELECT MaterialID, SupplierID FROM MaterialSupplier WHERE (MaterialID = @MaterialID) AND (SupplierID = @SupplierID)";
  10075. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10076. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaterialID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterialID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10077. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SupplierID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10078. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MaterialID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterialID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10079. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SupplierID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10080. }
  10081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10083. private void InitConnection() {
  10084. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10085. this._connection.ConnectionString = global::TestWSR4.Properties.Settings.Default.TestWSR4ConnectionString;
  10086. }
  10087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10089. private void InitCommandCollection() {
  10090. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10091. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10092. this._commandCollection[0].Connection = this.Connection;
  10093. this._commandCollection[0].CommandText = "SELECT MaterialID, SupplierID FROM dbo.MaterialSupplier";
  10094. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10095. }
  10096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10098. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10099. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10100. public virtual int Fill(TestWSR4DataSet.MaterialSupplierDataTable dataTable) {
  10101. this.Adapter.SelectCommand = this.CommandCollection[0];
  10102. if ((this.ClearBeforeFill == true)) {
  10103. dataTable.Clear();
  10104. }
  10105. int returnValue = this.Adapter.Fill(dataTable);
  10106. return returnValue;
  10107. }
  10108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10110. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10111. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10112. public virtual TestWSR4DataSet.MaterialSupplierDataTable GetData() {
  10113. this.Adapter.SelectCommand = this.CommandCollection[0];
  10114. TestWSR4DataSet.MaterialSupplierDataTable dataTable = new TestWSR4DataSet.MaterialSupplierDataTable();
  10115. this.Adapter.Fill(dataTable);
  10116. return dataTable;
  10117. }
  10118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10120. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10121. public virtual int Update(TestWSR4DataSet.MaterialSupplierDataTable dataTable) {
  10122. return this.Adapter.Update(dataTable);
  10123. }
  10124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10126. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10127. public virtual int Update(TestWSR4DataSet dataSet) {
  10128. return this.Adapter.Update(dataSet, "MaterialSupplier");
  10129. }
  10130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10132. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10133. public virtual int Update(global::System.Data.DataRow dataRow) {
  10134. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10135. dataRow});
  10136. }
  10137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10139. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10140. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10141. return this.Adapter.Update(dataRows);
  10142. }
  10143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10145. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10146. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10147. public virtual int Delete(int Original_MaterialID, int Original_SupplierID) {
  10148. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_MaterialID));
  10149. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_SupplierID));
  10150. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10151. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10152. != global::System.Data.ConnectionState.Open)) {
  10153. this.Adapter.DeleteCommand.Connection.Open();
  10154. }
  10155. try {
  10156. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10157. return returnValue;
  10158. }
  10159. finally {
  10160. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10161. this.Adapter.DeleteCommand.Connection.Close();
  10162. }
  10163. }
  10164. }
  10165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10167. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10168. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10169. public virtual int Insert(int MaterialID, int SupplierID) {
  10170. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(MaterialID));
  10171. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(SupplierID));
  10172. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10173. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10174. != global::System.Data.ConnectionState.Open)) {
  10175. this.Adapter.InsertCommand.Connection.Open();
  10176. }
  10177. try {
  10178. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10179. return returnValue;
  10180. }
  10181. finally {
  10182. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10183. this.Adapter.InsertCommand.Connection.Close();
  10184. }
  10185. }
  10186. }
  10187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10189. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10190. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10191. public virtual int Update(int MaterialID, int SupplierID, int Original_MaterialID, int Original_SupplierID) {
  10192. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(MaterialID));
  10193. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(SupplierID));
  10194. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_MaterialID));
  10195. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_SupplierID));
  10196. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10197. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10198. != global::System.Data.ConnectionState.Open)) {
  10199. this.Adapter.UpdateCommand.Connection.Open();
  10200. }
  10201. try {
  10202. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10203. return returnValue;
  10204. }
  10205. finally {
  10206. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10207. this.Adapter.UpdateCommand.Connection.Close();
  10208. }
  10209. }
  10210. }
  10211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10213. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10214. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10215. public virtual int Update(int Original_MaterialID, int Original_SupplierID) {
  10216. return this.Update(Original_MaterialID, Original_SupplierID, Original_MaterialID, Original_SupplierID);
  10217. }
  10218. }
  10219. /// <summary>
  10220. ///Represents the connection and commands used to retrieve and save data.
  10221. ///</summary>
  10222. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10223. [global::System.ComponentModel.ToolboxItem(true)]
  10224. [global::System.ComponentModel.DataObjectAttribute(true)]
  10225. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10226. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10227. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10228. public partial class MaterialTypeTableAdapter : global::System.ComponentModel.Component {
  10229. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10230. private global::System.Data.SqlClient.SqlConnection _connection;
  10231. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10232. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10233. private bool _clearBeforeFill;
  10234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10236. public MaterialTypeTableAdapter() {
  10237. this.ClearBeforeFill = true;
  10238. }
  10239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10241. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10242. get {
  10243. if ((this._adapter == null)) {
  10244. this.InitAdapter();
  10245. }
  10246. return this._adapter;
  10247. }
  10248. }
  10249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10251. internal global::System.Data.SqlClient.SqlConnection Connection {
  10252. get {
  10253. if ((this._connection == null)) {
  10254. this.InitConnection();
  10255. }
  10256. return this._connection;
  10257. }
  10258. set {
  10259. this._connection = value;
  10260. if ((this.Adapter.InsertCommand != null)) {
  10261. this.Adapter.InsertCommand.Connection = value;
  10262. }
  10263. if ((this.Adapter.DeleteCommand != null)) {
  10264. this.Adapter.DeleteCommand.Connection = value;
  10265. }
  10266. if ((this.Adapter.UpdateCommand != null)) {
  10267. this.Adapter.UpdateCommand.Connection = value;
  10268. }
  10269. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10270. if ((this.CommandCollection[i] != null)) {
  10271. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10272. }
  10273. }
  10274. }
  10275. }
  10276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10278. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10279. get {
  10280. return this._transaction;
  10281. }
  10282. set {
  10283. this._transaction = value;
  10284. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10285. this.CommandCollection[i].Transaction = this._transaction;
  10286. }
  10287. if (((this.Adapter != null)
  10288. && (this.Adapter.DeleteCommand != null))) {
  10289. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10290. }
  10291. if (((this.Adapter != null)
  10292. && (this.Adapter.InsertCommand != null))) {
  10293. this.Adapter.InsertCommand.Transaction = this._transaction;
  10294. }
  10295. if (((this.Adapter != null)
  10296. && (this.Adapter.UpdateCommand != null))) {
  10297. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10298. }
  10299. }
  10300. }
  10301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10303. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10304. get {
  10305. if ((this._commandCollection == null)) {
  10306. this.InitCommandCollection();
  10307. }
  10308. return this._commandCollection;
  10309. }
  10310. }
  10311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10313. public bool ClearBeforeFill {
  10314. get {
  10315. return this._clearBeforeFill;
  10316. }
  10317. set {
  10318. this._clearBeforeFill = value;
  10319. }
  10320. }
  10321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10323. private void InitAdapter() {
  10324. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10325. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10326. tableMapping.SourceTable = "Table";
  10327. tableMapping.DataSetTable = "MaterialType";
  10328. tableMapping.ColumnMappings.Add("ID", "ID");
  10329. tableMapping.ColumnMappings.Add("Title", "Title");
  10330. tableMapping.ColumnMappings.Add("DefectedPercent", "DefectedPercent");
  10331. this._adapter.TableMappings.Add(tableMapping);
  10332. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10333. this._adapter.DeleteCommand.Connection = this.Connection;
  10334. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[MaterialType] WHERE (([ID] = @Original_ID) AND ([Title] = @Ori" +
  10335. "ginal_Title) AND ((@IsNull_DefectedPercent = 1 AND [DefectedPercent] IS NULL) OR" +
  10336. " ([DefectedPercent] = @Original_DefectedPercent)))";
  10337. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10338. 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, "", "", ""));
  10339. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10340. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DefectedPercent", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectedPercent", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10341. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DefectedPercent", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectedPercent", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10342. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10343. this._adapter.InsertCommand.Connection = this.Connection;
  10344. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[MaterialType] ([Title], [DefectedPercent]) VALUES (@Title, @De" +
  10345. "fectedPercent);\r\nSELECT ID, Title, DefectedPercent FROM MaterialType WHERE (ID =" +
  10346. " SCOPE_IDENTITY())";
  10347. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10348. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10349. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DefectedPercent", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectedPercent", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10350. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10351. this._adapter.UpdateCommand.Connection = this.Connection;
  10352. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[MaterialType] SET [Title] = @Title, [DefectedPercent] = @DefectedPercent WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ((@IsNull_DefectedPercent = 1 AND [DefectedPercent] IS NULL) OR ([DefectedPercent] = @Original_DefectedPercent)));
  10353. SELECT ID, Title, DefectedPercent FROM MaterialType WHERE (ID = @ID)";
  10354. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10355. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10356. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DefectedPercent", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectedPercent", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10357. 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, "", "", ""));
  10358. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10359. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DefectedPercent", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectedPercent", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10360. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DefectedPercent", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectedPercent", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10361. 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, "", "", ""));
  10362. }
  10363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10365. private void InitConnection() {
  10366. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10367. this._connection.ConnectionString = global::TestWSR4.Properties.Settings.Default.TestWSR4ConnectionString;
  10368. }
  10369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10371. private void InitCommandCollection() {
  10372. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10373. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10374. this._commandCollection[0].Connection = this.Connection;
  10375. this._commandCollection[0].CommandText = "SELECT ID, Title, DefectedPercent FROM dbo.MaterialType";
  10376. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10377. }
  10378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10380. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10381. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10382. public virtual int Fill(TestWSR4DataSet.MaterialTypeDataTable dataTable) {
  10383. this.Adapter.SelectCommand = this.CommandCollection[0];
  10384. if ((this.ClearBeforeFill == true)) {
  10385. dataTable.Clear();
  10386. }
  10387. int returnValue = this.Adapter.Fill(dataTable);
  10388. return returnValue;
  10389. }
  10390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10392. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10393. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10394. public virtual TestWSR4DataSet.MaterialTypeDataTable GetData() {
  10395. this.Adapter.SelectCommand = this.CommandCollection[0];
  10396. TestWSR4DataSet.MaterialTypeDataTable dataTable = new TestWSR4DataSet.MaterialTypeDataTable();
  10397. this.Adapter.Fill(dataTable);
  10398. return dataTable;
  10399. }
  10400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10402. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10403. public virtual int Update(TestWSR4DataSet.MaterialTypeDataTable dataTable) {
  10404. return this.Adapter.Update(dataTable);
  10405. }
  10406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10408. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10409. public virtual int Update(TestWSR4DataSet dataSet) {
  10410. return this.Adapter.Update(dataSet, "MaterialType");
  10411. }
  10412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10414. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10415. public virtual int Update(global::System.Data.DataRow dataRow) {
  10416. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10417. dataRow});
  10418. }
  10419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10421. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10422. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10423. return this.Adapter.Update(dataRows);
  10424. }
  10425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10427. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10428. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10429. public virtual int Delete(int Original_ID, string Original_Title, global::System.Nullable<double> Original_DefectedPercent) {
  10430. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  10431. if ((Original_Title == null)) {
  10432. throw new global::System.ArgumentNullException("Original_Title");
  10433. }
  10434. else {
  10435. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  10436. }
  10437. if ((Original_DefectedPercent.HasValue == true)) {
  10438. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  10439. this.Adapter.DeleteCommand.Parameters[3].Value = ((double)(Original_DefectedPercent.Value));
  10440. }
  10441. else {
  10442. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  10443. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  10444. }
  10445. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10446. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10447. != global::System.Data.ConnectionState.Open)) {
  10448. this.Adapter.DeleteCommand.Connection.Open();
  10449. }
  10450. try {
  10451. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10452. return returnValue;
  10453. }
  10454. finally {
  10455. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10456. this.Adapter.DeleteCommand.Connection.Close();
  10457. }
  10458. }
  10459. }
  10460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10462. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10463. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10464. public virtual int Insert(string Title, global::System.Nullable<double> DefectedPercent) {
  10465. if ((Title == null)) {
  10466. throw new global::System.ArgumentNullException("Title");
  10467. }
  10468. else {
  10469. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  10470. }
  10471. if ((DefectedPercent.HasValue == true)) {
  10472. this.Adapter.InsertCommand.Parameters[1].Value = ((double)(DefectedPercent.Value));
  10473. }
  10474. else {
  10475. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  10476. }
  10477. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10478. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10479. != global::System.Data.ConnectionState.Open)) {
  10480. this.Adapter.InsertCommand.Connection.Open();
  10481. }
  10482. try {
  10483. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10484. return returnValue;
  10485. }
  10486. finally {
  10487. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10488. this.Adapter.InsertCommand.Connection.Close();
  10489. }
  10490. }
  10491. }
  10492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10494. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10495. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10496. public virtual int Update(string Title, global::System.Nullable<double> DefectedPercent, int Original_ID, string Original_Title, global::System.Nullable<double> Original_DefectedPercent, int ID) {
  10497. if ((Title == null)) {
  10498. throw new global::System.ArgumentNullException("Title");
  10499. }
  10500. else {
  10501. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  10502. }
  10503. if ((DefectedPercent.HasValue == true)) {
  10504. this.Adapter.UpdateCommand.Parameters[1].Value = ((double)(DefectedPercent.Value));
  10505. }
  10506. else {
  10507. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  10508. }
  10509. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  10510. if ((Original_Title == null)) {
  10511. throw new global::System.ArgumentNullException("Original_Title");
  10512. }
  10513. else {
  10514. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  10515. }
  10516. if ((Original_DefectedPercent.HasValue == true)) {
  10517. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  10518. this.Adapter.UpdateCommand.Parameters[5].Value = ((double)(Original_DefectedPercent.Value));
  10519. }
  10520. else {
  10521. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  10522. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  10523. }
  10524. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ID));
  10525. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10526. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10527. != global::System.Data.ConnectionState.Open)) {
  10528. this.Adapter.UpdateCommand.Connection.Open();
  10529. }
  10530. try {
  10531. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10532. return returnValue;
  10533. }
  10534. finally {
  10535. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10536. this.Adapter.UpdateCommand.Connection.Close();
  10537. }
  10538. }
  10539. }
  10540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10542. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10543. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10544. public virtual int Update(string Title, global::System.Nullable<double> DefectedPercent, int Original_ID, string Original_Title, global::System.Nullable<double> Original_DefectedPercent) {
  10545. return this.Update(Title, DefectedPercent, Original_ID, Original_Title, Original_DefectedPercent, Original_ID);
  10546. }
  10547. }
  10548. /// <summary>
  10549. ///Represents the connection and commands used to retrieve and save data.
  10550. ///</summary>
  10551. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10552. [global::System.ComponentModel.ToolboxItem(true)]
  10553. [global::System.ComponentModel.DataObjectAttribute(true)]
  10554. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10555. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10556. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10557. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  10558. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10559. private global::System.Data.SqlClient.SqlConnection _connection;
  10560. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10561. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10562. private bool _clearBeforeFill;
  10563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10565. public ProductTableAdapter() {
  10566. this.ClearBeforeFill = true;
  10567. }
  10568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10570. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10571. get {
  10572. if ((this._adapter == null)) {
  10573. this.InitAdapter();
  10574. }
  10575. return this._adapter;
  10576. }
  10577. }
  10578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10580. internal global::System.Data.SqlClient.SqlConnection Connection {
  10581. get {
  10582. if ((this._connection == null)) {
  10583. this.InitConnection();
  10584. }
  10585. return this._connection;
  10586. }
  10587. set {
  10588. this._connection = value;
  10589. if ((this.Adapter.InsertCommand != null)) {
  10590. this.Adapter.InsertCommand.Connection = value;
  10591. }
  10592. if ((this.Adapter.DeleteCommand != null)) {
  10593. this.Adapter.DeleteCommand.Connection = value;
  10594. }
  10595. if ((this.Adapter.UpdateCommand != null)) {
  10596. this.Adapter.UpdateCommand.Connection = value;
  10597. }
  10598. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10599. if ((this.CommandCollection[i] != null)) {
  10600. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10601. }
  10602. }
  10603. }
  10604. }
  10605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10607. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10608. get {
  10609. return this._transaction;
  10610. }
  10611. set {
  10612. this._transaction = value;
  10613. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10614. this.CommandCollection[i].Transaction = this._transaction;
  10615. }
  10616. if (((this.Adapter != null)
  10617. && (this.Adapter.DeleteCommand != null))) {
  10618. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10619. }
  10620. if (((this.Adapter != null)
  10621. && (this.Adapter.InsertCommand != null))) {
  10622. this.Adapter.InsertCommand.Transaction = this._transaction;
  10623. }
  10624. if (((this.Adapter != null)
  10625. && (this.Adapter.UpdateCommand != null))) {
  10626. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10627. }
  10628. }
  10629. }
  10630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10632. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10633. get {
  10634. if ((this._commandCollection == null)) {
  10635. this.InitCommandCollection();
  10636. }
  10637. return this._commandCollection;
  10638. }
  10639. }
  10640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10642. public bool ClearBeforeFill {
  10643. get {
  10644. return this._clearBeforeFill;
  10645. }
  10646. set {
  10647. this._clearBeforeFill = value;
  10648. }
  10649. }
  10650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10652. private void InitAdapter() {
  10653. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10654. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10655. tableMapping.SourceTable = "Table";
  10656. tableMapping.DataSetTable = "Product";
  10657. tableMapping.ColumnMappings.Add("ID", "ID");
  10658. tableMapping.ColumnMappings.Add("Title", "Title");
  10659. tableMapping.ColumnMappings.Add("ProductTypeID", "ProductTypeID");
  10660. tableMapping.ColumnMappings.Add("ArticleNumber", "ArticleNumber");
  10661. tableMapping.ColumnMappings.Add("Description", "Description");
  10662. tableMapping.ColumnMappings.Add("Image", "Image");
  10663. tableMapping.ColumnMappings.Add("ProductionPersonCount", "ProductionPersonCount");
  10664. tableMapping.ColumnMappings.Add("ProductionWorkshopNumber", "ProductionWorkshopNumber");
  10665. tableMapping.ColumnMappings.Add("MinCostForAgent", "MinCostForAgent");
  10666. this._adapter.TableMappings.Add(tableMapping);
  10667. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10668. this._adapter.DeleteCommand.Connection = this.Connection;
  10669. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Product] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ((@IsNull_ProductTypeID = 1 AND [ProductTypeID] IS NULL) OR ([ProductTypeID] = @Original_ProductTypeID)) AND ([ArticleNumber] = @Original_ArticleNumber) AND ((@IsNull_Image = 1 AND [Image] IS NULL) OR ([Image] = @Original_Image)) AND ((@IsNull_ProductionPersonCount = 1 AND [ProductionPersonCount] IS NULL) OR ([ProductionPersonCount] = @Original_ProductionPersonCount)) AND ((@IsNull_ProductionWorkshopNumber = 1 AND [ProductionWorkshopNumber] IS NULL) OR ([ProductionWorkshopNumber] = @Original_ProductionWorkshopNumber)) AND ([MinCostForAgent] = @Original_MinCostForAgent))";
  10670. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10671. 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, "", "", ""));
  10672. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10673. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductTypeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductTypeID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10674. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductTypeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductTypeID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10675. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ArticleNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10676. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Image", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10677. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Image", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10678. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductionPersonCount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductionPersonCount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10679. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductionPersonCount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductionPersonCount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10680. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductionWorkshopNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductionWorkshopNumber", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10681. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductionWorkshopNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductionWorkshopNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10682. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MinCostForAgent", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "MinCostForAgent", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10683. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10684. this._adapter.InsertCommand.Connection = this.Connection;
  10685. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([Title], [ProductTypeID], [ArticleNumber], [Description], [Image], [ProductionPersonCount], [ProductionWorkshopNumber], [MinCostForAgent]) VALUES (@Title, @ProductTypeID, @ArticleNumber, @Description, @Image, @ProductionPersonCount, @ProductionWorkshopNumber, @MinCostForAgent);
  10686. SELECT ID, Title, ProductTypeID, ArticleNumber, Description, Image, ProductionPersonCount, ProductionWorkshopNumber, MinCostForAgent FROM Product WHERE (ID = SCOPE_IDENTITY())";
  10687. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10688. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10689. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductTypeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductTypeID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10690. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ArticleNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10691. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10692. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Image", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10693. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductionPersonCount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductionPersonCount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10694. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductionWorkshopNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductionWorkshopNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10695. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MinCostForAgent", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "MinCostForAgent", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10696. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10697. this._adapter.UpdateCommand.Connection = this.Connection;
  10698. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Product] SET [Title] = @Title, [ProductTypeID] = @ProductTypeID, [ArticleNumber] = @ArticleNumber, [Description] = @Description, [Image] = @Image, [ProductionPersonCount] = @ProductionPersonCount, [ProductionWorkshopNumber] = @ProductionWorkshopNumber, [MinCostForAgent] = @MinCostForAgent WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ((@IsNull_ProductTypeID = 1 AND [ProductTypeID] IS NULL) OR ([ProductTypeID] = @Original_ProductTypeID)) AND ([ArticleNumber] = @Original_ArticleNumber) AND ((@IsNull_Image = 1 AND [Image] IS NULL) OR ([Image] = @Original_Image)) AND ((@IsNull_ProductionPersonCount = 1 AND [ProductionPersonCount] IS NULL) OR ([ProductionPersonCount] = @Original_ProductionPersonCount)) AND ((@IsNull_ProductionWorkshopNumber = 1 AND [ProductionWorkshopNumber] IS NULL) OR ([ProductionWorkshopNumber] = @Original_ProductionWorkshopNumber)) AND ([MinCostForAgent] = @Original_MinCostForAgent));
  10699. SELECT ID, Title, ProductTypeID, ArticleNumber, Description, Image, ProductionPersonCount, ProductionWorkshopNumber, MinCostForAgent FROM Product WHERE (ID = @ID)";
  10700. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10701. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10702. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductTypeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductTypeID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10703. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ArticleNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10704. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10705. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Image", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10706. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductionPersonCount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductionPersonCount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10707. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductionWorkshopNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductionWorkshopNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10708. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MinCostForAgent", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "MinCostForAgent", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10709. 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, "", "", ""));
  10710. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10711. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductTypeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductTypeID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10712. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductTypeID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductTypeID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10713. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ArticleNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10714. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Image", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10715. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Image", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10716. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductionPersonCount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductionPersonCount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10717. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductionPersonCount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductionPersonCount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10718. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductionWorkshopNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductionWorkshopNumber", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10719. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductionWorkshopNumber", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductionWorkshopNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10720. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MinCostForAgent", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "MinCostForAgent", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10721. 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, "", "", ""));
  10722. }
  10723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10725. private void InitConnection() {
  10726. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10727. this._connection.ConnectionString = global::TestWSR4.Properties.Settings.Default.TestWSR4ConnectionString;
  10728. }
  10729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10731. private void InitCommandCollection() {
  10732. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10733. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10734. this._commandCollection[0].Connection = this.Connection;
  10735. this._commandCollection[0].CommandText = "SELECT ID, Title, ProductTypeID, ArticleNumber, Description, Image, ProductionPer" +
  10736. "sonCount, ProductionWorkshopNumber, MinCostForAgent FROM dbo.Product";
  10737. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10738. }
  10739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10741. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10742. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10743. public virtual int Fill(TestWSR4DataSet.ProductDataTable dataTable) {
  10744. this.Adapter.SelectCommand = this.CommandCollection[0];
  10745. if ((this.ClearBeforeFill == true)) {
  10746. dataTable.Clear();
  10747. }
  10748. int returnValue = this.Adapter.Fill(dataTable);
  10749. return returnValue;
  10750. }
  10751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10753. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10754. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10755. public virtual TestWSR4DataSet.ProductDataTable GetData() {
  10756. this.Adapter.SelectCommand = this.CommandCollection[0];
  10757. TestWSR4DataSet.ProductDataTable dataTable = new TestWSR4DataSet.ProductDataTable();
  10758. this.Adapter.Fill(dataTable);
  10759. return dataTable;
  10760. }
  10761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10763. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10764. public virtual int Update(TestWSR4DataSet.ProductDataTable dataTable) {
  10765. return this.Adapter.Update(dataTable);
  10766. }
  10767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10769. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10770. public virtual int Update(TestWSR4DataSet dataSet) {
  10771. return this.Adapter.Update(dataSet, "Product");
  10772. }
  10773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10775. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10776. public virtual int Update(global::System.Data.DataRow dataRow) {
  10777. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10778. dataRow});
  10779. }
  10780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10782. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10783. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10784. return this.Adapter.Update(dataRows);
  10785. }
  10786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10788. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10789. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10790. public virtual int Delete(int Original_ID, string Original_Title, global::System.Nullable<int> Original_ProductTypeID, string Original_ArticleNumber, string Original_Image, global::System.Nullable<int> Original_ProductionPersonCount, global::System.Nullable<int> Original_ProductionWorkshopNumber, decimal Original_MinCostForAgent) {
  10791. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  10792. if ((Original_Title == null)) {
  10793. throw new global::System.ArgumentNullException("Original_Title");
  10794. }
  10795. else {
  10796. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  10797. }
  10798. if ((Original_ProductTypeID.HasValue == true)) {
  10799. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  10800. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_ProductTypeID.Value));
  10801. }
  10802. else {
  10803. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  10804. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  10805. }
  10806. if ((Original_ArticleNumber == null)) {
  10807. throw new global::System.ArgumentNullException("Original_ArticleNumber");
  10808. }
  10809. else {
  10810. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_ArticleNumber));
  10811. }
  10812. if ((Original_Image == null)) {
  10813. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  10814. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  10815. }
  10816. else {
  10817. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  10818. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Image));
  10819. }
  10820. if ((Original_ProductionPersonCount.HasValue == true)) {
  10821. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  10822. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_ProductionPersonCount.Value));
  10823. }
  10824. else {
  10825. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  10826. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  10827. }
  10828. if ((Original_ProductionWorkshopNumber.HasValue == true)) {
  10829. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  10830. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_ProductionWorkshopNumber.Value));
  10831. }
  10832. else {
  10833. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  10834. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  10835. }
  10836. this.Adapter.DeleteCommand.Parameters[11].Value = ((decimal)(Original_MinCostForAgent));
  10837. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10838. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10839. != global::System.Data.ConnectionState.Open)) {
  10840. this.Adapter.DeleteCommand.Connection.Open();
  10841. }
  10842. try {
  10843. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10844. return returnValue;
  10845. }
  10846. finally {
  10847. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10848. this.Adapter.DeleteCommand.Connection.Close();
  10849. }
  10850. }
  10851. }
  10852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10854. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10855. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10856. public virtual int Insert(string Title, global::System.Nullable<int> ProductTypeID, string ArticleNumber, string Description, string Image, global::System.Nullable<int> ProductionPersonCount, global::System.Nullable<int> ProductionWorkshopNumber, decimal MinCostForAgent) {
  10857. if ((Title == null)) {
  10858. throw new global::System.ArgumentNullException("Title");
  10859. }
  10860. else {
  10861. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  10862. }
  10863. if ((ProductTypeID.HasValue == true)) {
  10864. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ProductTypeID.Value));
  10865. }
  10866. else {
  10867. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  10868. }
  10869. if ((ArticleNumber == null)) {
  10870. throw new global::System.ArgumentNullException("ArticleNumber");
  10871. }
  10872. else {
  10873. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(ArticleNumber));
  10874. }
  10875. if ((Description == null)) {
  10876. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  10877. }
  10878. else {
  10879. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Description));
  10880. }
  10881. if ((Image == null)) {
  10882. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  10883. }
  10884. else {
  10885. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Image));
  10886. }
  10887. if ((ProductionPersonCount.HasValue == true)) {
  10888. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ProductionPersonCount.Value));
  10889. }
  10890. else {
  10891. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  10892. }
  10893. if ((ProductionWorkshopNumber.HasValue == true)) {
  10894. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(ProductionWorkshopNumber.Value));
  10895. }
  10896. else {
  10897. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  10898. }
  10899. this.Adapter.InsertCommand.Parameters[7].Value = ((decimal)(MinCostForAgent));
  10900. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10901. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10902. != global::System.Data.ConnectionState.Open)) {
  10903. this.Adapter.InsertCommand.Connection.Open();
  10904. }
  10905. try {
  10906. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10907. return returnValue;
  10908. }
  10909. finally {
  10910. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10911. this.Adapter.InsertCommand.Connection.Close();
  10912. }
  10913. }
  10914. }
  10915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10917. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10918. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10919. public virtual int Update(
  10920. string Title,
  10921. global::System.Nullable<int> ProductTypeID,
  10922. string ArticleNumber,
  10923. string Description,
  10924. string Image,
  10925. global::System.Nullable<int> ProductionPersonCount,
  10926. global::System.Nullable<int> ProductionWorkshopNumber,
  10927. decimal MinCostForAgent,
  10928. int Original_ID,
  10929. string Original_Title,
  10930. global::System.Nullable<int> Original_ProductTypeID,
  10931. string Original_ArticleNumber,
  10932. string Original_Image,
  10933. global::System.Nullable<int> Original_ProductionPersonCount,
  10934. global::System.Nullable<int> Original_ProductionWorkshopNumber,
  10935. decimal Original_MinCostForAgent,
  10936. int ID) {
  10937. if ((Title == null)) {
  10938. throw new global::System.ArgumentNullException("Title");
  10939. }
  10940. else {
  10941. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  10942. }
  10943. if ((ProductTypeID.HasValue == true)) {
  10944. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ProductTypeID.Value));
  10945. }
  10946. else {
  10947. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  10948. }
  10949. if ((ArticleNumber == null)) {
  10950. throw new global::System.ArgumentNullException("ArticleNumber");
  10951. }
  10952. else {
  10953. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(ArticleNumber));
  10954. }
  10955. if ((Description == null)) {
  10956. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  10957. }
  10958. else {
  10959. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Description));
  10960. }
  10961. if ((Image == null)) {
  10962. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  10963. }
  10964. else {
  10965. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Image));
  10966. }
  10967. if ((ProductionPersonCount.HasValue == true)) {
  10968. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ProductionPersonCount.Value));
  10969. }
  10970. else {
  10971. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  10972. }
  10973. if ((ProductionWorkshopNumber.HasValue == true)) {
  10974. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ProductionWorkshopNumber.Value));
  10975. }
  10976. else {
  10977. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  10978. }
  10979. this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(MinCostForAgent));
  10980. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_ID));
  10981. if ((Original_Title == null)) {
  10982. throw new global::System.ArgumentNullException("Original_Title");
  10983. }
  10984. else {
  10985. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Title));
  10986. }
  10987. if ((Original_ProductTypeID.HasValue == true)) {
  10988. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  10989. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_ProductTypeID.Value));
  10990. }
  10991. else {
  10992. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  10993. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  10994. }
  10995. if ((Original_ArticleNumber == null)) {
  10996. throw new global::System.ArgumentNullException("Original_ArticleNumber");
  10997. }
  10998. else {
  10999. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_ArticleNumber));
  11000. }
  11001. if ((Original_Image == null)) {
  11002. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  11003. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  11004. }
  11005. else {
  11006. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  11007. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Image));
  11008. }
  11009. if ((Original_ProductionPersonCount.HasValue == true)) {
  11010. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  11011. this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_ProductionPersonCount.Value));
  11012. }
  11013. else {
  11014. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  11015. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  11016. }
  11017. if ((Original_ProductionWorkshopNumber.HasValue == true)) {
  11018. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  11019. this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(Original_ProductionWorkshopNumber.Value));
  11020. }
  11021. else {
  11022. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  11023. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  11024. }
  11025. this.Adapter.UpdateCommand.Parameters[19].Value = ((decimal)(Original_MinCostForAgent));
  11026. this.Adapter.UpdateCommand.Parameters[20].Value = ((int)(ID));
  11027. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11028. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11029. != global::System.Data.ConnectionState.Open)) {
  11030. this.Adapter.UpdateCommand.Connection.Open();
  11031. }
  11032. try {
  11033. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11034. return returnValue;
  11035. }
  11036. finally {
  11037. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11038. this.Adapter.UpdateCommand.Connection.Close();
  11039. }
  11040. }
  11041. }
  11042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11044. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11045. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11046. public virtual int Update(
  11047. string Title,
  11048. global::System.Nullable<int> ProductTypeID,
  11049. string ArticleNumber,
  11050. string Description,
  11051. string Image,
  11052. global::System.Nullable<int> ProductionPersonCount,
  11053. global::System.Nullable<int> ProductionWorkshopNumber,
  11054. decimal MinCostForAgent,
  11055. int Original_ID,
  11056. string Original_Title,
  11057. global::System.Nullable<int> Original_ProductTypeID,
  11058. string Original_ArticleNumber,
  11059. string Original_Image,
  11060. global::System.Nullable<int> Original_ProductionPersonCount,
  11061. global::System.Nullable<int> Original_ProductionWorkshopNumber,
  11062. decimal Original_MinCostForAgent) {
  11063. return this.Update(Title, ProductTypeID, ArticleNumber, Description, Image, ProductionPersonCount, ProductionWorkshopNumber, MinCostForAgent, Original_ID, Original_Title, Original_ProductTypeID, Original_ArticleNumber, Original_Image, Original_ProductionPersonCount, Original_ProductionWorkshopNumber, Original_MinCostForAgent, Original_ID);
  11064. }
  11065. }
  11066. /// <summary>
  11067. ///Represents the connection and commands used to retrieve and save data.
  11068. ///</summary>
  11069. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11070. [global::System.ComponentModel.ToolboxItem(true)]
  11071. [global::System.ComponentModel.DataObjectAttribute(true)]
  11072. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11073. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11074. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11075. public partial class ProductCostHistoryTableAdapter : global::System.ComponentModel.Component {
  11076. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11077. private global::System.Data.SqlClient.SqlConnection _connection;
  11078. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11079. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11080. private bool _clearBeforeFill;
  11081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11083. public ProductCostHistoryTableAdapter() {
  11084. this.ClearBeforeFill = true;
  11085. }
  11086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11088. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11089. get {
  11090. if ((this._adapter == null)) {
  11091. this.InitAdapter();
  11092. }
  11093. return this._adapter;
  11094. }
  11095. }
  11096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11098. internal global::System.Data.SqlClient.SqlConnection Connection {
  11099. get {
  11100. if ((this._connection == null)) {
  11101. this.InitConnection();
  11102. }
  11103. return this._connection;
  11104. }
  11105. set {
  11106. this._connection = value;
  11107. if ((this.Adapter.InsertCommand != null)) {
  11108. this.Adapter.InsertCommand.Connection = value;
  11109. }
  11110. if ((this.Adapter.DeleteCommand != null)) {
  11111. this.Adapter.DeleteCommand.Connection = value;
  11112. }
  11113. if ((this.Adapter.UpdateCommand != null)) {
  11114. this.Adapter.UpdateCommand.Connection = value;
  11115. }
  11116. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11117. if ((this.CommandCollection[i] != null)) {
  11118. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11119. }
  11120. }
  11121. }
  11122. }
  11123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11125. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11126. get {
  11127. return this._transaction;
  11128. }
  11129. set {
  11130. this._transaction = value;
  11131. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11132. this.CommandCollection[i].Transaction = this._transaction;
  11133. }
  11134. if (((this.Adapter != null)
  11135. && (this.Adapter.DeleteCommand != null))) {
  11136. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11137. }
  11138. if (((this.Adapter != null)
  11139. && (this.Adapter.InsertCommand != null))) {
  11140. this.Adapter.InsertCommand.Transaction = this._transaction;
  11141. }
  11142. if (((this.Adapter != null)
  11143. && (this.Adapter.UpdateCommand != null))) {
  11144. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11145. }
  11146. }
  11147. }
  11148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11150. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11151. get {
  11152. if ((this._commandCollection == null)) {
  11153. this.InitCommandCollection();
  11154. }
  11155. return this._commandCollection;
  11156. }
  11157. }
  11158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11160. public bool ClearBeforeFill {
  11161. get {
  11162. return this._clearBeforeFill;
  11163. }
  11164. set {
  11165. this._clearBeforeFill = value;
  11166. }
  11167. }
  11168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11170. private void InitAdapter() {
  11171. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11172. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11173. tableMapping.SourceTable = "Table";
  11174. tableMapping.DataSetTable = "ProductCostHistory";
  11175. tableMapping.ColumnMappings.Add("ID", "ID");
  11176. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  11177. tableMapping.ColumnMappings.Add("ChangeDate", "ChangeDate");
  11178. tableMapping.ColumnMappings.Add("CostValue", "CostValue");
  11179. this._adapter.TableMappings.Add(tableMapping);
  11180. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11181. this._adapter.DeleteCommand.Connection = this.Connection;
  11182. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ProductCostHistory] WHERE (([ID] = @Original_ID) AND ([Product" +
  11183. "ID] = @Original_ProductID) AND ([ChangeDate] = @Original_ChangeDate) AND ([CostV" +
  11184. "alue] = @Original_CostValue))";
  11185. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11186. 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, "", "", ""));
  11187. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11188. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ChangeDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ChangeDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11189. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CostValue", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "CostValue", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11190. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11191. this._adapter.InsertCommand.Connection = this.Connection;
  11192. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductCostHistory] ([ProductID], [ChangeDate], [CostValue]) V" +
  11193. "ALUES (@ProductID, @ChangeDate, @CostValue);\r\nSELECT ID, ProductID, ChangeDate, " +
  11194. "CostValue FROM ProductCostHistory WHERE (ID = SCOPE_IDENTITY())";
  11195. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11196. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11197. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ChangeDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ChangeDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11198. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CostValue", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "CostValue", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11199. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11200. this._adapter.UpdateCommand.Connection = this.Connection;
  11201. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductCostHistory] SET [ProductID] = @ProductID, [ChangeDate] = @ChangeDate, [CostValue] = @CostValue WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([ChangeDate] = @Original_ChangeDate) AND ([CostValue] = @Original_CostValue));
  11202. SELECT ID, ProductID, ChangeDate, CostValue FROM ProductCostHistory WHERE (ID = @ID)";
  11203. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11204. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11205. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ChangeDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ChangeDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11206. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CostValue", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "CostValue", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11207. 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, "", "", ""));
  11208. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11209. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ChangeDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ChangeDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11210. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CostValue", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "CostValue", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11211. 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, "", "", ""));
  11212. }
  11213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11215. private void InitConnection() {
  11216. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11217. this._connection.ConnectionString = global::TestWSR4.Properties.Settings.Default.TestWSR4ConnectionString;
  11218. }
  11219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11221. private void InitCommandCollection() {
  11222. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11223. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11224. this._commandCollection[0].Connection = this.Connection;
  11225. this._commandCollection[0].CommandText = "SELECT ID, ProductID, ChangeDate, CostValue FROM dbo.ProductCostHistory";
  11226. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11227. }
  11228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11230. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11231. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11232. public virtual int Fill(TestWSR4DataSet.ProductCostHistoryDataTable dataTable) {
  11233. this.Adapter.SelectCommand = this.CommandCollection[0];
  11234. if ((this.ClearBeforeFill == true)) {
  11235. dataTable.Clear();
  11236. }
  11237. int returnValue = this.Adapter.Fill(dataTable);
  11238. return returnValue;
  11239. }
  11240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11242. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11243. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11244. public virtual TestWSR4DataSet.ProductCostHistoryDataTable GetData() {
  11245. this.Adapter.SelectCommand = this.CommandCollection[0];
  11246. TestWSR4DataSet.ProductCostHistoryDataTable dataTable = new TestWSR4DataSet.ProductCostHistoryDataTable();
  11247. this.Adapter.Fill(dataTable);
  11248. return dataTable;
  11249. }
  11250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11252. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11253. public virtual int Update(TestWSR4DataSet.ProductCostHistoryDataTable dataTable) {
  11254. return this.Adapter.Update(dataTable);
  11255. }
  11256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11258. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11259. public virtual int Update(TestWSR4DataSet dataSet) {
  11260. return this.Adapter.Update(dataSet, "ProductCostHistory");
  11261. }
  11262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11264. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11265. public virtual int Update(global::System.Data.DataRow dataRow) {
  11266. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11267. dataRow});
  11268. }
  11269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11271. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11272. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11273. return this.Adapter.Update(dataRows);
  11274. }
  11275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11277. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11278. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11279. public virtual int Delete(int Original_ID, int Original_ProductID, System.DateTime Original_ChangeDate, decimal Original_CostValue) {
  11280. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  11281. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ProductID));
  11282. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_ChangeDate));
  11283. this.Adapter.DeleteCommand.Parameters[3].Value = ((decimal)(Original_CostValue));
  11284. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11285. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11286. != global::System.Data.ConnectionState.Open)) {
  11287. this.Adapter.DeleteCommand.Connection.Open();
  11288. }
  11289. try {
  11290. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11291. return returnValue;
  11292. }
  11293. finally {
  11294. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11295. this.Adapter.DeleteCommand.Connection.Close();
  11296. }
  11297. }
  11298. }
  11299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11301. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11302. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11303. public virtual int Insert(int ProductID, System.DateTime ChangeDate, decimal CostValue) {
  11304. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ProductID));
  11305. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(ChangeDate));
  11306. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(CostValue));
  11307. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11308. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11309. != global::System.Data.ConnectionState.Open)) {
  11310. this.Adapter.InsertCommand.Connection.Open();
  11311. }
  11312. try {
  11313. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11314. return returnValue;
  11315. }
  11316. finally {
  11317. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11318. this.Adapter.InsertCommand.Connection.Close();
  11319. }
  11320. }
  11321. }
  11322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11324. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11325. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11326. public virtual int Update(int ProductID, System.DateTime ChangeDate, decimal CostValue, int Original_ID, int Original_ProductID, System.DateTime Original_ChangeDate, decimal Original_CostValue, int ID) {
  11327. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ProductID));
  11328. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(ChangeDate));
  11329. this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(CostValue));
  11330. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID));
  11331. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ProductID));
  11332. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_ChangeDate));
  11333. this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(Original_CostValue));
  11334. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(ID));
  11335. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11336. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11337. != global::System.Data.ConnectionState.Open)) {
  11338. this.Adapter.UpdateCommand.Connection.Open();
  11339. }
  11340. try {
  11341. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11342. return returnValue;
  11343. }
  11344. finally {
  11345. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11346. this.Adapter.UpdateCommand.Connection.Close();
  11347. }
  11348. }
  11349. }
  11350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11352. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11353. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11354. public virtual int Update(int ProductID, System.DateTime ChangeDate, decimal CostValue, int Original_ID, int Original_ProductID, System.DateTime Original_ChangeDate, decimal Original_CostValue) {
  11355. return this.Update(ProductID, ChangeDate, CostValue, Original_ID, Original_ProductID, Original_ChangeDate, Original_CostValue, Original_ID);
  11356. }
  11357. }
  11358. /// <summary>
  11359. ///Represents the connection and commands used to retrieve and save data.
  11360. ///</summary>
  11361. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11362. [global::System.ComponentModel.ToolboxItem(true)]
  11363. [global::System.ComponentModel.DataObjectAttribute(true)]
  11364. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11365. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11366. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11367. public partial class ProductMaterialTableAdapter : global::System.ComponentModel.Component {
  11368. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11369. private global::System.Data.SqlClient.SqlConnection _connection;
  11370. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11371. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11372. private bool _clearBeforeFill;
  11373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11375. public ProductMaterialTableAdapter() {
  11376. this.ClearBeforeFill = true;
  11377. }
  11378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11380. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11381. get {
  11382. if ((this._adapter == null)) {
  11383. this.InitAdapter();
  11384. }
  11385. return this._adapter;
  11386. }
  11387. }
  11388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11390. internal global::System.Data.SqlClient.SqlConnection Connection {
  11391. get {
  11392. if ((this._connection == null)) {
  11393. this.InitConnection();
  11394. }
  11395. return this._connection;
  11396. }
  11397. set {
  11398. this._connection = value;
  11399. if ((this.Adapter.InsertCommand != null)) {
  11400. this.Adapter.InsertCommand.Connection = value;
  11401. }
  11402. if ((this.Adapter.DeleteCommand != null)) {
  11403. this.Adapter.DeleteCommand.Connection = value;
  11404. }
  11405. if ((this.Adapter.UpdateCommand != null)) {
  11406. this.Adapter.UpdateCommand.Connection = value;
  11407. }
  11408. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11409. if ((this.CommandCollection[i] != null)) {
  11410. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11411. }
  11412. }
  11413. }
  11414. }
  11415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11417. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11418. get {
  11419. return this._transaction;
  11420. }
  11421. set {
  11422. this._transaction = value;
  11423. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11424. this.CommandCollection[i].Transaction = this._transaction;
  11425. }
  11426. if (((this.Adapter != null)
  11427. && (this.Adapter.DeleteCommand != null))) {
  11428. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11429. }
  11430. if (((this.Adapter != null)
  11431. && (this.Adapter.InsertCommand != null))) {
  11432. this.Adapter.InsertCommand.Transaction = this._transaction;
  11433. }
  11434. if (((this.Adapter != null)
  11435. && (this.Adapter.UpdateCommand != null))) {
  11436. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11437. }
  11438. }
  11439. }
  11440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11442. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11443. get {
  11444. if ((this._commandCollection == null)) {
  11445. this.InitCommandCollection();
  11446. }
  11447. return this._commandCollection;
  11448. }
  11449. }
  11450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11452. public bool ClearBeforeFill {
  11453. get {
  11454. return this._clearBeforeFill;
  11455. }
  11456. set {
  11457. this._clearBeforeFill = value;
  11458. }
  11459. }
  11460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11462. private void InitAdapter() {
  11463. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11464. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11465. tableMapping.SourceTable = "Table";
  11466. tableMapping.DataSetTable = "ProductMaterial";
  11467. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  11468. tableMapping.ColumnMappings.Add("MaterialID", "MaterialID");
  11469. tableMapping.ColumnMappings.Add("Count", "Count");
  11470. this._adapter.TableMappings.Add(tableMapping);
  11471. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11472. this._adapter.DeleteCommand.Connection = this.Connection;
  11473. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ProductMaterial] WHERE (([ProductID] = @Original_ProductID) AN" +
  11474. "D ([MaterialID] = @Original_MaterialID) AND ((@IsNull_Count = 1 AND [Count] IS N" +
  11475. "ULL) OR ([Count] = @Original_Count)))";
  11476. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11477. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11478. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MaterialID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterialID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11479. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Count", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Count", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11480. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Count", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Count", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11481. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11482. this._adapter.InsertCommand.Connection = this.Connection;
  11483. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductMaterial] ([ProductID], [MaterialID], [Count]) VALUES (" +
  11484. "@ProductID, @MaterialID, @Count);\r\nSELECT ProductID, MaterialID, Count FROM Prod" +
  11485. "uctMaterial WHERE (MaterialID = @MaterialID) AND (ProductID = @ProductID)";
  11486. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11487. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11488. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaterialID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterialID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11489. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Count", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Count", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11490. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11491. this._adapter.UpdateCommand.Connection = this.Connection;
  11492. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductMaterial] SET [ProductID] = @ProductID, [MaterialID] = @MaterialID, [Count] = @Count WHERE (([ProductID] = @Original_ProductID) AND ([MaterialID] = @Original_MaterialID) AND ((@IsNull_Count = 1 AND [Count] IS NULL) OR ([Count] = @Original_Count)));
  11493. SELECT ProductID, MaterialID, Count FROM ProductMaterial WHERE (MaterialID = @MaterialID) AND (ProductID = @ProductID)";
  11494. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11495. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11496. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaterialID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterialID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11497. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Count", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Count", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11498. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11499. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MaterialID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MaterialID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11500. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Count", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Count", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11501. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Count", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Count", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11502. }
  11503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11505. private void InitConnection() {
  11506. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11507. this._connection.ConnectionString = global::TestWSR4.Properties.Settings.Default.TestWSR4ConnectionString;
  11508. }
  11509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11511. private void InitCommandCollection() {
  11512. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11513. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11514. this._commandCollection[0].Connection = this.Connection;
  11515. this._commandCollection[0].CommandText = "SELECT ProductID, MaterialID, Count FROM dbo.ProductMaterial";
  11516. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11517. }
  11518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11520. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11521. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11522. public virtual int Fill(TestWSR4DataSet.ProductMaterialDataTable dataTable) {
  11523. this.Adapter.SelectCommand = this.CommandCollection[0];
  11524. if ((this.ClearBeforeFill == true)) {
  11525. dataTable.Clear();
  11526. }
  11527. int returnValue = this.Adapter.Fill(dataTable);
  11528. return returnValue;
  11529. }
  11530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11532. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11533. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11534. public virtual TestWSR4DataSet.ProductMaterialDataTable GetData() {
  11535. this.Adapter.SelectCommand = this.CommandCollection[0];
  11536. TestWSR4DataSet.ProductMaterialDataTable dataTable = new TestWSR4DataSet.ProductMaterialDataTable();
  11537. this.Adapter.Fill(dataTable);
  11538. return dataTable;
  11539. }
  11540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11542. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11543. public virtual int Update(TestWSR4DataSet.ProductMaterialDataTable dataTable) {
  11544. return this.Adapter.Update(dataTable);
  11545. }
  11546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11548. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11549. public virtual int Update(TestWSR4DataSet dataSet) {
  11550. return this.Adapter.Update(dataSet, "ProductMaterial");
  11551. }
  11552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11554. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11555. public virtual int Update(global::System.Data.DataRow dataRow) {
  11556. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11557. dataRow});
  11558. }
  11559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11561. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11562. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11563. return this.Adapter.Update(dataRows);
  11564. }
  11565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11567. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11568. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11569. public virtual int Delete(int Original_ProductID, int Original_MaterialID, global::System.Nullable<double> Original_Count) {
  11570. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ProductID));
  11571. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_MaterialID));
  11572. if ((Original_Count.HasValue == true)) {
  11573. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  11574. this.Adapter.DeleteCommand.Parameters[3].Value = ((double)(Original_Count.Value));
  11575. }
  11576. else {
  11577. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  11578. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  11579. }
  11580. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11581. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11582. != global::System.Data.ConnectionState.Open)) {
  11583. this.Adapter.DeleteCommand.Connection.Open();
  11584. }
  11585. try {
  11586. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11587. return returnValue;
  11588. }
  11589. finally {
  11590. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11591. this.Adapter.DeleteCommand.Connection.Close();
  11592. }
  11593. }
  11594. }
  11595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11597. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11598. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11599. public virtual int Insert(int ProductID, int MaterialID, global::System.Nullable<double> Count) {
  11600. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ProductID));
  11601. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(MaterialID));
  11602. if ((Count.HasValue == true)) {
  11603. this.Adapter.InsertCommand.Parameters[2].Value = ((double)(Count.Value));
  11604. }
  11605. else {
  11606. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  11607. }
  11608. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11609. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11610. != global::System.Data.ConnectionState.Open)) {
  11611. this.Adapter.InsertCommand.Connection.Open();
  11612. }
  11613. try {
  11614. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11615. return returnValue;
  11616. }
  11617. finally {
  11618. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11619. this.Adapter.InsertCommand.Connection.Close();
  11620. }
  11621. }
  11622. }
  11623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11625. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11626. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11627. public virtual int Update(int ProductID, int MaterialID, global::System.Nullable<double> Count, int Original_ProductID, int Original_MaterialID, global::System.Nullable<double> Original_Count) {
  11628. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ProductID));
  11629. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(MaterialID));
  11630. if ((Count.HasValue == true)) {
  11631. this.Adapter.UpdateCommand.Parameters[2].Value = ((double)(Count.Value));
  11632. }
  11633. else {
  11634. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  11635. }
  11636. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ProductID));
  11637. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_MaterialID));
  11638. if ((Original_Count.HasValue == true)) {
  11639. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  11640. this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(Original_Count.Value));
  11641. }
  11642. else {
  11643. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  11644. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  11645. }
  11646. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11647. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11648. != global::System.Data.ConnectionState.Open)) {
  11649. this.Adapter.UpdateCommand.Connection.Open();
  11650. }
  11651. try {
  11652. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11653. return returnValue;
  11654. }
  11655. finally {
  11656. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11657. this.Adapter.UpdateCommand.Connection.Close();
  11658. }
  11659. }
  11660. }
  11661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11663. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11664. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11665. public virtual int Update(global::System.Nullable<double> Count, int Original_ProductID, int Original_MaterialID, global::System.Nullable<double> Original_Count) {
  11666. return this.Update(Original_ProductID, Original_MaterialID, Count, Original_ProductID, Original_MaterialID, Original_Count);
  11667. }
  11668. }
  11669. /// <summary>
  11670. ///Represents the connection and commands used to retrieve and save data.
  11671. ///</summary>
  11672. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11673. [global::System.ComponentModel.ToolboxItem(true)]
  11674. [global::System.ComponentModel.DataObjectAttribute(true)]
  11675. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11676. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11677. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11678. public partial class ProductSaleTableAdapter : global::System.ComponentModel.Component {
  11679. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11680. private global::System.Data.SqlClient.SqlConnection _connection;
  11681. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11682. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11683. private bool _clearBeforeFill;
  11684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11686. public ProductSaleTableAdapter() {
  11687. this.ClearBeforeFill = true;
  11688. }
  11689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11691. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11692. get {
  11693. if ((this._adapter == null)) {
  11694. this.InitAdapter();
  11695. }
  11696. return this._adapter;
  11697. }
  11698. }
  11699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11701. internal global::System.Data.SqlClient.SqlConnection Connection {
  11702. get {
  11703. if ((this._connection == null)) {
  11704. this.InitConnection();
  11705. }
  11706. return this._connection;
  11707. }
  11708. set {
  11709. this._connection = value;
  11710. if ((this.Adapter.InsertCommand != null)) {
  11711. this.Adapter.InsertCommand.Connection = value;
  11712. }
  11713. if ((this.Adapter.DeleteCommand != null)) {
  11714. this.Adapter.DeleteCommand.Connection = value;
  11715. }
  11716. if ((this.Adapter.UpdateCommand != null)) {
  11717. this.Adapter.UpdateCommand.Connection = value;
  11718. }
  11719. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11720. if ((this.CommandCollection[i] != null)) {
  11721. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11722. }
  11723. }
  11724. }
  11725. }
  11726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11728. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11729. get {
  11730. return this._transaction;
  11731. }
  11732. set {
  11733. this._transaction = value;
  11734. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11735. this.CommandCollection[i].Transaction = this._transaction;
  11736. }
  11737. if (((this.Adapter != null)
  11738. && (this.Adapter.DeleteCommand != null))) {
  11739. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11740. }
  11741. if (((this.Adapter != null)
  11742. && (this.Adapter.InsertCommand != null))) {
  11743. this.Adapter.InsertCommand.Transaction = this._transaction;
  11744. }
  11745. if (((this.Adapter != null)
  11746. && (this.Adapter.UpdateCommand != null))) {
  11747. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11748. }
  11749. }
  11750. }
  11751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11753. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11754. get {
  11755. if ((this._commandCollection == null)) {
  11756. this.InitCommandCollection();
  11757. }
  11758. return this._commandCollection;
  11759. }
  11760. }
  11761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11763. public bool ClearBeforeFill {
  11764. get {
  11765. return this._clearBeforeFill;
  11766. }
  11767. set {
  11768. this._clearBeforeFill = value;
  11769. }
  11770. }
  11771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11773. private void InitAdapter() {
  11774. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11775. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11776. tableMapping.SourceTable = "Table";
  11777. tableMapping.DataSetTable = "ProductSale";
  11778. tableMapping.ColumnMappings.Add("ID", "ID");
  11779. tableMapping.ColumnMappings.Add("AgentID", "AgentID");
  11780. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  11781. tableMapping.ColumnMappings.Add("SaleDate", "SaleDate");
  11782. tableMapping.ColumnMappings.Add("ProductCount", "ProductCount");
  11783. this._adapter.TableMappings.Add(tableMapping);
  11784. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11785. this._adapter.DeleteCommand.Connection = this.Connection;
  11786. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ProductSale] WHERE (([ID] = @Original_ID) AND ([AgentID] = @Or" +
  11787. "iginal_AgentID) AND ([ProductID] = @Original_ProductID) AND ([SaleDate] = @Origi" +
  11788. "nal_SaleDate) AND ([ProductCount] = @Original_ProductCount))";
  11789. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11790. 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, "", "", ""));
  11791. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AgentID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AgentID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11792. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11793. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SaleDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11794. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductCount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductCount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11795. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11796. this._adapter.InsertCommand.Connection = this.Connection;
  11797. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductSale] ([AgentID], [ProductID], [SaleDate], [ProductCoun" +
  11798. "t]) VALUES (@AgentID, @ProductID, @SaleDate, @ProductCount);\r\nSELECT ID, AgentID" +
  11799. ", ProductID, SaleDate, ProductCount FROM ProductSale WHERE (ID = SCOPE_IDENTITY(" +
  11800. "))";
  11801. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11802. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AgentID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AgentID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11803. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11804. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SaleDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11805. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductCount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductCount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11806. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11807. this._adapter.UpdateCommand.Connection = this.Connection;
  11808. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductSale] SET [AgentID] = @AgentID, [ProductID] = @ProductID, [SaleDate] = @SaleDate, [ProductCount] = @ProductCount WHERE (([ID] = @Original_ID) AND ([AgentID] = @Original_AgentID) AND ([ProductID] = @Original_ProductID) AND ([SaleDate] = @Original_SaleDate) AND ([ProductCount] = @Original_ProductCount));
  11809. SELECT ID, AgentID, ProductID, SaleDate, ProductCount FROM ProductSale WHERE (ID = @ID)";
  11810. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11811. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AgentID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AgentID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11812. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11813. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SaleDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11814. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductCount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductCount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11815. 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, "", "", ""));
  11816. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AgentID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AgentID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11817. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11818. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SaleDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11819. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductCount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductCount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11820. 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, "", "", ""));
  11821. }
  11822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11824. private void InitConnection() {
  11825. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11826. this._connection.ConnectionString = global::TestWSR4.Properties.Settings.Default.TestWSR4ConnectionString;
  11827. }
  11828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11830. private void InitCommandCollection() {
  11831. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11832. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11833. this._commandCollection[0].Connection = this.Connection;
  11834. this._commandCollection[0].CommandText = "SELECT ID, AgentID, ProductID, SaleDate, ProductCount FROM dbo.ProductSale";
  11835. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11836. }
  11837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11839. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11840. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11841. public virtual int Fill(TestWSR4DataSet.ProductSaleDataTable dataTable) {
  11842. this.Adapter.SelectCommand = this.CommandCollection[0];
  11843. if ((this.ClearBeforeFill == true)) {
  11844. dataTable.Clear();
  11845. }
  11846. int returnValue = this.Adapter.Fill(dataTable);
  11847. return returnValue;
  11848. }
  11849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11851. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11852. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11853. public virtual TestWSR4DataSet.ProductSaleDataTable GetData() {
  11854. this.Adapter.SelectCommand = this.CommandCollection[0];
  11855. TestWSR4DataSet.ProductSaleDataTable dataTable = new TestWSR4DataSet.ProductSaleDataTable();
  11856. this.Adapter.Fill(dataTable);
  11857. return dataTable;
  11858. }
  11859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11861. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11862. public virtual int Update(TestWSR4DataSet.ProductSaleDataTable dataTable) {
  11863. return this.Adapter.Update(dataTable);
  11864. }
  11865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11867. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11868. public virtual int Update(TestWSR4DataSet dataSet) {
  11869. return this.Adapter.Update(dataSet, "ProductSale");
  11870. }
  11871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11873. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11874. public virtual int Update(global::System.Data.DataRow dataRow) {
  11875. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11876. dataRow});
  11877. }
  11878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11880. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11881. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11882. return this.Adapter.Update(dataRows);
  11883. }
  11884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11886. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11887. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11888. public virtual int Delete(int Original_ID, int Original_AgentID, int Original_ProductID, System.DateTime Original_SaleDate, int Original_ProductCount) {
  11889. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  11890. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_AgentID));
  11891. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ProductID));
  11892. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_SaleDate));
  11893. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_ProductCount));
  11894. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11895. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11896. != global::System.Data.ConnectionState.Open)) {
  11897. this.Adapter.DeleteCommand.Connection.Open();
  11898. }
  11899. try {
  11900. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11901. return returnValue;
  11902. }
  11903. finally {
  11904. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11905. this.Adapter.DeleteCommand.Connection.Close();
  11906. }
  11907. }
  11908. }
  11909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11911. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11912. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11913. public virtual int Insert(int AgentID, int ProductID, System.DateTime SaleDate, int ProductCount) {
  11914. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(AgentID));
  11915. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ProductID));
  11916. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(SaleDate));
  11917. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(ProductCount));
  11918. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11919. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11920. != global::System.Data.ConnectionState.Open)) {
  11921. this.Adapter.InsertCommand.Connection.Open();
  11922. }
  11923. try {
  11924. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11925. return returnValue;
  11926. }
  11927. finally {
  11928. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11929. this.Adapter.InsertCommand.Connection.Close();
  11930. }
  11931. }
  11932. }
  11933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11935. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11936. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11937. public virtual int Update(int AgentID, int ProductID, System.DateTime SaleDate, int ProductCount, int Original_ID, int Original_AgentID, int Original_ProductID, System.DateTime Original_SaleDate, int Original_ProductCount, int ID) {
  11938. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(AgentID));
  11939. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ProductID));
  11940. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(SaleDate));
  11941. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ProductCount));
  11942. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  11943. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_AgentID));
  11944. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ProductID));
  11945. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_SaleDate));
  11946. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_ProductCount));
  11947. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(ID));
  11948. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11949. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11950. != global::System.Data.ConnectionState.Open)) {
  11951. this.Adapter.UpdateCommand.Connection.Open();
  11952. }
  11953. try {
  11954. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11955. return returnValue;
  11956. }
  11957. finally {
  11958. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11959. this.Adapter.UpdateCommand.Connection.Close();
  11960. }
  11961. }
  11962. }
  11963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11965. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11966. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11967. public virtual int Update(int AgentID, int ProductID, System.DateTime SaleDate, int ProductCount, int Original_ID, int Original_AgentID, int Original_ProductID, System.DateTime Original_SaleDate, int Original_ProductCount) {
  11968. return this.Update(AgentID, ProductID, SaleDate, ProductCount, Original_ID, Original_AgentID, Original_ProductID, Original_SaleDate, Original_ProductCount, Original_ID);
  11969. }
  11970. }
  11971. /// <summary>
  11972. ///Represents the connection and commands used to retrieve and save data.
  11973. ///</summary>
  11974. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11975. [global::System.ComponentModel.ToolboxItem(true)]
  11976. [global::System.ComponentModel.DataObjectAttribute(true)]
  11977. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11978. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11979. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11980. public partial class ProductTypeTableAdapter : global::System.ComponentModel.Component {
  11981. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11982. private global::System.Data.SqlClient.SqlConnection _connection;
  11983. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11984. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11985. private bool _clearBeforeFill;
  11986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11988. public ProductTypeTableAdapter() {
  11989. this.ClearBeforeFill = true;
  11990. }
  11991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11993. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11994. get {
  11995. if ((this._adapter == null)) {
  11996. this.InitAdapter();
  11997. }
  11998. return this._adapter;
  11999. }
  12000. }
  12001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12003. internal global::System.Data.SqlClient.SqlConnection Connection {
  12004. get {
  12005. if ((this._connection == null)) {
  12006. this.InitConnection();
  12007. }
  12008. return this._connection;
  12009. }
  12010. set {
  12011. this._connection = value;
  12012. if ((this.Adapter.InsertCommand != null)) {
  12013. this.Adapter.InsertCommand.Connection = value;
  12014. }
  12015. if ((this.Adapter.DeleteCommand != null)) {
  12016. this.Adapter.DeleteCommand.Connection = value;
  12017. }
  12018. if ((this.Adapter.UpdateCommand != null)) {
  12019. this.Adapter.UpdateCommand.Connection = value;
  12020. }
  12021. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12022. if ((this.CommandCollection[i] != null)) {
  12023. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  12024. }
  12025. }
  12026. }
  12027. }
  12028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12030. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  12031. get {
  12032. return this._transaction;
  12033. }
  12034. set {
  12035. this._transaction = value;
  12036. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12037. this.CommandCollection[i].Transaction = this._transaction;
  12038. }
  12039. if (((this.Adapter != null)
  12040. && (this.Adapter.DeleteCommand != null))) {
  12041. this.Adapter.DeleteCommand.Transaction = this._transaction;
  12042. }
  12043. if (((this.Adapter != null)
  12044. && (this.Adapter.InsertCommand != null))) {
  12045. this.Adapter.InsertCommand.Transaction = this._transaction;
  12046. }
  12047. if (((this.Adapter != null)
  12048. && (this.Adapter.UpdateCommand != null))) {
  12049. this.Adapter.UpdateCommand.Transaction = this._transaction;
  12050. }
  12051. }
  12052. }
  12053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12055. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  12056. get {
  12057. if ((this._commandCollection == null)) {
  12058. this.InitCommandCollection();
  12059. }
  12060. return this._commandCollection;
  12061. }
  12062. }
  12063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12065. public bool ClearBeforeFill {
  12066. get {
  12067. return this._clearBeforeFill;
  12068. }
  12069. set {
  12070. this._clearBeforeFill = value;
  12071. }
  12072. }
  12073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12075. private void InitAdapter() {
  12076. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  12077. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  12078. tableMapping.SourceTable = "Table";
  12079. tableMapping.DataSetTable = "ProductType";
  12080. tableMapping.ColumnMappings.Add("ID", "ID");
  12081. tableMapping.ColumnMappings.Add("Title", "Title");
  12082. tableMapping.ColumnMappings.Add("DefectedPercent", "DefectedPercent");
  12083. this._adapter.TableMappings.Add(tableMapping);
  12084. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  12085. this._adapter.DeleteCommand.Connection = this.Connection;
  12086. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ProductType] WHERE (([ID] = @Original_ID) AND ([Title] = @Orig" +
  12087. "inal_Title) AND ((@IsNull_DefectedPercent = 1 AND [DefectedPercent] IS NULL) OR " +
  12088. "([DefectedPercent] = @Original_DefectedPercent)))";
  12089. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  12090. 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, "", "", ""));
  12091. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12092. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DefectedPercent", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectedPercent", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12093. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DefectedPercent", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectedPercent", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12094. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  12095. this._adapter.InsertCommand.Connection = this.Connection;
  12096. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductType] ([Title], [DefectedPercent]) VALUES (@Title, @Def" +
  12097. "ectedPercent);\r\nSELECT ID, Title, DefectedPercent FROM ProductType WHERE (ID = S" +
  12098. "COPE_IDENTITY())";
  12099. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  12100. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12101. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DefectedPercent", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectedPercent", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12102. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  12103. this._adapter.UpdateCommand.Connection = this.Connection;
  12104. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductType] SET [Title] = @Title, [DefectedPercent] = @DefectedPercent WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ((@IsNull_DefectedPercent = 1 AND [DefectedPercent] IS NULL) OR ([DefectedPercent] = @Original_DefectedPercent)));
  12105. SELECT ID, Title, DefectedPercent FROM ProductType WHERE (ID = @ID)";
  12106. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  12107. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12108. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DefectedPercent", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectedPercent", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12109. 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, "", "", ""));
  12110. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12111. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DefectedPercent", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectedPercent", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12112. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DefectedPercent", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectedPercent", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12113. 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, "", "", ""));
  12114. }
  12115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12117. private void InitConnection() {
  12118. this._connection = new global::System.Data.SqlClient.SqlConnection();
  12119. this._connection.ConnectionString = global::TestWSR4.Properties.Settings.Default.TestWSR4ConnectionString;
  12120. }
  12121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12123. private void InitCommandCollection() {
  12124. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  12125. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  12126. this._commandCollection[0].Connection = this.Connection;
  12127. this._commandCollection[0].CommandText = "SELECT ID, Title, DefectedPercent FROM dbo.ProductType";
  12128. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  12129. }
  12130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12132. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12133. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  12134. public virtual int Fill(TestWSR4DataSet.ProductTypeDataTable dataTable) {
  12135. this.Adapter.SelectCommand = this.CommandCollection[0];
  12136. if ((this.ClearBeforeFill == true)) {
  12137. dataTable.Clear();
  12138. }
  12139. int returnValue = this.Adapter.Fill(dataTable);
  12140. return returnValue;
  12141. }
  12142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12144. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12145. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  12146. public virtual TestWSR4DataSet.ProductTypeDataTable GetData() {
  12147. this.Adapter.SelectCommand = this.CommandCollection[0];
  12148. TestWSR4DataSet.ProductTypeDataTable dataTable = new TestWSR4DataSet.ProductTypeDataTable();
  12149. this.Adapter.Fill(dataTable);
  12150. return dataTable;
  12151. }
  12152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12154. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12155. public virtual int Update(TestWSR4DataSet.ProductTypeDataTable dataTable) {
  12156. return this.Adapter.Update(dataTable);
  12157. }
  12158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12160. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12161. public virtual int Update(TestWSR4DataSet dataSet) {
  12162. return this.Adapter.Update(dataSet, "ProductType");
  12163. }
  12164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12166. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12167. public virtual int Update(global::System.Data.DataRow dataRow) {
  12168. return this.Adapter.Update(new global::System.Data.DataRow[] {
  12169. dataRow});
  12170. }
  12171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12173. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12174. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  12175. return this.Adapter.Update(dataRows);
  12176. }
  12177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12179. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12180. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  12181. public virtual int Delete(int Original_ID, string Original_Title, global::System.Nullable<double> Original_DefectedPercent) {
  12182. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  12183. if ((Original_Title == null)) {
  12184. throw new global::System.ArgumentNullException("Original_Title");
  12185. }
  12186. else {
  12187. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  12188. }
  12189. if ((Original_DefectedPercent.HasValue == true)) {
  12190. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  12191. this.Adapter.DeleteCommand.Parameters[3].Value = ((double)(Original_DefectedPercent.Value));
  12192. }
  12193. else {
  12194. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  12195. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  12196. }
  12197. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  12198. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12199. != global::System.Data.ConnectionState.Open)) {
  12200. this.Adapter.DeleteCommand.Connection.Open();
  12201. }
  12202. try {
  12203. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  12204. return returnValue;
  12205. }
  12206. finally {
  12207. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12208. this.Adapter.DeleteCommand.Connection.Close();
  12209. }
  12210. }
  12211. }
  12212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12214. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12215. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  12216. public virtual int Insert(string Title, global::System.Nullable<double> DefectedPercent) {
  12217. if ((Title == null)) {
  12218. throw new global::System.ArgumentNullException("Title");
  12219. }
  12220. else {
  12221. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  12222. }
  12223. if ((DefectedPercent.HasValue == true)) {
  12224. this.Adapter.InsertCommand.Parameters[1].Value = ((double)(DefectedPercent.Value));
  12225. }
  12226. else {
  12227. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  12228. }
  12229. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  12230. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12231. != global::System.Data.ConnectionState.Open)) {
  12232. this.Adapter.InsertCommand.Connection.Open();
  12233. }
  12234. try {
  12235. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  12236. return returnValue;
  12237. }
  12238. finally {
  12239. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12240. this.Adapter.InsertCommand.Connection.Close();
  12241. }
  12242. }
  12243. }
  12244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12246. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12247. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12248. public virtual int Update(string Title, global::System.Nullable<double> DefectedPercent, int Original_ID, string Original_Title, global::System.Nullable<double> Original_DefectedPercent, int ID) {
  12249. if ((Title == null)) {
  12250. throw new global::System.ArgumentNullException("Title");
  12251. }
  12252. else {
  12253. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  12254. }
  12255. if ((DefectedPercent.HasValue == true)) {
  12256. this.Adapter.UpdateCommand.Parameters[1].Value = ((double)(DefectedPercent.Value));
  12257. }
  12258. else {
  12259. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  12260. }
  12261. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  12262. if ((Original_Title == null)) {
  12263. throw new global::System.ArgumentNullException("Original_Title");
  12264. }
  12265. else {
  12266. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  12267. }
  12268. if ((Original_DefectedPercent.HasValue == true)) {
  12269. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  12270. this.Adapter.UpdateCommand.Parameters[5].Value = ((double)(Original_DefectedPercent.Value));
  12271. }
  12272. else {
  12273. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  12274. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  12275. }
  12276. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ID));
  12277. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  12278. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12279. != global::System.Data.ConnectionState.Open)) {
  12280. this.Adapter.UpdateCommand.Connection.Open();
  12281. }
  12282. try {
  12283. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  12284. return returnValue;
  12285. }
  12286. finally {
  12287. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12288. this.Adapter.UpdateCommand.Connection.Close();
  12289. }
  12290. }
  12291. }
  12292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12294. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12295. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12296. public virtual int Update(string Title, global::System.Nullable<double> DefectedPercent, int Original_ID, string Original_Title, global::System.Nullable<double> Original_DefectedPercent) {
  12297. return this.Update(Title, DefectedPercent, Original_ID, Original_Title, Original_DefectedPercent, Original_ID);
  12298. }
  12299. }
  12300. /// <summary>
  12301. ///Represents the connection and commands used to retrieve and save data.
  12302. ///</summary>
  12303. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  12304. [global::System.ComponentModel.ToolboxItem(true)]
  12305. [global::System.ComponentModel.DataObjectAttribute(true)]
  12306. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  12307. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  12308. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12309. public partial class ShopTableAdapter : global::System.ComponentModel.Component {
  12310. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  12311. private global::System.Data.SqlClient.SqlConnection _connection;
  12312. private global::System.Data.SqlClient.SqlTransaction _transaction;
  12313. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  12314. private bool _clearBeforeFill;
  12315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12317. public ShopTableAdapter() {
  12318. this.ClearBeforeFill = true;
  12319. }
  12320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12322. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  12323. get {
  12324. if ((this._adapter == null)) {
  12325. this.InitAdapter();
  12326. }
  12327. return this._adapter;
  12328. }
  12329. }
  12330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12332. internal global::System.Data.SqlClient.SqlConnection Connection {
  12333. get {
  12334. if ((this._connection == null)) {
  12335. this.InitConnection();
  12336. }
  12337. return this._connection;
  12338. }
  12339. set {
  12340. this._connection = value;
  12341. if ((this.Adapter.InsertCommand != null)) {
  12342. this.Adapter.InsertCommand.Connection = value;
  12343. }
  12344. if ((this.Adapter.DeleteCommand != null)) {
  12345. this.Adapter.DeleteCommand.Connection = value;
  12346. }
  12347. if ((this.Adapter.UpdateCommand != null)) {
  12348. this.Adapter.UpdateCommand.Connection = value;
  12349. }
  12350. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12351. if ((this.CommandCollection[i] != null)) {
  12352. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  12353. }
  12354. }
  12355. }
  12356. }
  12357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12359. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  12360. get {
  12361. return this._transaction;
  12362. }
  12363. set {
  12364. this._transaction = value;
  12365. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12366. this.CommandCollection[i].Transaction = this._transaction;
  12367. }
  12368. if (((this.Adapter != null)
  12369. && (this.Adapter.DeleteCommand != null))) {
  12370. this.Adapter.DeleteCommand.Transaction = this._transaction;
  12371. }
  12372. if (((this.Adapter != null)
  12373. && (this.Adapter.InsertCommand != null))) {
  12374. this.Adapter.InsertCommand.Transaction = this._transaction;
  12375. }
  12376. if (((this.Adapter != null)
  12377. && (this.Adapter.UpdateCommand != null))) {
  12378. this.Adapter.UpdateCommand.Transaction = this._transaction;
  12379. }
  12380. }
  12381. }
  12382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12384. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  12385. get {
  12386. if ((this._commandCollection == null)) {
  12387. this.InitCommandCollection();
  12388. }
  12389. return this._commandCollection;
  12390. }
  12391. }
  12392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12394. public bool ClearBeforeFill {
  12395. get {
  12396. return this._clearBeforeFill;
  12397. }
  12398. set {
  12399. this._clearBeforeFill = value;
  12400. }
  12401. }
  12402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12404. private void InitAdapter() {
  12405. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  12406. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  12407. tableMapping.SourceTable = "Table";
  12408. tableMapping.DataSetTable = "Shop";
  12409. tableMapping.ColumnMappings.Add("ID", "ID");
  12410. tableMapping.ColumnMappings.Add("Title", "Title");
  12411. tableMapping.ColumnMappings.Add("Address", "Address");
  12412. tableMapping.ColumnMappings.Add("AgentID", "AgentID");
  12413. this._adapter.TableMappings.Add(tableMapping);
  12414. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  12415. this._adapter.DeleteCommand.Connection = this.Connection;
  12416. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Shop] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Ti" +
  12417. "tle) AND ((@IsNull_Address = 1 AND [Address] IS NULL) OR ([Address] = @Original_" +
  12418. "Address)) AND ([AgentID] = @Original_AgentID))";
  12419. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  12420. 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, "", "", ""));
  12421. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12422. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Address", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12423. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Address", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12424. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AgentID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AgentID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12425. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  12426. this._adapter.InsertCommand.Connection = this.Connection;
  12427. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Shop] ([Title], [Address], [AgentID]) VALUES (@Title, @Address" +
  12428. ", @AgentID);\r\nSELECT ID, Title, Address, AgentID FROM Shop WHERE (ID = SCOPE_IDE" +
  12429. "NTITY())";
  12430. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  12431. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12432. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Address", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12433. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AgentID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AgentID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12434. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  12435. this._adapter.UpdateCommand.Connection = this.Connection;
  12436. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Shop] SET [Title] = @Title, [Address] = @Address, [AgentID] = @AgentID WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ((@IsNull_Address = 1 AND [Address] IS NULL) OR ([Address] = @Original_Address)) AND ([AgentID] = @Original_AgentID));
  12437. SELECT ID, Title, Address, AgentID FROM Shop WHERE (ID = @ID)";
  12438. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  12439. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12440. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Address", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12441. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AgentID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AgentID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12442. 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, "", "", ""));
  12443. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12444. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Address", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12445. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Address", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12446. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AgentID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AgentID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12447. 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, "", "", ""));
  12448. }
  12449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12451. private void InitConnection() {
  12452. this._connection = new global::System.Data.SqlClient.SqlConnection();
  12453. this._connection.ConnectionString = global::TestWSR4.Properties.Settings.Default.TestWSR4ConnectionString;
  12454. }
  12455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12457. private void InitCommandCollection() {
  12458. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  12459. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  12460. this._commandCollection[0].Connection = this.Connection;
  12461. this._commandCollection[0].CommandText = "SELECT ID, Title, Address, AgentID FROM dbo.Shop";
  12462. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  12463. }
  12464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12466. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12467. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  12468. public virtual int Fill(TestWSR4DataSet.ShopDataTable dataTable) {
  12469. this.Adapter.SelectCommand = this.CommandCollection[0];
  12470. if ((this.ClearBeforeFill == true)) {
  12471. dataTable.Clear();
  12472. }
  12473. int returnValue = this.Adapter.Fill(dataTable);
  12474. return returnValue;
  12475. }
  12476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12478. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12479. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  12480. public virtual TestWSR4DataSet.ShopDataTable GetData() {
  12481. this.Adapter.SelectCommand = this.CommandCollection[0];
  12482. TestWSR4DataSet.ShopDataTable dataTable = new TestWSR4DataSet.ShopDataTable();
  12483. this.Adapter.Fill(dataTable);
  12484. return dataTable;
  12485. }
  12486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12488. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12489. public virtual int Update(TestWSR4DataSet.ShopDataTable dataTable) {
  12490. return this.Adapter.Update(dataTable);
  12491. }
  12492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12494. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12495. public virtual int Update(TestWSR4DataSet dataSet) {
  12496. return this.Adapter.Update(dataSet, "Shop");
  12497. }
  12498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12500. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12501. public virtual int Update(global::System.Data.DataRow dataRow) {
  12502. return this.Adapter.Update(new global::System.Data.DataRow[] {
  12503. dataRow});
  12504. }
  12505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12507. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12508. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  12509. return this.Adapter.Update(dataRows);
  12510. }
  12511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12513. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12514. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  12515. public virtual int Delete(int Original_ID, string Original_Title, string Original_Address, int Original_AgentID) {
  12516. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  12517. if ((Original_Title == null)) {
  12518. throw new global::System.ArgumentNullException("Original_Title");
  12519. }
  12520. else {
  12521. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  12522. }
  12523. if ((Original_Address == null)) {
  12524. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  12525. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  12526. }
  12527. else {
  12528. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  12529. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Address));
  12530. }
  12531. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_AgentID));
  12532. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  12533. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12534. != global::System.Data.ConnectionState.Open)) {
  12535. this.Adapter.DeleteCommand.Connection.Open();
  12536. }
  12537. try {
  12538. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  12539. return returnValue;
  12540. }
  12541. finally {
  12542. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12543. this.Adapter.DeleteCommand.Connection.Close();
  12544. }
  12545. }
  12546. }
  12547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12549. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12550. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  12551. public virtual int Insert(string Title, string Address, int AgentID) {
  12552. if ((Title == null)) {
  12553. throw new global::System.ArgumentNullException("Title");
  12554. }
  12555. else {
  12556. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  12557. }
  12558. if ((Address == null)) {
  12559. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  12560. }
  12561. else {
  12562. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Address));
  12563. }
  12564. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(AgentID));
  12565. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  12566. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12567. != global::System.Data.ConnectionState.Open)) {
  12568. this.Adapter.InsertCommand.Connection.Open();
  12569. }
  12570. try {
  12571. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  12572. return returnValue;
  12573. }
  12574. finally {
  12575. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12576. this.Adapter.InsertCommand.Connection.Close();
  12577. }
  12578. }
  12579. }
  12580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12582. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12583. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12584. public virtual int Update(string Title, string Address, int AgentID, int Original_ID, string Original_Title, string Original_Address, int Original_AgentID, int ID) {
  12585. if ((Title == null)) {
  12586. throw new global::System.ArgumentNullException("Title");
  12587. }
  12588. else {
  12589. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  12590. }
  12591. if ((Address == null)) {
  12592. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  12593. }
  12594. else {
  12595. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Address));
  12596. }
  12597. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(AgentID));
  12598. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID));
  12599. if ((Original_Title == null)) {
  12600. throw new global::System.ArgumentNullException("Original_Title");
  12601. }
  12602. else {
  12603. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Title));
  12604. }
  12605. if ((Original_Address == null)) {
  12606. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  12607. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  12608. }
  12609. else {
  12610. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  12611. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Address));
  12612. }
  12613. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_AgentID));
  12614. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(ID));
  12615. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  12616. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12617. != global::System.Data.ConnectionState.Open)) {
  12618. this.Adapter.UpdateCommand.Connection.Open();
  12619. }
  12620. try {
  12621. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  12622. return returnValue;
  12623. }
  12624. finally {
  12625. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12626. this.Adapter.UpdateCommand.Connection.Close();
  12627. }
  12628. }
  12629. }
  12630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12632. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12633. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12634. public virtual int Update(string Title, string Address, int AgentID, int Original_ID, string Original_Title, string Original_Address, int Original_AgentID) {
  12635. return this.Update(Title, Address, AgentID, Original_ID, Original_Title, Original_Address, Original_AgentID, Original_ID);
  12636. }
  12637. }
  12638. /// <summary>
  12639. ///Represents the connection and commands used to retrieve and save data.
  12640. ///</summary>
  12641. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  12642. [global::System.ComponentModel.ToolboxItem(true)]
  12643. [global::System.ComponentModel.DataObjectAttribute(true)]
  12644. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  12645. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  12646. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12647. public partial class SupplierTableAdapter : global::System.ComponentModel.Component {
  12648. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  12649. private global::System.Data.SqlClient.SqlConnection _connection;
  12650. private global::System.Data.SqlClient.SqlTransaction _transaction;
  12651. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  12652. private bool _clearBeforeFill;
  12653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12655. public SupplierTableAdapter() {
  12656. this.ClearBeforeFill = true;
  12657. }
  12658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12660. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  12661. get {
  12662. if ((this._adapter == null)) {
  12663. this.InitAdapter();
  12664. }
  12665. return this._adapter;
  12666. }
  12667. }
  12668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12670. internal global::System.Data.SqlClient.SqlConnection Connection {
  12671. get {
  12672. if ((this._connection == null)) {
  12673. this.InitConnection();
  12674. }
  12675. return this._connection;
  12676. }
  12677. set {
  12678. this._connection = value;
  12679. if ((this.Adapter.InsertCommand != null)) {
  12680. this.Adapter.InsertCommand.Connection = value;
  12681. }
  12682. if ((this.Adapter.DeleteCommand != null)) {
  12683. this.Adapter.DeleteCommand.Connection = value;
  12684. }
  12685. if ((this.Adapter.UpdateCommand != null)) {
  12686. this.Adapter.UpdateCommand.Connection = value;
  12687. }
  12688. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12689. if ((this.CommandCollection[i] != null)) {
  12690. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  12691. }
  12692. }
  12693. }
  12694. }
  12695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12697. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  12698. get {
  12699. return this._transaction;
  12700. }
  12701. set {
  12702. this._transaction = value;
  12703. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12704. this.CommandCollection[i].Transaction = this._transaction;
  12705. }
  12706. if (((this.Adapter != null)
  12707. && (this.Adapter.DeleteCommand != null))) {
  12708. this.Adapter.DeleteCommand.Transaction = this._transaction;
  12709. }
  12710. if (((this.Adapter != null)
  12711. && (this.Adapter.InsertCommand != null))) {
  12712. this.Adapter.InsertCommand.Transaction = this._transaction;
  12713. }
  12714. if (((this.Adapter != null)
  12715. && (this.Adapter.UpdateCommand != null))) {
  12716. this.Adapter.UpdateCommand.Transaction = this._transaction;
  12717. }
  12718. }
  12719. }
  12720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12722. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  12723. get {
  12724. if ((this._commandCollection == null)) {
  12725. this.InitCommandCollection();
  12726. }
  12727. return this._commandCollection;
  12728. }
  12729. }
  12730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12732. public bool ClearBeforeFill {
  12733. get {
  12734. return this._clearBeforeFill;
  12735. }
  12736. set {
  12737. this._clearBeforeFill = value;
  12738. }
  12739. }
  12740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12742. private void InitAdapter() {
  12743. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  12744. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  12745. tableMapping.SourceTable = "Table";
  12746. tableMapping.DataSetTable = "Supplier";
  12747. tableMapping.ColumnMappings.Add("ID", "ID");
  12748. tableMapping.ColumnMappings.Add("Title", "Title");
  12749. tableMapping.ColumnMappings.Add("INN", "INN");
  12750. tableMapping.ColumnMappings.Add("StartDate", "StartDate");
  12751. tableMapping.ColumnMappings.Add("QualityRating", "QualityRating");
  12752. tableMapping.ColumnMappings.Add("SupplierType", "SupplierType");
  12753. this._adapter.TableMappings.Add(tableMapping);
  12754. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  12755. this._adapter.DeleteCommand.Connection = this.Connection;
  12756. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Supplier] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([INN] = @Original_INN) AND ([StartDate] = @Original_StartDate) AND ((@IsNull_QualityRating = 1 AND [QualityRating] IS NULL) OR ([QualityRating] = @Original_QualityRating)) AND ((@IsNull_SupplierType = 1 AND [SupplierType] IS NULL) OR ([SupplierType] = @Original_SupplierType)))";
  12757. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  12758. 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, "", "", ""));
  12759. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12760. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_INN", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12761. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12762. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_QualityRating", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QualityRating", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12763. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QualityRating", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QualityRating", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12764. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SupplierType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierType", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12765. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SupplierType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12766. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  12767. this._adapter.InsertCommand.Connection = this.Connection;
  12768. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Supplier] ([Title], [INN], [StartDate], [QualityRating], [SupplierType]) VALUES (@Title, @INN, @StartDate, @QualityRating, @SupplierType);
  12769. SELECT ID, Title, INN, StartDate, QualityRating, SupplierType FROM Supplier WHERE (ID = SCOPE_IDENTITY())";
  12770. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  12771. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12772. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@INN", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12773. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12774. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QualityRating", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QualityRating", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12775. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SupplierType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12776. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  12777. this._adapter.UpdateCommand.Connection = this.Connection;
  12778. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Supplier] SET [Title] = @Title, [INN] = @INN, [StartDate] = @StartDate, [QualityRating] = @QualityRating, [SupplierType] = @SupplierType WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([INN] = @Original_INN) AND ([StartDate] = @Original_StartDate) AND ((@IsNull_QualityRating = 1 AND [QualityRating] IS NULL) OR ([QualityRating] = @Original_QualityRating)) AND ((@IsNull_SupplierType = 1 AND [SupplierType] IS NULL) OR ([SupplierType] = @Original_SupplierType)));
  12779. SELECT ID, Title, INN, StartDate, QualityRating, SupplierType FROM Supplier WHERE (ID = @ID)";
  12780. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  12781. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12782. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@INN", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12783. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12784. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QualityRating", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QualityRating", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12785. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SupplierType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12786. 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, "", "", ""));
  12787. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12788. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_INN", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12789. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12790. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_QualityRating", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QualityRating", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12791. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_QualityRating", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "QualityRating", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12792. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SupplierType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierType", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12793. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SupplierType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12794. 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, "", "", ""));
  12795. }
  12796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12798. private void InitConnection() {
  12799. this._connection = new global::System.Data.SqlClient.SqlConnection();
  12800. this._connection.ConnectionString = global::TestWSR4.Properties.Settings.Default.TestWSR4ConnectionString;
  12801. }
  12802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12804. private void InitCommandCollection() {
  12805. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  12806. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  12807. this._commandCollection[0].Connection = this.Connection;
  12808. this._commandCollection[0].CommandText = "SELECT ID, Title, INN, StartDate, QualityRating, SupplierType FROM dbo.Supplier";
  12809. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  12810. }
  12811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12813. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12814. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  12815. public virtual int Fill(TestWSR4DataSet.SupplierDataTable dataTable) {
  12816. this.Adapter.SelectCommand = this.CommandCollection[0];
  12817. if ((this.ClearBeforeFill == true)) {
  12818. dataTable.Clear();
  12819. }
  12820. int returnValue = this.Adapter.Fill(dataTable);
  12821. return returnValue;
  12822. }
  12823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12825. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12826. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  12827. public virtual TestWSR4DataSet.SupplierDataTable GetData() {
  12828. this.Adapter.SelectCommand = this.CommandCollection[0];
  12829. TestWSR4DataSet.SupplierDataTable dataTable = new TestWSR4DataSet.SupplierDataTable();
  12830. this.Adapter.Fill(dataTable);
  12831. return dataTable;
  12832. }
  12833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12835. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12836. public virtual int Update(TestWSR4DataSet.SupplierDataTable dataTable) {
  12837. return this.Adapter.Update(dataTable);
  12838. }
  12839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12841. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12842. public virtual int Update(TestWSR4DataSet dataSet) {
  12843. return this.Adapter.Update(dataSet, "Supplier");
  12844. }
  12845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12847. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12848. public virtual int Update(global::System.Data.DataRow dataRow) {
  12849. return this.Adapter.Update(new global::System.Data.DataRow[] {
  12850. dataRow});
  12851. }
  12852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12854. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12855. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  12856. return this.Adapter.Update(dataRows);
  12857. }
  12858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12860. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12861. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  12862. public virtual int Delete(int Original_ID, string Original_Title, string Original_INN, System.DateTime Original_StartDate, global::System.Nullable<int> Original_QualityRating, string Original_SupplierType) {
  12863. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  12864. if ((Original_Title == null)) {
  12865. throw new global::System.ArgumentNullException("Original_Title");
  12866. }
  12867. else {
  12868. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  12869. }
  12870. if ((Original_INN == null)) {
  12871. throw new global::System.ArgumentNullException("Original_INN");
  12872. }
  12873. else {
  12874. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_INN));
  12875. }
  12876. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartDate));
  12877. if ((Original_QualityRating.HasValue == true)) {
  12878. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  12879. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_QualityRating.Value));
  12880. }
  12881. else {
  12882. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  12883. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  12884. }
  12885. if ((Original_SupplierType == null)) {
  12886. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  12887. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  12888. }
  12889. else {
  12890. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  12891. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_SupplierType));
  12892. }
  12893. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  12894. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12895. != global::System.Data.ConnectionState.Open)) {
  12896. this.Adapter.DeleteCommand.Connection.Open();
  12897. }
  12898. try {
  12899. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  12900. return returnValue;
  12901. }
  12902. finally {
  12903. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12904. this.Adapter.DeleteCommand.Connection.Close();
  12905. }
  12906. }
  12907. }
  12908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12910. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12911. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  12912. public virtual int Insert(string Title, string INN, System.DateTime StartDate, global::System.Nullable<int> QualityRating, string SupplierType) {
  12913. if ((Title == null)) {
  12914. throw new global::System.ArgumentNullException("Title");
  12915. }
  12916. else {
  12917. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  12918. }
  12919. if ((INN == null)) {
  12920. throw new global::System.ArgumentNullException("INN");
  12921. }
  12922. else {
  12923. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(INN));
  12924. }
  12925. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(StartDate));
  12926. if ((QualityRating.HasValue == true)) {
  12927. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(QualityRating.Value));
  12928. }
  12929. else {
  12930. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  12931. }
  12932. if ((SupplierType == null)) {
  12933. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  12934. }
  12935. else {
  12936. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(SupplierType));
  12937. }
  12938. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  12939. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12940. != global::System.Data.ConnectionState.Open)) {
  12941. this.Adapter.InsertCommand.Connection.Open();
  12942. }
  12943. try {
  12944. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  12945. return returnValue;
  12946. }
  12947. finally {
  12948. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12949. this.Adapter.InsertCommand.Connection.Close();
  12950. }
  12951. }
  12952. }
  12953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12955. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12956. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12957. public virtual int Update(string Title, string INN, System.DateTime StartDate, global::System.Nullable<int> QualityRating, string SupplierType, int Original_ID, string Original_Title, string Original_INN, System.DateTime Original_StartDate, global::System.Nullable<int> Original_QualityRating, string Original_SupplierType, int ID) {
  12958. if ((Title == null)) {
  12959. throw new global::System.ArgumentNullException("Title");
  12960. }
  12961. else {
  12962. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  12963. }
  12964. if ((INN == null)) {
  12965. throw new global::System.ArgumentNullException("INN");
  12966. }
  12967. else {
  12968. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(INN));
  12969. }
  12970. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(StartDate));
  12971. if ((QualityRating.HasValue == true)) {
  12972. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(QualityRating.Value));
  12973. }
  12974. else {
  12975. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  12976. }
  12977. if ((SupplierType == null)) {
  12978. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  12979. }
  12980. else {
  12981. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(SupplierType));
  12982. }
  12983. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_ID));
  12984. if ((Original_Title == null)) {
  12985. throw new global::System.ArgumentNullException("Original_Title");
  12986. }
  12987. else {
  12988. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Title));
  12989. }
  12990. if ((Original_INN == null)) {
  12991. throw new global::System.ArgumentNullException("Original_INN");
  12992. }
  12993. else {
  12994. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_INN));
  12995. }
  12996. this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_StartDate));
  12997. if ((Original_QualityRating.HasValue == true)) {
  12998. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  12999. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_QualityRating.Value));
  13000. }
  13001. else {
  13002. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  13003. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  13004. }
  13005. if ((Original_SupplierType == null)) {
  13006. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  13007. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  13008. }
  13009. else {
  13010. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  13011. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_SupplierType));
  13012. }
  13013. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(ID));
  13014. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  13015. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  13016. != global::System.Data.ConnectionState.Open)) {
  13017. this.Adapter.UpdateCommand.Connection.Open();
  13018. }
  13019. try {
  13020. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  13021. return returnValue;
  13022. }
  13023. finally {
  13024. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  13025. this.Adapter.UpdateCommand.Connection.Close();
  13026. }
  13027. }
  13028. }
  13029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13031. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13032. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  13033. public virtual int Update(string Title, string INN, System.DateTime StartDate, global::System.Nullable<int> QualityRating, string SupplierType, int Original_ID, string Original_Title, string Original_INN, System.DateTime Original_StartDate, global::System.Nullable<int> Original_QualityRating, string Original_SupplierType) {
  13034. return this.Update(Title, INN, StartDate, QualityRating, SupplierType, Original_ID, Original_Title, Original_INN, Original_StartDate, Original_QualityRating, Original_SupplierType, Original_ID);
  13035. }
  13036. }
  13037. /// <summary>
  13038. ///Represents the connection and commands used to retrieve and save data.
  13039. ///</summary>
  13040. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  13041. [global::System.ComponentModel.ToolboxItem(true)]
  13042. [global::System.ComponentModel.DataObjectAttribute(true)]
  13043. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  13044. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  13045. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13046. public partial class ItogSumProductTableAdapter : global::System.ComponentModel.Component {
  13047. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  13048. private global::System.Data.SqlClient.SqlConnection _connection;
  13049. private global::System.Data.SqlClient.SqlTransaction _transaction;
  13050. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  13051. private bool _clearBeforeFill;
  13052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13054. public ItogSumProductTableAdapter() {
  13055. this.ClearBeforeFill = true;
  13056. }
  13057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13059. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  13060. get {
  13061. if ((this._adapter == null)) {
  13062. this.InitAdapter();
  13063. }
  13064. return this._adapter;
  13065. }
  13066. }
  13067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13069. internal global::System.Data.SqlClient.SqlConnection Connection {
  13070. get {
  13071. if ((this._connection == null)) {
  13072. this.InitConnection();
  13073. }
  13074. return this._connection;
  13075. }
  13076. set {
  13077. this._connection = value;
  13078. if ((this.Adapter.InsertCommand != null)) {
  13079. this.Adapter.InsertCommand.Connection = value;
  13080. }
  13081. if ((this.Adapter.DeleteCommand != null)) {
  13082. this.Adapter.DeleteCommand.Connection = value;
  13083. }
  13084. if ((this.Adapter.UpdateCommand != null)) {
  13085. this.Adapter.UpdateCommand.Connection = value;
  13086. }
  13087. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  13088. if ((this.CommandCollection[i] != null)) {
  13089. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  13090. }
  13091. }
  13092. }
  13093. }
  13094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13096. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  13097. get {
  13098. return this._transaction;
  13099. }
  13100. set {
  13101. this._transaction = value;
  13102. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  13103. this.CommandCollection[i].Transaction = this._transaction;
  13104. }
  13105. if (((this.Adapter != null)
  13106. && (this.Adapter.DeleteCommand != null))) {
  13107. this.Adapter.DeleteCommand.Transaction = this._transaction;
  13108. }
  13109. if (((this.Adapter != null)
  13110. && (this.Adapter.InsertCommand != null))) {
  13111. this.Adapter.InsertCommand.Transaction = this._transaction;
  13112. }
  13113. if (((this.Adapter != null)
  13114. && (this.Adapter.UpdateCommand != null))) {
  13115. this.Adapter.UpdateCommand.Transaction = this._transaction;
  13116. }
  13117. }
  13118. }
  13119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13121. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  13122. get {
  13123. if ((this._commandCollection == null)) {
  13124. this.InitCommandCollection();
  13125. }
  13126. return this._commandCollection;
  13127. }
  13128. }
  13129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13131. public bool ClearBeforeFill {
  13132. get {
  13133. return this._clearBeforeFill;
  13134. }
  13135. set {
  13136. this._clearBeforeFill = value;
  13137. }
  13138. }
  13139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13141. private void InitAdapter() {
  13142. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  13143. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  13144. tableMapping.SourceTable = "Table";
  13145. tableMapping.DataSetTable = "ItogSumProduct";
  13146. tableMapping.ColumnMappings.Add("Product", "Product");
  13147. tableMapping.ColumnMappings.Add("Cost", "Cost");
  13148. tableMapping.ColumnMappings.Add("ID", "ID");
  13149. this._adapter.TableMappings.Add(tableMapping);
  13150. }
  13151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13153. private void InitConnection() {
  13154. this._connection = new global::System.Data.SqlClient.SqlConnection();
  13155. this._connection.ConnectionString = global::TestWSR4.Properties.Settings.Default.TestWSR4ConnectionString;
  13156. }
  13157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13159. private void InitCommandCollection() {
  13160. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  13161. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  13162. this._commandCollection[0].Connection = this.Connection;
  13163. this._commandCollection[0].CommandText = "SELECT Product, Cost, ID FROM dbo.ItogSumProduct";
  13164. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  13165. }
  13166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13168. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13169. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  13170. public virtual int Fill(TestWSR4DataSet.ItogSumProductDataTable dataTable) {
  13171. this.Adapter.SelectCommand = this.CommandCollection[0];
  13172. if ((this.ClearBeforeFill == true)) {
  13173. dataTable.Clear();
  13174. }
  13175. int returnValue = this.Adapter.Fill(dataTable);
  13176. return returnValue;
  13177. }
  13178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13180. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13181. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  13182. public virtual TestWSR4DataSet.ItogSumProductDataTable GetData() {
  13183. this.Adapter.SelectCommand = this.CommandCollection[0];
  13184. TestWSR4DataSet.ItogSumProductDataTable dataTable = new TestWSR4DataSet.ItogSumProductDataTable();
  13185. this.Adapter.Fill(dataTable);
  13186. return dataTable;
  13187. }
  13188. }
  13189. /// <summary>
  13190. ///Represents the connection and commands used to retrieve and save data.
  13191. ///</summary>
  13192. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  13193. [global::System.ComponentModel.ToolboxItem(true)]
  13194. [global::System.ComponentModel.DataObjectAttribute(true)]
  13195. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  13196. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  13197. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13198. public partial class ProductsPredTableAdapter : global::System.ComponentModel.Component {
  13199. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  13200. private global::System.Data.SqlClient.SqlConnection _connection;
  13201. private global::System.Data.SqlClient.SqlTransaction _transaction;
  13202. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  13203. private bool _clearBeforeFill;
  13204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13206. public ProductsPredTableAdapter() {
  13207. this.ClearBeforeFill = true;
  13208. }
  13209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13211. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  13212. get {
  13213. if ((this._adapter == null)) {
  13214. this.InitAdapter();
  13215. }
  13216. return this._adapter;
  13217. }
  13218. }
  13219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13221. internal global::System.Data.SqlClient.SqlConnection Connection {
  13222. get {
  13223. if ((this._connection == null)) {
  13224. this.InitConnection();
  13225. }
  13226. return this._connection;
  13227. }
  13228. set {
  13229. this._connection = value;
  13230. if ((this.Adapter.InsertCommand != null)) {
  13231. this.Adapter.InsertCommand.Connection = value;
  13232. }
  13233. if ((this.Adapter.DeleteCommand != null)) {
  13234. this.Adapter.DeleteCommand.Connection = value;
  13235. }
  13236. if ((this.Adapter.UpdateCommand != null)) {
  13237. this.Adapter.UpdateCommand.Connection = value;
  13238. }
  13239. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  13240. if ((this.CommandCollection[i] != null)) {
  13241. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  13242. }
  13243. }
  13244. }
  13245. }
  13246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13248. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  13249. get {
  13250. return this._transaction;
  13251. }
  13252. set {
  13253. this._transaction = value;
  13254. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  13255. this.CommandCollection[i].Transaction = this._transaction;
  13256. }
  13257. if (((this.Adapter != null)
  13258. && (this.Adapter.DeleteCommand != null))) {
  13259. this.Adapter.DeleteCommand.Transaction = this._transaction;
  13260. }
  13261. if (((this.Adapter != null)
  13262. && (this.Adapter.InsertCommand != null))) {
  13263. this.Adapter.InsertCommand.Transaction = this._transaction;
  13264. }
  13265. if (((this.Adapter != null)
  13266. && (this.Adapter.UpdateCommand != null))) {
  13267. this.Adapter.UpdateCommand.Transaction = this._transaction;
  13268. }
  13269. }
  13270. }
  13271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13273. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  13274. get {
  13275. if ((this._commandCollection == null)) {
  13276. this.InitCommandCollection();
  13277. }
  13278. return this._commandCollection;
  13279. }
  13280. }
  13281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13283. public bool ClearBeforeFill {
  13284. get {
  13285. return this._clearBeforeFill;
  13286. }
  13287. set {
  13288. this._clearBeforeFill = value;
  13289. }
  13290. }
  13291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13293. private void InitAdapter() {
  13294. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  13295. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  13296. tableMapping.SourceTable = "Table";
  13297. tableMapping.DataSetTable = "ProductsPred";
  13298. tableMapping.ColumnMappings.Add("ID", "ID");
  13299. tableMapping.ColumnMappings.Add("Title", "Title");
  13300. tableMapping.ColumnMappings.Add("Type", "Type");
  13301. tableMapping.ColumnMappings.Add("Cost", "Cost");
  13302. tableMapping.ColumnMappings.Add("ArticleNumber", "ArticleNumber");
  13303. tableMapping.ColumnMappings.Add("ProductionPersonCount", "ProductionPersonCount");
  13304. tableMapping.ColumnMappings.Add("ProductionWorkshopNumber", "ProductionWorkshopNumber");
  13305. tableMapping.ColumnMappings.Add("MinCostForAgent", "MinCostForAgent");
  13306. this._adapter.TableMappings.Add(tableMapping);
  13307. }
  13308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13310. private void InitConnection() {
  13311. this._connection = new global::System.Data.SqlClient.SqlConnection();
  13312. this._connection.ConnectionString = global::TestWSR4.Properties.Settings.Default.TestWSR4ConnectionString;
  13313. }
  13314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13316. private void InitCommandCollection() {
  13317. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  13318. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  13319. this._commandCollection[0].Connection = this.Connection;
  13320. this._commandCollection[0].CommandText = "SELECT ID, Title, Type, Cost, ArticleNumber, ProductionPersonCount, ProductionWor" +
  13321. "kshopNumber, MinCostForAgent FROM dbo.ProductsPred";
  13322. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  13323. }
  13324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13326. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13327. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  13328. public virtual int Fill(TestWSR4DataSet.ProductsPredDataTable dataTable) {
  13329. this.Adapter.SelectCommand = this.CommandCollection[0];
  13330. if ((this.ClearBeforeFill == true)) {
  13331. dataTable.Clear();
  13332. }
  13333. int returnValue = this.Adapter.Fill(dataTable);
  13334. return returnValue;
  13335. }
  13336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13338. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13339. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  13340. public virtual TestWSR4DataSet.ProductsPredDataTable GetData() {
  13341. this.Adapter.SelectCommand = this.CommandCollection[0];
  13342. TestWSR4DataSet.ProductsPredDataTable dataTable = new TestWSR4DataSet.ProductsPredDataTable();
  13343. this.Adapter.Fill(dataTable);
  13344. return dataTable;
  13345. }
  13346. }
  13347. /// <summary>
  13348. ///Represents the connection and commands used to retrieve and save data.
  13349. ///</summary>
  13350. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  13351. [global::System.ComponentModel.ToolboxItem(true)]
  13352. [global::System.ComponentModel.DataObjectAttribute(true)]
  13353. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  13354. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  13355. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13356. public partial class ProizvProductTableAdapter : global::System.ComponentModel.Component {
  13357. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  13358. private global::System.Data.SqlClient.SqlConnection _connection;
  13359. private global::System.Data.SqlClient.SqlTransaction _transaction;
  13360. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  13361. private bool _clearBeforeFill;
  13362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13364. public ProizvProductTableAdapter() {
  13365. this.ClearBeforeFill = true;
  13366. }
  13367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13369. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  13370. get {
  13371. if ((this._adapter == null)) {
  13372. this.InitAdapter();
  13373. }
  13374. return this._adapter;
  13375. }
  13376. }
  13377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13379. internal global::System.Data.SqlClient.SqlConnection Connection {
  13380. get {
  13381. if ((this._connection == null)) {
  13382. this.InitConnection();
  13383. }
  13384. return this._connection;
  13385. }
  13386. set {
  13387. this._connection = value;
  13388. if ((this.Adapter.InsertCommand != null)) {
  13389. this.Adapter.InsertCommand.Connection = value;
  13390. }
  13391. if ((this.Adapter.DeleteCommand != null)) {
  13392. this.Adapter.DeleteCommand.Connection = value;
  13393. }
  13394. if ((this.Adapter.UpdateCommand != null)) {
  13395. this.Adapter.UpdateCommand.Connection = value;
  13396. }
  13397. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  13398. if ((this.CommandCollection[i] != null)) {
  13399. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  13400. }
  13401. }
  13402. }
  13403. }
  13404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13406. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  13407. get {
  13408. return this._transaction;
  13409. }
  13410. set {
  13411. this._transaction = value;
  13412. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  13413. this.CommandCollection[i].Transaction = this._transaction;
  13414. }
  13415. if (((this.Adapter != null)
  13416. && (this.Adapter.DeleteCommand != null))) {
  13417. this.Adapter.DeleteCommand.Transaction = this._transaction;
  13418. }
  13419. if (((this.Adapter != null)
  13420. && (this.Adapter.InsertCommand != null))) {
  13421. this.Adapter.InsertCommand.Transaction = this._transaction;
  13422. }
  13423. if (((this.Adapter != null)
  13424. && (this.Adapter.UpdateCommand != null))) {
  13425. this.Adapter.UpdateCommand.Transaction = this._transaction;
  13426. }
  13427. }
  13428. }
  13429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13431. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  13432. get {
  13433. if ((this._commandCollection == null)) {
  13434. this.InitCommandCollection();
  13435. }
  13436. return this._commandCollection;
  13437. }
  13438. }
  13439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13441. public bool ClearBeforeFill {
  13442. get {
  13443. return this._clearBeforeFill;
  13444. }
  13445. set {
  13446. this._clearBeforeFill = value;
  13447. }
  13448. }
  13449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13451. private void InitAdapter() {
  13452. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  13453. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  13454. tableMapping.SourceTable = "Table";
  13455. tableMapping.DataSetTable = "ProizvProduct";
  13456. tableMapping.ColumnMappings.Add("ID", "ID");
  13457. tableMapping.ColumnMappings.Add("Product", "Product");
  13458. tableMapping.ColumnMappings.Add("Material", "Material");
  13459. tableMapping.ColumnMappings.Add("Count", "Count");
  13460. tableMapping.ColumnMappings.Add("Cost", "Cost");
  13461. tableMapping.ColumnMappings.Add("Proizv", "Proizv");
  13462. this._adapter.TableMappings.Add(tableMapping);
  13463. }
  13464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13466. private void InitConnection() {
  13467. this._connection = new global::System.Data.SqlClient.SqlConnection();
  13468. this._connection.ConnectionString = global::TestWSR4.Properties.Settings.Default.TestWSR4ConnectionString;
  13469. }
  13470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13472. private void InitCommandCollection() {
  13473. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  13474. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  13475. this._commandCollection[0].Connection = this.Connection;
  13476. this._commandCollection[0].CommandText = "SELECT ID, Product, Material, Count, Cost, Proizv FROM dbo.ProizvProduct";
  13477. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  13478. }
  13479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13481. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13482. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  13483. public virtual int Fill(TestWSR4DataSet.ProizvProductDataTable dataTable) {
  13484. this.Adapter.SelectCommand = this.CommandCollection[0];
  13485. if ((this.ClearBeforeFill == true)) {
  13486. dataTable.Clear();
  13487. }
  13488. int returnValue = this.Adapter.Fill(dataTable);
  13489. return returnValue;
  13490. }
  13491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13493. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13494. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  13495. public virtual TestWSR4DataSet.ProizvProductDataTable GetData() {
  13496. this.Adapter.SelectCommand = this.CommandCollection[0];
  13497. TestWSR4DataSet.ProizvProductDataTable dataTable = new TestWSR4DataSet.ProizvProductDataTable();
  13498. this.Adapter.Fill(dataTable);
  13499. return dataTable;
  13500. }
  13501. }
  13502. /// <summary>
  13503. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  13504. ///</summary>
  13505. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  13506. [global::System.ComponentModel.ToolboxItem(true)]
  13507. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  13508. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  13509. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  13510. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  13511. private UpdateOrderOption _updateOrder;
  13512. private AgentTableAdapter _agentTableAdapter;
  13513. private AgentPriorityHistoryTableAdapter _agentPriorityHistoryTableAdapter;
  13514. private AgentTypeTableAdapter _agentTypeTableAdapter;
  13515. private MaterialTableAdapter _materialTableAdapter;
  13516. private MaterialCountHistoryTableAdapter _materialCountHistoryTableAdapter;
  13517. private MaterialSupplierTableAdapter _materialSupplierTableAdapter;
  13518. private MaterialTypeTableAdapter _materialTypeTableAdapter;
  13519. private ProductTableAdapter _productTableAdapter;
  13520. private ProductCostHistoryTableAdapter _productCostHistoryTableAdapter;
  13521. private ProductMaterialTableAdapter _productMaterialTableAdapter;
  13522. private ProductSaleTableAdapter _productSaleTableAdapter;
  13523. private ProductTypeTableAdapter _productTypeTableAdapter;
  13524. private ShopTableAdapter _shopTableAdapter;
  13525. private SupplierTableAdapter _supplierTableAdapter;
  13526. private bool _backupDataSetBeforeUpdate;
  13527. private global::System.Data.IDbConnection _connection;
  13528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13530. public UpdateOrderOption UpdateOrder {
  13531. get {
  13532. return this._updateOrder;
  13533. }
  13534. set {
  13535. this._updateOrder = value;
  13536. }
  13537. }
  13538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13540. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13541. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13542. "a", "System.Drawing.Design.UITypeEditor")]
  13543. public AgentTableAdapter AgentTableAdapter {
  13544. get {
  13545. return this._agentTableAdapter;
  13546. }
  13547. set {
  13548. this._agentTableAdapter = value;
  13549. }
  13550. }
  13551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13553. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13554. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13555. "a", "System.Drawing.Design.UITypeEditor")]
  13556. public AgentPriorityHistoryTableAdapter AgentPriorityHistoryTableAdapter {
  13557. get {
  13558. return this._agentPriorityHistoryTableAdapter;
  13559. }
  13560. set {
  13561. this._agentPriorityHistoryTableAdapter = value;
  13562. }
  13563. }
  13564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13566. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13567. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13568. "a", "System.Drawing.Design.UITypeEditor")]
  13569. public AgentTypeTableAdapter AgentTypeTableAdapter {
  13570. get {
  13571. return this._agentTypeTableAdapter;
  13572. }
  13573. set {
  13574. this._agentTypeTableAdapter = value;
  13575. }
  13576. }
  13577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13579. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13580. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13581. "a", "System.Drawing.Design.UITypeEditor")]
  13582. public MaterialTableAdapter MaterialTableAdapter {
  13583. get {
  13584. return this._materialTableAdapter;
  13585. }
  13586. set {
  13587. this._materialTableAdapter = value;
  13588. }
  13589. }
  13590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13592. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13593. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13594. "a", "System.Drawing.Design.UITypeEditor")]
  13595. public MaterialCountHistoryTableAdapter MaterialCountHistoryTableAdapter {
  13596. get {
  13597. return this._materialCountHistoryTableAdapter;
  13598. }
  13599. set {
  13600. this._materialCountHistoryTableAdapter = value;
  13601. }
  13602. }
  13603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13605. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13606. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13607. "a", "System.Drawing.Design.UITypeEditor")]
  13608. public MaterialSupplierTableAdapter MaterialSupplierTableAdapter {
  13609. get {
  13610. return this._materialSupplierTableAdapter;
  13611. }
  13612. set {
  13613. this._materialSupplierTableAdapter = value;
  13614. }
  13615. }
  13616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13618. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13619. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13620. "a", "System.Drawing.Design.UITypeEditor")]
  13621. public MaterialTypeTableAdapter MaterialTypeTableAdapter {
  13622. get {
  13623. return this._materialTypeTableAdapter;
  13624. }
  13625. set {
  13626. this._materialTypeTableAdapter = value;
  13627. }
  13628. }
  13629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13631. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13632. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13633. "a", "System.Drawing.Design.UITypeEditor")]
  13634. public ProductTableAdapter ProductTableAdapter {
  13635. get {
  13636. return this._productTableAdapter;
  13637. }
  13638. set {
  13639. this._productTableAdapter = value;
  13640. }
  13641. }
  13642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13644. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13645. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13646. "a", "System.Drawing.Design.UITypeEditor")]
  13647. public ProductCostHistoryTableAdapter ProductCostHistoryTableAdapter {
  13648. get {
  13649. return this._productCostHistoryTableAdapter;
  13650. }
  13651. set {
  13652. this._productCostHistoryTableAdapter = value;
  13653. }
  13654. }
  13655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13657. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13658. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13659. "a", "System.Drawing.Design.UITypeEditor")]
  13660. public ProductMaterialTableAdapter ProductMaterialTableAdapter {
  13661. get {
  13662. return this._productMaterialTableAdapter;
  13663. }
  13664. set {
  13665. this._productMaterialTableAdapter = value;
  13666. }
  13667. }
  13668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13670. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13671. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13672. "a", "System.Drawing.Design.UITypeEditor")]
  13673. public ProductSaleTableAdapter ProductSaleTableAdapter {
  13674. get {
  13675. return this._productSaleTableAdapter;
  13676. }
  13677. set {
  13678. this._productSaleTableAdapter = value;
  13679. }
  13680. }
  13681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13683. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13684. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13685. "a", "System.Drawing.Design.UITypeEditor")]
  13686. public ProductTypeTableAdapter ProductTypeTableAdapter {
  13687. get {
  13688. return this._productTypeTableAdapter;
  13689. }
  13690. set {
  13691. this._productTypeTableAdapter = value;
  13692. }
  13693. }
  13694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13696. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13697. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13698. "a", "System.Drawing.Design.UITypeEditor")]
  13699. public ShopTableAdapter ShopTableAdapter {
  13700. get {
  13701. return this._shopTableAdapter;
  13702. }
  13703. set {
  13704. this._shopTableAdapter = value;
  13705. }
  13706. }
  13707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13709. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13710. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13711. "a", "System.Drawing.Design.UITypeEditor")]
  13712. public SupplierTableAdapter SupplierTableAdapter {
  13713. get {
  13714. return this._supplierTableAdapter;
  13715. }
  13716. set {
  13717. this._supplierTableAdapter = value;
  13718. }
  13719. }
  13720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13722. public bool BackupDataSetBeforeUpdate {
  13723. get {
  13724. return this._backupDataSetBeforeUpdate;
  13725. }
  13726. set {
  13727. this._backupDataSetBeforeUpdate = value;
  13728. }
  13729. }
  13730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13732. [global::System.ComponentModel.Browsable(false)]
  13733. public global::System.Data.IDbConnection Connection {
  13734. get {
  13735. if ((this._connection != null)) {
  13736. return this._connection;
  13737. }
  13738. if (((this._agentTableAdapter != null)
  13739. && (this._agentTableAdapter.Connection != null))) {
  13740. return this._agentTableAdapter.Connection;
  13741. }
  13742. if (((this._agentPriorityHistoryTableAdapter != null)
  13743. && (this._agentPriorityHistoryTableAdapter.Connection != null))) {
  13744. return this._agentPriorityHistoryTableAdapter.Connection;
  13745. }
  13746. if (((this._agentTypeTableAdapter != null)
  13747. && (this._agentTypeTableAdapter.Connection != null))) {
  13748. return this._agentTypeTableAdapter.Connection;
  13749. }
  13750. if (((this._materialTableAdapter != null)
  13751. && (this._materialTableAdapter.Connection != null))) {
  13752. return this._materialTableAdapter.Connection;
  13753. }
  13754. if (((this._materialCountHistoryTableAdapter != null)
  13755. && (this._materialCountHistoryTableAdapter.Connection != null))) {
  13756. return this._materialCountHistoryTableAdapter.Connection;
  13757. }
  13758. if (((this._materialSupplierTableAdapter != null)
  13759. && (this._materialSupplierTableAdapter.Connection != null))) {
  13760. return this._materialSupplierTableAdapter.Connection;
  13761. }
  13762. if (((this._materialTypeTableAdapter != null)
  13763. && (this._materialTypeTableAdapter.Connection != null))) {
  13764. return this._materialTypeTableAdapter.Connection;
  13765. }
  13766. if (((this._productTableAdapter != null)
  13767. && (this._productTableAdapter.Connection != null))) {
  13768. return this._productTableAdapter.Connection;
  13769. }
  13770. if (((this._productCostHistoryTableAdapter != null)
  13771. && (this._productCostHistoryTableAdapter.Connection != null))) {
  13772. return this._productCostHistoryTableAdapter.Connection;
  13773. }
  13774. if (((this._productMaterialTableAdapter != null)
  13775. && (this._productMaterialTableAdapter.Connection != null))) {
  13776. return this._productMaterialTableAdapter.Connection;
  13777. }
  13778. if (((this._productSaleTableAdapter != null)
  13779. && (this._productSaleTableAdapter.Connection != null))) {
  13780. return this._productSaleTableAdapter.Connection;
  13781. }
  13782. if (((this._productTypeTableAdapter != null)
  13783. && (this._productTypeTableAdapter.Connection != null))) {
  13784. return this._productTypeTableAdapter.Connection;
  13785. }
  13786. if (((this._shopTableAdapter != null)
  13787. && (this._shopTableAdapter.Connection != null))) {
  13788. return this._shopTableAdapter.Connection;
  13789. }
  13790. if (((this._supplierTableAdapter != null)
  13791. && (this._supplierTableAdapter.Connection != null))) {
  13792. return this._supplierTableAdapter.Connection;
  13793. }
  13794. return null;
  13795. }
  13796. set {
  13797. this._connection = value;
  13798. }
  13799. }
  13800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13802. [global::System.ComponentModel.Browsable(false)]
  13803. public int TableAdapterInstanceCount {
  13804. get {
  13805. int count = 0;
  13806. if ((this._agentTableAdapter != null)) {
  13807. count = (count + 1);
  13808. }
  13809. if ((this._agentPriorityHistoryTableAdapter != null)) {
  13810. count = (count + 1);
  13811. }
  13812. if ((this._agentTypeTableAdapter != null)) {
  13813. count = (count + 1);
  13814. }
  13815. if ((this._materialTableAdapter != null)) {
  13816. count = (count + 1);
  13817. }
  13818. if ((this._materialCountHistoryTableAdapter != null)) {
  13819. count = (count + 1);
  13820. }
  13821. if ((this._materialSupplierTableAdapter != null)) {
  13822. count = (count + 1);
  13823. }
  13824. if ((this._materialTypeTableAdapter != null)) {
  13825. count = (count + 1);
  13826. }
  13827. if ((this._productTableAdapter != null)) {
  13828. count = (count + 1);
  13829. }
  13830. if ((this._productCostHistoryTableAdapter != null)) {
  13831. count = (count + 1);
  13832. }
  13833. if ((this._productMaterialTableAdapter != null)) {
  13834. count = (count + 1);
  13835. }
  13836. if ((this._productSaleTableAdapter != null)) {
  13837. count = (count + 1);
  13838. }
  13839. if ((this._productTypeTableAdapter != null)) {
  13840. count = (count + 1);
  13841. }
  13842. if ((this._shopTableAdapter != null)) {
  13843. count = (count + 1);
  13844. }
  13845. if ((this._supplierTableAdapter != null)) {
  13846. count = (count + 1);
  13847. }
  13848. return count;
  13849. }
  13850. }
  13851. /// <summary>
  13852. ///Update rows in top-down order.
  13853. ///</summary>
  13854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13856. private int UpdateUpdatedRows(TestWSR4DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  13857. int result = 0;
  13858. if ((this._agentTypeTableAdapter != null)) {
  13859. global::System.Data.DataRow[] updatedRows = dataSet.AgentType.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13860. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13861. if (((updatedRows != null)
  13862. && (0 < updatedRows.Length))) {
  13863. result = (result + this._agentTypeTableAdapter.Update(updatedRows));
  13864. allChangedRows.AddRange(updatedRows);
  13865. }
  13866. }
  13867. if ((this._materialTypeTableAdapter != null)) {
  13868. global::System.Data.DataRow[] updatedRows = dataSet.MaterialType.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13869. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13870. if (((updatedRows != null)
  13871. && (0 < updatedRows.Length))) {
  13872. result = (result + this._materialTypeTableAdapter.Update(updatedRows));
  13873. allChangedRows.AddRange(updatedRows);
  13874. }
  13875. }
  13876. if ((this._productTypeTableAdapter != null)) {
  13877. global::System.Data.DataRow[] updatedRows = dataSet.ProductType.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13878. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13879. if (((updatedRows != null)
  13880. && (0 < updatedRows.Length))) {
  13881. result = (result + this._productTypeTableAdapter.Update(updatedRows));
  13882. allChangedRows.AddRange(updatedRows);
  13883. }
  13884. }
  13885. if ((this._agentTableAdapter != null)) {
  13886. global::System.Data.DataRow[] updatedRows = dataSet.Agent.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13887. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13888. if (((updatedRows != null)
  13889. && (0 < updatedRows.Length))) {
  13890. result = (result + this._agentTableAdapter.Update(updatedRows));
  13891. allChangedRows.AddRange(updatedRows);
  13892. }
  13893. }
  13894. if ((this._materialTableAdapter != null)) {
  13895. global::System.Data.DataRow[] updatedRows = dataSet.Material.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13896. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13897. if (((updatedRows != null)
  13898. && (0 < updatedRows.Length))) {
  13899. result = (result + this._materialTableAdapter.Update(updatedRows));
  13900. allChangedRows.AddRange(updatedRows);
  13901. }
  13902. }
  13903. if ((this._supplierTableAdapter != null)) {
  13904. global::System.Data.DataRow[] updatedRows = dataSet.Supplier.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13905. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13906. if (((updatedRows != null)
  13907. && (0 < updatedRows.Length))) {
  13908. result = (result + this._supplierTableAdapter.Update(updatedRows));
  13909. allChangedRows.AddRange(updatedRows);
  13910. }
  13911. }
  13912. if ((this._productTableAdapter != null)) {
  13913. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13914. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13915. if (((updatedRows != null)
  13916. && (0 < updatedRows.Length))) {
  13917. result = (result + this._productTableAdapter.Update(updatedRows));
  13918. allChangedRows.AddRange(updatedRows);
  13919. }
  13920. }
  13921. if ((this._shopTableAdapter != null)) {
  13922. global::System.Data.DataRow[] updatedRows = dataSet.Shop.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13923. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13924. if (((updatedRows != null)
  13925. && (0 < updatedRows.Length))) {
  13926. result = (result + this._shopTableAdapter.Update(updatedRows));
  13927. allChangedRows.AddRange(updatedRows);
  13928. }
  13929. }
  13930. if ((this._productSaleTableAdapter != null)) {
  13931. global::System.Data.DataRow[] updatedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13932. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13933. if (((updatedRows != null)
  13934. && (0 < updatedRows.Length))) {
  13935. result = (result + this._productSaleTableAdapter.Update(updatedRows));
  13936. allChangedRows.AddRange(updatedRows);
  13937. }
  13938. }
  13939. if ((this._productCostHistoryTableAdapter != null)) {
  13940. global::System.Data.DataRow[] updatedRows = dataSet.ProductCostHistory.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13941. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13942. if (((updatedRows != null)
  13943. && (0 < updatedRows.Length))) {
  13944. result = (result + this._productCostHistoryTableAdapter.Update(updatedRows));
  13945. allChangedRows.AddRange(updatedRows);
  13946. }
  13947. }
  13948. if ((this._materialSupplierTableAdapter != null)) {
  13949. global::System.Data.DataRow[] updatedRows = dataSet.MaterialSupplier.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13950. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13951. if (((updatedRows != null)
  13952. && (0 < updatedRows.Length))) {
  13953. result = (result + this._materialSupplierTableAdapter.Update(updatedRows));
  13954. allChangedRows.AddRange(updatedRows);
  13955. }
  13956. }
  13957. if ((this._materialCountHistoryTableAdapter != null)) {
  13958. global::System.Data.DataRow[] updatedRows = dataSet.MaterialCountHistory.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13959. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13960. if (((updatedRows != null)
  13961. && (0 < updatedRows.Length))) {
  13962. result = (result + this._materialCountHistoryTableAdapter.Update(updatedRows));
  13963. allChangedRows.AddRange(updatedRows);
  13964. }
  13965. }
  13966. if ((this._agentPriorityHistoryTableAdapter != null)) {
  13967. global::System.Data.DataRow[] updatedRows = dataSet.AgentPriorityHistory.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13968. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13969. if (((updatedRows != null)
  13970. && (0 < updatedRows.Length))) {
  13971. result = (result + this._agentPriorityHistoryTableAdapter.Update(updatedRows));
  13972. allChangedRows.AddRange(updatedRows);
  13973. }
  13974. }
  13975. if ((this._productMaterialTableAdapter != null)) {
  13976. global::System.Data.DataRow[] updatedRows = dataSet.ProductMaterial.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13977. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13978. if (((updatedRows != null)
  13979. && (0 < updatedRows.Length))) {
  13980. result = (result + this._productMaterialTableAdapter.Update(updatedRows));
  13981. allChangedRows.AddRange(updatedRows);
  13982. }
  13983. }
  13984. return result;
  13985. }
  13986. /// <summary>
  13987. ///Insert rows in top-down order.
  13988. ///</summary>
  13989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13991. private int UpdateInsertedRows(TestWSR4DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  13992. int result = 0;
  13993. if ((this._agentTypeTableAdapter != null)) {
  13994. global::System.Data.DataRow[] addedRows = dataSet.AgentType.Select(null, null, global::System.Data.DataViewRowState.Added);
  13995. if (((addedRows != null)
  13996. && (0 < addedRows.Length))) {
  13997. result = (result + this._agentTypeTableAdapter.Update(addedRows));
  13998. allAddedRows.AddRange(addedRows);
  13999. }
  14000. }
  14001. if ((this._materialTypeTableAdapter != null)) {
  14002. global::System.Data.DataRow[] addedRows = dataSet.MaterialType.Select(null, null, global::System.Data.DataViewRowState.Added);
  14003. if (((addedRows != null)
  14004. && (0 < addedRows.Length))) {
  14005. result = (result + this._materialTypeTableAdapter.Update(addedRows));
  14006. allAddedRows.AddRange(addedRows);
  14007. }
  14008. }
  14009. if ((this._productTypeTableAdapter != null)) {
  14010. global::System.Data.DataRow[] addedRows = dataSet.ProductType.Select(null, null, global::System.Data.DataViewRowState.Added);
  14011. if (((addedRows != null)
  14012. && (0 < addedRows.Length))) {
  14013. result = (result + this._productTypeTableAdapter.Update(addedRows));
  14014. allAddedRows.AddRange(addedRows);
  14015. }
  14016. }
  14017. if ((this._agentTableAdapter != null)) {
  14018. global::System.Data.DataRow[] addedRows = dataSet.Agent.Select(null, null, global::System.Data.DataViewRowState.Added);
  14019. if (((addedRows != null)
  14020. && (0 < addedRows.Length))) {
  14021. result = (result + this._agentTableAdapter.Update(addedRows));
  14022. allAddedRows.AddRange(addedRows);
  14023. }
  14024. }
  14025. if ((this._materialTableAdapter != null)) {
  14026. global::System.Data.DataRow[] addedRows = dataSet.Material.Select(null, null, global::System.Data.DataViewRowState.Added);
  14027. if (((addedRows != null)
  14028. && (0 < addedRows.Length))) {
  14029. result = (result + this._materialTableAdapter.Update(addedRows));
  14030. allAddedRows.AddRange(addedRows);
  14031. }
  14032. }
  14033. if ((this._supplierTableAdapter != null)) {
  14034. global::System.Data.DataRow[] addedRows = dataSet.Supplier.Select(null, null, global::System.Data.DataViewRowState.Added);
  14035. if (((addedRows != null)
  14036. && (0 < addedRows.Length))) {
  14037. result = (result + this._supplierTableAdapter.Update(addedRows));
  14038. allAddedRows.AddRange(addedRows);
  14039. }
  14040. }
  14041. if ((this._productTableAdapter != null)) {
  14042. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  14043. if (((addedRows != null)
  14044. && (0 < addedRows.Length))) {
  14045. result = (result + this._productTableAdapter.Update(addedRows));
  14046. allAddedRows.AddRange(addedRows);
  14047. }
  14048. }
  14049. if ((this._shopTableAdapter != null)) {
  14050. global::System.Data.DataRow[] addedRows = dataSet.Shop.Select(null, null, global::System.Data.DataViewRowState.Added);
  14051. if (((addedRows != null)
  14052. && (0 < addedRows.Length))) {
  14053. result = (result + this._shopTableAdapter.Update(addedRows));
  14054. allAddedRows.AddRange(addedRows);
  14055. }
  14056. }
  14057. if ((this._productSaleTableAdapter != null)) {
  14058. global::System.Data.DataRow[] addedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Added);
  14059. if (((addedRows != null)
  14060. && (0 < addedRows.Length))) {
  14061. result = (result + this._productSaleTableAdapter.Update(addedRows));
  14062. allAddedRows.AddRange(addedRows);
  14063. }
  14064. }
  14065. if ((this._productCostHistoryTableAdapter != null)) {
  14066. global::System.Data.DataRow[] addedRows = dataSet.ProductCostHistory.Select(null, null, global::System.Data.DataViewRowState.Added);
  14067. if (((addedRows != null)
  14068. && (0 < addedRows.Length))) {
  14069. result = (result + this._productCostHistoryTableAdapter.Update(addedRows));
  14070. allAddedRows.AddRange(addedRows);
  14071. }
  14072. }
  14073. if ((this._materialSupplierTableAdapter != null)) {
  14074. global::System.Data.DataRow[] addedRows = dataSet.MaterialSupplier.Select(null, null, global::System.Data.DataViewRowState.Added);
  14075. if (((addedRows != null)
  14076. && (0 < addedRows.Length))) {
  14077. result = (result + this._materialSupplierTableAdapter.Update(addedRows));
  14078. allAddedRows.AddRange(addedRows);
  14079. }
  14080. }
  14081. if ((this._materialCountHistoryTableAdapter != null)) {
  14082. global::System.Data.DataRow[] addedRows = dataSet.MaterialCountHistory.Select(null, null, global::System.Data.DataViewRowState.Added);
  14083. if (((addedRows != null)
  14084. && (0 < addedRows.Length))) {
  14085. result = (result + this._materialCountHistoryTableAdapter.Update(addedRows));
  14086. allAddedRows.AddRange(addedRows);
  14087. }
  14088. }
  14089. if ((this._agentPriorityHistoryTableAdapter != null)) {
  14090. global::System.Data.DataRow[] addedRows = dataSet.AgentPriorityHistory.Select(null, null, global::System.Data.DataViewRowState.Added);
  14091. if (((addedRows != null)
  14092. && (0 < addedRows.Length))) {
  14093. result = (result + this._agentPriorityHistoryTableAdapter.Update(addedRows));
  14094. allAddedRows.AddRange(addedRows);
  14095. }
  14096. }
  14097. if ((this._productMaterialTableAdapter != null)) {
  14098. global::System.Data.DataRow[] addedRows = dataSet.ProductMaterial.Select(null, null, global::System.Data.DataViewRowState.Added);
  14099. if (((addedRows != null)
  14100. && (0 < addedRows.Length))) {
  14101. result = (result + this._productMaterialTableAdapter.Update(addedRows));
  14102. allAddedRows.AddRange(addedRows);
  14103. }
  14104. }
  14105. return result;
  14106. }
  14107. /// <summary>
  14108. ///Delete rows in bottom-up order.
  14109. ///</summary>
  14110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14112. private int UpdateDeletedRows(TestWSR4DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  14113. int result = 0;
  14114. if ((this._productMaterialTableAdapter != null)) {
  14115. global::System.Data.DataRow[] deletedRows = dataSet.ProductMaterial.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  14116. if (((deletedRows != null)
  14117. && (0 < deletedRows.Length))) {
  14118. result = (result + this._productMaterialTableAdapter.Update(deletedRows));
  14119. allChangedRows.AddRange(deletedRows);
  14120. }
  14121. }
  14122. if ((this._agentPriorityHistoryTableAdapter != null)) {
  14123. global::System.Data.DataRow[] deletedRows = dataSet.AgentPriorityHistory.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  14124. if (((deletedRows != null)
  14125. && (0 < deletedRows.Length))) {
  14126. result = (result + this._agentPriorityHistoryTableAdapter.Update(deletedRows));
  14127. allChangedRows.AddRange(deletedRows);
  14128. }
  14129. }
  14130. if ((this._materialCountHistoryTableAdapter != null)) {
  14131. global::System.Data.DataRow[] deletedRows = dataSet.MaterialCountHistory.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  14132. if (((deletedRows != null)
  14133. && (0 < deletedRows.Length))) {
  14134. result = (result + this._materialCountHistoryTableAdapter.Update(deletedRows));
  14135. allChangedRows.AddRange(deletedRows);
  14136. }
  14137. }
  14138. if ((this._materialSupplierTableAdapter != null)) {
  14139. global::System.Data.DataRow[] deletedRows = dataSet.MaterialSupplier.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  14140. if (((deletedRows != null)
  14141. && (0 < deletedRows.Length))) {
  14142. result = (result + this._materialSupplierTableAdapter.Update(deletedRows));
  14143. allChangedRows.AddRange(deletedRows);
  14144. }
  14145. }
  14146. if ((this._productCostHistoryTableAdapter != null)) {
  14147. global::System.Data.DataRow[] deletedRows = dataSet.ProductCostHistory.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  14148. if (((deletedRows != null)
  14149. && (0 < deletedRows.Length))) {
  14150. result = (result + this._productCostHistoryTableAdapter.Update(deletedRows));
  14151. allChangedRows.AddRange(deletedRows);
  14152. }
  14153. }
  14154. if ((this._productSaleTableAdapter != null)) {
  14155. global::System.Data.DataRow[] deletedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  14156. if (((deletedRows != null)
  14157. && (0 < deletedRows.Length))) {
  14158. result = (result + this._productSaleTableAdapter.Update(deletedRows));
  14159. allChangedRows.AddRange(deletedRows);
  14160. }
  14161. }
  14162. if ((this._shopTableAdapter != null)) {
  14163. global::System.Data.DataRow[] deletedRows = dataSet.Shop.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  14164. if (((deletedRows != null)
  14165. && (0 < deletedRows.Length))) {
  14166. result = (result + this._shopTableAdapter.Update(deletedRows));
  14167. allChangedRows.AddRange(deletedRows);
  14168. }
  14169. }
  14170. if ((this._productTableAdapter != null)) {
  14171. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  14172. if (((deletedRows != null)
  14173. && (0 < deletedRows.Length))) {
  14174. result = (result + this._productTableAdapter.Update(deletedRows));
  14175. allChangedRows.AddRange(deletedRows);
  14176. }
  14177. }
  14178. if ((this._supplierTableAdapter != null)) {
  14179. global::System.Data.DataRow[] deletedRows = dataSet.Supplier.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  14180. if (((deletedRows != null)
  14181. && (0 < deletedRows.Length))) {
  14182. result = (result + this._supplierTableAdapter.Update(deletedRows));
  14183. allChangedRows.AddRange(deletedRows);
  14184. }
  14185. }
  14186. if ((this._materialTableAdapter != null)) {
  14187. global::System.Data.DataRow[] deletedRows = dataSet.Material.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  14188. if (((deletedRows != null)
  14189. && (0 < deletedRows.Length))) {
  14190. result = (result + this._materialTableAdapter.Update(deletedRows));
  14191. allChangedRows.AddRange(deletedRows);
  14192. }
  14193. }
  14194. if ((this._agentTableAdapter != null)) {
  14195. global::System.Data.DataRow[] deletedRows = dataSet.Agent.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  14196. if (((deletedRows != null)
  14197. && (0 < deletedRows.Length))) {
  14198. result = (result + this._agentTableAdapter.Update(deletedRows));
  14199. allChangedRows.AddRange(deletedRows);
  14200. }
  14201. }
  14202. if ((this._productTypeTableAdapter != null)) {
  14203. global::System.Data.DataRow[] deletedRows = dataSet.ProductType.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  14204. if (((deletedRows != null)
  14205. && (0 < deletedRows.Length))) {
  14206. result = (result + this._productTypeTableAdapter.Update(deletedRows));
  14207. allChangedRows.AddRange(deletedRows);
  14208. }
  14209. }
  14210. if ((this._materialTypeTableAdapter != null)) {
  14211. global::System.Data.DataRow[] deletedRows = dataSet.MaterialType.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  14212. if (((deletedRows != null)
  14213. && (0 < deletedRows.Length))) {
  14214. result = (result + this._materialTypeTableAdapter.Update(deletedRows));
  14215. allChangedRows.AddRange(deletedRows);
  14216. }
  14217. }
  14218. if ((this._agentTypeTableAdapter != null)) {
  14219. global::System.Data.DataRow[] deletedRows = dataSet.AgentType.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  14220. if (((deletedRows != null)
  14221. && (0 < deletedRows.Length))) {
  14222. result = (result + this._agentTypeTableAdapter.Update(deletedRows));
  14223. allChangedRows.AddRange(deletedRows);
  14224. }
  14225. }
  14226. return result;
  14227. }
  14228. /// <summary>
  14229. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  14230. ///</summary>
  14231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14233. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  14234. if (((updatedRows == null)
  14235. || (updatedRows.Length < 1))) {
  14236. return updatedRows;
  14237. }
  14238. if (((allAddedRows == null)
  14239. || (allAddedRows.Count < 1))) {
  14240. return updatedRows;
  14241. }
  14242. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  14243. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  14244. global::System.Data.DataRow row = updatedRows[i];
  14245. if ((allAddedRows.Contains(row) == false)) {
  14246. realUpdatedRows.Add(row);
  14247. }
  14248. }
  14249. return realUpdatedRows.ToArray();
  14250. }
  14251. /// <summary>
  14252. ///Update all changes to the dataset.
  14253. ///</summary>
  14254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14256. public virtual int UpdateAll(TestWSR4DataSet dataSet) {
  14257. if ((dataSet == null)) {
  14258. throw new global::System.ArgumentNullException("dataSet");
  14259. }
  14260. if ((dataSet.HasChanges() == false)) {
  14261. return 0;
  14262. }
  14263. if (((this._agentTableAdapter != null)
  14264. && (this.MatchTableAdapterConnection(this._agentTableAdapter.Connection) == false))) {
  14265. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  14266. "r, должны использовать одинаковую строку подключения.");
  14267. }
  14268. if (((this._agentPriorityHistoryTableAdapter != null)
  14269. && (this.MatchTableAdapterConnection(this._agentPriorityHistoryTableAdapter.Connection) == false))) {
  14270. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  14271. "r, должны использовать одинаковую строку подключения.");
  14272. }
  14273. if (((this._agentTypeTableAdapter != null)
  14274. && (this.MatchTableAdapterConnection(this._agentTypeTableAdapter.Connection) == false))) {
  14275. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  14276. "r, должны использовать одинаковую строку подключения.");
  14277. }
  14278. if (((this._materialTableAdapter != null)
  14279. && (this.MatchTableAdapterConnection(this._materialTableAdapter.Connection) == false))) {
  14280. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  14281. "r, должны использовать одинаковую строку подключения.");
  14282. }
  14283. if (((this._materialCountHistoryTableAdapter != null)
  14284. && (this.MatchTableAdapterConnection(this._materialCountHistoryTableAdapter.Connection) == false))) {
  14285. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  14286. "r, должны использовать одинаковую строку подключения.");
  14287. }
  14288. if (((this._materialSupplierTableAdapter != null)
  14289. && (this.MatchTableAdapterConnection(this._materialSupplierTableAdapter.Connection) == false))) {
  14290. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  14291. "r, должны использовать одинаковую строку подключения.");
  14292. }
  14293. if (((this._materialTypeTableAdapter != null)
  14294. && (this.MatchTableAdapterConnection(this._materialTypeTableAdapter.Connection) == false))) {
  14295. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  14296. "r, должны использовать одинаковую строку подключения.");
  14297. }
  14298. if (((this._productTableAdapter != null)
  14299. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  14300. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  14301. "r, должны использовать одинаковую строку подключения.");
  14302. }
  14303. if (((this._productCostHistoryTableAdapter != null)
  14304. && (this.MatchTableAdapterConnection(this._productCostHistoryTableAdapter.Connection) == false))) {
  14305. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  14306. "r, должны использовать одинаковую строку подключения.");
  14307. }
  14308. if (((this._productMaterialTableAdapter != null)
  14309. && (this.MatchTableAdapterConnection(this._productMaterialTableAdapter.Connection) == false))) {
  14310. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  14311. "r, должны использовать одинаковую строку подключения.");
  14312. }
  14313. if (((this._productSaleTableAdapter != null)
  14314. && (this.MatchTableAdapterConnection(this._productSaleTableAdapter.Connection) == false))) {
  14315. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  14316. "r, должны использовать одинаковую строку подключения.");
  14317. }
  14318. if (((this._productTypeTableAdapter != null)
  14319. && (this.MatchTableAdapterConnection(this._productTypeTableAdapter.Connection) == false))) {
  14320. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  14321. "r, должны использовать одинаковую строку подключения.");
  14322. }
  14323. if (((this._shopTableAdapter != null)
  14324. && (this.MatchTableAdapterConnection(this._shopTableAdapter.Connection) == false))) {
  14325. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  14326. "r, должны использовать одинаковую строку подключения.");
  14327. }
  14328. if (((this._supplierTableAdapter != null)
  14329. && (this.MatchTableAdapterConnection(this._supplierTableAdapter.Connection) == false))) {
  14330. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  14331. "r, должны использовать одинаковую строку подключения.");
  14332. }
  14333. global::System.Data.IDbConnection workConnection = this.Connection;
  14334. if ((workConnection == null)) {
  14335. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  14336. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  14337. }
  14338. bool workConnOpened = false;
  14339. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  14340. == global::System.Data.ConnectionState.Broken)) {
  14341. workConnection.Close();
  14342. }
  14343. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  14344. workConnection.Open();
  14345. workConnOpened = true;
  14346. }
  14347. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  14348. if ((workTransaction == null)) {
  14349. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  14350. "и или текущее состояние не позволяет начать транзакцию.");
  14351. }
  14352. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  14353. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  14354. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  14355. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  14356. int result = 0;
  14357. global::System.Data.DataSet backupDataSet = null;
  14358. if (this.BackupDataSetBeforeUpdate) {
  14359. backupDataSet = new global::System.Data.DataSet();
  14360. backupDataSet.Merge(dataSet);
  14361. }
  14362. try {
  14363. // ---- Prepare for update -----------
  14364. //
  14365. if ((this._agentTableAdapter != null)) {
  14366. revertConnections.Add(this._agentTableAdapter, this._agentTableAdapter.Connection);
  14367. this._agentTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  14368. this._agentTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  14369. if (this._agentTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  14370. this._agentTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  14371. adaptersWithAcceptChangesDuringUpdate.Add(this._agentTableAdapter.Adapter);
  14372. }
  14373. }
  14374. if ((this._agentPriorityHistoryTableAdapter != null)) {
  14375. revertConnections.Add(this._agentPriorityHistoryTableAdapter, this._agentPriorityHistoryTableAdapter.Connection);
  14376. this._agentPriorityHistoryTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  14377. this._agentPriorityHistoryTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  14378. if (this._agentPriorityHistoryTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  14379. this._agentPriorityHistoryTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  14380. adaptersWithAcceptChangesDuringUpdate.Add(this._agentPriorityHistoryTableAdapter.Adapter);
  14381. }
  14382. }
  14383. if ((this._agentTypeTableAdapter != null)) {
  14384. revertConnections.Add(this._agentTypeTableAdapter, this._agentTypeTableAdapter.Connection);
  14385. this._agentTypeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  14386. this._agentTypeTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  14387. if (this._agentTypeTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  14388. this._agentTypeTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  14389. adaptersWithAcceptChangesDuringUpdate.Add(this._agentTypeTableAdapter.Adapter);
  14390. }
  14391. }
  14392. if ((this._materialTableAdapter != null)) {
  14393. revertConnections.Add(this._materialTableAdapter, this._materialTableAdapter.Connection);
  14394. this._materialTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  14395. this._materialTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  14396. if (this._materialTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  14397. this._materialTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  14398. adaptersWithAcceptChangesDuringUpdate.Add(this._materialTableAdapter.Adapter);
  14399. }
  14400. }
  14401. if ((this._materialCountHistoryTableAdapter != null)) {
  14402. revertConnections.Add(this._materialCountHistoryTableAdapter, this._materialCountHistoryTableAdapter.Connection);
  14403. this._materialCountHistoryTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  14404. this._materialCountHistoryTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  14405. if (this._materialCountHistoryTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  14406. this._materialCountHistoryTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  14407. adaptersWithAcceptChangesDuringUpdate.Add(this._materialCountHistoryTableAdapter.Adapter);
  14408. }
  14409. }
  14410. if ((this._materialSupplierTableAdapter != null)) {
  14411. revertConnections.Add(this._materialSupplierTableAdapter, this._materialSupplierTableAdapter.Connection);
  14412. this._materialSupplierTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  14413. this._materialSupplierTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  14414. if (this._materialSupplierTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  14415. this._materialSupplierTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  14416. adaptersWithAcceptChangesDuringUpdate.Add(this._materialSupplierTableAdapter.Adapter);
  14417. }
  14418. }
  14419. if ((this._materialTypeTableAdapter != null)) {
  14420. revertConnections.Add(this._materialTypeTableAdapter, this._materialTypeTableAdapter.Connection);
  14421. this._materialTypeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  14422. this._materialTypeTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  14423. if (this._materialTypeTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  14424. this._materialTypeTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  14425. adaptersWithAcceptChangesDuringUpdate.Add(this._materialTypeTableAdapter.Adapter);
  14426. }
  14427. }
  14428. if ((this._productTableAdapter != null)) {
  14429. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  14430. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  14431. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  14432. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  14433. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  14434. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  14435. }
  14436. }
  14437. if ((this._productCostHistoryTableAdapter != null)) {
  14438. revertConnections.Add(this._productCostHistoryTableAdapter, this._productCostHistoryTableAdapter.Connection);
  14439. this._productCostHistoryTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  14440. this._productCostHistoryTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  14441. if (this._productCostHistoryTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  14442. this._productCostHistoryTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  14443. adaptersWithAcceptChangesDuringUpdate.Add(this._productCostHistoryTableAdapter.Adapter);
  14444. }
  14445. }
  14446. if ((this._productMaterialTableAdapter != null)) {
  14447. revertConnections.Add(this._productMaterialTableAdapter, this._productMaterialTableAdapter.Connection);
  14448. this._productMaterialTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  14449. this._productMaterialTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  14450. if (this._productMaterialTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  14451. this._productMaterialTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  14452. adaptersWithAcceptChangesDuringUpdate.Add(this._productMaterialTableAdapter.Adapter);
  14453. }
  14454. }
  14455. if ((this._productSaleTableAdapter != null)) {
  14456. revertConnections.Add(this._productSaleTableAdapter, this._productSaleTableAdapter.Connection);
  14457. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  14458. this._productSaleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  14459. if (this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  14460. this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  14461. adaptersWithAcceptChangesDuringUpdate.Add(this._productSaleTableAdapter.Adapter);
  14462. }
  14463. }
  14464. if ((this._productTypeTableAdapter != null)) {
  14465. revertConnections.Add(this._productTypeTableAdapter, this._productTypeTableAdapter.Connection);
  14466. this._productTypeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  14467. this._productTypeTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  14468. if (this._productTypeTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  14469. this._productTypeTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  14470. adaptersWithAcceptChangesDuringUpdate.Add(this._productTypeTableAdapter.Adapter);
  14471. }
  14472. }
  14473. if ((this._shopTableAdapter != null)) {
  14474. revertConnections.Add(this._shopTableAdapter, this._shopTableAdapter.Connection);
  14475. this._shopTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  14476. this._shopTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  14477. if (this._shopTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  14478. this._shopTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  14479. adaptersWithAcceptChangesDuringUpdate.Add(this._shopTableAdapter.Adapter);
  14480. }
  14481. }
  14482. if ((this._supplierTableAdapter != null)) {
  14483. revertConnections.Add(this._supplierTableAdapter, this._supplierTableAdapter.Connection);
  14484. this._supplierTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  14485. this._supplierTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  14486. if (this._supplierTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  14487. this._supplierTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  14488. adaptersWithAcceptChangesDuringUpdate.Add(this._supplierTableAdapter.Adapter);
  14489. }
  14490. }
  14491. //
  14492. //---- Perform updates -----------
  14493. //
  14494. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  14495. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  14496. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  14497. }
  14498. else {
  14499. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  14500. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  14501. }
  14502. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  14503. //
  14504. //---- Commit updates -----------
  14505. //
  14506. workTransaction.Commit();
  14507. if ((0 < allAddedRows.Count)) {
  14508. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  14509. allAddedRows.CopyTo(rows);
  14510. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  14511. global::System.Data.DataRow row = rows[i];
  14512. row.AcceptChanges();
  14513. }
  14514. }
  14515. if ((0 < allChangedRows.Count)) {
  14516. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  14517. allChangedRows.CopyTo(rows);
  14518. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  14519. global::System.Data.DataRow row = rows[i];
  14520. row.AcceptChanges();
  14521. }
  14522. }
  14523. }
  14524. catch (global::System.Exception ex) {
  14525. workTransaction.Rollback();
  14526. // ---- Restore the dataset -----------
  14527. if (this.BackupDataSetBeforeUpdate) {
  14528. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  14529. dataSet.Clear();
  14530. dataSet.Merge(backupDataSet);
  14531. }
  14532. else {
  14533. if ((0 < allAddedRows.Count)) {
  14534. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  14535. allAddedRows.CopyTo(rows);
  14536. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  14537. global::System.Data.DataRow row = rows[i];
  14538. row.AcceptChanges();
  14539. row.SetAdded();
  14540. }
  14541. }
  14542. }
  14543. throw ex;
  14544. }
  14545. finally {
  14546. if (workConnOpened) {
  14547. workConnection.Close();
  14548. }
  14549. if ((this._agentTableAdapter != null)) {
  14550. this._agentTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._agentTableAdapter]));
  14551. this._agentTableAdapter.Transaction = null;
  14552. }
  14553. if ((this._agentPriorityHistoryTableAdapter != null)) {
  14554. this._agentPriorityHistoryTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._agentPriorityHistoryTableAdapter]));
  14555. this._agentPriorityHistoryTableAdapter.Transaction = null;
  14556. }
  14557. if ((this._agentTypeTableAdapter != null)) {
  14558. this._agentTypeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._agentTypeTableAdapter]));
  14559. this._agentTypeTableAdapter.Transaction = null;
  14560. }
  14561. if ((this._materialTableAdapter != null)) {
  14562. this._materialTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._materialTableAdapter]));
  14563. this._materialTableAdapter.Transaction = null;
  14564. }
  14565. if ((this._materialCountHistoryTableAdapter != null)) {
  14566. this._materialCountHistoryTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._materialCountHistoryTableAdapter]));
  14567. this._materialCountHistoryTableAdapter.Transaction = null;
  14568. }
  14569. if ((this._materialSupplierTableAdapter != null)) {
  14570. this._materialSupplierTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._materialSupplierTableAdapter]));
  14571. this._materialSupplierTableAdapter.Transaction = null;
  14572. }
  14573. if ((this._materialTypeTableAdapter != null)) {
  14574. this._materialTypeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._materialTypeTableAdapter]));
  14575. this._materialTypeTableAdapter.Transaction = null;
  14576. }
  14577. if ((this._productTableAdapter != null)) {
  14578. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  14579. this._productTableAdapter.Transaction = null;
  14580. }
  14581. if ((this._productCostHistoryTableAdapter != null)) {
  14582. this._productCostHistoryTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productCostHistoryTableAdapter]));
  14583. this._productCostHistoryTableAdapter.Transaction = null;
  14584. }
  14585. if ((this._productMaterialTableAdapter != null)) {
  14586. this._productMaterialTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productMaterialTableAdapter]));
  14587. this._productMaterialTableAdapter.Transaction = null;
  14588. }
  14589. if ((this._productSaleTableAdapter != null)) {
  14590. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productSaleTableAdapter]));
  14591. this._productSaleTableAdapter.Transaction = null;
  14592. }
  14593. if ((this._productTypeTableAdapter != null)) {
  14594. this._productTypeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTypeTableAdapter]));
  14595. this._productTypeTableAdapter.Transaction = null;
  14596. }
  14597. if ((this._shopTableAdapter != null)) {
  14598. this._shopTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._shopTableAdapter]));
  14599. this._shopTableAdapter.Transaction = null;
  14600. }
  14601. if ((this._supplierTableAdapter != null)) {
  14602. this._supplierTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._supplierTableAdapter]));
  14603. this._supplierTableAdapter.Transaction = null;
  14604. }
  14605. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  14606. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  14607. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  14608. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  14609. global::System.Data.Common.DataAdapter adapter = adapters[i];
  14610. adapter.AcceptChangesDuringUpdate = true;
  14611. }
  14612. }
  14613. }
  14614. return result;
  14615. }
  14616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14618. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  14619. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  14620. }
  14621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14623. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  14624. if ((this._connection != null)) {
  14625. return true;
  14626. }
  14627. if (((this.Connection == null)
  14628. || (inputConnection == null))) {
  14629. return true;
  14630. }
  14631. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  14632. return true;
  14633. }
  14634. return false;
  14635. }
  14636. /// <summary>
  14637. ///Update Order Option
  14638. ///</summary>
  14639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14640. public enum UpdateOrderOption {
  14641. InsertUpdateDelete = 0,
  14642. UpdateInsertDelete = 1,
  14643. }
  14644. /// <summary>
  14645. ///Used to sort self-referenced table's rows
  14646. ///</summary>
  14647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14648. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  14649. private global::System.Data.DataRelation _relation;
  14650. private int _childFirst;
  14651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14653. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  14654. this._relation = relation;
  14655. if (childFirst) {
  14656. this._childFirst = -1;
  14657. }
  14658. else {
  14659. this._childFirst = 1;
  14660. }
  14661. }
  14662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14664. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  14665. global::System.Diagnostics.Debug.Assert((row != null));
  14666. global::System.Data.DataRow root = row;
  14667. distance = 0;
  14668. 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>();
  14669. traversedRows[row] = row;
  14670. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  14671. for (
  14672. ; ((parent != null)
  14673. && (traversedRows.ContainsKey(parent) == false));
  14674. ) {
  14675. distance = (distance + 1);
  14676. root = parent;
  14677. traversedRows[parent] = parent;
  14678. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  14679. }
  14680. if ((distance == 0)) {
  14681. traversedRows.Clear();
  14682. traversedRows[row] = row;
  14683. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  14684. for (
  14685. ; ((parent != null)
  14686. && (traversedRows.ContainsKey(parent) == false));
  14687. ) {
  14688. distance = (distance + 1);
  14689. root = parent;
  14690. traversedRows[parent] = parent;
  14691. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  14692. }
  14693. }
  14694. return root;
  14695. }
  14696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14698. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  14699. if (object.ReferenceEquals(row1, row2)) {
  14700. return 0;
  14701. }
  14702. if ((row1 == null)) {
  14703. return -1;
  14704. }
  14705. if ((row2 == null)) {
  14706. return 1;
  14707. }
  14708. int distance1 = 0;
  14709. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  14710. int distance2 = 0;
  14711. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  14712. if (object.ReferenceEquals(root1, root2)) {
  14713. return (this._childFirst * distance1.CompareTo(distance2));
  14714. }
  14715. else {
  14716. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  14717. && (root2.Table != null)));
  14718. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  14719. return -1;
  14720. }
  14721. else {
  14722. return 1;
  14723. }
  14724. }
  14725. }
  14726. }
  14727. }
  14728. }
  14729. #pragma warning restore 1591