PerevozkiBDDataSet.Designer.cs 265 KB

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