ByzovAS_N17DataSet.Designer.cs 312 KB

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