IS31Ivnickii7DataSet1.Designer.cs 323 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace IvnitskiiProdazhi1 {
  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("IS31Ivnickii7DataSet1")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class IS31Ivnickii7DataSet1 : global::System.Data.DataSet {
  22. private ОтделыDataTable tableОтделы;
  23. private ПродажиDataTable tableПродажи;
  24. private ТоварыDataTable tableТовары;
  25. private Все_отделы_и_их_продажиDataTable tableВсе_отделы_и_их_продажи;
  26. private Все_товары_их_продажи_и_отделыDataTable tableВсе_товары_их_продажи_и_отделы;
  27. private СвязиDataTable tableСвязи;
  28. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  29. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  30. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  31. public IS31Ivnickii7DataSet1() {
  32. this.BeginInit();
  33. this.InitClass();
  34. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  35. base.Tables.CollectionChanged += schemaChangedHandler;
  36. base.Relations.CollectionChanged += schemaChangedHandler;
  37. this.EndInit();
  38. }
  39. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  40. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  41. protected IS31Ivnickii7DataSet1(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  42. base(info, context, false) {
  43. if ((this.IsBinarySerialized(info, context) == true)) {
  44. this.InitVars(false);
  45. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  46. this.Tables.CollectionChanged += schemaChangedHandler1;
  47. this.Relations.CollectionChanged += schemaChangedHandler1;
  48. return;
  49. }
  50. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  51. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  52. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  53. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  54. if ((ds.Tables["Отделы"] != null)) {
  55. base.Tables.Add(new ОтделыDataTable(ds.Tables["Отделы"]));
  56. }
  57. if ((ds.Tables["Продажи"] != null)) {
  58. base.Tables.Add(new ПродажиDataTable(ds.Tables["Продажи"]));
  59. }
  60. if ((ds.Tables["Товары"] != null)) {
  61. base.Tables.Add(new ТоварыDataTable(ds.Tables["Товары"]));
  62. }
  63. if ((ds.Tables["Все отделы и их продажи"] != null)) {
  64. base.Tables.Add(new Все_отделы_и_их_продажиDataTable(ds.Tables["Все отделы и их продажи"]));
  65. }
  66. if ((ds.Tables["Все товары их продажи и отделы"] != null)) {
  67. base.Tables.Add(new Все_товары_их_продажи_и_отделыDataTable(ds.Tables["Все товары их продажи и отделы"]));
  68. }
  69. if ((ds.Tables["Связи"] != null)) {
  70. base.Tables.Add(new СвязиDataTable(ds.Tables["Связи"]));
  71. }
  72. this.DataSetName = ds.DataSetName;
  73. this.Prefix = ds.Prefix;
  74. this.Namespace = ds.Namespace;
  75. this.Locale = ds.Locale;
  76. this.CaseSensitive = ds.CaseSensitive;
  77. this.EnforceConstraints = ds.EnforceConstraints;
  78. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  79. this.InitVars();
  80. }
  81. else {
  82. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  83. }
  84. this.GetSerializationData(info, context);
  85. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  86. base.Tables.CollectionChanged += schemaChangedHandler;
  87. this.Relations.CollectionChanged += schemaChangedHandler;
  88. }
  89. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  90. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  91. [global::System.ComponentModel.Browsable(false)]
  92. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  93. public ОтделыDataTable Отделы {
  94. get {
  95. return this.tableОтделы;
  96. }
  97. }
  98. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  99. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  100. [global::System.ComponentModel.Browsable(false)]
  101. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  102. public ПродажиDataTable Продажи {
  103. get {
  104. return this.tableПродажи;
  105. }
  106. }
  107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  109. [global::System.ComponentModel.Browsable(false)]
  110. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  111. public ТоварыDataTable Товары {
  112. get {
  113. return this.tableТовары;
  114. }
  115. }
  116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  118. [global::System.ComponentModel.Browsable(false)]
  119. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  120. public Все_отделы_и_их_продажиDataTable Все_отделы_и_их_продажи {
  121. get {
  122. return this.tableВсе_отделы_и_их_продажи;
  123. }
  124. }
  125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  127. [global::System.ComponentModel.Browsable(false)]
  128. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  129. public Все_товары_их_продажи_и_отделыDataTable Все_товары_их_продажи_и_отделы {
  130. get {
  131. return this.tableВсе_товары_их_продажи_и_отделы;
  132. }
  133. }
  134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  136. [global::System.ComponentModel.Browsable(false)]
  137. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  138. public СвязиDataTable Связи {
  139. get {
  140. return this.tableСвязи;
  141. }
  142. }
  143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  145. [global::System.ComponentModel.BrowsableAttribute(true)]
  146. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  147. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  148. get {
  149. return this._schemaSerializationMode;
  150. }
  151. set {
  152. this._schemaSerializationMode = value;
  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.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  158. public new global::System.Data.DataTableCollection Tables {
  159. get {
  160. return base.Tables;
  161. }
  162. }
  163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  165. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  166. public new global::System.Data.DataRelationCollection Relations {
  167. get {
  168. return base.Relations;
  169. }
  170. }
  171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  173. protected override void InitializeDerivedDataSet() {
  174. this.BeginInit();
  175. this.InitClass();
  176. this.EndInit();
  177. }
  178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  180. public override global::System.Data.DataSet Clone() {
  181. IS31Ivnickii7DataSet1 cln = ((IS31Ivnickii7DataSet1)(base.Clone()));
  182. cln.InitVars();
  183. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  184. return cln;
  185. }
  186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  188. protected override bool ShouldSerializeTables() {
  189. return false;
  190. }
  191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  193. protected override bool ShouldSerializeRelations() {
  194. return false;
  195. }
  196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  198. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  199. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  200. this.Reset();
  201. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  202. ds.ReadXml(reader);
  203. if ((ds.Tables["Отделы"] != null)) {
  204. base.Tables.Add(new ОтделыDataTable(ds.Tables["Отделы"]));
  205. }
  206. if ((ds.Tables["Продажи"] != null)) {
  207. base.Tables.Add(new ПродажиDataTable(ds.Tables["Продажи"]));
  208. }
  209. if ((ds.Tables["Товары"] != null)) {
  210. base.Tables.Add(new ТоварыDataTable(ds.Tables["Товары"]));
  211. }
  212. if ((ds.Tables["Все отделы и их продажи"] != null)) {
  213. base.Tables.Add(new Все_отделы_и_их_продажиDataTable(ds.Tables["Все отделы и их продажи"]));
  214. }
  215. if ((ds.Tables["Все товары их продажи и отделы"] != null)) {
  216. base.Tables.Add(new Все_товары_их_продажи_и_отделыDataTable(ds.Tables["Все товары их продажи и отделы"]));
  217. }
  218. if ((ds.Tables["Связи"] != null)) {
  219. base.Tables.Add(new СвязиDataTable(ds.Tables["Связи"]));
  220. }
  221. this.DataSetName = ds.DataSetName;
  222. this.Prefix = ds.Prefix;
  223. this.Namespace = ds.Namespace;
  224. this.Locale = ds.Locale;
  225. this.CaseSensitive = ds.CaseSensitive;
  226. this.EnforceConstraints = ds.EnforceConstraints;
  227. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  228. this.InitVars();
  229. }
  230. else {
  231. this.ReadXml(reader);
  232. this.InitVars();
  233. }
  234. }
  235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  237. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  238. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  239. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  240. stream.Position = 0;
  241. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  242. }
  243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  245. internal void InitVars() {
  246. this.InitVars(true);
  247. }
  248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  250. internal void InitVars(bool initTable) {
  251. this.tableОтделы = ((ОтделыDataTable)(base.Tables["Отделы"]));
  252. if ((initTable == true)) {
  253. if ((this.tableОтделы != null)) {
  254. this.tableОтделы.InitVars();
  255. }
  256. }
  257. this.tableПродажи = ((ПродажиDataTable)(base.Tables["Продажи"]));
  258. if ((initTable == true)) {
  259. if ((this.tableПродажи != null)) {
  260. this.tableПродажи.InitVars();
  261. }
  262. }
  263. this.tableТовары = ((ТоварыDataTable)(base.Tables["Товары"]));
  264. if ((initTable == true)) {
  265. if ((this.tableТовары != null)) {
  266. this.tableТовары.InitVars();
  267. }
  268. }
  269. this.tableВсе_отделы_и_их_продажи = ((Все_отделы_и_их_продажиDataTable)(base.Tables["Все отделы и их продажи"]));
  270. if ((initTable == true)) {
  271. if ((this.tableВсе_отделы_и_их_продажи != null)) {
  272. this.tableВсе_отделы_и_их_продажи.InitVars();
  273. }
  274. }
  275. this.tableВсе_товары_их_продажи_и_отделы = ((Все_товары_их_продажи_и_отделыDataTable)(base.Tables["Все товары их продажи и отделы"]));
  276. if ((initTable == true)) {
  277. if ((this.tableВсе_товары_их_продажи_и_отделы != null)) {
  278. this.tableВсе_товары_их_продажи_и_отделы.InitVars();
  279. }
  280. }
  281. this.tableСвязи = ((СвязиDataTable)(base.Tables["Связи"]));
  282. if ((initTable == true)) {
  283. if ((this.tableСвязи != null)) {
  284. this.tableСвязи.InitVars();
  285. }
  286. }
  287. }
  288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  290. private void InitClass() {
  291. this.DataSetName = "IS31Ivnickii7DataSet1";
  292. this.Prefix = "";
  293. this.Namespace = "http://tempuri.org/IS31Ivnickii7DataSet1.xsd";
  294. this.EnforceConstraints = true;
  295. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  296. this.tableОтделы = new ОтделыDataTable();
  297. base.Tables.Add(this.tableОтделы);
  298. this.tableПродажи = new ПродажиDataTable();
  299. base.Tables.Add(this.tableПродажи);
  300. this.tableТовары = new ТоварыDataTable();
  301. base.Tables.Add(this.tableТовары);
  302. this.tableВсе_отделы_и_их_продажи = new Все_отделы_и_их_продажиDataTable();
  303. base.Tables.Add(this.tableВсе_отделы_и_их_продажи);
  304. this.tableВсе_товары_их_продажи_и_отделы = new Все_товары_их_продажи_и_отделыDataTable();
  305. base.Tables.Add(this.tableВсе_товары_их_продажи_и_отделы);
  306. this.tableСвязи = new СвязиDataTable();
  307. base.Tables.Add(this.tableСвязи);
  308. }
  309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  311. private bool ShouldSerializeОтделы() {
  312. return false;
  313. }
  314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  316. private bool ShouldSerializeПродажи() {
  317. return false;
  318. }
  319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  321. private bool ShouldSerializeТовары() {
  322. return false;
  323. }
  324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  326. private bool ShouldSerializeВсе_отделы_и_их_продажи() {
  327. return false;
  328. }
  329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  331. private bool ShouldSerializeВсе_товары_их_продажи_и_отделы() {
  332. return false;
  333. }
  334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  336. private bool ShouldSerializeСвязи() {
  337. return false;
  338. }
  339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  341. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  342. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  343. this.InitVars();
  344. }
  345. }
  346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  348. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  349. IS31Ivnickii7DataSet1 ds = new IS31Ivnickii7DataSet1();
  350. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  351. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  352. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  353. any.Namespace = ds.Namespace;
  354. sequence.Items.Add(any);
  355. type.Particle = sequence;
  356. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  357. if (xs.Contains(dsSchema.TargetNamespace)) {
  358. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  359. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  360. try {
  361. global::System.Xml.Schema.XmlSchema schema = null;
  362. dsSchema.Write(s1);
  363. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  364. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  365. s2.SetLength(0);
  366. schema.Write(s2);
  367. if ((s1.Length == s2.Length)) {
  368. s1.Position = 0;
  369. s2.Position = 0;
  370. for (; ((s1.Position != s1.Length)
  371. && (s1.ReadByte() == s2.ReadByte())); ) {
  372. ;
  373. }
  374. if ((s1.Position == s1.Length)) {
  375. return type;
  376. }
  377. }
  378. }
  379. }
  380. finally {
  381. if ((s1 != null)) {
  382. s1.Close();
  383. }
  384. if ((s2 != null)) {
  385. s2.Close();
  386. }
  387. }
  388. }
  389. xs.Add(dsSchema);
  390. return type;
  391. }
  392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  393. public delegate void ОтделыRowChangeEventHandler(object sender, ОтделыRowChangeEvent e);
  394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  395. public delegate void ПродажиRowChangeEventHandler(object sender, ПродажиRowChangeEvent e);
  396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  397. public delegate void ТоварыRowChangeEventHandler(object sender, ТоварыRowChangeEvent e);
  398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  399. public delegate void Все_отделы_и_их_продажиRowChangeEventHandler(object sender, Все_отделы_и_их_продажиRowChangeEvent e);
  400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  401. public delegate void Все_товары_их_продажи_и_отделыRowChangeEventHandler(object sender, Все_товары_их_продажи_и_отделыRowChangeEvent e);
  402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  403. public delegate void СвязиRowChangeEventHandler(object sender, СвязиRowChangeEvent e);
  404. /// <summary>
  405. ///Represents the strongly named DataTable class.
  406. ///</summary>
  407. [global::System.Serializable()]
  408. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  409. public partial class ОтделыDataTable : global::System.Data.TypedTableBase<ОтделыRow> {
  410. private global::System.Data.DataColumn columnКод_отдела;
  411. private global::System.Data.DataColumn columnНаименование_отдела;
  412. private global::System.Data.DataColumn columnФ_И_О_заведующего_отдела;
  413. private global::System.Data.DataColumn columnТелефон;
  414. private global::System.Data.DataColumn _columnОбъем_реализации_в_день__руб_;
  415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  417. public ОтделыDataTable() {
  418. this.TableName = "Отделы";
  419. this.BeginInit();
  420. this.InitClass();
  421. this.EndInit();
  422. }
  423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  425. internal ОтделыDataTable(global::System.Data.DataTable table) {
  426. this.TableName = table.TableName;
  427. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  428. this.CaseSensitive = table.CaseSensitive;
  429. }
  430. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  431. this.Locale = table.Locale;
  432. }
  433. if ((table.Namespace != table.DataSet.Namespace)) {
  434. this.Namespace = table.Namespace;
  435. }
  436. this.Prefix = table.Prefix;
  437. this.MinimumCapacity = table.MinimumCapacity;
  438. }
  439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  441. protected ОтделыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  442. base(info, context) {
  443. this.InitVars();
  444. }
  445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  447. public global::System.Data.DataColumn Код_отделаColumn {
  448. get {
  449. return this.columnКод_отдела;
  450. }
  451. }
  452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  454. public global::System.Data.DataColumn Наименование_отделаColumn {
  455. get {
  456. return this.columnНаименование_отдела;
  457. }
  458. }
  459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  461. public global::System.Data.DataColumn Ф_И_О_заведующего_отделаColumn {
  462. get {
  463. return this.columnФ_И_О_заведующего_отдела;
  464. }
  465. }
  466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  468. public global::System.Data.DataColumn ТелефонColumn {
  469. get {
  470. return this.columnТелефон;
  471. }
  472. }
  473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  475. public global::System.Data.DataColumn _Объем_реализации_в_день__руб_Column {
  476. get {
  477. return this._columnОбъем_реализации_в_день__руб_;
  478. }
  479. }
  480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  482. [global::System.ComponentModel.Browsable(false)]
  483. public int Count {
  484. get {
  485. return this.Rows.Count;
  486. }
  487. }
  488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  490. public ОтделыRow this[int index] {
  491. get {
  492. return ((ОтделыRow)(this.Rows[index]));
  493. }
  494. }
  495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  496. public event ОтделыRowChangeEventHandler ОтделыRowChanging;
  497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  498. public event ОтделыRowChangeEventHandler ОтделыRowChanged;
  499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  500. public event ОтделыRowChangeEventHandler ОтделыRowDeleting;
  501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  502. public event ОтделыRowChangeEventHandler ОтделыRowDeleted;
  503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  505. public void AddОтделыRow(ОтделыRow row) {
  506. this.Rows.Add(row);
  507. }
  508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  510. public ОтделыRow AddОтделыRow(long Код_отдела, string Наименование_отдела, string Ф_И_О_заведующего_отдела, string Телефон, decimal _Объем_реализации_в_день__руб_) {
  511. ОтделыRow rowОтделыRow = ((ОтделыRow)(this.NewRow()));
  512. object[] columnValuesArray = new object[] {
  513. Код_отдела,
  514. Наименование_отдела,
  515. Ф_И_О_заведующего_отдела,
  516. Телефон,
  517. _Объем_реализации_в_день__руб_};
  518. rowОтделыRow.ItemArray = columnValuesArray;
  519. this.Rows.Add(rowОтделыRow);
  520. return rowОтделыRow;
  521. }
  522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  524. public ОтделыRow FindByКод_отдела(long Код_отдела) {
  525. return ((ОтделыRow)(this.Rows.Find(new object[] {
  526. Код_отдела})));
  527. }
  528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  530. public override global::System.Data.DataTable Clone() {
  531. ОтделыDataTable cln = ((ОтделыDataTable)(base.Clone()));
  532. cln.InitVars();
  533. return cln;
  534. }
  535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  537. protected override global::System.Data.DataTable CreateInstance() {
  538. return new ОтделыDataTable();
  539. }
  540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  542. internal void InitVars() {
  543. this.columnКод_отдела = base.Columns["Код отдела"];
  544. this.columnНаименование_отдела = base.Columns["Наименование отдела"];
  545. this.columnФ_И_О_заведующего_отдела = base.Columns["Ф_И_О заведующего отдела"];
  546. this.columnТелефон = base.Columns["Телефон"];
  547. this._columnОбъем_реализации_в_день__руб_ = base.Columns["Объем реализации в день (руб)"];
  548. }
  549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  551. private void InitClass() {
  552. this.columnКод_отдела = new global::System.Data.DataColumn("Код отдела", typeof(long), null, global::System.Data.MappingType.Element);
  553. base.Columns.Add(this.columnКод_отдела);
  554. this.columnНаименование_отдела = new global::System.Data.DataColumn("Наименование отдела", typeof(string), null, global::System.Data.MappingType.Element);
  555. base.Columns.Add(this.columnНаименование_отдела);
  556. this.columnФ_И_О_заведующего_отдела = new global::System.Data.DataColumn("Ф_И_О заведующего отдела", typeof(string), null, global::System.Data.MappingType.Element);
  557. base.Columns.Add(this.columnФ_И_О_заведующего_отдела);
  558. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  559. base.Columns.Add(this.columnТелефон);
  560. this._columnОбъем_реализации_в_день__руб_ = new global::System.Data.DataColumn("Объем реализации в день (руб)", typeof(decimal), null, global::System.Data.MappingType.Element);
  561. this._columnОбъем_реализации_в_день__руб_.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnОбъем_реализации_в_день__руб_");
  562. this._columnОбъем_реализации_в_день__руб_.ExtendedProperties.Add("Generator_UserColumnName", "Объем реализации в день (руб)");
  563. base.Columns.Add(this._columnОбъем_реализации_в_день__руб_);
  564. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  565. this.columnКод_отдела}, true));
  566. this.columnКод_отдела.AllowDBNull = false;
  567. this.columnКод_отдела.Unique = true;
  568. this.columnНаименование_отдела.AllowDBNull = false;
  569. this.columnНаименование_отдела.MaxLength = 50;
  570. this.columnФ_И_О_заведующего_отдела.AllowDBNull = false;
  571. this.columnФ_И_О_заведующего_отдела.MaxLength = 2147483647;
  572. this.columnТелефон.AllowDBNull = false;
  573. this.columnТелефон.MaxLength = 17;
  574. this._columnОбъем_реализации_в_день__руб_.AllowDBNull = false;
  575. }
  576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  578. public ОтделыRow NewОтделыRow() {
  579. return ((ОтделыRow)(this.NewRow()));
  580. }
  581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  583. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  584. return new ОтделыRow(builder);
  585. }
  586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  588. protected override global::System.Type GetRowType() {
  589. return typeof(ОтделыRow);
  590. }
  591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  593. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  594. base.OnRowChanged(e);
  595. if ((this.ОтделыRowChanged != null)) {
  596. this.ОтделыRowChanged(this, new ОтделыRowChangeEvent(((ОтделыRow)(e.Row)), e.Action));
  597. }
  598. }
  599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  601. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  602. base.OnRowChanging(e);
  603. if ((this.ОтделыRowChanging != null)) {
  604. this.ОтделыRowChanging(this, new ОтделыRowChangeEvent(((ОтделыRow)(e.Row)), e.Action));
  605. }
  606. }
  607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  609. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  610. base.OnRowDeleted(e);
  611. if ((this.ОтделыRowDeleted != null)) {
  612. this.ОтделыRowDeleted(this, new ОтделыRowChangeEvent(((ОтделыRow)(e.Row)), e.Action));
  613. }
  614. }
  615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  617. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  618. base.OnRowDeleting(e);
  619. if ((this.ОтделыRowDeleting != null)) {
  620. this.ОтделыRowDeleting(this, new ОтделыRowChangeEvent(((ОтделыRow)(e.Row)), e.Action));
  621. }
  622. }
  623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  625. public void RemoveОтделыRow(ОтделыRow row) {
  626. this.Rows.Remove(row);
  627. }
  628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  630. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  631. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  632. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  633. IS31Ivnickii7DataSet1 ds = new IS31Ivnickii7DataSet1();
  634. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  635. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  636. any1.MinOccurs = new decimal(0);
  637. any1.MaxOccurs = decimal.MaxValue;
  638. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  639. sequence.Items.Add(any1);
  640. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  641. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  642. any2.MinOccurs = new decimal(1);
  643. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  644. sequence.Items.Add(any2);
  645. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  646. attribute1.Name = "namespace";
  647. attribute1.FixedValue = ds.Namespace;
  648. type.Attributes.Add(attribute1);
  649. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  650. attribute2.Name = "tableTypeName";
  651. attribute2.FixedValue = "ОтделыDataTable";
  652. type.Attributes.Add(attribute2);
  653. type.Particle = sequence;
  654. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  655. if (xs.Contains(dsSchema.TargetNamespace)) {
  656. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  657. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  658. try {
  659. global::System.Xml.Schema.XmlSchema schema = null;
  660. dsSchema.Write(s1);
  661. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  662. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  663. s2.SetLength(0);
  664. schema.Write(s2);
  665. if ((s1.Length == s2.Length)) {
  666. s1.Position = 0;
  667. s2.Position = 0;
  668. for (; ((s1.Position != s1.Length)
  669. && (s1.ReadByte() == s2.ReadByte())); ) {
  670. ;
  671. }
  672. if ((s1.Position == s1.Length)) {
  673. return type;
  674. }
  675. }
  676. }
  677. }
  678. finally {
  679. if ((s1 != null)) {
  680. s1.Close();
  681. }
  682. if ((s2 != null)) {
  683. s2.Close();
  684. }
  685. }
  686. }
  687. xs.Add(dsSchema);
  688. return type;
  689. }
  690. }
  691. /// <summary>
  692. ///Represents the strongly named DataTable class.
  693. ///</summary>
  694. [global::System.Serializable()]
  695. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  696. public partial class ПродажиDataTable : global::System.Data.TypedTableBase<ПродажиRow> {
  697. private global::System.Data.DataColumn columnАртикул_товара;
  698. private global::System.Data.DataColumn columnДата_продажи;
  699. private global::System.Data.DataColumn _columnКол_во_проданного_товара;
  700. private global::System.Data.DataColumn columnКод_продажи;
  701. private global::System.Data.DataColumn columnКод_отдела;
  702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  704. public ПродажиDataTable() {
  705. this.TableName = "Продажи";
  706. this.BeginInit();
  707. this.InitClass();
  708. this.EndInit();
  709. }
  710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  712. internal ПродажиDataTable(global::System.Data.DataTable table) {
  713. this.TableName = table.TableName;
  714. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  715. this.CaseSensitive = table.CaseSensitive;
  716. }
  717. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  718. this.Locale = table.Locale;
  719. }
  720. if ((table.Namespace != table.DataSet.Namespace)) {
  721. this.Namespace = table.Namespace;
  722. }
  723. this.Prefix = table.Prefix;
  724. this.MinimumCapacity = table.MinimumCapacity;
  725. }
  726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  728. protected ПродажиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  729. base(info, context) {
  730. this.InitVars();
  731. }
  732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  734. public global::System.Data.DataColumn Артикул_товараColumn {
  735. get {
  736. return this.columnАртикул_товара;
  737. }
  738. }
  739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  741. public global::System.Data.DataColumn Дата_продажиColumn {
  742. get {
  743. return this.columnДата_продажи;
  744. }
  745. }
  746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  748. public global::System.Data.DataColumn _Кол_во_проданного_товараColumn {
  749. get {
  750. return this._columnКол_во_проданного_товара;
  751. }
  752. }
  753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  755. public global::System.Data.DataColumn Код_продажиColumn {
  756. get {
  757. return this.columnКод_продажи;
  758. }
  759. }
  760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  762. public global::System.Data.DataColumn Код_отделаColumn {
  763. get {
  764. return this.columnКод_отдела;
  765. }
  766. }
  767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  769. [global::System.ComponentModel.Browsable(false)]
  770. public int Count {
  771. get {
  772. return this.Rows.Count;
  773. }
  774. }
  775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  777. public ПродажиRow this[int index] {
  778. get {
  779. return ((ПродажиRow)(this.Rows[index]));
  780. }
  781. }
  782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  783. public event ПродажиRowChangeEventHandler ПродажиRowChanging;
  784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  785. public event ПродажиRowChangeEventHandler ПродажиRowChanged;
  786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  787. public event ПродажиRowChangeEventHandler ПродажиRowDeleting;
  788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  789. public event ПродажиRowChangeEventHandler ПродажиRowDeleted;
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  792. public void AddПродажиRow(ПродажиRow row) {
  793. this.Rows.Add(row);
  794. }
  795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  797. public ПродажиRow AddПродажиRow(long Артикул_товара, System.DateTime Дата_продажи, long _Кол_во_проданного_товара, int Код_отдела) {
  798. ПродажиRow rowПродажиRow = ((ПродажиRow)(this.NewRow()));
  799. object[] columnValuesArray = new object[] {
  800. Артикул_товара,
  801. Дата_продажи,
  802. _Кол_во_проданного_товара,
  803. null,
  804. Код_отдела};
  805. rowПродажиRow.ItemArray = columnValuesArray;
  806. this.Rows.Add(rowПродажиRow);
  807. return rowПродажиRow;
  808. }
  809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  811. public ПродажиRow FindByКод_продажи(int Код_продажи) {
  812. return ((ПродажиRow)(this.Rows.Find(new object[] {
  813. Код_продажи})));
  814. }
  815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  817. public override global::System.Data.DataTable Clone() {
  818. ПродажиDataTable cln = ((ПродажиDataTable)(base.Clone()));
  819. cln.InitVars();
  820. return cln;
  821. }
  822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  824. protected override global::System.Data.DataTable CreateInstance() {
  825. return new ПродажиDataTable();
  826. }
  827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  829. internal void InitVars() {
  830. this.columnАртикул_товара = base.Columns["Артикул товара"];
  831. this.columnДата_продажи = base.Columns["Дата продажи"];
  832. this._columnКол_во_проданного_товара = base.Columns["Кол-во проданного товара"];
  833. this.columnКод_продажи = base.Columns["Код продажи"];
  834. this.columnКод_отдела = base.Columns["Код отдела"];
  835. }
  836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  838. private void InitClass() {
  839. this.columnАртикул_товара = new global::System.Data.DataColumn("Артикул товара", typeof(long), null, global::System.Data.MappingType.Element);
  840. base.Columns.Add(this.columnАртикул_товара);
  841. this.columnДата_продажи = new global::System.Data.DataColumn("Дата продажи", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  842. base.Columns.Add(this.columnДата_продажи);
  843. this._columnКол_во_проданного_товара = new global::System.Data.DataColumn("Кол-во проданного товара", typeof(long), null, global::System.Data.MappingType.Element);
  844. this._columnКол_во_проданного_товара.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnКол_во_проданного_товара");
  845. this._columnКол_во_проданного_товара.ExtendedProperties.Add("Generator_UserColumnName", "Кол-во проданного товара");
  846. base.Columns.Add(this._columnКол_во_проданного_товара);
  847. this.columnКод_продажи = new global::System.Data.DataColumn("Код продажи", typeof(int), null, global::System.Data.MappingType.Element);
  848. base.Columns.Add(this.columnКод_продажи);
  849. this.columnКод_отдела = new global::System.Data.DataColumn("Код отдела", typeof(int), null, global::System.Data.MappingType.Element);
  850. base.Columns.Add(this.columnКод_отдела);
  851. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  852. this.columnКод_продажи}, true));
  853. this.columnАртикул_товара.AllowDBNull = false;
  854. this.columnДата_продажи.AllowDBNull = false;
  855. this._columnКол_во_проданного_товара.AllowDBNull = false;
  856. this.columnКод_продажи.AutoIncrement = true;
  857. this.columnКод_продажи.AutoIncrementSeed = -1;
  858. this.columnКод_продажи.AutoIncrementStep = -1;
  859. this.columnКод_продажи.AllowDBNull = false;
  860. this.columnКод_продажи.ReadOnly = true;
  861. this.columnКод_продажи.Unique = true;
  862. }
  863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  865. public ПродажиRow NewПродажиRow() {
  866. return ((ПродажиRow)(this.NewRow()));
  867. }
  868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  870. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  871. return new ПродажиRow(builder);
  872. }
  873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  875. protected override global::System.Type GetRowType() {
  876. return typeof(ПродажиRow);
  877. }
  878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  880. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  881. base.OnRowChanged(e);
  882. if ((this.ПродажиRowChanged != null)) {
  883. this.ПродажиRowChanged(this, new ПродажиRowChangeEvent(((ПродажиRow)(e.Row)), e.Action));
  884. }
  885. }
  886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  888. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  889. base.OnRowChanging(e);
  890. if ((this.ПродажиRowChanging != null)) {
  891. this.ПродажиRowChanging(this, new ПродажиRowChangeEvent(((ПродажиRow)(e.Row)), e.Action));
  892. }
  893. }
  894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  896. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  897. base.OnRowDeleted(e);
  898. if ((this.ПродажиRowDeleted != null)) {
  899. this.ПродажиRowDeleted(this, new ПродажиRowChangeEvent(((ПродажиRow)(e.Row)), e.Action));
  900. }
  901. }
  902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  904. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  905. base.OnRowDeleting(e);
  906. if ((this.ПродажиRowDeleting != null)) {
  907. this.ПродажиRowDeleting(this, new ПродажиRowChangeEvent(((ПродажиRow)(e.Row)), e.Action));
  908. }
  909. }
  910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  912. public void RemoveПродажиRow(ПродажиRow row) {
  913. this.Rows.Remove(row);
  914. }
  915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  917. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  918. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  919. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  920. IS31Ivnickii7DataSet1 ds = new IS31Ivnickii7DataSet1();
  921. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  922. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  923. any1.MinOccurs = new decimal(0);
  924. any1.MaxOccurs = decimal.MaxValue;
  925. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  926. sequence.Items.Add(any1);
  927. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  928. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  929. any2.MinOccurs = new decimal(1);
  930. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  931. sequence.Items.Add(any2);
  932. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  933. attribute1.Name = "namespace";
  934. attribute1.FixedValue = ds.Namespace;
  935. type.Attributes.Add(attribute1);
  936. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  937. attribute2.Name = "tableTypeName";
  938. attribute2.FixedValue = "ПродажиDataTable";
  939. type.Attributes.Add(attribute2);
  940. type.Particle = sequence;
  941. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  942. if (xs.Contains(dsSchema.TargetNamespace)) {
  943. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  944. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  945. try {
  946. global::System.Xml.Schema.XmlSchema schema = null;
  947. dsSchema.Write(s1);
  948. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  949. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  950. s2.SetLength(0);
  951. schema.Write(s2);
  952. if ((s1.Length == s2.Length)) {
  953. s1.Position = 0;
  954. s2.Position = 0;
  955. for (; ((s1.Position != s1.Length)
  956. && (s1.ReadByte() == s2.ReadByte())); ) {
  957. ;
  958. }
  959. if ((s1.Position == s1.Length)) {
  960. return type;
  961. }
  962. }
  963. }
  964. }
  965. finally {
  966. if ((s1 != null)) {
  967. s1.Close();
  968. }
  969. if ((s2 != null)) {
  970. s2.Close();
  971. }
  972. }
  973. }
  974. xs.Add(dsSchema);
  975. return type;
  976. }
  977. }
  978. /// <summary>
  979. ///Represents the strongly named DataTable class.
  980. ///</summary>
  981. [global::System.Serializable()]
  982. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  983. public partial class ТоварыDataTable : global::System.Data.TypedTableBase<ТоварыRow> {
  984. private global::System.Data.DataColumn columnАртикул_товара;
  985. private global::System.Data.DataColumn columnНаименование_товара;
  986. private global::System.Data.DataColumn columnЕдиница_измерения;
  987. private global::System.Data.DataColumn _columnРозничная_цена_товара__руб_;
  988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  990. public ТоварыDataTable() {
  991. this.TableName = "Товары";
  992. this.BeginInit();
  993. this.InitClass();
  994. this.EndInit();
  995. }
  996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  998. internal ТоварыDataTable(global::System.Data.DataTable table) {
  999. this.TableName = table.TableName;
  1000. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1001. this.CaseSensitive = table.CaseSensitive;
  1002. }
  1003. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1004. this.Locale = table.Locale;
  1005. }
  1006. if ((table.Namespace != table.DataSet.Namespace)) {
  1007. this.Namespace = table.Namespace;
  1008. }
  1009. this.Prefix = table.Prefix;
  1010. this.MinimumCapacity = table.MinimumCapacity;
  1011. }
  1012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1014. protected ТоварыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1015. base(info, context) {
  1016. this.InitVars();
  1017. }
  1018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1020. public global::System.Data.DataColumn Артикул_товараColumn {
  1021. get {
  1022. return this.columnАртикул_товара;
  1023. }
  1024. }
  1025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1027. public global::System.Data.DataColumn Наименование_товараColumn {
  1028. get {
  1029. return this.columnНаименование_товара;
  1030. }
  1031. }
  1032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1034. public global::System.Data.DataColumn Единица_измеренияColumn {
  1035. get {
  1036. return this.columnЕдиница_измерения;
  1037. }
  1038. }
  1039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1041. public global::System.Data.DataColumn _Розничная_цена_товара__руб_Column {
  1042. get {
  1043. return this._columnРозничная_цена_товара__руб_;
  1044. }
  1045. }
  1046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1048. [global::System.ComponentModel.Browsable(false)]
  1049. public int Count {
  1050. get {
  1051. return this.Rows.Count;
  1052. }
  1053. }
  1054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1056. public ТоварыRow this[int index] {
  1057. get {
  1058. return ((ТоварыRow)(this.Rows[index]));
  1059. }
  1060. }
  1061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1062. public event ТоварыRowChangeEventHandler ТоварыRowChanging;
  1063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1064. public event ТоварыRowChangeEventHandler ТоварыRowChanged;
  1065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1066. public event ТоварыRowChangeEventHandler ТоварыRowDeleting;
  1067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1068. public event ТоварыRowChangeEventHandler ТоварыRowDeleted;
  1069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1071. public void AddТоварыRow(ТоварыRow row) {
  1072. this.Rows.Add(row);
  1073. }
  1074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1076. public ТоварыRow AddТоварыRow(long Артикул_товара, string Наименование_товара, string Единица_измерения, decimal _Розничная_цена_товара__руб_) {
  1077. ТоварыRow rowТоварыRow = ((ТоварыRow)(this.NewRow()));
  1078. object[] columnValuesArray = new object[] {
  1079. Артикул_товара,
  1080. Наименование_товара,
  1081. Единица_измерения,
  1082. _Розничная_цена_товара__руб_};
  1083. rowТоварыRow.ItemArray = columnValuesArray;
  1084. this.Rows.Add(rowТоварыRow);
  1085. return rowТоварыRow;
  1086. }
  1087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1089. public ТоварыRow FindByАртикул_товара(long Артикул_товара) {
  1090. return ((ТоварыRow)(this.Rows.Find(new object[] {
  1091. Артикул_товара})));
  1092. }
  1093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1095. public override global::System.Data.DataTable Clone() {
  1096. ТоварыDataTable cln = ((ТоварыDataTable)(base.Clone()));
  1097. cln.InitVars();
  1098. return cln;
  1099. }
  1100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1102. protected override global::System.Data.DataTable CreateInstance() {
  1103. return new ТоварыDataTable();
  1104. }
  1105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1107. internal void InitVars() {
  1108. this.columnАртикул_товара = base.Columns["Артикул товара"];
  1109. this.columnНаименование_товара = base.Columns["Наименование товара"];
  1110. this.columnЕдиница_измерения = base.Columns["Единица измерения"];
  1111. this._columnРозничная_цена_товара__руб_ = base.Columns["Розничная цена товара (руб)"];
  1112. }
  1113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1115. private void InitClass() {
  1116. this.columnАртикул_товара = new global::System.Data.DataColumn("Артикул товара", typeof(long), null, global::System.Data.MappingType.Element);
  1117. base.Columns.Add(this.columnАртикул_товара);
  1118. this.columnНаименование_товара = new global::System.Data.DataColumn("Наименование товара", typeof(string), null, global::System.Data.MappingType.Element);
  1119. base.Columns.Add(this.columnНаименование_товара);
  1120. this.columnЕдиница_измерения = new global::System.Data.DataColumn("Единица измерения", typeof(string), null, global::System.Data.MappingType.Element);
  1121. base.Columns.Add(this.columnЕдиница_измерения);
  1122. this._columnРозничная_цена_товара__руб_ = new global::System.Data.DataColumn("Розничная цена товара (руб)", typeof(decimal), null, global::System.Data.MappingType.Element);
  1123. this._columnРозничная_цена_товара__руб_.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnРозничная_цена_товара__руб_");
  1124. this._columnРозничная_цена_товара__руб_.ExtendedProperties.Add("Generator_UserColumnName", "Розничная цена товара (руб)");
  1125. base.Columns.Add(this._columnРозничная_цена_товара__руб_);
  1126. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1127. this.columnАртикул_товара}, true));
  1128. this.columnАртикул_товара.AllowDBNull = false;
  1129. this.columnАртикул_товара.Unique = true;
  1130. this.columnНаименование_товара.AllowDBNull = false;
  1131. this.columnНаименование_товара.MaxLength = 2147483647;
  1132. this.columnЕдиница_измерения.MaxLength = 2147483647;
  1133. }
  1134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1136. public ТоварыRow NewТоварыRow() {
  1137. return ((ТоварыRow)(this.NewRow()));
  1138. }
  1139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1141. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1142. return new ТоварыRow(builder);
  1143. }
  1144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1146. protected override global::System.Type GetRowType() {
  1147. return typeof(ТоварыRow);
  1148. }
  1149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1151. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1152. base.OnRowChanged(e);
  1153. if ((this.ТоварыRowChanged != null)) {
  1154. this.ТоварыRowChanged(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  1155. }
  1156. }
  1157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1159. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1160. base.OnRowChanging(e);
  1161. if ((this.ТоварыRowChanging != null)) {
  1162. this.ТоварыRowChanging(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  1163. }
  1164. }
  1165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1167. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1168. base.OnRowDeleted(e);
  1169. if ((this.ТоварыRowDeleted != null)) {
  1170. this.ТоварыRowDeleted(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  1171. }
  1172. }
  1173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1175. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1176. base.OnRowDeleting(e);
  1177. if ((this.ТоварыRowDeleting != null)) {
  1178. this.ТоварыRowDeleting(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  1179. }
  1180. }
  1181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1183. public void RemoveТоварыRow(ТоварыRow row) {
  1184. this.Rows.Remove(row);
  1185. }
  1186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1188. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1189. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1190. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1191. IS31Ivnickii7DataSet1 ds = new IS31Ivnickii7DataSet1();
  1192. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1193. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1194. any1.MinOccurs = new decimal(0);
  1195. any1.MaxOccurs = decimal.MaxValue;
  1196. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1197. sequence.Items.Add(any1);
  1198. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1199. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1200. any2.MinOccurs = new decimal(1);
  1201. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1202. sequence.Items.Add(any2);
  1203. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1204. attribute1.Name = "namespace";
  1205. attribute1.FixedValue = ds.Namespace;
  1206. type.Attributes.Add(attribute1);
  1207. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1208. attribute2.Name = "tableTypeName";
  1209. attribute2.FixedValue = "ТоварыDataTable";
  1210. type.Attributes.Add(attribute2);
  1211. type.Particle = sequence;
  1212. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1213. if (xs.Contains(dsSchema.TargetNamespace)) {
  1214. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1215. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1216. try {
  1217. global::System.Xml.Schema.XmlSchema schema = null;
  1218. dsSchema.Write(s1);
  1219. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1220. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1221. s2.SetLength(0);
  1222. schema.Write(s2);
  1223. if ((s1.Length == s2.Length)) {
  1224. s1.Position = 0;
  1225. s2.Position = 0;
  1226. for (; ((s1.Position != s1.Length)
  1227. && (s1.ReadByte() == s2.ReadByte())); ) {
  1228. ;
  1229. }
  1230. if ((s1.Position == s1.Length)) {
  1231. return type;
  1232. }
  1233. }
  1234. }
  1235. }
  1236. finally {
  1237. if ((s1 != null)) {
  1238. s1.Close();
  1239. }
  1240. if ((s2 != null)) {
  1241. s2.Close();
  1242. }
  1243. }
  1244. }
  1245. xs.Add(dsSchema);
  1246. return type;
  1247. }
  1248. }
  1249. /// <summary>
  1250. ///Represents the strongly named DataTable class.
  1251. ///</summary>
  1252. [global::System.Serializable()]
  1253. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1254. public partial class Все_отделы_и_их_продажиDataTable : global::System.Data.TypedTableBase<Все_отделы_и_их_продажиRow> {
  1255. private global::System.Data.DataColumn columnНаименование_отдела;
  1256. private global::System.Data.DataColumn _columnКол_во_проданного_товара;
  1257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1259. public Все_отделы_и_их_продажиDataTable() {
  1260. this.TableName = "Все отделы и их продажи";
  1261. this.BeginInit();
  1262. this.InitClass();
  1263. this.EndInit();
  1264. }
  1265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1267. internal Все_отделы_и_их_продажиDataTable(global::System.Data.DataTable table) {
  1268. this.TableName = table.TableName;
  1269. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1270. this.CaseSensitive = table.CaseSensitive;
  1271. }
  1272. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1273. this.Locale = table.Locale;
  1274. }
  1275. if ((table.Namespace != table.DataSet.Namespace)) {
  1276. this.Namespace = table.Namespace;
  1277. }
  1278. this.Prefix = table.Prefix;
  1279. this.MinimumCapacity = table.MinimumCapacity;
  1280. }
  1281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1283. protected Все_отделы_и_их_продажиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1284. base(info, context) {
  1285. this.InitVars();
  1286. }
  1287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1289. public global::System.Data.DataColumn Наименование_отделаColumn {
  1290. get {
  1291. return this.columnНаименование_отдела;
  1292. }
  1293. }
  1294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1296. public global::System.Data.DataColumn _Кол_во_проданного_товараColumn {
  1297. get {
  1298. return this._columnКол_во_проданного_товара;
  1299. }
  1300. }
  1301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1303. [global::System.ComponentModel.Browsable(false)]
  1304. public int Count {
  1305. get {
  1306. return this.Rows.Count;
  1307. }
  1308. }
  1309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1311. public Все_отделы_и_их_продажиRow this[int index] {
  1312. get {
  1313. return ((Все_отделы_и_их_продажиRow)(this.Rows[index]));
  1314. }
  1315. }
  1316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1317. public event Все_отделы_и_их_продажиRowChangeEventHandler Все_отделы_и_их_продажиRowChanging;
  1318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1319. public event Все_отделы_и_их_продажиRowChangeEventHandler Все_отделы_и_их_продажиRowChanged;
  1320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1321. public event Все_отделы_и_их_продажиRowChangeEventHandler Все_отделы_и_их_продажиRowDeleting;
  1322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1323. public event Все_отделы_и_их_продажиRowChangeEventHandler Все_отделы_и_их_продажиRowDeleted;
  1324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1326. public void AddВсе_отделы_и_их_продажиRow(Все_отделы_и_их_продажиRow row) {
  1327. this.Rows.Add(row);
  1328. }
  1329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1331. public Все_отделы_и_их_продажиRow AddВсе_отделы_и_их_продажиRow(string Наименование_отдела, long _Кол_во_проданного_товара) {
  1332. Все_отделы_и_их_продажиRow rowВсе_отделы_и_их_продажиRow = ((Все_отделы_и_их_продажиRow)(this.NewRow()));
  1333. object[] columnValuesArray = new object[] {
  1334. Наименование_отдела,
  1335. _Кол_во_проданного_товара};
  1336. rowВсе_отделы_и_их_продажиRow.ItemArray = columnValuesArray;
  1337. this.Rows.Add(rowВсе_отделы_и_их_продажиRow);
  1338. return rowВсе_отделы_и_их_продажиRow;
  1339. }
  1340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1342. public override global::System.Data.DataTable Clone() {
  1343. Все_отделы_и_их_продажиDataTable cln = ((Все_отделы_и_их_продажиDataTable)(base.Clone()));
  1344. cln.InitVars();
  1345. return cln;
  1346. }
  1347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1349. protected override global::System.Data.DataTable CreateInstance() {
  1350. return new Все_отделы_и_их_продажиDataTable();
  1351. }
  1352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1354. internal void InitVars() {
  1355. this.columnНаименование_отдела = base.Columns["Наименование отдела"];
  1356. this._columnКол_во_проданного_товара = base.Columns["Кол-во проданного товара"];
  1357. }
  1358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1360. private void InitClass() {
  1361. this.columnНаименование_отдела = new global::System.Data.DataColumn("Наименование отдела", typeof(string), null, global::System.Data.MappingType.Element);
  1362. base.Columns.Add(this.columnНаименование_отдела);
  1363. this._columnКол_во_проданного_товара = new global::System.Data.DataColumn("Кол-во проданного товара", typeof(long), null, global::System.Data.MappingType.Element);
  1364. this._columnКол_во_проданного_товара.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnКол_во_проданного_товара");
  1365. this._columnКол_во_проданного_товара.ExtendedProperties.Add("Generator_UserColumnName", "Кол-во проданного товара");
  1366. base.Columns.Add(this._columnКол_во_проданного_товара);
  1367. this.columnНаименование_отдела.AllowDBNull = false;
  1368. this.columnНаименование_отдела.MaxLength = 50;
  1369. this._columnКол_во_проданного_товара.AllowDBNull = false;
  1370. }
  1371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1373. public Все_отделы_и_их_продажиRow NewВсе_отделы_и_их_продажиRow() {
  1374. return ((Все_отделы_и_их_продажиRow)(this.NewRow()));
  1375. }
  1376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1378. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1379. return new Все_отделы_и_их_продажиRow(builder);
  1380. }
  1381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1383. protected override global::System.Type GetRowType() {
  1384. return typeof(Все_отделы_и_их_продажиRow);
  1385. }
  1386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1388. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1389. base.OnRowChanged(e);
  1390. if ((this.Все_отделы_и_их_продажиRowChanged != null)) {
  1391. this.Все_отделы_и_их_продажиRowChanged(this, new Все_отделы_и_их_продажиRowChangeEvent(((Все_отделы_и_их_продажиRow)(e.Row)), e.Action));
  1392. }
  1393. }
  1394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1396. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1397. base.OnRowChanging(e);
  1398. if ((this.Все_отделы_и_их_продажиRowChanging != null)) {
  1399. this.Все_отделы_и_их_продажиRowChanging(this, new Все_отделы_и_их_продажиRowChangeEvent(((Все_отделы_и_их_продажиRow)(e.Row)), e.Action));
  1400. }
  1401. }
  1402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1404. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1405. base.OnRowDeleted(e);
  1406. if ((this.Все_отделы_и_их_продажиRowDeleted != null)) {
  1407. this.Все_отделы_и_их_продажиRowDeleted(this, new Все_отделы_и_их_продажиRowChangeEvent(((Все_отделы_и_их_продажиRow)(e.Row)), e.Action));
  1408. }
  1409. }
  1410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1412. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1413. base.OnRowDeleting(e);
  1414. if ((this.Все_отделы_и_их_продажиRowDeleting != null)) {
  1415. this.Все_отделы_и_их_продажиRowDeleting(this, new Все_отделы_и_их_продажиRowChangeEvent(((Все_отделы_и_их_продажиRow)(e.Row)), e.Action));
  1416. }
  1417. }
  1418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1420. public void RemoveВсе_отделы_и_их_продажиRow(Все_отделы_и_их_продажиRow row) {
  1421. this.Rows.Remove(row);
  1422. }
  1423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1425. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1426. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1427. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1428. IS31Ivnickii7DataSet1 ds = new IS31Ivnickii7DataSet1();
  1429. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1430. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1431. any1.MinOccurs = new decimal(0);
  1432. any1.MaxOccurs = decimal.MaxValue;
  1433. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1434. sequence.Items.Add(any1);
  1435. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1436. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1437. any2.MinOccurs = new decimal(1);
  1438. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1439. sequence.Items.Add(any2);
  1440. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1441. attribute1.Name = "namespace";
  1442. attribute1.FixedValue = ds.Namespace;
  1443. type.Attributes.Add(attribute1);
  1444. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1445. attribute2.Name = "tableTypeName";
  1446. attribute2.FixedValue = "Все_отделы_и_их_продажиDataTable";
  1447. type.Attributes.Add(attribute2);
  1448. type.Particle = sequence;
  1449. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1450. if (xs.Contains(dsSchema.TargetNamespace)) {
  1451. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1452. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1453. try {
  1454. global::System.Xml.Schema.XmlSchema schema = null;
  1455. dsSchema.Write(s1);
  1456. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1457. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1458. s2.SetLength(0);
  1459. schema.Write(s2);
  1460. if ((s1.Length == s2.Length)) {
  1461. s1.Position = 0;
  1462. s2.Position = 0;
  1463. for (; ((s1.Position != s1.Length)
  1464. && (s1.ReadByte() == s2.ReadByte())); ) {
  1465. ;
  1466. }
  1467. if ((s1.Position == s1.Length)) {
  1468. return type;
  1469. }
  1470. }
  1471. }
  1472. }
  1473. finally {
  1474. if ((s1 != null)) {
  1475. s1.Close();
  1476. }
  1477. if ((s2 != null)) {
  1478. s2.Close();
  1479. }
  1480. }
  1481. }
  1482. xs.Add(dsSchema);
  1483. return type;
  1484. }
  1485. }
  1486. /// <summary>
  1487. ///Represents the strongly named DataTable class.
  1488. ///</summary>
  1489. [global::System.Serializable()]
  1490. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1491. public partial class Все_товары_их_продажи_и_отделыDataTable : global::System.Data.TypedTableBase<Все_товары_их_продажи_и_отделыRow> {
  1492. private global::System.Data.DataColumn columnНаименование_товара;
  1493. private global::System.Data.DataColumn _columnКол_во_проданного_товара;
  1494. private global::System.Data.DataColumn columnНаименование_отдела;
  1495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1497. public Все_товары_их_продажи_и_отделыDataTable() {
  1498. this.TableName = "Все товары их продажи и отделы";
  1499. this.BeginInit();
  1500. this.InitClass();
  1501. this.EndInit();
  1502. }
  1503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1505. internal Все_товары_их_продажи_и_отделыDataTable(global::System.Data.DataTable table) {
  1506. this.TableName = table.TableName;
  1507. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1508. this.CaseSensitive = table.CaseSensitive;
  1509. }
  1510. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1511. this.Locale = table.Locale;
  1512. }
  1513. if ((table.Namespace != table.DataSet.Namespace)) {
  1514. this.Namespace = table.Namespace;
  1515. }
  1516. this.Prefix = table.Prefix;
  1517. this.MinimumCapacity = table.MinimumCapacity;
  1518. }
  1519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1521. protected Все_товары_их_продажи_и_отделыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1522. base(info, context) {
  1523. this.InitVars();
  1524. }
  1525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1527. public global::System.Data.DataColumn Наименование_товараColumn {
  1528. get {
  1529. return this.columnНаименование_товара;
  1530. }
  1531. }
  1532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1534. public global::System.Data.DataColumn _Кол_во_проданного_товараColumn {
  1535. get {
  1536. return this._columnКол_во_проданного_товара;
  1537. }
  1538. }
  1539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1541. public global::System.Data.DataColumn Наименование_отделаColumn {
  1542. get {
  1543. return this.columnНаименование_отдела;
  1544. }
  1545. }
  1546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1548. [global::System.ComponentModel.Browsable(false)]
  1549. public int Count {
  1550. get {
  1551. return this.Rows.Count;
  1552. }
  1553. }
  1554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1556. public Все_товары_их_продажи_и_отделыRow this[int index] {
  1557. get {
  1558. return ((Все_товары_их_продажи_и_отделыRow)(this.Rows[index]));
  1559. }
  1560. }
  1561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1562. public event Все_товары_их_продажи_и_отделыRowChangeEventHandler Все_товары_их_продажи_и_отделыRowChanging;
  1563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1564. public event Все_товары_их_продажи_и_отделыRowChangeEventHandler Все_товары_их_продажи_и_отделыRowChanged;
  1565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1566. public event Все_товары_их_продажи_и_отделыRowChangeEventHandler Все_товары_их_продажи_и_отделыRowDeleting;
  1567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1568. public event Все_товары_их_продажи_и_отделыRowChangeEventHandler Все_товары_их_продажи_и_отделыRowDeleted;
  1569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1571. public void AddВсе_товары_их_продажи_и_отделыRow(Все_товары_их_продажи_и_отделыRow row) {
  1572. this.Rows.Add(row);
  1573. }
  1574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1576. public Все_товары_их_продажи_и_отделыRow AddВсе_товары_их_продажи_и_отделыRow(string Наименование_товара, long _Кол_во_проданного_товара, string Наименование_отдела) {
  1577. Все_товары_их_продажи_и_отделыRow rowВсе_товары_их_продажи_и_отделыRow = ((Все_товары_их_продажи_и_отделыRow)(this.NewRow()));
  1578. object[] columnValuesArray = new object[] {
  1579. Наименование_товара,
  1580. _Кол_во_проданного_товара,
  1581. Наименование_отдела};
  1582. rowВсе_товары_их_продажи_и_отделыRow.ItemArray = columnValuesArray;
  1583. this.Rows.Add(rowВсе_товары_их_продажи_и_отделыRow);
  1584. return rowВсе_товары_их_продажи_и_отделыRow;
  1585. }
  1586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1588. public override global::System.Data.DataTable Clone() {
  1589. Все_товары_их_продажи_и_отделыDataTable cln = ((Все_товары_их_продажи_и_отделыDataTable)(base.Clone()));
  1590. cln.InitVars();
  1591. return cln;
  1592. }
  1593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1595. protected override global::System.Data.DataTable CreateInstance() {
  1596. return new Все_товары_их_продажи_и_отделыDataTable();
  1597. }
  1598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1600. internal void InitVars() {
  1601. this.columnНаименование_товара = base.Columns["Наименование товара"];
  1602. this._columnКол_во_проданного_товара = base.Columns["Кол-во проданного товара"];
  1603. this.columnНаименование_отдела = base.Columns["Наименование отдела"];
  1604. }
  1605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1607. private void InitClass() {
  1608. this.columnНаименование_товара = new global::System.Data.DataColumn("Наименование товара", typeof(string), null, global::System.Data.MappingType.Element);
  1609. base.Columns.Add(this.columnНаименование_товара);
  1610. this._columnКол_во_проданного_товара = new global::System.Data.DataColumn("Кол-во проданного товара", typeof(long), null, global::System.Data.MappingType.Element);
  1611. this._columnКол_во_проданного_товара.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnКол_во_проданного_товара");
  1612. this._columnКол_во_проданного_товара.ExtendedProperties.Add("Generator_UserColumnName", "Кол-во проданного товара");
  1613. base.Columns.Add(this._columnКол_во_проданного_товара);
  1614. this.columnНаименование_отдела = new global::System.Data.DataColumn("Наименование отдела", typeof(string), null, global::System.Data.MappingType.Element);
  1615. base.Columns.Add(this.columnНаименование_отдела);
  1616. this.columnНаименование_товара.AllowDBNull = false;
  1617. this.columnНаименование_товара.MaxLength = 2147483647;
  1618. this._columnКол_во_проданного_товара.AllowDBNull = false;
  1619. this.columnНаименование_отдела.AllowDBNull = false;
  1620. this.columnНаименование_отдела.MaxLength = 50;
  1621. }
  1622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1624. public Все_товары_их_продажи_и_отделыRow NewВсе_товары_их_продажи_и_отделыRow() {
  1625. return ((Все_товары_их_продажи_и_отделыRow)(this.NewRow()));
  1626. }
  1627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1629. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1630. return new Все_товары_их_продажи_и_отделыRow(builder);
  1631. }
  1632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1634. protected override global::System.Type GetRowType() {
  1635. return typeof(Все_товары_их_продажи_и_отделыRow);
  1636. }
  1637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1639. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1640. base.OnRowChanged(e);
  1641. if ((this.Все_товары_их_продажи_и_отделыRowChanged != null)) {
  1642. this.Все_товары_их_продажи_и_отделыRowChanged(this, new Все_товары_их_продажи_и_отделыRowChangeEvent(((Все_товары_их_продажи_и_отделыRow)(e.Row)), e.Action));
  1643. }
  1644. }
  1645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1647. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1648. base.OnRowChanging(e);
  1649. if ((this.Все_товары_их_продажи_и_отделыRowChanging != null)) {
  1650. this.Все_товары_их_продажи_и_отделыRowChanging(this, new Все_товары_их_продажи_и_отделыRowChangeEvent(((Все_товары_их_продажи_и_отделыRow)(e.Row)), e.Action));
  1651. }
  1652. }
  1653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1655. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1656. base.OnRowDeleted(e);
  1657. if ((this.Все_товары_их_продажи_и_отделыRowDeleted != null)) {
  1658. this.Все_товары_их_продажи_и_отделыRowDeleted(this, new Все_товары_их_продажи_и_отделыRowChangeEvent(((Все_товары_их_продажи_и_отделыRow)(e.Row)), e.Action));
  1659. }
  1660. }
  1661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1663. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1664. base.OnRowDeleting(e);
  1665. if ((this.Все_товары_их_продажи_и_отделыRowDeleting != null)) {
  1666. this.Все_товары_их_продажи_и_отделыRowDeleting(this, new Все_товары_их_продажи_и_отделыRowChangeEvent(((Все_товары_их_продажи_и_отделыRow)(e.Row)), e.Action));
  1667. }
  1668. }
  1669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1671. public void RemoveВсе_товары_их_продажи_и_отделыRow(Все_товары_их_продажи_и_отделыRow row) {
  1672. this.Rows.Remove(row);
  1673. }
  1674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1676. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1677. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1678. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1679. IS31Ivnickii7DataSet1 ds = new IS31Ivnickii7DataSet1();
  1680. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1681. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1682. any1.MinOccurs = new decimal(0);
  1683. any1.MaxOccurs = decimal.MaxValue;
  1684. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1685. sequence.Items.Add(any1);
  1686. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1687. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1688. any2.MinOccurs = new decimal(1);
  1689. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1690. sequence.Items.Add(any2);
  1691. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1692. attribute1.Name = "namespace";
  1693. attribute1.FixedValue = ds.Namespace;
  1694. type.Attributes.Add(attribute1);
  1695. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1696. attribute2.Name = "tableTypeName";
  1697. attribute2.FixedValue = "Все_товары_их_продажи_и_отделыDataTable";
  1698. type.Attributes.Add(attribute2);
  1699. type.Particle = sequence;
  1700. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1701. if (xs.Contains(dsSchema.TargetNamespace)) {
  1702. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1703. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1704. try {
  1705. global::System.Xml.Schema.XmlSchema schema = null;
  1706. dsSchema.Write(s1);
  1707. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1708. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1709. s2.SetLength(0);
  1710. schema.Write(s2);
  1711. if ((s1.Length == s2.Length)) {
  1712. s1.Position = 0;
  1713. s2.Position = 0;
  1714. for (; ((s1.Position != s1.Length)
  1715. && (s1.ReadByte() == s2.ReadByte())); ) {
  1716. ;
  1717. }
  1718. if ((s1.Position == s1.Length)) {
  1719. return type;
  1720. }
  1721. }
  1722. }
  1723. }
  1724. finally {
  1725. if ((s1 != null)) {
  1726. s1.Close();
  1727. }
  1728. if ((s2 != null)) {
  1729. s2.Close();
  1730. }
  1731. }
  1732. }
  1733. xs.Add(dsSchema);
  1734. return type;
  1735. }
  1736. }
  1737. /// <summary>
  1738. ///Represents the strongly named DataTable class.
  1739. ///</summary>
  1740. [global::System.Serializable()]
  1741. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1742. public partial class СвязиDataTable : global::System.Data.TypedTableBase<СвязиRow> {
  1743. private global::System.Data.DataColumn columnДата_продажи;
  1744. private global::System.Data.DataColumn _columnКол_во_проданного_товара;
  1745. private global::System.Data.DataColumn _columnРозничная_цена_товара__руб_;
  1746. private global::System.Data.DataColumn columnЕдиница_измерения;
  1747. private global::System.Data.DataColumn columnНаименование_товара;
  1748. private global::System.Data.DataColumn columnНаименование_отдела;
  1749. private global::System.Data.DataColumn columnФ_И_О_заведующего_отдела;
  1750. private global::System.Data.DataColumn _columnОбъем_реализации_в_день__руб_;
  1751. private global::System.Data.DataColumn columnТелефон;
  1752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1754. public СвязиDataTable() {
  1755. this.TableName = "Связи";
  1756. this.BeginInit();
  1757. this.InitClass();
  1758. this.EndInit();
  1759. }
  1760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1762. internal СвязиDataTable(global::System.Data.DataTable table) {
  1763. this.TableName = table.TableName;
  1764. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1765. this.CaseSensitive = table.CaseSensitive;
  1766. }
  1767. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1768. this.Locale = table.Locale;
  1769. }
  1770. if ((table.Namespace != table.DataSet.Namespace)) {
  1771. this.Namespace = table.Namespace;
  1772. }
  1773. this.Prefix = table.Prefix;
  1774. this.MinimumCapacity = table.MinimumCapacity;
  1775. }
  1776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1778. protected СвязиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1779. base(info, context) {
  1780. this.InitVars();
  1781. }
  1782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1784. public global::System.Data.DataColumn Дата_продажиColumn {
  1785. get {
  1786. return this.columnДата_продажи;
  1787. }
  1788. }
  1789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1791. public global::System.Data.DataColumn _Кол_во_проданного_товараColumn {
  1792. get {
  1793. return this._columnКол_во_проданного_товара;
  1794. }
  1795. }
  1796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1798. public global::System.Data.DataColumn _Розничная_цена_товара__руб_Column {
  1799. get {
  1800. return this._columnРозничная_цена_товара__руб_;
  1801. }
  1802. }
  1803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1805. public global::System.Data.DataColumn Единица_измеренияColumn {
  1806. get {
  1807. return this.columnЕдиница_измерения;
  1808. }
  1809. }
  1810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1812. public global::System.Data.DataColumn Наименование_товараColumn {
  1813. get {
  1814. return this.columnНаименование_товара;
  1815. }
  1816. }
  1817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1819. public global::System.Data.DataColumn Наименование_отделаColumn {
  1820. get {
  1821. return this.columnНаименование_отдела;
  1822. }
  1823. }
  1824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1826. public global::System.Data.DataColumn Ф_И_О_заведующего_отделаColumn {
  1827. get {
  1828. return this.columnФ_И_О_заведующего_отдела;
  1829. }
  1830. }
  1831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1833. public global::System.Data.DataColumn _Объем_реализации_в_день__руб_Column {
  1834. get {
  1835. return this._columnОбъем_реализации_в_день__руб_;
  1836. }
  1837. }
  1838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1840. public global::System.Data.DataColumn ТелефонColumn {
  1841. get {
  1842. return this.columnТелефон;
  1843. }
  1844. }
  1845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1847. [global::System.ComponentModel.Browsable(false)]
  1848. public int Count {
  1849. get {
  1850. return this.Rows.Count;
  1851. }
  1852. }
  1853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1855. public СвязиRow this[int index] {
  1856. get {
  1857. return ((СвязиRow)(this.Rows[index]));
  1858. }
  1859. }
  1860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1861. public event СвязиRowChangeEventHandler СвязиRowChanging;
  1862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1863. public event СвязиRowChangeEventHandler СвязиRowChanged;
  1864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1865. public event СвязиRowChangeEventHandler СвязиRowDeleting;
  1866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1867. public event СвязиRowChangeEventHandler СвязиRowDeleted;
  1868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1870. public void AddСвязиRow(СвязиRow row) {
  1871. this.Rows.Add(row);
  1872. }
  1873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1875. public СвязиRow AddСвязиRow(System.DateTime Дата_продажи, long _Кол_во_проданного_товара, decimal _Розничная_цена_товара__руб_, string Единица_измерения, string Наименование_товара, string Наименование_отдела, string Ф_И_О_заведующего_отдела, decimal _Объем_реализации_в_день__руб_, string Телефон) {
  1876. СвязиRow rowСвязиRow = ((СвязиRow)(this.NewRow()));
  1877. object[] columnValuesArray = new object[] {
  1878. Дата_продажи,
  1879. _Кол_во_проданного_товара,
  1880. _Розничная_цена_товара__руб_,
  1881. Единица_измерения,
  1882. Наименование_товара,
  1883. Наименование_отдела,
  1884. Ф_И_О_заведующего_отдела,
  1885. _Объем_реализации_в_день__руб_,
  1886. Телефон};
  1887. rowСвязиRow.ItemArray = columnValuesArray;
  1888. this.Rows.Add(rowСвязиRow);
  1889. return rowСвязиRow;
  1890. }
  1891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1893. public override global::System.Data.DataTable Clone() {
  1894. СвязиDataTable cln = ((СвязиDataTable)(base.Clone()));
  1895. cln.InitVars();
  1896. return cln;
  1897. }
  1898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1900. protected override global::System.Data.DataTable CreateInstance() {
  1901. return new СвязиDataTable();
  1902. }
  1903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1905. internal void InitVars() {
  1906. this.columnДата_продажи = base.Columns["Дата продажи"];
  1907. this._columnКол_во_проданного_товара = base.Columns["Кол-во проданного товара"];
  1908. this._columnРозничная_цена_товара__руб_ = base.Columns["Розничная цена товара (руб)"];
  1909. this.columnЕдиница_измерения = base.Columns["Единица измерения"];
  1910. this.columnНаименование_товара = base.Columns["Наименование товара"];
  1911. this.columnНаименование_отдела = base.Columns["Наименование отдела"];
  1912. this.columnФ_И_О_заведующего_отдела = base.Columns["Ф_И_О заведующего отдела"];
  1913. this._columnОбъем_реализации_в_день__руб_ = base.Columns["Объем реализации в день (руб)"];
  1914. this.columnТелефон = base.Columns["Телефон"];
  1915. }
  1916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1918. private void InitClass() {
  1919. this.columnДата_продажи = new global::System.Data.DataColumn("Дата продажи", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1920. base.Columns.Add(this.columnДата_продажи);
  1921. this._columnКол_во_проданного_товара = new global::System.Data.DataColumn("Кол-во проданного товара", typeof(long), null, global::System.Data.MappingType.Element);
  1922. this._columnКол_во_проданного_товара.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnКол_во_проданного_товара");
  1923. this._columnКол_во_проданного_товара.ExtendedProperties.Add("Generator_UserColumnName", "Кол-во проданного товара");
  1924. base.Columns.Add(this._columnКол_во_проданного_товара);
  1925. this._columnРозничная_цена_товара__руб_ = new global::System.Data.DataColumn("Розничная цена товара (руб)", typeof(decimal), null, global::System.Data.MappingType.Element);
  1926. this._columnРозничная_цена_товара__руб_.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnРозничная_цена_товара__руб_");
  1927. this._columnРозничная_цена_товара__руб_.ExtendedProperties.Add("Generator_UserColumnName", "Розничная цена товара (руб)");
  1928. base.Columns.Add(this._columnРозничная_цена_товара__руб_);
  1929. this.columnЕдиница_измерения = new global::System.Data.DataColumn("Единица измерения", typeof(string), null, global::System.Data.MappingType.Element);
  1930. base.Columns.Add(this.columnЕдиница_измерения);
  1931. this.columnНаименование_товара = new global::System.Data.DataColumn("Наименование товара", typeof(string), null, global::System.Data.MappingType.Element);
  1932. base.Columns.Add(this.columnНаименование_товара);
  1933. this.columnНаименование_отдела = new global::System.Data.DataColumn("Наименование отдела", typeof(string), null, global::System.Data.MappingType.Element);
  1934. base.Columns.Add(this.columnНаименование_отдела);
  1935. this.columnФ_И_О_заведующего_отдела = new global::System.Data.DataColumn("Ф_И_О заведующего отдела", typeof(string), null, global::System.Data.MappingType.Element);
  1936. base.Columns.Add(this.columnФ_И_О_заведующего_отдела);
  1937. this._columnОбъем_реализации_в_день__руб_ = new global::System.Data.DataColumn("Объем реализации в день (руб)", typeof(decimal), null, global::System.Data.MappingType.Element);
  1938. this._columnОбъем_реализации_в_день__руб_.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnОбъем_реализации_в_день__руб_");
  1939. this._columnОбъем_реализации_в_день__руб_.ExtendedProperties.Add("Generator_UserColumnName", "Объем реализации в день (руб)");
  1940. base.Columns.Add(this._columnОбъем_реализации_в_день__руб_);
  1941. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  1942. base.Columns.Add(this.columnТелефон);
  1943. this.columnДата_продажи.AllowDBNull = false;
  1944. this._columnКол_во_проданного_товара.AllowDBNull = false;
  1945. this.columnЕдиница_измерения.MaxLength = 2147483647;
  1946. this.columnНаименование_товара.AllowDBNull = false;
  1947. this.columnНаименование_товара.MaxLength = 2147483647;
  1948. this.columnНаименование_отдела.AllowDBNull = false;
  1949. this.columnНаименование_отдела.MaxLength = 50;
  1950. this.columnФ_И_О_заведующего_отдела.AllowDBNull = false;
  1951. this.columnФ_И_О_заведующего_отдела.MaxLength = 2147483647;
  1952. this._columnОбъем_реализации_в_день__руб_.AllowDBNull = false;
  1953. this.columnТелефон.AllowDBNull = false;
  1954. this.columnТелефон.MaxLength = 17;
  1955. }
  1956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1958. public СвязиRow NewСвязиRow() {
  1959. return ((СвязиRow)(this.NewRow()));
  1960. }
  1961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1963. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1964. return new СвязиRow(builder);
  1965. }
  1966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1968. protected override global::System.Type GetRowType() {
  1969. return typeof(СвязиRow);
  1970. }
  1971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1973. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1974. base.OnRowChanged(e);
  1975. if ((this.СвязиRowChanged != null)) {
  1976. this.СвязиRowChanged(this, new СвязиRowChangeEvent(((СвязиRow)(e.Row)), e.Action));
  1977. }
  1978. }
  1979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1981. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1982. base.OnRowChanging(e);
  1983. if ((this.СвязиRowChanging != null)) {
  1984. this.СвязиRowChanging(this, new СвязиRowChangeEvent(((СвязиRow)(e.Row)), e.Action));
  1985. }
  1986. }
  1987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1989. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1990. base.OnRowDeleted(e);
  1991. if ((this.СвязиRowDeleted != null)) {
  1992. this.СвязиRowDeleted(this, new СвязиRowChangeEvent(((СвязиRow)(e.Row)), e.Action));
  1993. }
  1994. }
  1995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1997. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1998. base.OnRowDeleting(e);
  1999. if ((this.СвязиRowDeleting != null)) {
  2000. this.СвязиRowDeleting(this, new СвязиRowChangeEvent(((СвязиRow)(e.Row)), e.Action));
  2001. }
  2002. }
  2003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2005. public void RemoveСвязиRow(СвязиRow row) {
  2006. this.Rows.Remove(row);
  2007. }
  2008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2010. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2011. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2012. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2013. IS31Ivnickii7DataSet1 ds = new IS31Ivnickii7DataSet1();
  2014. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2015. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2016. any1.MinOccurs = new decimal(0);
  2017. any1.MaxOccurs = decimal.MaxValue;
  2018. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2019. sequence.Items.Add(any1);
  2020. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2021. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2022. any2.MinOccurs = new decimal(1);
  2023. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2024. sequence.Items.Add(any2);
  2025. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2026. attribute1.Name = "namespace";
  2027. attribute1.FixedValue = ds.Namespace;
  2028. type.Attributes.Add(attribute1);
  2029. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2030. attribute2.Name = "tableTypeName";
  2031. attribute2.FixedValue = "СвязиDataTable";
  2032. type.Attributes.Add(attribute2);
  2033. type.Particle = sequence;
  2034. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2035. if (xs.Contains(dsSchema.TargetNamespace)) {
  2036. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2037. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2038. try {
  2039. global::System.Xml.Schema.XmlSchema schema = null;
  2040. dsSchema.Write(s1);
  2041. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2042. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2043. s2.SetLength(0);
  2044. schema.Write(s2);
  2045. if ((s1.Length == s2.Length)) {
  2046. s1.Position = 0;
  2047. s2.Position = 0;
  2048. for (; ((s1.Position != s1.Length)
  2049. && (s1.ReadByte() == s2.ReadByte())); ) {
  2050. ;
  2051. }
  2052. if ((s1.Position == s1.Length)) {
  2053. return type;
  2054. }
  2055. }
  2056. }
  2057. }
  2058. finally {
  2059. if ((s1 != null)) {
  2060. s1.Close();
  2061. }
  2062. if ((s2 != null)) {
  2063. s2.Close();
  2064. }
  2065. }
  2066. }
  2067. xs.Add(dsSchema);
  2068. return type;
  2069. }
  2070. }
  2071. /// <summary>
  2072. ///Represents strongly named DataRow class.
  2073. ///</summary>
  2074. public partial class ОтделыRow : global::System.Data.DataRow {
  2075. private ОтделыDataTable tableОтделы;
  2076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2078. internal ОтделыRow(global::System.Data.DataRowBuilder rb) :
  2079. base(rb) {
  2080. this.tableОтделы = ((ОтделыDataTable)(this.Table));
  2081. }
  2082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2084. public long Код_отдела {
  2085. get {
  2086. return ((long)(this[this.tableОтделы.Код_отделаColumn]));
  2087. }
  2088. set {
  2089. this[this.tableОтделы.Код_отделаColumn] = value;
  2090. }
  2091. }
  2092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2094. public string Наименование_отдела {
  2095. get {
  2096. return ((string)(this[this.tableОтделы.Наименование_отделаColumn]));
  2097. }
  2098. set {
  2099. this[this.tableОтделы.Наименование_отделаColumn] = value;
  2100. }
  2101. }
  2102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2104. public string Ф_И_О_заведующего_отдела {
  2105. get {
  2106. return ((string)(this[this.tableОтделы.Ф_И_О_заведующего_отделаColumn]));
  2107. }
  2108. set {
  2109. this[this.tableОтделы.Ф_И_О_заведующего_отделаColumn] = value;
  2110. }
  2111. }
  2112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2114. public string Телефон {
  2115. get {
  2116. return ((string)(this[this.tableОтделы.ТелефонColumn]));
  2117. }
  2118. set {
  2119. this[this.tableОтделы.ТелефонColumn] = value;
  2120. }
  2121. }
  2122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2124. public decimal _Объем_реализации_в_день__руб_ {
  2125. get {
  2126. return ((decimal)(this[this.tableОтделы._Объем_реализации_в_день__руб_Column]));
  2127. }
  2128. set {
  2129. this[this.tableОтделы._Объем_реализации_в_день__руб_Column] = value;
  2130. }
  2131. }
  2132. }
  2133. /// <summary>
  2134. ///Represents strongly named DataRow class.
  2135. ///</summary>
  2136. public partial class ПродажиRow : global::System.Data.DataRow {
  2137. private ПродажиDataTable tableПродажи;
  2138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2140. internal ПродажиRow(global::System.Data.DataRowBuilder rb) :
  2141. base(rb) {
  2142. this.tableПродажи = ((ПродажиDataTable)(this.Table));
  2143. }
  2144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2146. public long Артикул_товара {
  2147. get {
  2148. return ((long)(this[this.tableПродажи.Артикул_товараColumn]));
  2149. }
  2150. set {
  2151. this[this.tableПродажи.Артикул_товараColumn] = value;
  2152. }
  2153. }
  2154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2156. public System.DateTime Дата_продажи {
  2157. get {
  2158. return ((global::System.DateTime)(this[this.tableПродажи.Дата_продажиColumn]));
  2159. }
  2160. set {
  2161. this[this.tableПродажи.Дата_продажиColumn] = value;
  2162. }
  2163. }
  2164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2166. public long _Кол_во_проданного_товара {
  2167. get {
  2168. return ((long)(this[this.tableПродажи._Кол_во_проданного_товараColumn]));
  2169. }
  2170. set {
  2171. this[this.tableПродажи._Кол_во_проданного_товараColumn] = value;
  2172. }
  2173. }
  2174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2176. public int Код_продажи {
  2177. get {
  2178. return ((int)(this[this.tableПродажи.Код_продажиColumn]));
  2179. }
  2180. set {
  2181. this[this.tableПродажи.Код_продажиColumn] = value;
  2182. }
  2183. }
  2184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2186. public int Код_отдела {
  2187. get {
  2188. try {
  2189. return ((int)(this[this.tableПродажи.Код_отделаColumn]));
  2190. }
  2191. catch (global::System.InvalidCastException e) {
  2192. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код отдела\' в таблице \'Продажи\' равно DBNull.", e);
  2193. }
  2194. }
  2195. set {
  2196. this[this.tableПродажи.Код_отделаColumn] = value;
  2197. }
  2198. }
  2199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2201. public bool IsКод_отделаNull() {
  2202. return this.IsNull(this.tableПродажи.Код_отделаColumn);
  2203. }
  2204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2206. public void SetКод_отделаNull() {
  2207. this[this.tableПродажи.Код_отделаColumn] = global::System.Convert.DBNull;
  2208. }
  2209. }
  2210. /// <summary>
  2211. ///Represents strongly named DataRow class.
  2212. ///</summary>
  2213. public partial class ТоварыRow : global::System.Data.DataRow {
  2214. private ТоварыDataTable tableТовары;
  2215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2217. internal ТоварыRow(global::System.Data.DataRowBuilder rb) :
  2218. base(rb) {
  2219. this.tableТовары = ((ТоварыDataTable)(this.Table));
  2220. }
  2221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2223. public long Артикул_товара {
  2224. get {
  2225. return ((long)(this[this.tableТовары.Артикул_товараColumn]));
  2226. }
  2227. set {
  2228. this[this.tableТовары.Артикул_товараColumn] = value;
  2229. }
  2230. }
  2231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2233. public string Наименование_товара {
  2234. get {
  2235. return ((string)(this[this.tableТовары.Наименование_товараColumn]));
  2236. }
  2237. set {
  2238. this[this.tableТовары.Наименование_товараColumn] = value;
  2239. }
  2240. }
  2241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2243. public string Единица_измерения {
  2244. get {
  2245. try {
  2246. return ((string)(this[this.tableТовары.Единица_измеренияColumn]));
  2247. }
  2248. catch (global::System.InvalidCastException e) {
  2249. throw new global::System.Data.StrongTypingException("Значение для столбца \'Единица измерения\' в таблице \'Товары\' равно DBNull.", e);
  2250. }
  2251. }
  2252. set {
  2253. this[this.tableТовары.Единица_измеренияColumn] = value;
  2254. }
  2255. }
  2256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2258. public decimal _Розничная_цена_товара__руб_ {
  2259. get {
  2260. try {
  2261. return ((decimal)(this[this.tableТовары._Розничная_цена_товара__руб_Column]));
  2262. }
  2263. catch (global::System.InvalidCastException e) {
  2264. throw new global::System.Data.StrongTypingException("Значение для столбца \'Розничная цена товара (руб)\' в таблице \'Товары\' равно DBNul" +
  2265. "l.", e);
  2266. }
  2267. }
  2268. set {
  2269. this[this.tableТовары._Розничная_цена_товара__руб_Column] = value;
  2270. }
  2271. }
  2272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2274. public bool IsЕдиница_измеренияNull() {
  2275. return this.IsNull(this.tableТовары.Единица_измеренияColumn);
  2276. }
  2277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2279. public void SetЕдиница_измеренияNull() {
  2280. this[this.tableТовары.Единица_измеренияColumn] = global::System.Convert.DBNull;
  2281. }
  2282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2284. public bool Is_Розничная_цена_товара__руб_Null() {
  2285. return this.IsNull(this.tableТовары._Розничная_цена_товара__руб_Column);
  2286. }
  2287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2289. public void Set_Розничная_цена_товара__руб_Null() {
  2290. this[this.tableТовары._Розничная_цена_товара__руб_Column] = global::System.Convert.DBNull;
  2291. }
  2292. }
  2293. /// <summary>
  2294. ///Represents strongly named DataRow class.
  2295. ///</summary>
  2296. public partial class Все_отделы_и_их_продажиRow : global::System.Data.DataRow {
  2297. private Все_отделы_и_их_продажиDataTable tableВсе_отделы_и_их_продажи;
  2298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2300. internal Все_отделы_и_их_продажиRow(global::System.Data.DataRowBuilder rb) :
  2301. base(rb) {
  2302. this.tableВсе_отделы_и_их_продажи = ((Все_отделы_и_их_продажиDataTable)(this.Table));
  2303. }
  2304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2306. public string Наименование_отдела {
  2307. get {
  2308. return ((string)(this[this.tableВсе_отделы_и_их_продажи.Наименование_отделаColumn]));
  2309. }
  2310. set {
  2311. this[this.tableВсе_отделы_и_их_продажи.Наименование_отделаColumn] = value;
  2312. }
  2313. }
  2314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2316. public long _Кол_во_проданного_товара {
  2317. get {
  2318. return ((long)(this[this.tableВсе_отделы_и_их_продажи._Кол_во_проданного_товараColumn]));
  2319. }
  2320. set {
  2321. this[this.tableВсе_отделы_и_их_продажи._Кол_во_проданного_товараColumn] = value;
  2322. }
  2323. }
  2324. }
  2325. /// <summary>
  2326. ///Represents strongly named DataRow class.
  2327. ///</summary>
  2328. public partial class Все_товары_их_продажи_и_отделыRow : global::System.Data.DataRow {
  2329. private Все_товары_их_продажи_и_отделыDataTable tableВсе_товары_их_продажи_и_отделы;
  2330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2332. internal Все_товары_их_продажи_и_отделыRow(global::System.Data.DataRowBuilder rb) :
  2333. base(rb) {
  2334. this.tableВсе_товары_их_продажи_и_отделы = ((Все_товары_их_продажи_и_отделыDataTable)(this.Table));
  2335. }
  2336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2338. public string Наименование_товара {
  2339. get {
  2340. return ((string)(this[this.tableВсе_товары_их_продажи_и_отделы.Наименование_товараColumn]));
  2341. }
  2342. set {
  2343. this[this.tableВсе_товары_их_продажи_и_отделы.Наименование_товараColumn] = value;
  2344. }
  2345. }
  2346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2348. public long _Кол_во_проданного_товара {
  2349. get {
  2350. return ((long)(this[this.tableВсе_товары_их_продажи_и_отделы._Кол_во_проданного_товараColumn]));
  2351. }
  2352. set {
  2353. this[this.tableВсе_товары_их_продажи_и_отделы._Кол_во_проданного_товараColumn] = value;
  2354. }
  2355. }
  2356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2358. public string Наименование_отдела {
  2359. get {
  2360. return ((string)(this[this.tableВсе_товары_их_продажи_и_отделы.Наименование_отделаColumn]));
  2361. }
  2362. set {
  2363. this[this.tableВсе_товары_их_продажи_и_отделы.Наименование_отделаColumn] = value;
  2364. }
  2365. }
  2366. }
  2367. /// <summary>
  2368. ///Represents strongly named DataRow class.
  2369. ///</summary>
  2370. public partial class СвязиRow : global::System.Data.DataRow {
  2371. private СвязиDataTable tableСвязи;
  2372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2374. internal СвязиRow(global::System.Data.DataRowBuilder rb) :
  2375. base(rb) {
  2376. this.tableСвязи = ((СвязиDataTable)(this.Table));
  2377. }
  2378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2380. public System.DateTime Дата_продажи {
  2381. get {
  2382. return ((global::System.DateTime)(this[this.tableСвязи.Дата_продажиColumn]));
  2383. }
  2384. set {
  2385. this[this.tableСвязи.Дата_продажиColumn] = value;
  2386. }
  2387. }
  2388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2390. public long _Кол_во_проданного_товара {
  2391. get {
  2392. return ((long)(this[this.tableСвязи._Кол_во_проданного_товараColumn]));
  2393. }
  2394. set {
  2395. this[this.tableСвязи._Кол_во_проданного_товараColumn] = value;
  2396. }
  2397. }
  2398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2400. public decimal _Розничная_цена_товара__руб_ {
  2401. get {
  2402. try {
  2403. return ((decimal)(this[this.tableСвязи._Розничная_цена_товара__руб_Column]));
  2404. }
  2405. catch (global::System.InvalidCastException e) {
  2406. throw new global::System.Data.StrongTypingException("Значение для столбца \'Розничная цена товара (руб)\' в таблице \'Связи\' равно DBNull" +
  2407. ".", e);
  2408. }
  2409. }
  2410. set {
  2411. this[this.tableСвязи._Розничная_цена_товара__руб_Column] = value;
  2412. }
  2413. }
  2414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2416. public string Единица_измерения {
  2417. get {
  2418. try {
  2419. return ((string)(this[this.tableСвязи.Единица_измеренияColumn]));
  2420. }
  2421. catch (global::System.InvalidCastException e) {
  2422. throw new global::System.Data.StrongTypingException("Значение для столбца \'Единица измерения\' в таблице \'Связи\' равно DBNull.", e);
  2423. }
  2424. }
  2425. set {
  2426. this[this.tableСвязи.Единица_измеренияColumn] = value;
  2427. }
  2428. }
  2429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2431. public string Наименование_товара {
  2432. get {
  2433. return ((string)(this[this.tableСвязи.Наименование_товараColumn]));
  2434. }
  2435. set {
  2436. this[this.tableСвязи.Наименование_товараColumn] = value;
  2437. }
  2438. }
  2439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2441. public string Наименование_отдела {
  2442. get {
  2443. return ((string)(this[this.tableСвязи.Наименование_отделаColumn]));
  2444. }
  2445. set {
  2446. this[this.tableСвязи.Наименование_отделаColumn] = value;
  2447. }
  2448. }
  2449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2451. public string Ф_И_О_заведующего_отдела {
  2452. get {
  2453. return ((string)(this[this.tableСвязи.Ф_И_О_заведующего_отделаColumn]));
  2454. }
  2455. set {
  2456. this[this.tableСвязи.Ф_И_О_заведующего_отделаColumn] = value;
  2457. }
  2458. }
  2459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2461. public decimal _Объем_реализации_в_день__руб_ {
  2462. get {
  2463. return ((decimal)(this[this.tableСвязи._Объем_реализации_в_день__руб_Column]));
  2464. }
  2465. set {
  2466. this[this.tableСвязи._Объем_реализации_в_день__руб_Column] = value;
  2467. }
  2468. }
  2469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2471. public string Телефон {
  2472. get {
  2473. return ((string)(this[this.tableСвязи.ТелефонColumn]));
  2474. }
  2475. set {
  2476. this[this.tableСвязи.ТелефонColumn] = value;
  2477. }
  2478. }
  2479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2481. public bool Is_Розничная_цена_товара__руб_Null() {
  2482. return this.IsNull(this.tableСвязи._Розничная_цена_товара__руб_Column);
  2483. }
  2484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2486. public void Set_Розничная_цена_товара__руб_Null() {
  2487. this[this.tableСвязи._Розничная_цена_товара__руб_Column] = global::System.Convert.DBNull;
  2488. }
  2489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2491. public bool IsЕдиница_измеренияNull() {
  2492. return this.IsNull(this.tableСвязи.Единица_измеренияColumn);
  2493. }
  2494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2496. public void SetЕдиница_измеренияNull() {
  2497. this[this.tableСвязи.Единица_измеренияColumn] = global::System.Convert.DBNull;
  2498. }
  2499. }
  2500. /// <summary>
  2501. ///Row event argument class
  2502. ///</summary>
  2503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2504. public class ОтделыRowChangeEvent : global::System.EventArgs {
  2505. private ОтделыRow eventRow;
  2506. private global::System.Data.DataRowAction eventAction;
  2507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2509. public ОтделыRowChangeEvent(ОтделыRow row, global::System.Data.DataRowAction action) {
  2510. this.eventRow = row;
  2511. this.eventAction = action;
  2512. }
  2513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2515. public ОтделыRow Row {
  2516. get {
  2517. return this.eventRow;
  2518. }
  2519. }
  2520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2522. public global::System.Data.DataRowAction Action {
  2523. get {
  2524. return this.eventAction;
  2525. }
  2526. }
  2527. }
  2528. /// <summary>
  2529. ///Row event argument class
  2530. ///</summary>
  2531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2532. public class ПродажиRowChangeEvent : global::System.EventArgs {
  2533. private ПродажиRow eventRow;
  2534. private global::System.Data.DataRowAction eventAction;
  2535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2537. public ПродажиRowChangeEvent(ПродажиRow row, global::System.Data.DataRowAction action) {
  2538. this.eventRow = row;
  2539. this.eventAction = action;
  2540. }
  2541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2543. public ПродажиRow Row {
  2544. get {
  2545. return this.eventRow;
  2546. }
  2547. }
  2548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2550. public global::System.Data.DataRowAction Action {
  2551. get {
  2552. return this.eventAction;
  2553. }
  2554. }
  2555. }
  2556. /// <summary>
  2557. ///Row event argument class
  2558. ///</summary>
  2559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2560. public class ТоварыRowChangeEvent : global::System.EventArgs {
  2561. private ТоварыRow eventRow;
  2562. private global::System.Data.DataRowAction eventAction;
  2563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2565. public ТоварыRowChangeEvent(ТоварыRow row, global::System.Data.DataRowAction action) {
  2566. this.eventRow = row;
  2567. this.eventAction = action;
  2568. }
  2569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2571. public ТоварыRow Row {
  2572. get {
  2573. return this.eventRow;
  2574. }
  2575. }
  2576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2578. public global::System.Data.DataRowAction Action {
  2579. get {
  2580. return this.eventAction;
  2581. }
  2582. }
  2583. }
  2584. /// <summary>
  2585. ///Row event argument class
  2586. ///</summary>
  2587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2588. public class Все_отделы_и_их_продажиRowChangeEvent : global::System.EventArgs {
  2589. private Все_отделы_и_их_продажиRow eventRow;
  2590. private global::System.Data.DataRowAction eventAction;
  2591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2593. public Все_отделы_и_их_продажиRowChangeEvent(Все_отделы_и_их_продажиRow row, global::System.Data.DataRowAction action) {
  2594. this.eventRow = row;
  2595. this.eventAction = action;
  2596. }
  2597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2599. public Все_отделы_и_их_продажиRow Row {
  2600. get {
  2601. return this.eventRow;
  2602. }
  2603. }
  2604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2606. public global::System.Data.DataRowAction Action {
  2607. get {
  2608. return this.eventAction;
  2609. }
  2610. }
  2611. }
  2612. /// <summary>
  2613. ///Row event argument class
  2614. ///</summary>
  2615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2616. public class Все_товары_их_продажи_и_отделыRowChangeEvent : global::System.EventArgs {
  2617. private Все_товары_их_продажи_и_отделыRow eventRow;
  2618. private global::System.Data.DataRowAction eventAction;
  2619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2621. public Все_товары_их_продажи_и_отделыRowChangeEvent(Все_товары_их_продажи_и_отделыRow row, global::System.Data.DataRowAction action) {
  2622. this.eventRow = row;
  2623. this.eventAction = action;
  2624. }
  2625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2627. public Все_товары_их_продажи_и_отделыRow Row {
  2628. get {
  2629. return this.eventRow;
  2630. }
  2631. }
  2632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2634. public global::System.Data.DataRowAction Action {
  2635. get {
  2636. return this.eventAction;
  2637. }
  2638. }
  2639. }
  2640. /// <summary>
  2641. ///Row event argument class
  2642. ///</summary>
  2643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2644. public class СвязиRowChangeEvent : global::System.EventArgs {
  2645. private СвязиRow eventRow;
  2646. private global::System.Data.DataRowAction eventAction;
  2647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2649. public СвязиRowChangeEvent(СвязиRow row, global::System.Data.DataRowAction action) {
  2650. this.eventRow = row;
  2651. this.eventAction = action;
  2652. }
  2653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2655. public СвязиRow Row {
  2656. get {
  2657. return this.eventRow;
  2658. }
  2659. }
  2660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2662. public global::System.Data.DataRowAction Action {
  2663. get {
  2664. return this.eventAction;
  2665. }
  2666. }
  2667. }
  2668. }
  2669. }
  2670. namespace IvnitskiiProdazhi1.IS31Ivnickii7DataSet1TableAdapters {
  2671. /// <summary>
  2672. ///Represents the connection and commands used to retrieve and save data.
  2673. ///</summary>
  2674. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2675. [global::System.ComponentModel.ToolboxItem(true)]
  2676. [global::System.ComponentModel.DataObjectAttribute(true)]
  2677. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2678. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2679. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2680. public partial class ОтделыTableAdapter : global::System.ComponentModel.Component {
  2681. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2682. private global::System.Data.SqlClient.SqlConnection _connection;
  2683. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2684. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2685. private bool _clearBeforeFill;
  2686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2688. public ОтделыTableAdapter() {
  2689. this.ClearBeforeFill = true;
  2690. }
  2691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2693. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2694. get {
  2695. if ((this._adapter == null)) {
  2696. this.InitAdapter();
  2697. }
  2698. return this._adapter;
  2699. }
  2700. }
  2701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2703. internal global::System.Data.SqlClient.SqlConnection Connection {
  2704. get {
  2705. if ((this._connection == null)) {
  2706. this.InitConnection();
  2707. }
  2708. return this._connection;
  2709. }
  2710. set {
  2711. this._connection = value;
  2712. if ((this.Adapter.InsertCommand != null)) {
  2713. this.Adapter.InsertCommand.Connection = value;
  2714. }
  2715. if ((this.Adapter.DeleteCommand != null)) {
  2716. this.Adapter.DeleteCommand.Connection = value;
  2717. }
  2718. if ((this.Adapter.UpdateCommand != null)) {
  2719. this.Adapter.UpdateCommand.Connection = value;
  2720. }
  2721. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2722. if ((this.CommandCollection[i] != null)) {
  2723. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2724. }
  2725. }
  2726. }
  2727. }
  2728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2730. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2731. get {
  2732. return this._transaction;
  2733. }
  2734. set {
  2735. this._transaction = value;
  2736. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2737. this.CommandCollection[i].Transaction = this._transaction;
  2738. }
  2739. if (((this.Adapter != null)
  2740. && (this.Adapter.DeleteCommand != null))) {
  2741. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2742. }
  2743. if (((this.Adapter != null)
  2744. && (this.Adapter.InsertCommand != null))) {
  2745. this.Adapter.InsertCommand.Transaction = this._transaction;
  2746. }
  2747. if (((this.Adapter != null)
  2748. && (this.Adapter.UpdateCommand != null))) {
  2749. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2750. }
  2751. }
  2752. }
  2753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2755. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2756. get {
  2757. if ((this._commandCollection == null)) {
  2758. this.InitCommandCollection();
  2759. }
  2760. return this._commandCollection;
  2761. }
  2762. }
  2763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2765. public bool ClearBeforeFill {
  2766. get {
  2767. return this._clearBeforeFill;
  2768. }
  2769. set {
  2770. this._clearBeforeFill = value;
  2771. }
  2772. }
  2773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2775. private void InitAdapter() {
  2776. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2777. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2778. tableMapping.SourceTable = "Table";
  2779. tableMapping.DataSetTable = "Отделы";
  2780. tableMapping.ColumnMappings.Add("Код отдела", "Код отдела");
  2781. tableMapping.ColumnMappings.Add("Наименование отдела", "Наименование отдела");
  2782. tableMapping.ColumnMappings.Add("Ф.И.О заведующего отдела", "Ф_И_О заведующего отдела");
  2783. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  2784. tableMapping.ColumnMappings.Add("Объем реализации в день (руб)", "Объем реализации в день (руб)");
  2785. this._adapter.TableMappings.Add(tableMapping);
  2786. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  2787. this._adapter.DeleteCommand.Connection = this.Connection;
  2788. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Отделы] WHERE (([Код отдела] = @Original_Код_отдела) AND ([Наи" +
  2789. "менование отдела] = @Original_Наименование_отдела) AND ([Телефон] = @Original_Те" +
  2790. "лефон) AND ([Объем реализации в день (руб)] = @p4))";
  2791. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  2792. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_отдела", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код отдела", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2793. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование_отдела", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование отдела", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2794. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2795. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p4", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Объем реализации в день (руб)", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2796. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2797. this._adapter.InsertCommand.Connection = this.Connection;
  2798. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Отделы] ([Код отдела], [Наименование отдела], [Ф.И.О заведующего отдела], [Телефон], [Объем реализации в день (руб)]) VALUES (@Код_отдела, @Наименование_отдела, @p1, @Телефон, @p3);
  2799. SELECT [Код отдела], [Наименование отдела], [Ф.И.О заведующего отдела], Телефон, [Объем реализации в день (руб)] FROM Отделы WHERE ([Код отдела] = @Код_отдела)";
  2800. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2801. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_отдела", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код отдела", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2802. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_отдела", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование отдела", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2803. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ф.И.О заведующего отдела", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2804. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2805. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p3", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Объем реализации в день (руб)", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2806. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  2807. this._adapter.UpdateCommand.Connection = this.Connection;
  2808. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Отделы] SET [Код отдела] = @Код_отдела, [Наименование отдела] = @Наименование_отдела, [Ф.И.О заведующего отдела] = @p1, [Телефон] = @Телефон, [Объем реализации в день (руб)] = @p3 WHERE (([Код отдела] = @Original_Код_отдела) AND ([Наименование отдела] = @Original_Наименование_отдела) AND ([Телефон] = @Original_Телефон) AND ([Объем реализации в день (руб)] = @p4));
  2809. SELECT [Код отдела], [Наименование отдела], [Ф.И.О заведующего отдела], Телефон, [Объем реализации в день (руб)] FROM Отделы WHERE ([Код отдела] = @Код_отдела)";
  2810. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  2811. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_отдела", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код отдела", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2812. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_отдела", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование отдела", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2813. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ф.И.О заведующего отдела", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2814. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2815. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p3", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Объем реализации в день (руб)", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2816. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_отдела", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код отдела", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2817. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование_отдела", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование отдела", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2818. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2819. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p4", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Объем реализации в день (руб)", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2820. }
  2821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2823. private void InitConnection() {
  2824. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2825. this._connection.ConnectionString = global::IvnitskiiProdazhi1.Properties.Settings.Default.IS31Ivnickii7ConnectionString;
  2826. }
  2827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2829. private void InitCommandCollection() {
  2830. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2831. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2832. this._commandCollection[0].Connection = this.Connection;
  2833. this._commandCollection[0].CommandText = "SELECT [Код отдела], [Наименование отдела], [Ф.И.О заведующего отдела], Телефон, " +
  2834. "[Объем реализации в день (руб)] FROM dbo.Отделы";
  2835. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2836. }
  2837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2839. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2840. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2841. public virtual int Fill(IS31Ivnickii7DataSet1.ОтделыDataTable dataTable) {
  2842. this.Adapter.SelectCommand = this.CommandCollection[0];
  2843. if ((this.ClearBeforeFill == true)) {
  2844. dataTable.Clear();
  2845. }
  2846. int returnValue = this.Adapter.Fill(dataTable);
  2847. return returnValue;
  2848. }
  2849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2851. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2852. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2853. public virtual IS31Ivnickii7DataSet1.ОтделыDataTable GetData() {
  2854. this.Adapter.SelectCommand = this.CommandCollection[0];
  2855. IS31Ivnickii7DataSet1.ОтделыDataTable dataTable = new IS31Ivnickii7DataSet1.ОтделыDataTable();
  2856. this.Adapter.Fill(dataTable);
  2857. return dataTable;
  2858. }
  2859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2861. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2862. public virtual int Update(IS31Ivnickii7DataSet1.ОтделыDataTable dataTable) {
  2863. return this.Adapter.Update(dataTable);
  2864. }
  2865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2867. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2868. public virtual int Update(IS31Ivnickii7DataSet1 dataSet) {
  2869. return this.Adapter.Update(dataSet, "Отделы");
  2870. }
  2871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2873. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2874. public virtual int Update(global::System.Data.DataRow dataRow) {
  2875. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2876. dataRow});
  2877. }
  2878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2880. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2881. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2882. return this.Adapter.Update(dataRows);
  2883. }
  2884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2886. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2887. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  2888. public virtual int Delete(long Original_Код_отдела, string Original_Наименование_отдела, string Original_Телефон, decimal p4) {
  2889. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_Код_отдела));
  2890. if ((Original_Наименование_отдела == null)) {
  2891. throw new global::System.ArgumentNullException("Original_Наименование_отдела");
  2892. }
  2893. else {
  2894. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Наименование_отдела));
  2895. }
  2896. if ((Original_Телефон == null)) {
  2897. throw new global::System.ArgumentNullException("Original_Телефон");
  2898. }
  2899. else {
  2900. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Телефон));
  2901. }
  2902. this.Adapter.DeleteCommand.Parameters[3].Value = ((decimal)(p4));
  2903. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  2904. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2905. != global::System.Data.ConnectionState.Open)) {
  2906. this.Adapter.DeleteCommand.Connection.Open();
  2907. }
  2908. try {
  2909. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  2910. return returnValue;
  2911. }
  2912. finally {
  2913. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2914. this.Adapter.DeleteCommand.Connection.Close();
  2915. }
  2916. }
  2917. }
  2918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2920. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2921. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2922. public virtual int Insert(long Код_отдела, string Наименование_отдела, string p1, string Телефон, decimal p3) {
  2923. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(Код_отдела));
  2924. if ((Наименование_отдела == null)) {
  2925. throw new global::System.ArgumentNullException("Наименование_отдела");
  2926. }
  2927. else {
  2928. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование_отдела));
  2929. }
  2930. if ((p1 == null)) {
  2931. throw new global::System.ArgumentNullException("p1");
  2932. }
  2933. else {
  2934. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(p1));
  2935. }
  2936. if ((Телефон == null)) {
  2937. throw new global::System.ArgumentNullException("Телефон");
  2938. }
  2939. else {
  2940. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Телефон));
  2941. }
  2942. this.Adapter.InsertCommand.Parameters[4].Value = ((decimal)(p3));
  2943. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2944. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2945. != global::System.Data.ConnectionState.Open)) {
  2946. this.Adapter.InsertCommand.Connection.Open();
  2947. }
  2948. try {
  2949. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2950. return returnValue;
  2951. }
  2952. finally {
  2953. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2954. this.Adapter.InsertCommand.Connection.Close();
  2955. }
  2956. }
  2957. }
  2958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2960. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2961. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2962. public virtual int Update(long Код_отдела, string Наименование_отдела, string p1, string Телефон, decimal p3, long Original_Код_отдела, string Original_Наименование_отдела, string Original_Телефон, decimal p4) {
  2963. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(Код_отдела));
  2964. if ((Наименование_отдела == null)) {
  2965. throw new global::System.ArgumentNullException("Наименование_отдела");
  2966. }
  2967. else {
  2968. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование_отдела));
  2969. }
  2970. if ((p1 == null)) {
  2971. throw new global::System.ArgumentNullException("p1");
  2972. }
  2973. else {
  2974. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(p1));
  2975. }
  2976. if ((Телефон == null)) {
  2977. throw new global::System.ArgumentNullException("Телефон");
  2978. }
  2979. else {
  2980. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Телефон));
  2981. }
  2982. this.Adapter.UpdateCommand.Parameters[4].Value = ((decimal)(p3));
  2983. this.Adapter.UpdateCommand.Parameters[5].Value = ((long)(Original_Код_отдела));
  2984. if ((Original_Наименование_отдела == null)) {
  2985. throw new global::System.ArgumentNullException("Original_Наименование_отдела");
  2986. }
  2987. else {
  2988. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Наименование_отдела));
  2989. }
  2990. if ((Original_Телефон == null)) {
  2991. throw new global::System.ArgumentNullException("Original_Телефон");
  2992. }
  2993. else {
  2994. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Телефон));
  2995. }
  2996. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(p4));
  2997. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  2998. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2999. != global::System.Data.ConnectionState.Open)) {
  3000. this.Adapter.UpdateCommand.Connection.Open();
  3001. }
  3002. try {
  3003. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3004. return returnValue;
  3005. }
  3006. finally {
  3007. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3008. this.Adapter.UpdateCommand.Connection.Close();
  3009. }
  3010. }
  3011. }
  3012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3014. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3015. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3016. public virtual int Update(string Наименование_отдела, string p1, string Телефон, decimal p3, long Original_Код_отдела, string Original_Наименование_отдела, string Original_Телефон, decimal p4) {
  3017. return this.Update(Original_Код_отдела, Наименование_отдела, p1, Телефон, p3, Original_Код_отдела, Original_Наименование_отдела, Original_Телефон, p4);
  3018. }
  3019. }
  3020. /// <summary>
  3021. ///Represents the connection and commands used to retrieve and save data.
  3022. ///</summary>
  3023. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3024. [global::System.ComponentModel.ToolboxItem(true)]
  3025. [global::System.ComponentModel.DataObjectAttribute(true)]
  3026. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3027. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3028. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3029. public partial class ПродажиTableAdapter : global::System.ComponentModel.Component {
  3030. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3031. private global::System.Data.SqlClient.SqlConnection _connection;
  3032. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3033. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3034. private bool _clearBeforeFill;
  3035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3037. public ПродажиTableAdapter() {
  3038. this.ClearBeforeFill = true;
  3039. }
  3040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3042. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3043. get {
  3044. if ((this._adapter == null)) {
  3045. this.InitAdapter();
  3046. }
  3047. return this._adapter;
  3048. }
  3049. }
  3050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3052. internal global::System.Data.SqlClient.SqlConnection Connection {
  3053. get {
  3054. if ((this._connection == null)) {
  3055. this.InitConnection();
  3056. }
  3057. return this._connection;
  3058. }
  3059. set {
  3060. this._connection = value;
  3061. if ((this.Adapter.InsertCommand != null)) {
  3062. this.Adapter.InsertCommand.Connection = value;
  3063. }
  3064. if ((this.Adapter.DeleteCommand != null)) {
  3065. this.Adapter.DeleteCommand.Connection = value;
  3066. }
  3067. if ((this.Adapter.UpdateCommand != null)) {
  3068. this.Adapter.UpdateCommand.Connection = value;
  3069. }
  3070. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3071. if ((this.CommandCollection[i] != null)) {
  3072. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3073. }
  3074. }
  3075. }
  3076. }
  3077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3079. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3080. get {
  3081. return this._transaction;
  3082. }
  3083. set {
  3084. this._transaction = value;
  3085. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3086. this.CommandCollection[i].Transaction = this._transaction;
  3087. }
  3088. if (((this.Adapter != null)
  3089. && (this.Adapter.DeleteCommand != null))) {
  3090. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3091. }
  3092. if (((this.Adapter != null)
  3093. && (this.Adapter.InsertCommand != null))) {
  3094. this.Adapter.InsertCommand.Transaction = this._transaction;
  3095. }
  3096. if (((this.Adapter != null)
  3097. && (this.Adapter.UpdateCommand != null))) {
  3098. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3099. }
  3100. }
  3101. }
  3102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3104. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3105. get {
  3106. if ((this._commandCollection == null)) {
  3107. this.InitCommandCollection();
  3108. }
  3109. return this._commandCollection;
  3110. }
  3111. }
  3112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3114. public bool ClearBeforeFill {
  3115. get {
  3116. return this._clearBeforeFill;
  3117. }
  3118. set {
  3119. this._clearBeforeFill = value;
  3120. }
  3121. }
  3122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3124. private void InitAdapter() {
  3125. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3126. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3127. tableMapping.SourceTable = "Table";
  3128. tableMapping.DataSetTable = "Продажи";
  3129. tableMapping.ColumnMappings.Add("Артикул товара", "Артикул товара");
  3130. tableMapping.ColumnMappings.Add("Дата продажи", "Дата продажи");
  3131. tableMapping.ColumnMappings.Add("Кол-во проданного товара", "Кол-во проданного товара");
  3132. tableMapping.ColumnMappings.Add("Код продажи", "Код продажи");
  3133. tableMapping.ColumnMappings.Add("Код отдела", "Код отдела");
  3134. this._adapter.TableMappings.Add(tableMapping);
  3135. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3136. this._adapter.DeleteCommand.Connection = this.Connection;
  3137. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Продажи] WHERE (([Артикул товара] = @Original_Артикул_товара) AND ([Дата продажи] = @Original_Дата_продажи) AND ([Кол-во проданного товара] = @p2) AND ([Код продажи] = @Original_Код_продажи) AND ((@IsNull_Код_отдела = 1 AND [Код отдела] IS NULL) OR ([Код отдела] = @Original_Код_отдела)))";
  3138. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3139. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Артикул_товара", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул товара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3140. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_продажи", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата продажи", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3141. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p2", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Кол-во проданного товара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3142. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_продажи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код продажи", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3143. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Код_отдела", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код отдела", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3144. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_отдела", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код отдела", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3145. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3146. this._adapter.InsertCommand.Connection = this.Connection;
  3147. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Продажи] ([Артикул товара], [Дата продажи], [Кол-во проданного товара], [Код отдела]) VALUES (@Артикул_товара, @Дата_продажи, @p1, @Код_отдела);
  3148. SELECT [Артикул товара], [Дата продажи], [Кол-во проданного товара], [Код продажи], [Код отдела] FROM Продажи WHERE ([Код продажи] = SCOPE_IDENTITY())";
  3149. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3150. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Артикул_товара", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3151. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_продажи", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата продажи", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3152. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Кол-во проданного товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3153. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_отдела", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код отдела", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3154. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3155. this._adapter.UpdateCommand.Connection = this.Connection;
  3156. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Продажи] SET [Артикул товара] = @Артикул_товара, [Дата продажи] = @Дата_продажи, [Кол-во проданного товара] = @p1, [Код отдела] = @Код_отдела WHERE (([Артикул товара] = @Original_Артикул_товара) AND ([Дата продажи] = @Original_Дата_продажи) AND ([Кол-во проданного товара] = @p2) AND ([Код продажи] = @Original_Код_продажи) AND ((@IsNull_Код_отдела = 1 AND [Код отдела] IS NULL) OR ([Код отдела] = @Original_Код_отдела)));
  3157. SELECT [Артикул товара], [Дата продажи], [Кол-во проданного товара], [Код продажи], [Код отдела] FROM Продажи WHERE ([Код продажи] = @Код_продажи)";
  3158. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3159. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Артикул_товара", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3160. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_продажи", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата продажи", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3161. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Кол-во проданного товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3162. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_отдела", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код отдела", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3163. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Артикул_товара", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул товара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3164. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_продажи", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата продажи", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3165. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p2", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Кол-во проданного товара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3166. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_продажи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код продажи", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3167. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Код_отдела", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код отдела", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3168. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_отдела", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код отдела", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3169. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_продажи", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Код продажи", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3170. }
  3171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3173. private void InitConnection() {
  3174. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3175. this._connection.ConnectionString = global::IvnitskiiProdazhi1.Properties.Settings.Default.IS31Ivnickii7ConnectionString;
  3176. }
  3177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3179. private void InitCommandCollection() {
  3180. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3181. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3182. this._commandCollection[0].Connection = this.Connection;
  3183. this._commandCollection[0].CommandText = "SELECT [Артикул товара], [Дата продажи], [Кол-во проданного товара], [Код продажи" +
  3184. "], [Код отдела] FROM dbo.Продажи";
  3185. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3186. }
  3187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3189. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3190. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3191. public virtual int Fill(IS31Ivnickii7DataSet1.ПродажиDataTable dataTable) {
  3192. this.Adapter.SelectCommand = this.CommandCollection[0];
  3193. if ((this.ClearBeforeFill == true)) {
  3194. dataTable.Clear();
  3195. }
  3196. int returnValue = this.Adapter.Fill(dataTable);
  3197. return returnValue;
  3198. }
  3199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3201. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3202. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3203. public virtual IS31Ivnickii7DataSet1.ПродажиDataTable GetData() {
  3204. this.Adapter.SelectCommand = this.CommandCollection[0];
  3205. IS31Ivnickii7DataSet1.ПродажиDataTable dataTable = new IS31Ivnickii7DataSet1.ПродажиDataTable();
  3206. this.Adapter.Fill(dataTable);
  3207. return dataTable;
  3208. }
  3209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3211. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3212. public virtual int Update(IS31Ivnickii7DataSet1.ПродажиDataTable dataTable) {
  3213. return this.Adapter.Update(dataTable);
  3214. }
  3215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3217. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3218. public virtual int Update(IS31Ivnickii7DataSet1 dataSet) {
  3219. return this.Adapter.Update(dataSet, "Продажи");
  3220. }
  3221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3223. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3224. public virtual int Update(global::System.Data.DataRow dataRow) {
  3225. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3226. dataRow});
  3227. }
  3228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3230. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3231. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3232. return this.Adapter.Update(dataRows);
  3233. }
  3234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3236. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3237. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3238. public virtual int Delete(long Original_Артикул_товара, System.DateTime Original_Дата_продажи, long p2, int Original_Код_продажи, global::System.Nullable<int> Original_Код_отдела) {
  3239. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_Артикул_товара));
  3240. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_Дата_продажи));
  3241. this.Adapter.DeleteCommand.Parameters[2].Value = ((long)(p2));
  3242. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Код_продажи));
  3243. if ((Original_Код_отдела.HasValue == true)) {
  3244. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  3245. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_Код_отдела.Value));
  3246. }
  3247. else {
  3248. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  3249. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  3250. }
  3251. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3252. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3253. != global::System.Data.ConnectionState.Open)) {
  3254. this.Adapter.DeleteCommand.Connection.Open();
  3255. }
  3256. try {
  3257. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3258. return returnValue;
  3259. }
  3260. finally {
  3261. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3262. this.Adapter.DeleteCommand.Connection.Close();
  3263. }
  3264. }
  3265. }
  3266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3268. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3269. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3270. public virtual int Insert(long Артикул_товара, System.DateTime Дата_продажи, long p1, global::System.Nullable<int> Код_отдела) {
  3271. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(Артикул_товара));
  3272. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Дата_продажи));
  3273. this.Adapter.InsertCommand.Parameters[2].Value = ((long)(p1));
  3274. if ((Код_отдела.HasValue == true)) {
  3275. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Код_отдела.Value));
  3276. }
  3277. else {
  3278. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3279. }
  3280. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3281. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3282. != global::System.Data.ConnectionState.Open)) {
  3283. this.Adapter.InsertCommand.Connection.Open();
  3284. }
  3285. try {
  3286. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3287. return returnValue;
  3288. }
  3289. finally {
  3290. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3291. this.Adapter.InsertCommand.Connection.Close();
  3292. }
  3293. }
  3294. }
  3295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3297. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3298. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3299. public virtual int Update(long Артикул_товара, System.DateTime Дата_продажи, long p1, global::System.Nullable<int> Код_отдела, long Original_Артикул_товара, System.DateTime Original_Дата_продажи, long p2, int Original_Код_продажи, global::System.Nullable<int> Original_Код_отдела, int Код_продажи) {
  3300. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(Артикул_товара));
  3301. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(Дата_продажи));
  3302. this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(p1));
  3303. if ((Код_отдела.HasValue == true)) {
  3304. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Код_отдела.Value));
  3305. }
  3306. else {
  3307. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  3308. }
  3309. this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(Original_Артикул_товара));
  3310. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_Дата_продажи));
  3311. this.Adapter.UpdateCommand.Parameters[6].Value = ((long)(p2));
  3312. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Код_продажи));
  3313. if ((Original_Код_отдела.HasValue == true)) {
  3314. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  3315. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Код_отдела.Value));
  3316. }
  3317. else {
  3318. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  3319. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  3320. }
  3321. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Код_продажи));
  3322. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3323. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3324. != global::System.Data.ConnectionState.Open)) {
  3325. this.Adapter.UpdateCommand.Connection.Open();
  3326. }
  3327. try {
  3328. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3329. return returnValue;
  3330. }
  3331. finally {
  3332. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3333. this.Adapter.UpdateCommand.Connection.Close();
  3334. }
  3335. }
  3336. }
  3337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3339. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3340. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3341. public virtual int Update(long Артикул_товара, System.DateTime Дата_продажи, long p1, global::System.Nullable<int> Код_отдела, long Original_Артикул_товара, System.DateTime Original_Дата_продажи, long p2, int Original_Код_продажи, global::System.Nullable<int> Original_Код_отдела) {
  3342. return this.Update(Артикул_товара, Дата_продажи, p1, Код_отдела, Original_Артикул_товара, Original_Дата_продажи, p2, Original_Код_продажи, Original_Код_отдела, Original_Код_продажи);
  3343. }
  3344. }
  3345. /// <summary>
  3346. ///Represents the connection and commands used to retrieve and save data.
  3347. ///</summary>
  3348. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3349. [global::System.ComponentModel.ToolboxItem(true)]
  3350. [global::System.ComponentModel.DataObjectAttribute(true)]
  3351. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3352. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3353. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3354. public partial class ТоварыTableAdapter : global::System.ComponentModel.Component {
  3355. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3356. private global::System.Data.SqlClient.SqlConnection _connection;
  3357. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3358. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3359. private bool _clearBeforeFill;
  3360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3362. public ТоварыTableAdapter() {
  3363. this.ClearBeforeFill = true;
  3364. }
  3365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3367. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3368. get {
  3369. if ((this._adapter == null)) {
  3370. this.InitAdapter();
  3371. }
  3372. return this._adapter;
  3373. }
  3374. }
  3375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3377. internal global::System.Data.SqlClient.SqlConnection Connection {
  3378. get {
  3379. if ((this._connection == null)) {
  3380. this.InitConnection();
  3381. }
  3382. return this._connection;
  3383. }
  3384. set {
  3385. this._connection = value;
  3386. if ((this.Adapter.InsertCommand != null)) {
  3387. this.Adapter.InsertCommand.Connection = value;
  3388. }
  3389. if ((this.Adapter.DeleteCommand != null)) {
  3390. this.Adapter.DeleteCommand.Connection = value;
  3391. }
  3392. if ((this.Adapter.UpdateCommand != null)) {
  3393. this.Adapter.UpdateCommand.Connection = value;
  3394. }
  3395. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3396. if ((this.CommandCollection[i] != null)) {
  3397. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3398. }
  3399. }
  3400. }
  3401. }
  3402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3404. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3405. get {
  3406. return this._transaction;
  3407. }
  3408. set {
  3409. this._transaction = value;
  3410. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3411. this.CommandCollection[i].Transaction = this._transaction;
  3412. }
  3413. if (((this.Adapter != null)
  3414. && (this.Adapter.DeleteCommand != null))) {
  3415. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3416. }
  3417. if (((this.Adapter != null)
  3418. && (this.Adapter.InsertCommand != null))) {
  3419. this.Adapter.InsertCommand.Transaction = this._transaction;
  3420. }
  3421. if (((this.Adapter != null)
  3422. && (this.Adapter.UpdateCommand != null))) {
  3423. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3424. }
  3425. }
  3426. }
  3427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3429. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3430. get {
  3431. if ((this._commandCollection == null)) {
  3432. this.InitCommandCollection();
  3433. }
  3434. return this._commandCollection;
  3435. }
  3436. }
  3437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3439. public bool ClearBeforeFill {
  3440. get {
  3441. return this._clearBeforeFill;
  3442. }
  3443. set {
  3444. this._clearBeforeFill = value;
  3445. }
  3446. }
  3447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3449. private void InitAdapter() {
  3450. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3451. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3452. tableMapping.SourceTable = "Table";
  3453. tableMapping.DataSetTable = "Товары";
  3454. tableMapping.ColumnMappings.Add("Артикул товара", "Артикул товара");
  3455. tableMapping.ColumnMappings.Add("Наименование товара", "Наименование товара");
  3456. tableMapping.ColumnMappings.Add("Единица измерения", "Единица измерения");
  3457. tableMapping.ColumnMappings.Add("Розничная цена товара (руб)", "Розничная цена товара (руб)");
  3458. this._adapter.TableMappings.Add(tableMapping);
  3459. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3460. this._adapter.DeleteCommand.Connection = this.Connection;
  3461. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Товары] WHERE (([Артикул товара] = @Original_Артикул_товара) A" +
  3462. "ND ((@p3 = 1 AND [Розничная цена товара (руб)] IS NULL) OR ([Розничная цена това" +
  3463. "ра (руб)] = @p2)))";
  3464. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3465. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Артикул_товара", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул товара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3466. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Розничная цена товара (руб)", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3467. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p2", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Розничная цена товара (руб)", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3468. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3469. this._adapter.InsertCommand.Connection = this.Connection;
  3470. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Товары] ([Артикул товара], [Наименование товара], [Единица измерения], [Розничная цена товара (руб)]) VALUES (@Артикул_товара, @Наименование_товара, @Единица_измерения, @p1);
  3471. SELECT [Артикул товара], [Наименование товара], [Единица измерения], [Розничная цена товара (руб)] FROM Товары WHERE ([Артикул товара] = @Артикул_товара)";
  3472. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3473. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Артикул_товара", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3474. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_товара", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3475. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Единица_измерения", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Единица измерения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3476. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Розничная цена товара (руб)", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3477. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3478. this._adapter.UpdateCommand.Connection = this.Connection;
  3479. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Товары] SET [Артикул товара] = @Артикул_товара, [Наименование товара] = @Наименование_товара, [Единица измерения] = @Единица_измерения, [Розничная цена товара (руб)] = @p1 WHERE (([Артикул товара] = @Original_Артикул_товара) AND ((@p3 = 1 AND [Розничная цена товара (руб)] IS NULL) OR ([Розничная цена товара (руб)] = @p2)));
  3480. SELECT [Артикул товара], [Наименование товара], [Единица измерения], [Розничная цена товара (руб)] FROM Товары WHERE ([Артикул товара] = @Артикул_товара)";
  3481. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3482. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Артикул_товара", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3483. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_товара", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3484. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Единица_измерения", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Единица измерения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3485. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Розничная цена товара (руб)", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3486. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Артикул_товара", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул товара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3487. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Розничная цена товара (руб)", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3488. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p2", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Розничная цена товара (руб)", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3489. }
  3490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3492. private void InitConnection() {
  3493. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3494. this._connection.ConnectionString = global::IvnitskiiProdazhi1.Properties.Settings.Default.IS31Ivnickii7ConnectionString;
  3495. }
  3496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3498. private void InitCommandCollection() {
  3499. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3500. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3501. this._commandCollection[0].Connection = this.Connection;
  3502. this._commandCollection[0].CommandText = "SELECT [Артикул товара], [Наименование товара], [Единица измерения], [Розничная ц" +
  3503. "ена товара (руб)] FROM dbo.Товары";
  3504. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3505. }
  3506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3508. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3509. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3510. public virtual int Fill(IS31Ivnickii7DataSet1.ТоварыDataTable dataTable) {
  3511. this.Adapter.SelectCommand = this.CommandCollection[0];
  3512. if ((this.ClearBeforeFill == true)) {
  3513. dataTable.Clear();
  3514. }
  3515. int returnValue = this.Adapter.Fill(dataTable);
  3516. return returnValue;
  3517. }
  3518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3520. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3521. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3522. public virtual IS31Ivnickii7DataSet1.ТоварыDataTable GetData() {
  3523. this.Adapter.SelectCommand = this.CommandCollection[0];
  3524. IS31Ivnickii7DataSet1.ТоварыDataTable dataTable = new IS31Ivnickii7DataSet1.ТоварыDataTable();
  3525. this.Adapter.Fill(dataTable);
  3526. return dataTable;
  3527. }
  3528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3530. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3531. public virtual int Update(IS31Ivnickii7DataSet1.ТоварыDataTable dataTable) {
  3532. return this.Adapter.Update(dataTable);
  3533. }
  3534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3536. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3537. public virtual int Update(IS31Ivnickii7DataSet1 dataSet) {
  3538. return this.Adapter.Update(dataSet, "Товары");
  3539. }
  3540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3542. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3543. public virtual int Update(global::System.Data.DataRow dataRow) {
  3544. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3545. dataRow});
  3546. }
  3547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3549. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3550. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3551. return this.Adapter.Update(dataRows);
  3552. }
  3553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3555. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3556. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3557. public virtual int Delete(long Original_Артикул_товара, global::System.Nullable<decimal> p2) {
  3558. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_Артикул_товара));
  3559. if ((p2.HasValue == true)) {
  3560. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3561. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(p2.Value));
  3562. }
  3563. else {
  3564. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3565. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3566. }
  3567. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3568. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3569. != global::System.Data.ConnectionState.Open)) {
  3570. this.Adapter.DeleteCommand.Connection.Open();
  3571. }
  3572. try {
  3573. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3574. return returnValue;
  3575. }
  3576. finally {
  3577. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3578. this.Adapter.DeleteCommand.Connection.Close();
  3579. }
  3580. }
  3581. }
  3582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3584. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3585. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3586. public virtual int Insert(long Артикул_товара, string Наименование_товара, string Единица_измерения, global::System.Nullable<decimal> p1) {
  3587. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(Артикул_товара));
  3588. if ((Наименование_товара == null)) {
  3589. throw new global::System.ArgumentNullException("Наименование_товара");
  3590. }
  3591. else {
  3592. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование_товара));
  3593. }
  3594. if ((Единица_измерения == null)) {
  3595. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3596. }
  3597. else {
  3598. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Единица_измерения));
  3599. }
  3600. if ((p1.HasValue == true)) {
  3601. this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(p1.Value));
  3602. }
  3603. else {
  3604. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3605. }
  3606. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3607. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3608. != global::System.Data.ConnectionState.Open)) {
  3609. this.Adapter.InsertCommand.Connection.Open();
  3610. }
  3611. try {
  3612. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3613. return returnValue;
  3614. }
  3615. finally {
  3616. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3617. this.Adapter.InsertCommand.Connection.Close();
  3618. }
  3619. }
  3620. }
  3621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3623. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3624. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3625. public virtual int Update(long Артикул_товара, string Наименование_товара, string Единица_измерения, global::System.Nullable<decimal> p1, long Original_Артикул_товара, global::System.Nullable<decimal> p2) {
  3626. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(Артикул_товара));
  3627. if ((Наименование_товара == null)) {
  3628. throw new global::System.ArgumentNullException("Наименование_товара");
  3629. }
  3630. else {
  3631. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование_товара));
  3632. }
  3633. if ((Единица_измерения == null)) {
  3634. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  3635. }
  3636. else {
  3637. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Единица_измерения));
  3638. }
  3639. if ((p1.HasValue == true)) {
  3640. this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(p1.Value));
  3641. }
  3642. else {
  3643. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  3644. }
  3645. this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(Original_Артикул_товара));
  3646. if ((p2.HasValue == true)) {
  3647. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  3648. this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(p2.Value));
  3649. }
  3650. else {
  3651. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  3652. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  3653. }
  3654. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3655. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3656. != global::System.Data.ConnectionState.Open)) {
  3657. this.Adapter.UpdateCommand.Connection.Open();
  3658. }
  3659. try {
  3660. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3661. return returnValue;
  3662. }
  3663. finally {
  3664. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3665. this.Adapter.UpdateCommand.Connection.Close();
  3666. }
  3667. }
  3668. }
  3669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3671. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3672. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3673. public virtual int Update(string Наименование_товара, string Единица_измерения, global::System.Nullable<decimal> p1, long Original_Артикул_товара, global::System.Nullable<decimal> p2) {
  3674. return this.Update(Original_Артикул_товара, Наименование_товара, Единица_измерения, p1, Original_Артикул_товара, p2);
  3675. }
  3676. }
  3677. /// <summary>
  3678. ///Represents the connection and commands used to retrieve and save data.
  3679. ///</summary>
  3680. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3681. [global::System.ComponentModel.ToolboxItem(true)]
  3682. [global::System.ComponentModel.DataObjectAttribute(true)]
  3683. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3684. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3685. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3686. public partial class Все_отделы_и_их_продажиTableAdapter : global::System.ComponentModel.Component {
  3687. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3688. private global::System.Data.SqlClient.SqlConnection _connection;
  3689. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3690. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3691. private bool _clearBeforeFill;
  3692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3694. public Все_отделы_и_их_продажиTableAdapter() {
  3695. this.ClearBeforeFill = true;
  3696. }
  3697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3699. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3700. get {
  3701. if ((this._adapter == null)) {
  3702. this.InitAdapter();
  3703. }
  3704. return this._adapter;
  3705. }
  3706. }
  3707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3709. internal global::System.Data.SqlClient.SqlConnection Connection {
  3710. get {
  3711. if ((this._connection == null)) {
  3712. this.InitConnection();
  3713. }
  3714. return this._connection;
  3715. }
  3716. set {
  3717. this._connection = value;
  3718. if ((this.Adapter.InsertCommand != null)) {
  3719. this.Adapter.InsertCommand.Connection = value;
  3720. }
  3721. if ((this.Adapter.DeleteCommand != null)) {
  3722. this.Adapter.DeleteCommand.Connection = value;
  3723. }
  3724. if ((this.Adapter.UpdateCommand != null)) {
  3725. this.Adapter.UpdateCommand.Connection = value;
  3726. }
  3727. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3728. if ((this.CommandCollection[i] != null)) {
  3729. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3730. }
  3731. }
  3732. }
  3733. }
  3734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3736. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3737. get {
  3738. return this._transaction;
  3739. }
  3740. set {
  3741. this._transaction = value;
  3742. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3743. this.CommandCollection[i].Transaction = this._transaction;
  3744. }
  3745. if (((this.Adapter != null)
  3746. && (this.Adapter.DeleteCommand != null))) {
  3747. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3748. }
  3749. if (((this.Adapter != null)
  3750. && (this.Adapter.InsertCommand != null))) {
  3751. this.Adapter.InsertCommand.Transaction = this._transaction;
  3752. }
  3753. if (((this.Adapter != null)
  3754. && (this.Adapter.UpdateCommand != null))) {
  3755. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3756. }
  3757. }
  3758. }
  3759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3761. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3762. get {
  3763. if ((this._commandCollection == null)) {
  3764. this.InitCommandCollection();
  3765. }
  3766. return this._commandCollection;
  3767. }
  3768. }
  3769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3771. public bool ClearBeforeFill {
  3772. get {
  3773. return this._clearBeforeFill;
  3774. }
  3775. set {
  3776. this._clearBeforeFill = value;
  3777. }
  3778. }
  3779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3781. private void InitAdapter() {
  3782. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3783. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3784. tableMapping.SourceTable = "Table";
  3785. tableMapping.DataSetTable = "Все отделы и их продажи";
  3786. tableMapping.ColumnMappings.Add("Наименование отдела", "Наименование отдела");
  3787. tableMapping.ColumnMappings.Add("Кол-во проданного товара", "Кол-во проданного товара");
  3788. this._adapter.TableMappings.Add(tableMapping);
  3789. }
  3790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3792. private void InitConnection() {
  3793. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3794. this._connection.ConnectionString = global::IvnitskiiProdazhi1.Properties.Settings.Default.IS31Ivnickii7ConnectionString;
  3795. }
  3796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3798. private void InitCommandCollection() {
  3799. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3800. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3801. this._commandCollection[0].Connection = this.Connection;
  3802. this._commandCollection[0].CommandText = "SELECT [Наименование отдела], [Кол-во проданного товара] FROM dbo.[Все отделы и и" +
  3803. "х продажи]";
  3804. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3805. }
  3806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3808. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3809. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3810. public virtual int Fill(IS31Ivnickii7DataSet1.Все_отделы_и_их_продажиDataTable dataTable) {
  3811. this.Adapter.SelectCommand = this.CommandCollection[0];
  3812. if ((this.ClearBeforeFill == true)) {
  3813. dataTable.Clear();
  3814. }
  3815. int returnValue = this.Adapter.Fill(dataTable);
  3816. return returnValue;
  3817. }
  3818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3820. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3821. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3822. public virtual IS31Ivnickii7DataSet1.Все_отделы_и_их_продажиDataTable GetData() {
  3823. this.Adapter.SelectCommand = this.CommandCollection[0];
  3824. IS31Ivnickii7DataSet1.Все_отделы_и_их_продажиDataTable dataTable = new IS31Ivnickii7DataSet1.Все_отделы_и_их_продажиDataTable();
  3825. this.Adapter.Fill(dataTable);
  3826. return dataTable;
  3827. }
  3828. }
  3829. /// <summary>
  3830. ///Represents the connection and commands used to retrieve and save data.
  3831. ///</summary>
  3832. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3833. [global::System.ComponentModel.ToolboxItem(true)]
  3834. [global::System.ComponentModel.DataObjectAttribute(true)]
  3835. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3836. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3837. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3838. public partial class Все_товары_их_продажи_и_отделыTableAdapter : global::System.ComponentModel.Component {
  3839. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3840. private global::System.Data.SqlClient.SqlConnection _connection;
  3841. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3842. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3843. private bool _clearBeforeFill;
  3844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3846. public Все_товары_их_продажи_и_отделыTableAdapter() {
  3847. this.ClearBeforeFill = true;
  3848. }
  3849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3851. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3852. get {
  3853. if ((this._adapter == null)) {
  3854. this.InitAdapter();
  3855. }
  3856. return this._adapter;
  3857. }
  3858. }
  3859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3861. internal global::System.Data.SqlClient.SqlConnection Connection {
  3862. get {
  3863. if ((this._connection == null)) {
  3864. this.InitConnection();
  3865. }
  3866. return this._connection;
  3867. }
  3868. set {
  3869. this._connection = value;
  3870. if ((this.Adapter.InsertCommand != null)) {
  3871. this.Adapter.InsertCommand.Connection = value;
  3872. }
  3873. if ((this.Adapter.DeleteCommand != null)) {
  3874. this.Adapter.DeleteCommand.Connection = value;
  3875. }
  3876. if ((this.Adapter.UpdateCommand != null)) {
  3877. this.Adapter.UpdateCommand.Connection = value;
  3878. }
  3879. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3880. if ((this.CommandCollection[i] != null)) {
  3881. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3882. }
  3883. }
  3884. }
  3885. }
  3886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3888. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3889. get {
  3890. return this._transaction;
  3891. }
  3892. set {
  3893. this._transaction = value;
  3894. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3895. this.CommandCollection[i].Transaction = this._transaction;
  3896. }
  3897. if (((this.Adapter != null)
  3898. && (this.Adapter.DeleteCommand != null))) {
  3899. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3900. }
  3901. if (((this.Adapter != null)
  3902. && (this.Adapter.InsertCommand != null))) {
  3903. this.Adapter.InsertCommand.Transaction = this._transaction;
  3904. }
  3905. if (((this.Adapter != null)
  3906. && (this.Adapter.UpdateCommand != null))) {
  3907. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3908. }
  3909. }
  3910. }
  3911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3913. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3914. get {
  3915. if ((this._commandCollection == null)) {
  3916. this.InitCommandCollection();
  3917. }
  3918. return this._commandCollection;
  3919. }
  3920. }
  3921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3923. public bool ClearBeforeFill {
  3924. get {
  3925. return this._clearBeforeFill;
  3926. }
  3927. set {
  3928. this._clearBeforeFill = value;
  3929. }
  3930. }
  3931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3933. private void InitAdapter() {
  3934. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3935. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3936. tableMapping.SourceTable = "Table";
  3937. tableMapping.DataSetTable = "Все товары их продажи и отделы";
  3938. tableMapping.ColumnMappings.Add("Наименование товара", "Наименование товара");
  3939. tableMapping.ColumnMappings.Add("Кол-во проданного товара", "Кол-во проданного товара");
  3940. tableMapping.ColumnMappings.Add("Наименование отдела", "Наименование отдела");
  3941. this._adapter.TableMappings.Add(tableMapping);
  3942. }
  3943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3945. private void InitConnection() {
  3946. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3947. this._connection.ConnectionString = global::IvnitskiiProdazhi1.Properties.Settings.Default.IS31Ivnickii7ConnectionString;
  3948. }
  3949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3951. private void InitCommandCollection() {
  3952. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3953. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3954. this._commandCollection[0].Connection = this.Connection;
  3955. this._commandCollection[0].CommandText = "SELECT [Наименование товара], [Кол-во проданного товара], [Наименование отдела] F" +
  3956. "ROM dbo.[Все товары их продажи и отделы]";
  3957. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3958. }
  3959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3961. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3962. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3963. public virtual int Fill(IS31Ivnickii7DataSet1.Все_товары_их_продажи_и_отделыDataTable dataTable) {
  3964. this.Adapter.SelectCommand = this.CommandCollection[0];
  3965. if ((this.ClearBeforeFill == true)) {
  3966. dataTable.Clear();
  3967. }
  3968. int returnValue = this.Adapter.Fill(dataTable);
  3969. return returnValue;
  3970. }
  3971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3973. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3974. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3975. public virtual IS31Ivnickii7DataSet1.Все_товары_их_продажи_и_отделыDataTable GetData() {
  3976. this.Adapter.SelectCommand = this.CommandCollection[0];
  3977. IS31Ivnickii7DataSet1.Все_товары_их_продажи_и_отделыDataTable dataTable = new IS31Ivnickii7DataSet1.Все_товары_их_продажи_и_отделыDataTable();
  3978. this.Adapter.Fill(dataTable);
  3979. return dataTable;
  3980. }
  3981. }
  3982. /// <summary>
  3983. ///Represents the connection and commands used to retrieve and save data.
  3984. ///</summary>
  3985. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3986. [global::System.ComponentModel.ToolboxItem(true)]
  3987. [global::System.ComponentModel.DataObjectAttribute(true)]
  3988. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3989. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3990. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3991. public partial class СвязиTableAdapter : global::System.ComponentModel.Component {
  3992. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3993. private global::System.Data.SqlClient.SqlConnection _connection;
  3994. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3995. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3996. private bool _clearBeforeFill;
  3997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3999. public СвязиTableAdapter() {
  4000. this.ClearBeforeFill = true;
  4001. }
  4002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4004. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4005. get {
  4006. if ((this._adapter == null)) {
  4007. this.InitAdapter();
  4008. }
  4009. return this._adapter;
  4010. }
  4011. }
  4012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4014. internal global::System.Data.SqlClient.SqlConnection Connection {
  4015. get {
  4016. if ((this._connection == null)) {
  4017. this.InitConnection();
  4018. }
  4019. return this._connection;
  4020. }
  4021. set {
  4022. this._connection = value;
  4023. if ((this.Adapter.InsertCommand != null)) {
  4024. this.Adapter.InsertCommand.Connection = value;
  4025. }
  4026. if ((this.Adapter.DeleteCommand != null)) {
  4027. this.Adapter.DeleteCommand.Connection = value;
  4028. }
  4029. if ((this.Adapter.UpdateCommand != null)) {
  4030. this.Adapter.UpdateCommand.Connection = value;
  4031. }
  4032. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4033. if ((this.CommandCollection[i] != null)) {
  4034. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4035. }
  4036. }
  4037. }
  4038. }
  4039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4041. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4042. get {
  4043. return this._transaction;
  4044. }
  4045. set {
  4046. this._transaction = value;
  4047. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4048. this.CommandCollection[i].Transaction = this._transaction;
  4049. }
  4050. if (((this.Adapter != null)
  4051. && (this.Adapter.DeleteCommand != null))) {
  4052. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4053. }
  4054. if (((this.Adapter != null)
  4055. && (this.Adapter.InsertCommand != null))) {
  4056. this.Adapter.InsertCommand.Transaction = this._transaction;
  4057. }
  4058. if (((this.Adapter != null)
  4059. && (this.Adapter.UpdateCommand != null))) {
  4060. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4061. }
  4062. }
  4063. }
  4064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4066. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4067. get {
  4068. if ((this._commandCollection == null)) {
  4069. this.InitCommandCollection();
  4070. }
  4071. return this._commandCollection;
  4072. }
  4073. }
  4074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4076. public bool ClearBeforeFill {
  4077. get {
  4078. return this._clearBeforeFill;
  4079. }
  4080. set {
  4081. this._clearBeforeFill = value;
  4082. }
  4083. }
  4084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4086. private void InitAdapter() {
  4087. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4088. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4089. tableMapping.SourceTable = "Table";
  4090. tableMapping.DataSetTable = "Связи";
  4091. tableMapping.ColumnMappings.Add("Дата продажи", "Дата продажи");
  4092. tableMapping.ColumnMappings.Add("Кол-во проданного товара", "Кол-во проданного товара");
  4093. tableMapping.ColumnMappings.Add("Розничная цена товара (руб)", "Розничная цена товара (руб)");
  4094. tableMapping.ColumnMappings.Add("Единица измерения", "Единица измерения");
  4095. tableMapping.ColumnMappings.Add("Наименование товара", "Наименование товара");
  4096. tableMapping.ColumnMappings.Add("Наименование отдела", "Наименование отдела");
  4097. tableMapping.ColumnMappings.Add("Ф.И.О заведующего отдела", "Ф_И_О заведующего отдела");
  4098. tableMapping.ColumnMappings.Add("Объем реализации в день (руб)", "Объем реализации в день (руб)");
  4099. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  4100. this._adapter.TableMappings.Add(tableMapping);
  4101. }
  4102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4104. private void InitConnection() {
  4105. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4106. this._connection.ConnectionString = global::IvnitskiiProdazhi1.Properties.Settings.Default.IS31Ivnickii7ConnectionString;
  4107. }
  4108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4110. private void InitCommandCollection() {
  4111. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4112. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4113. this._commandCollection[0].Connection = this.Connection;
  4114. this._commandCollection[0].CommandText = "SELECT [Дата продажи], [Кол-во проданного товара], [Розничная цена товара (руб)]," +
  4115. " [Единица измерения], [Наименование товара], [Наименование отдела], [Ф.И.О завед" +
  4116. "ующего отдела], [Объем реализации в день (руб)], Телефон FROM dbo.Связи";
  4117. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4118. }
  4119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4121. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4122. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4123. public virtual int Fill(IS31Ivnickii7DataSet1.СвязиDataTable dataTable) {
  4124. this.Adapter.SelectCommand = this.CommandCollection[0];
  4125. if ((this.ClearBeforeFill == true)) {
  4126. dataTable.Clear();
  4127. }
  4128. int returnValue = this.Adapter.Fill(dataTable);
  4129. return returnValue;
  4130. }
  4131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4133. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4134. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4135. public virtual IS31Ivnickii7DataSet1.СвязиDataTable GetData() {
  4136. this.Adapter.SelectCommand = this.CommandCollection[0];
  4137. IS31Ivnickii7DataSet1.СвязиDataTable dataTable = new IS31Ivnickii7DataSet1.СвязиDataTable();
  4138. this.Adapter.Fill(dataTable);
  4139. return dataTable;
  4140. }
  4141. }
  4142. /// <summary>
  4143. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  4144. ///</summary>
  4145. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4146. [global::System.ComponentModel.ToolboxItem(true)]
  4147. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  4148. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4149. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  4150. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  4151. private UpdateOrderOption _updateOrder;
  4152. private ОтделыTableAdapter _отделыTableAdapter;
  4153. private ПродажиTableAdapter _продажиTableAdapter;
  4154. private ТоварыTableAdapter _товарыTableAdapter;
  4155. private bool _backupDataSetBeforeUpdate;
  4156. private global::System.Data.IDbConnection _connection;
  4157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4159. public UpdateOrderOption UpdateOrder {
  4160. get {
  4161. return this._updateOrder;
  4162. }
  4163. set {
  4164. this._updateOrder = value;
  4165. }
  4166. }
  4167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4169. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4170. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4171. "a", "System.Drawing.Design.UITypeEditor")]
  4172. public ОтделыTableAdapter ОтделыTableAdapter {
  4173. get {
  4174. return this._отделыTableAdapter;
  4175. }
  4176. set {
  4177. this._отделыTableAdapter = value;
  4178. }
  4179. }
  4180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4182. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4183. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4184. "a", "System.Drawing.Design.UITypeEditor")]
  4185. public ПродажиTableAdapter ПродажиTableAdapter {
  4186. get {
  4187. return this._продажиTableAdapter;
  4188. }
  4189. set {
  4190. this._продажиTableAdapter = value;
  4191. }
  4192. }
  4193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4195. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4196. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4197. "a", "System.Drawing.Design.UITypeEditor")]
  4198. public ТоварыTableAdapter ТоварыTableAdapter {
  4199. get {
  4200. return this._товарыTableAdapter;
  4201. }
  4202. set {
  4203. this._товарыTableAdapter = value;
  4204. }
  4205. }
  4206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4208. public bool BackupDataSetBeforeUpdate {
  4209. get {
  4210. return this._backupDataSetBeforeUpdate;
  4211. }
  4212. set {
  4213. this._backupDataSetBeforeUpdate = value;
  4214. }
  4215. }
  4216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4218. [global::System.ComponentModel.Browsable(false)]
  4219. public global::System.Data.IDbConnection Connection {
  4220. get {
  4221. if ((this._connection != null)) {
  4222. return this._connection;
  4223. }
  4224. if (((this._отделыTableAdapter != null)
  4225. && (this._отделыTableAdapter.Connection != null))) {
  4226. return this._отделыTableAdapter.Connection;
  4227. }
  4228. if (((this._продажиTableAdapter != null)
  4229. && (this._продажиTableAdapter.Connection != null))) {
  4230. return this._продажиTableAdapter.Connection;
  4231. }
  4232. if (((this._товарыTableAdapter != null)
  4233. && (this._товарыTableAdapter.Connection != null))) {
  4234. return this._товарыTableAdapter.Connection;
  4235. }
  4236. return null;
  4237. }
  4238. set {
  4239. this._connection = value;
  4240. }
  4241. }
  4242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4244. [global::System.ComponentModel.Browsable(false)]
  4245. public int TableAdapterInstanceCount {
  4246. get {
  4247. int count = 0;
  4248. if ((this._отделыTableAdapter != null)) {
  4249. count = (count + 1);
  4250. }
  4251. if ((this._продажиTableAdapter != null)) {
  4252. count = (count + 1);
  4253. }
  4254. if ((this._товарыTableAdapter != null)) {
  4255. count = (count + 1);
  4256. }
  4257. return count;
  4258. }
  4259. }
  4260. /// <summary>
  4261. ///Update rows in top-down order.
  4262. ///</summary>
  4263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4265. private int UpdateUpdatedRows(IS31Ivnickii7DataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4266. int result = 0;
  4267. if ((this._отделыTableAdapter != null)) {
  4268. global::System.Data.DataRow[] updatedRows = dataSet.Отделы.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4269. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4270. if (((updatedRows != null)
  4271. && (0 < updatedRows.Length))) {
  4272. result = (result + this._отделыTableAdapter.Update(updatedRows));
  4273. allChangedRows.AddRange(updatedRows);
  4274. }
  4275. }
  4276. if ((this._продажиTableAdapter != null)) {
  4277. global::System.Data.DataRow[] updatedRows = dataSet.Продажи.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4278. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4279. if (((updatedRows != null)
  4280. && (0 < updatedRows.Length))) {
  4281. result = (result + this._продажиTableAdapter.Update(updatedRows));
  4282. allChangedRows.AddRange(updatedRows);
  4283. }
  4284. }
  4285. if ((this._товарыTableAdapter != null)) {
  4286. global::System.Data.DataRow[] updatedRows = dataSet.Товары.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4287. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4288. if (((updatedRows != null)
  4289. && (0 < updatedRows.Length))) {
  4290. result = (result + this._товарыTableAdapter.Update(updatedRows));
  4291. allChangedRows.AddRange(updatedRows);
  4292. }
  4293. }
  4294. return result;
  4295. }
  4296. /// <summary>
  4297. ///Insert rows in top-down order.
  4298. ///</summary>
  4299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4301. private int UpdateInsertedRows(IS31Ivnickii7DataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4302. int result = 0;
  4303. if ((this._отделыTableAdapter != null)) {
  4304. global::System.Data.DataRow[] addedRows = dataSet.Отделы.Select(null, null, global::System.Data.DataViewRowState.Added);
  4305. if (((addedRows != null)
  4306. && (0 < addedRows.Length))) {
  4307. result = (result + this._отделыTableAdapter.Update(addedRows));
  4308. allAddedRows.AddRange(addedRows);
  4309. }
  4310. }
  4311. if ((this._продажиTableAdapter != null)) {
  4312. global::System.Data.DataRow[] addedRows = dataSet.Продажи.Select(null, null, global::System.Data.DataViewRowState.Added);
  4313. if (((addedRows != null)
  4314. && (0 < addedRows.Length))) {
  4315. result = (result + this._продажиTableAdapter.Update(addedRows));
  4316. allAddedRows.AddRange(addedRows);
  4317. }
  4318. }
  4319. if ((this._товарыTableAdapter != null)) {
  4320. global::System.Data.DataRow[] addedRows = dataSet.Товары.Select(null, null, global::System.Data.DataViewRowState.Added);
  4321. if (((addedRows != null)
  4322. && (0 < addedRows.Length))) {
  4323. result = (result + this._товарыTableAdapter.Update(addedRows));
  4324. allAddedRows.AddRange(addedRows);
  4325. }
  4326. }
  4327. return result;
  4328. }
  4329. /// <summary>
  4330. ///Delete rows in bottom-up order.
  4331. ///</summary>
  4332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4334. private int UpdateDeletedRows(IS31Ivnickii7DataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  4335. int result = 0;
  4336. if ((this._товарыTableAdapter != null)) {
  4337. global::System.Data.DataRow[] deletedRows = dataSet.Товары.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4338. if (((deletedRows != null)
  4339. && (0 < deletedRows.Length))) {
  4340. result = (result + this._товарыTableAdapter.Update(deletedRows));
  4341. allChangedRows.AddRange(deletedRows);
  4342. }
  4343. }
  4344. if ((this._продажиTableAdapter != null)) {
  4345. global::System.Data.DataRow[] deletedRows = dataSet.Продажи.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4346. if (((deletedRows != null)
  4347. && (0 < deletedRows.Length))) {
  4348. result = (result + this._продажиTableAdapter.Update(deletedRows));
  4349. allChangedRows.AddRange(deletedRows);
  4350. }
  4351. }
  4352. if ((this._отделыTableAdapter != null)) {
  4353. global::System.Data.DataRow[] deletedRows = dataSet.Отделы.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4354. if (((deletedRows != null)
  4355. && (0 < deletedRows.Length))) {
  4356. result = (result + this._отделыTableAdapter.Update(deletedRows));
  4357. allChangedRows.AddRange(deletedRows);
  4358. }
  4359. }
  4360. return result;
  4361. }
  4362. /// <summary>
  4363. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  4364. ///</summary>
  4365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4367. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4368. if (((updatedRows == null)
  4369. || (updatedRows.Length < 1))) {
  4370. return updatedRows;
  4371. }
  4372. if (((allAddedRows == null)
  4373. || (allAddedRows.Count < 1))) {
  4374. return updatedRows;
  4375. }
  4376. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4377. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  4378. global::System.Data.DataRow row = updatedRows[i];
  4379. if ((allAddedRows.Contains(row) == false)) {
  4380. realUpdatedRows.Add(row);
  4381. }
  4382. }
  4383. return realUpdatedRows.ToArray();
  4384. }
  4385. /// <summary>
  4386. ///Update all changes to the dataset.
  4387. ///</summary>
  4388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4390. public virtual int UpdateAll(IS31Ivnickii7DataSet1 dataSet) {
  4391. if ((dataSet == null)) {
  4392. throw new global::System.ArgumentNullException("dataSet");
  4393. }
  4394. if ((dataSet.HasChanges() == false)) {
  4395. return 0;
  4396. }
  4397. if (((this._отделыTableAdapter != null)
  4398. && (this.MatchTableAdapterConnection(this._отделыTableAdapter.Connection) == false))) {
  4399. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4400. "r, должны использовать одинаковую строку подключения.");
  4401. }
  4402. if (((this._продажиTableAdapter != null)
  4403. && (this.MatchTableAdapterConnection(this._продажиTableAdapter.Connection) == false))) {
  4404. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4405. "r, должны использовать одинаковую строку подключения.");
  4406. }
  4407. if (((this._товарыTableAdapter != null)
  4408. && (this.MatchTableAdapterConnection(this._товарыTableAdapter.Connection) == false))) {
  4409. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4410. "r, должны использовать одинаковую строку подключения.");
  4411. }
  4412. global::System.Data.IDbConnection workConnection = this.Connection;
  4413. if ((workConnection == null)) {
  4414. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  4415. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  4416. }
  4417. bool workConnOpened = false;
  4418. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  4419. == global::System.Data.ConnectionState.Broken)) {
  4420. workConnection.Close();
  4421. }
  4422. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  4423. workConnection.Open();
  4424. workConnOpened = true;
  4425. }
  4426. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  4427. if ((workTransaction == null)) {
  4428. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  4429. "и или текущее состояние не позволяет начать транзакцию.");
  4430. }
  4431. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4432. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4433. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  4434. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  4435. int result = 0;
  4436. global::System.Data.DataSet backupDataSet = null;
  4437. if (this.BackupDataSetBeforeUpdate) {
  4438. backupDataSet = new global::System.Data.DataSet();
  4439. backupDataSet.Merge(dataSet);
  4440. }
  4441. try {
  4442. // ---- Prepare for update -----------
  4443. //
  4444. if ((this._отделыTableAdapter != null)) {
  4445. revertConnections.Add(this._отделыTableAdapter, this._отделыTableAdapter.Connection);
  4446. this._отделыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4447. this._отделыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4448. if (this._отделыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4449. this._отделыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4450. adaptersWithAcceptChangesDuringUpdate.Add(this._отделыTableAdapter.Adapter);
  4451. }
  4452. }
  4453. if ((this._продажиTableAdapter != null)) {
  4454. revertConnections.Add(this._продажиTableAdapter, this._продажиTableAdapter.Connection);
  4455. this._продажиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4456. this._продажиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4457. if (this._продажиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4458. this._продажиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4459. adaptersWithAcceptChangesDuringUpdate.Add(this._продажиTableAdapter.Adapter);
  4460. }
  4461. }
  4462. if ((this._товарыTableAdapter != null)) {
  4463. revertConnections.Add(this._товарыTableAdapter, this._товарыTableAdapter.Connection);
  4464. this._товарыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4465. this._товарыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4466. if (this._товарыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4467. this._товарыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4468. adaptersWithAcceptChangesDuringUpdate.Add(this._товарыTableAdapter.Adapter);
  4469. }
  4470. }
  4471. //
  4472. //---- Perform updates -----------
  4473. //
  4474. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  4475. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  4476. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  4477. }
  4478. else {
  4479. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  4480. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  4481. }
  4482. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  4483. //
  4484. //---- Commit updates -----------
  4485. //
  4486. workTransaction.Commit();
  4487. if ((0 < allAddedRows.Count)) {
  4488. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  4489. allAddedRows.CopyTo(rows);
  4490. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4491. global::System.Data.DataRow row = rows[i];
  4492. row.AcceptChanges();
  4493. }
  4494. }
  4495. if ((0 < allChangedRows.Count)) {
  4496. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  4497. allChangedRows.CopyTo(rows);
  4498. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4499. global::System.Data.DataRow row = rows[i];
  4500. row.AcceptChanges();
  4501. }
  4502. }
  4503. }
  4504. catch (global::System.Exception ex) {
  4505. workTransaction.Rollback();
  4506. // ---- Restore the dataset -----------
  4507. if (this.BackupDataSetBeforeUpdate) {
  4508. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  4509. dataSet.Clear();
  4510. dataSet.Merge(backupDataSet);
  4511. }
  4512. else {
  4513. if ((0 < allAddedRows.Count)) {
  4514. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  4515. allAddedRows.CopyTo(rows);
  4516. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4517. global::System.Data.DataRow row = rows[i];
  4518. row.AcceptChanges();
  4519. row.SetAdded();
  4520. }
  4521. }
  4522. }
  4523. throw ex;
  4524. }
  4525. finally {
  4526. if (workConnOpened) {
  4527. workConnection.Close();
  4528. }
  4529. if ((this._отделыTableAdapter != null)) {
  4530. this._отделыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._отделыTableAdapter]));
  4531. this._отделыTableAdapter.Transaction = null;
  4532. }
  4533. if ((this._продажиTableAdapter != null)) {
  4534. this._продажиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._продажиTableAdapter]));
  4535. this._продажиTableAdapter.Transaction = null;
  4536. }
  4537. if ((this._товарыTableAdapter != null)) {
  4538. this._товарыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._товарыTableAdapter]));
  4539. this._товарыTableAdapter.Transaction = null;
  4540. }
  4541. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  4542. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  4543. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  4544. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  4545. global::System.Data.Common.DataAdapter adapter = adapters[i];
  4546. adapter.AcceptChangesDuringUpdate = true;
  4547. }
  4548. }
  4549. }
  4550. return result;
  4551. }
  4552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4554. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  4555. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  4556. }
  4557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4559. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  4560. if ((this._connection != null)) {
  4561. return true;
  4562. }
  4563. if (((this.Connection == null)
  4564. || (inputConnection == null))) {
  4565. return true;
  4566. }
  4567. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  4568. return true;
  4569. }
  4570. return false;
  4571. }
  4572. /// <summary>
  4573. ///Update Order Option
  4574. ///</summary>
  4575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4576. public enum UpdateOrderOption {
  4577. InsertUpdateDelete = 0,
  4578. UpdateInsertDelete = 1,
  4579. }
  4580. /// <summary>
  4581. ///Used to sort self-referenced table's rows
  4582. ///</summary>
  4583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4584. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  4585. private global::System.Data.DataRelation _relation;
  4586. private int _childFirst;
  4587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4589. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  4590. this._relation = relation;
  4591. if (childFirst) {
  4592. this._childFirst = -1;
  4593. }
  4594. else {
  4595. this._childFirst = 1;
  4596. }
  4597. }
  4598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4600. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  4601. global::System.Diagnostics.Debug.Assert((row != null));
  4602. global::System.Data.DataRow root = row;
  4603. distance = 0;
  4604. 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>();
  4605. traversedRows[row] = row;
  4606. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  4607. for (
  4608. ; ((parent != null)
  4609. && (traversedRows.ContainsKey(parent) == false));
  4610. ) {
  4611. distance = (distance + 1);
  4612. root = parent;
  4613. traversedRows[parent] = parent;
  4614. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  4615. }
  4616. if ((distance == 0)) {
  4617. traversedRows.Clear();
  4618. traversedRows[row] = row;
  4619. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  4620. for (
  4621. ; ((parent != null)
  4622. && (traversedRows.ContainsKey(parent) == false));
  4623. ) {
  4624. distance = (distance + 1);
  4625. root = parent;
  4626. traversedRows[parent] = parent;
  4627. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  4628. }
  4629. }
  4630. return root;
  4631. }
  4632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4634. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  4635. if (object.ReferenceEquals(row1, row2)) {
  4636. return 0;
  4637. }
  4638. if ((row1 == null)) {
  4639. return -1;
  4640. }
  4641. if ((row2 == null)) {
  4642. return 1;
  4643. }
  4644. int distance1 = 0;
  4645. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  4646. int distance2 = 0;
  4647. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  4648. if (object.ReferenceEquals(root1, root2)) {
  4649. return (this._childFirst * distance1.CompareTo(distance2));
  4650. }
  4651. else {
  4652. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  4653. && (root2.Table != null)));
  4654. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  4655. return -1;
  4656. }
  4657. else {
  4658. return 1;
  4659. }
  4660. }
  4661. }
  4662. }
  4663. }
  4664. }
  4665. #pragma warning restore 1591