_AstapovYNISP_33DataSet.Designer.cs 203 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace beautyprog {
  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("_AstapovYNISP_33DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class _AstapovYNISP_33DataSet : global::System.Data.DataSet {
  22. private clientDataTable tableclient;
  23. private serviceDataTable tableservice;
  24. private serviceclientDataTable tableserviceclient;
  25. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  26. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  27. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  28. public _AstapovYNISP_33DataSet() {
  29. this.BeginInit();
  30. this.InitClass();
  31. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  32. base.Tables.CollectionChanged += schemaChangedHandler;
  33. base.Relations.CollectionChanged += schemaChangedHandler;
  34. this.EndInit();
  35. }
  36. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  37. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  38. protected _AstapovYNISP_33DataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  39. base(info, context, false) {
  40. if ((this.IsBinarySerialized(info, context) == true)) {
  41. this.InitVars(false);
  42. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  43. this.Tables.CollectionChanged += schemaChangedHandler1;
  44. this.Relations.CollectionChanged += schemaChangedHandler1;
  45. return;
  46. }
  47. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  48. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  49. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  50. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  51. if ((ds.Tables["client"] != null)) {
  52. base.Tables.Add(new clientDataTable(ds.Tables["client"]));
  53. }
  54. if ((ds.Tables["service"] != null)) {
  55. base.Tables.Add(new serviceDataTable(ds.Tables["service"]));
  56. }
  57. if ((ds.Tables["serviceclient"] != null)) {
  58. base.Tables.Add(new serviceclientDataTable(ds.Tables["serviceclient"]));
  59. }
  60. this.DataSetName = ds.DataSetName;
  61. this.Prefix = ds.Prefix;
  62. this.Namespace = ds.Namespace;
  63. this.Locale = ds.Locale;
  64. this.CaseSensitive = ds.CaseSensitive;
  65. this.EnforceConstraints = ds.EnforceConstraints;
  66. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  67. this.InitVars();
  68. }
  69. else {
  70. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  71. }
  72. this.GetSerializationData(info, context);
  73. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  74. base.Tables.CollectionChanged += schemaChangedHandler;
  75. this.Relations.CollectionChanged += schemaChangedHandler;
  76. }
  77. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  78. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  79. [global::System.ComponentModel.Browsable(false)]
  80. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  81. public clientDataTable client {
  82. get {
  83. return this.tableclient;
  84. }
  85. }
  86. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  87. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  88. [global::System.ComponentModel.Browsable(false)]
  89. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  90. public serviceDataTable service {
  91. get {
  92. return this.tableservice;
  93. }
  94. }
  95. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  96. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  97. [global::System.ComponentModel.Browsable(false)]
  98. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  99. public serviceclientDataTable serviceclient {
  100. get {
  101. return this.tableserviceclient;
  102. }
  103. }
  104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  106. [global::System.ComponentModel.BrowsableAttribute(true)]
  107. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  108. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  109. get {
  110. return this._schemaSerializationMode;
  111. }
  112. set {
  113. this._schemaSerializationMode = value;
  114. }
  115. }
  116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  118. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  119. public new global::System.Data.DataTableCollection Tables {
  120. get {
  121. return base.Tables;
  122. }
  123. }
  124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  126. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  127. public new global::System.Data.DataRelationCollection Relations {
  128. get {
  129. return base.Relations;
  130. }
  131. }
  132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  134. protected override void InitializeDerivedDataSet() {
  135. this.BeginInit();
  136. this.InitClass();
  137. this.EndInit();
  138. }
  139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  141. public override global::System.Data.DataSet Clone() {
  142. _AstapovYNISP_33DataSet cln = ((_AstapovYNISP_33DataSet)(base.Clone()));
  143. cln.InitVars();
  144. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  145. return cln;
  146. }
  147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  149. protected override bool ShouldSerializeTables() {
  150. return false;
  151. }
  152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  154. protected override bool ShouldSerializeRelations() {
  155. return false;
  156. }
  157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  159. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  160. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  161. this.Reset();
  162. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  163. ds.ReadXml(reader);
  164. if ((ds.Tables["client"] != null)) {
  165. base.Tables.Add(new clientDataTable(ds.Tables["client"]));
  166. }
  167. if ((ds.Tables["service"] != null)) {
  168. base.Tables.Add(new serviceDataTable(ds.Tables["service"]));
  169. }
  170. if ((ds.Tables["serviceclient"] != null)) {
  171. base.Tables.Add(new serviceclientDataTable(ds.Tables["serviceclient"]));
  172. }
  173. this.DataSetName = ds.DataSetName;
  174. this.Prefix = ds.Prefix;
  175. this.Namespace = ds.Namespace;
  176. this.Locale = ds.Locale;
  177. this.CaseSensitive = ds.CaseSensitive;
  178. this.EnforceConstraints = ds.EnforceConstraints;
  179. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  180. this.InitVars();
  181. }
  182. else {
  183. this.ReadXml(reader);
  184. this.InitVars();
  185. }
  186. }
  187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  189. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  190. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  191. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  192. stream.Position = 0;
  193. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  194. }
  195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  197. internal void InitVars() {
  198. this.InitVars(true);
  199. }
  200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  202. internal void InitVars(bool initTable) {
  203. this.tableclient = ((clientDataTable)(base.Tables["client"]));
  204. if ((initTable == true)) {
  205. if ((this.tableclient != null)) {
  206. this.tableclient.InitVars();
  207. }
  208. }
  209. this.tableservice = ((serviceDataTable)(base.Tables["service"]));
  210. if ((initTable == true)) {
  211. if ((this.tableservice != null)) {
  212. this.tableservice.InitVars();
  213. }
  214. }
  215. this.tableserviceclient = ((serviceclientDataTable)(base.Tables["serviceclient"]));
  216. if ((initTable == true)) {
  217. if ((this.tableserviceclient != null)) {
  218. this.tableserviceclient.InitVars();
  219. }
  220. }
  221. }
  222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  224. private void InitClass() {
  225. this.DataSetName = "_AstapovYNISP_33DataSet";
  226. this.Prefix = "";
  227. this.Namespace = "http://tempuri.org/_AstapovYNISP_33DataSet.xsd";
  228. this.EnforceConstraints = true;
  229. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  230. this.tableclient = new clientDataTable();
  231. base.Tables.Add(this.tableclient);
  232. this.tableservice = new serviceDataTable();
  233. base.Tables.Add(this.tableservice);
  234. this.tableserviceclient = new serviceclientDataTable();
  235. base.Tables.Add(this.tableserviceclient);
  236. }
  237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  239. private bool ShouldSerializeclient() {
  240. return false;
  241. }
  242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  244. private bool ShouldSerializeservice() {
  245. return false;
  246. }
  247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  249. private bool ShouldSerializeserviceclient() {
  250. return false;
  251. }
  252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  254. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  255. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  256. this.InitVars();
  257. }
  258. }
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  261. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  262. _AstapovYNISP_33DataSet ds = new _AstapovYNISP_33DataSet();
  263. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  264. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  265. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  266. any.Namespace = ds.Namespace;
  267. sequence.Items.Add(any);
  268. type.Particle = sequence;
  269. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  270. if (xs.Contains(dsSchema.TargetNamespace)) {
  271. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  272. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  273. try {
  274. global::System.Xml.Schema.XmlSchema schema = null;
  275. dsSchema.Write(s1);
  276. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  277. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  278. s2.SetLength(0);
  279. schema.Write(s2);
  280. if ((s1.Length == s2.Length)) {
  281. s1.Position = 0;
  282. s2.Position = 0;
  283. for (; ((s1.Position != s1.Length)
  284. && (s1.ReadByte() == s2.ReadByte())); ) {
  285. ;
  286. }
  287. if ((s1.Position == s1.Length)) {
  288. return type;
  289. }
  290. }
  291. }
  292. }
  293. finally {
  294. if ((s1 != null)) {
  295. s1.Close();
  296. }
  297. if ((s2 != null)) {
  298. s2.Close();
  299. }
  300. }
  301. }
  302. xs.Add(dsSchema);
  303. return type;
  304. }
  305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  306. public delegate void clientRowChangeEventHandler(object sender, clientRowChangeEvent e);
  307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  308. public delegate void serviceRowChangeEventHandler(object sender, serviceRowChangeEvent e);
  309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  310. public delegate void serviceclientRowChangeEventHandler(object sender, serviceclientRowChangeEvent e);
  311. /// <summary>
  312. ///Represents the strongly named DataTable class.
  313. ///</summary>
  314. [global::System.Serializable()]
  315. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  316. public partial class clientDataTable : global::System.Data.TypedTableBase<clientRow> {
  317. private global::System.Data.DataColumn columnФамилия;
  318. private global::System.Data.DataColumn columnИмя;
  319. private global::System.Data.DataColumn columnОтчество;
  320. private global::System.Data.DataColumn columnПол;
  321. private global::System.Data.DataColumn columnТелефон;
  322. private global::System.Data.DataColumn columnДата_рождения;
  323. private global::System.Data.DataColumn columnEmail;
  324. private global::System.Data.DataColumn columnДата_регистрации;
  325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  327. public clientDataTable() {
  328. this.TableName = "client";
  329. this.BeginInit();
  330. this.InitClass();
  331. this.EndInit();
  332. }
  333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  335. internal clientDataTable(global::System.Data.DataTable table) {
  336. this.TableName = table.TableName;
  337. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  338. this.CaseSensitive = table.CaseSensitive;
  339. }
  340. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  341. this.Locale = table.Locale;
  342. }
  343. if ((table.Namespace != table.DataSet.Namespace)) {
  344. this.Namespace = table.Namespace;
  345. }
  346. this.Prefix = table.Prefix;
  347. this.MinimumCapacity = table.MinimumCapacity;
  348. }
  349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  351. protected clientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  352. base(info, context) {
  353. this.InitVars();
  354. }
  355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  357. public global::System.Data.DataColumn ФамилияColumn {
  358. get {
  359. return this.columnФамилия;
  360. }
  361. }
  362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  364. public global::System.Data.DataColumn ИмяColumn {
  365. get {
  366. return this.columnИмя;
  367. }
  368. }
  369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  371. public global::System.Data.DataColumn ОтчествоColumn {
  372. get {
  373. return this.columnОтчество;
  374. }
  375. }
  376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  378. public global::System.Data.DataColumn ПолColumn {
  379. get {
  380. return this.columnПол;
  381. }
  382. }
  383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  385. public global::System.Data.DataColumn ТелефонColumn {
  386. get {
  387. return this.columnТелефон;
  388. }
  389. }
  390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  392. public global::System.Data.DataColumn Дата_рожденияColumn {
  393. get {
  394. return this.columnДата_рождения;
  395. }
  396. }
  397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  399. public global::System.Data.DataColumn EmailColumn {
  400. get {
  401. return this.columnEmail;
  402. }
  403. }
  404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  406. public global::System.Data.DataColumn Дата_регистрацииColumn {
  407. get {
  408. return this.columnДата_регистрации;
  409. }
  410. }
  411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  413. [global::System.ComponentModel.Browsable(false)]
  414. public int Count {
  415. get {
  416. return this.Rows.Count;
  417. }
  418. }
  419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  421. public clientRow this[int index] {
  422. get {
  423. return ((clientRow)(this.Rows[index]));
  424. }
  425. }
  426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  427. public event clientRowChangeEventHandler clientRowChanging;
  428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  429. public event clientRowChangeEventHandler clientRowChanged;
  430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  431. public event clientRowChangeEventHandler clientRowDeleting;
  432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  433. public event clientRowChangeEventHandler clientRowDeleted;
  434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  436. public void AddclientRow(clientRow row) {
  437. this.Rows.Add(row);
  438. }
  439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  441. public clientRow AddclientRow(string Фамилия, string Имя, string Отчество, string Пол, string Телефон, System.DateTime Дата_рождения, string Email, System.DateTime Дата_регистрации) {
  442. clientRow rowclientRow = ((clientRow)(this.NewRow()));
  443. object[] columnValuesArray = new object[] {
  444. Фамилия,
  445. Имя,
  446. Отчество,
  447. Пол,
  448. Телефон,
  449. Дата_рождения,
  450. Email,
  451. Дата_регистрации};
  452. rowclientRow.ItemArray = columnValuesArray;
  453. this.Rows.Add(rowclientRow);
  454. return rowclientRow;
  455. }
  456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  458. public clientRow FindByФамилия(string Фамилия) {
  459. return ((clientRow)(this.Rows.Find(new object[] {
  460. Фамилия})));
  461. }
  462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  464. public override global::System.Data.DataTable Clone() {
  465. clientDataTable cln = ((clientDataTable)(base.Clone()));
  466. cln.InitVars();
  467. return cln;
  468. }
  469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  471. protected override global::System.Data.DataTable CreateInstance() {
  472. return new clientDataTable();
  473. }
  474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  476. internal void InitVars() {
  477. this.columnФамилия = base.Columns["Фамилия"];
  478. this.columnИмя = base.Columns["Имя"];
  479. this.columnОтчество = base.Columns["Отчество"];
  480. this.columnПол = base.Columns["Пол"];
  481. this.columnТелефон = base.Columns["Телефон"];
  482. this.columnДата_рождения = base.Columns["Дата_рождения"];
  483. this.columnEmail = base.Columns["Email"];
  484. this.columnДата_регистрации = base.Columns["Дата_регистрации"];
  485. }
  486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  488. private void InitClass() {
  489. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  490. base.Columns.Add(this.columnФамилия);
  491. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  492. base.Columns.Add(this.columnИмя);
  493. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  494. base.Columns.Add(this.columnОтчество);
  495. this.columnПол = new global::System.Data.DataColumn("Пол", typeof(string), null, global::System.Data.MappingType.Element);
  496. base.Columns.Add(this.columnПол);
  497. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  498. base.Columns.Add(this.columnТелефон);
  499. this.columnДата_рождения = new global::System.Data.DataColumn("Дата_рождения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  500. base.Columns.Add(this.columnДата_рождения);
  501. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  502. base.Columns.Add(this.columnEmail);
  503. this.columnДата_регистрации = new global::System.Data.DataColumn("Дата_регистрации", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  504. base.Columns.Add(this.columnДата_регистрации);
  505. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  506. this.columnФамилия}, true));
  507. this.columnФамилия.AllowDBNull = false;
  508. this.columnФамилия.Unique = true;
  509. this.columnФамилия.MaxLength = 50;
  510. this.columnИмя.AllowDBNull = false;
  511. this.columnИмя.MaxLength = 50;
  512. this.columnОтчество.AllowDBNull = false;
  513. this.columnОтчество.MaxLength = 50;
  514. this.columnПол.AllowDBNull = false;
  515. this.columnПол.MaxLength = 50;
  516. this.columnТелефон.AllowDBNull = false;
  517. this.columnТелефон.MaxLength = 50;
  518. this.columnДата_рождения.AllowDBNull = false;
  519. this.columnEmail.AllowDBNull = false;
  520. this.columnEmail.MaxLength = 50;
  521. this.columnДата_регистрации.AllowDBNull = false;
  522. }
  523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  525. public clientRow NewclientRow() {
  526. return ((clientRow)(this.NewRow()));
  527. }
  528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  530. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  531. return new clientRow(builder);
  532. }
  533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  535. protected override global::System.Type GetRowType() {
  536. return typeof(clientRow);
  537. }
  538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  540. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  541. base.OnRowChanged(e);
  542. if ((this.clientRowChanged != null)) {
  543. this.clientRowChanged(this, new clientRowChangeEvent(((clientRow)(e.Row)), e.Action));
  544. }
  545. }
  546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  548. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  549. base.OnRowChanging(e);
  550. if ((this.clientRowChanging != null)) {
  551. this.clientRowChanging(this, new clientRowChangeEvent(((clientRow)(e.Row)), e.Action));
  552. }
  553. }
  554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  556. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  557. base.OnRowDeleted(e);
  558. if ((this.clientRowDeleted != null)) {
  559. this.clientRowDeleted(this, new clientRowChangeEvent(((clientRow)(e.Row)), e.Action));
  560. }
  561. }
  562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  564. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  565. base.OnRowDeleting(e);
  566. if ((this.clientRowDeleting != null)) {
  567. this.clientRowDeleting(this, new clientRowChangeEvent(((clientRow)(e.Row)), e.Action));
  568. }
  569. }
  570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  572. public void RemoveclientRow(clientRow row) {
  573. this.Rows.Remove(row);
  574. }
  575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  577. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  578. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  579. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  580. _AstapovYNISP_33DataSet ds = new _AstapovYNISP_33DataSet();
  581. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  582. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  583. any1.MinOccurs = new decimal(0);
  584. any1.MaxOccurs = decimal.MaxValue;
  585. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  586. sequence.Items.Add(any1);
  587. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  588. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  589. any2.MinOccurs = new decimal(1);
  590. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  591. sequence.Items.Add(any2);
  592. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  593. attribute1.Name = "namespace";
  594. attribute1.FixedValue = ds.Namespace;
  595. type.Attributes.Add(attribute1);
  596. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  597. attribute2.Name = "tableTypeName";
  598. attribute2.FixedValue = "clientDataTable";
  599. type.Attributes.Add(attribute2);
  600. type.Particle = sequence;
  601. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  602. if (xs.Contains(dsSchema.TargetNamespace)) {
  603. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  604. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  605. try {
  606. global::System.Xml.Schema.XmlSchema schema = null;
  607. dsSchema.Write(s1);
  608. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  609. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  610. s2.SetLength(0);
  611. schema.Write(s2);
  612. if ((s1.Length == s2.Length)) {
  613. s1.Position = 0;
  614. s2.Position = 0;
  615. for (; ((s1.Position != s1.Length)
  616. && (s1.ReadByte() == s2.ReadByte())); ) {
  617. ;
  618. }
  619. if ((s1.Position == s1.Length)) {
  620. return type;
  621. }
  622. }
  623. }
  624. }
  625. finally {
  626. if ((s1 != null)) {
  627. s1.Close();
  628. }
  629. if ((s2 != null)) {
  630. s2.Close();
  631. }
  632. }
  633. }
  634. xs.Add(dsSchema);
  635. return type;
  636. }
  637. }
  638. /// <summary>
  639. ///Represents the strongly named DataTable class.
  640. ///</summary>
  641. [global::System.Serializable()]
  642. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  643. public partial class serviceDataTable : global::System.Data.TypedTableBase<serviceRow> {
  644. private global::System.Data.DataColumn columnНаименование_услуги;
  645. private global::System.Data.DataColumn columnГлавное_изображение;
  646. private global::System.Data.DataColumn columnДлительность;
  647. private global::System.Data.DataColumn columnСтоимость;
  648. private global::System.Data.DataColumn columnДействующая_скидка;
  649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  651. public serviceDataTable() {
  652. this.TableName = "service";
  653. this.BeginInit();
  654. this.InitClass();
  655. this.EndInit();
  656. }
  657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  659. internal serviceDataTable(global::System.Data.DataTable table) {
  660. this.TableName = table.TableName;
  661. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  662. this.CaseSensitive = table.CaseSensitive;
  663. }
  664. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  665. this.Locale = table.Locale;
  666. }
  667. if ((table.Namespace != table.DataSet.Namespace)) {
  668. this.Namespace = table.Namespace;
  669. }
  670. this.Prefix = table.Prefix;
  671. this.MinimumCapacity = table.MinimumCapacity;
  672. }
  673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  675. protected serviceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  676. base(info, context) {
  677. this.InitVars();
  678. }
  679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  681. public global::System.Data.DataColumn Наименование_услугиColumn {
  682. get {
  683. return this.columnНаименование_услуги;
  684. }
  685. }
  686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  688. public global::System.Data.DataColumn Главное_изображениеColumn {
  689. get {
  690. return this.columnГлавное_изображение;
  691. }
  692. }
  693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  695. public global::System.Data.DataColumn ДлительностьColumn {
  696. get {
  697. return this.columnДлительность;
  698. }
  699. }
  700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  702. public global::System.Data.DataColumn СтоимостьColumn {
  703. get {
  704. return this.columnСтоимость;
  705. }
  706. }
  707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  709. public global::System.Data.DataColumn Действующая_скидкаColumn {
  710. get {
  711. return this.columnДействующая_скидка;
  712. }
  713. }
  714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  716. [global::System.ComponentModel.Browsable(false)]
  717. public int Count {
  718. get {
  719. return this.Rows.Count;
  720. }
  721. }
  722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  724. public serviceRow this[int index] {
  725. get {
  726. return ((serviceRow)(this.Rows[index]));
  727. }
  728. }
  729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  730. public event serviceRowChangeEventHandler serviceRowChanging;
  731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  732. public event serviceRowChangeEventHandler serviceRowChanged;
  733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  734. public event serviceRowChangeEventHandler serviceRowDeleting;
  735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  736. public event serviceRowChangeEventHandler serviceRowDeleted;
  737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  739. public void AddserviceRow(serviceRow row) {
  740. this.Rows.Add(row);
  741. }
  742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  744. public serviceRow AddserviceRow(string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка) {
  745. serviceRow rowserviceRow = ((serviceRow)(this.NewRow()));
  746. object[] columnValuesArray = new object[] {
  747. Наименование_услуги,
  748. Главное_изображение,
  749. Длительность,
  750. Стоимость,
  751. Действующая_скидка};
  752. rowserviceRow.ItemArray = columnValuesArray;
  753. this.Rows.Add(rowserviceRow);
  754. return rowserviceRow;
  755. }
  756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  758. public serviceRow FindByНаименование_услуги(string Наименование_услуги) {
  759. return ((serviceRow)(this.Rows.Find(new object[] {
  760. Наименование_услуги})));
  761. }
  762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  764. public override global::System.Data.DataTable Clone() {
  765. serviceDataTable cln = ((serviceDataTable)(base.Clone()));
  766. cln.InitVars();
  767. return cln;
  768. }
  769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  771. protected override global::System.Data.DataTable CreateInstance() {
  772. return new serviceDataTable();
  773. }
  774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  776. internal void InitVars() {
  777. this.columnНаименование_услуги = base.Columns["Наименование_услуги"];
  778. this.columnГлавное_изображение = base.Columns["Главное_изображение"];
  779. this.columnДлительность = base.Columns["Длительность"];
  780. this.columnСтоимость = base.Columns["Стоимость"];
  781. this.columnДействующая_скидка = base.Columns["Действующая_скидка"];
  782. }
  783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  785. private void InitClass() {
  786. this.columnНаименование_услуги = new global::System.Data.DataColumn("Наименование_услуги", typeof(string), null, global::System.Data.MappingType.Element);
  787. base.Columns.Add(this.columnНаименование_услуги);
  788. this.columnГлавное_изображение = new global::System.Data.DataColumn("Главное_изображение", typeof(string), null, global::System.Data.MappingType.Element);
  789. base.Columns.Add(this.columnГлавное_изображение);
  790. this.columnДлительность = new global::System.Data.DataColumn("Длительность", typeof(string), null, global::System.Data.MappingType.Element);
  791. base.Columns.Add(this.columnДлительность);
  792. this.columnСтоимость = new global::System.Data.DataColumn("Стоимость", typeof(string), null, global::System.Data.MappingType.Element);
  793. base.Columns.Add(this.columnСтоимость);
  794. this.columnДействующая_скидка = new global::System.Data.DataColumn("Действующая_скидка", typeof(string), null, global::System.Data.MappingType.Element);
  795. base.Columns.Add(this.columnДействующая_скидка);
  796. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  797. this.columnНаименование_услуги}, true));
  798. this.columnНаименование_услуги.AllowDBNull = false;
  799. this.columnНаименование_услуги.Unique = true;
  800. this.columnНаименование_услуги.MaxLength = 50;
  801. this.columnГлавное_изображение.AllowDBNull = false;
  802. this.columnГлавное_изображение.MaxLength = 100;
  803. this.columnДлительность.AllowDBNull = false;
  804. this.columnДлительность.MaxLength = 50;
  805. this.columnСтоимость.AllowDBNull = false;
  806. this.columnСтоимость.MaxLength = 50;
  807. this.columnДействующая_скидка.AllowDBNull = false;
  808. this.columnДействующая_скидка.MaxLength = 50;
  809. }
  810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  812. public serviceRow NewserviceRow() {
  813. return ((serviceRow)(this.NewRow()));
  814. }
  815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  817. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  818. return new serviceRow(builder);
  819. }
  820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  822. protected override global::System.Type GetRowType() {
  823. return typeof(serviceRow);
  824. }
  825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  827. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  828. base.OnRowChanged(e);
  829. if ((this.serviceRowChanged != null)) {
  830. this.serviceRowChanged(this, new serviceRowChangeEvent(((serviceRow)(e.Row)), e.Action));
  831. }
  832. }
  833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  835. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  836. base.OnRowChanging(e);
  837. if ((this.serviceRowChanging != null)) {
  838. this.serviceRowChanging(this, new serviceRowChangeEvent(((serviceRow)(e.Row)), e.Action));
  839. }
  840. }
  841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  843. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  844. base.OnRowDeleted(e);
  845. if ((this.serviceRowDeleted != null)) {
  846. this.serviceRowDeleted(this, new serviceRowChangeEvent(((serviceRow)(e.Row)), e.Action));
  847. }
  848. }
  849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  851. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  852. base.OnRowDeleting(e);
  853. if ((this.serviceRowDeleting != null)) {
  854. this.serviceRowDeleting(this, new serviceRowChangeEvent(((serviceRow)(e.Row)), e.Action));
  855. }
  856. }
  857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  859. public void RemoveserviceRow(serviceRow row) {
  860. this.Rows.Remove(row);
  861. }
  862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  864. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  865. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  866. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  867. _AstapovYNISP_33DataSet ds = new _AstapovYNISP_33DataSet();
  868. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  869. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  870. any1.MinOccurs = new decimal(0);
  871. any1.MaxOccurs = decimal.MaxValue;
  872. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  873. sequence.Items.Add(any1);
  874. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  875. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  876. any2.MinOccurs = new decimal(1);
  877. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  878. sequence.Items.Add(any2);
  879. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  880. attribute1.Name = "namespace";
  881. attribute1.FixedValue = ds.Namespace;
  882. type.Attributes.Add(attribute1);
  883. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  884. attribute2.Name = "tableTypeName";
  885. attribute2.FixedValue = "serviceDataTable";
  886. type.Attributes.Add(attribute2);
  887. type.Particle = sequence;
  888. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  889. if (xs.Contains(dsSchema.TargetNamespace)) {
  890. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  891. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  892. try {
  893. global::System.Xml.Schema.XmlSchema schema = null;
  894. dsSchema.Write(s1);
  895. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  896. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  897. s2.SetLength(0);
  898. schema.Write(s2);
  899. if ((s1.Length == s2.Length)) {
  900. s1.Position = 0;
  901. s2.Position = 0;
  902. for (; ((s1.Position != s1.Length)
  903. && (s1.ReadByte() == s2.ReadByte())); ) {
  904. ;
  905. }
  906. if ((s1.Position == s1.Length)) {
  907. return type;
  908. }
  909. }
  910. }
  911. }
  912. finally {
  913. if ((s1 != null)) {
  914. s1.Close();
  915. }
  916. if ((s2 != null)) {
  917. s2.Close();
  918. }
  919. }
  920. }
  921. xs.Add(dsSchema);
  922. return type;
  923. }
  924. }
  925. /// <summary>
  926. ///Represents the strongly named DataTable class.
  927. ///</summary>
  928. [global::System.Serializable()]
  929. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  930. public partial class serviceclientDataTable : global::System.Data.TypedTableBase<serviceclientRow> {
  931. private global::System.Data.DataColumn columnУслуга;
  932. private global::System.Data.DataColumn columnНачало_оказания_услуги;
  933. private global::System.Data.DataColumn columnКлиент;
  934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  936. public serviceclientDataTable() {
  937. this.TableName = "serviceclient";
  938. this.BeginInit();
  939. this.InitClass();
  940. this.EndInit();
  941. }
  942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  944. internal serviceclientDataTable(global::System.Data.DataTable table) {
  945. this.TableName = table.TableName;
  946. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  947. this.CaseSensitive = table.CaseSensitive;
  948. }
  949. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  950. this.Locale = table.Locale;
  951. }
  952. if ((table.Namespace != table.DataSet.Namespace)) {
  953. this.Namespace = table.Namespace;
  954. }
  955. this.Prefix = table.Prefix;
  956. this.MinimumCapacity = table.MinimumCapacity;
  957. }
  958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  960. protected serviceclientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  961. base(info, context) {
  962. this.InitVars();
  963. }
  964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  966. public global::System.Data.DataColumn УслугаColumn {
  967. get {
  968. return this.columnУслуга;
  969. }
  970. }
  971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  973. public global::System.Data.DataColumn Начало_оказания_услугиColumn {
  974. get {
  975. return this.columnНачало_оказания_услуги;
  976. }
  977. }
  978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  980. public global::System.Data.DataColumn КлиентColumn {
  981. get {
  982. return this.columnКлиент;
  983. }
  984. }
  985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  987. [global::System.ComponentModel.Browsable(false)]
  988. public int Count {
  989. get {
  990. return this.Rows.Count;
  991. }
  992. }
  993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  995. public serviceclientRow this[int index] {
  996. get {
  997. return ((serviceclientRow)(this.Rows[index]));
  998. }
  999. }
  1000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1001. public event serviceclientRowChangeEventHandler serviceclientRowChanging;
  1002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1003. public event serviceclientRowChangeEventHandler serviceclientRowChanged;
  1004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1005. public event serviceclientRowChangeEventHandler serviceclientRowDeleting;
  1006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1007. public event serviceclientRowChangeEventHandler serviceclientRowDeleted;
  1008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1010. public void AddserviceclientRow(serviceclientRow row) {
  1011. this.Rows.Add(row);
  1012. }
  1013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1015. public serviceclientRow AddserviceclientRow(string Услуга, System.DateTime Начало_оказания_услуги, string Клиент) {
  1016. serviceclientRow rowserviceclientRow = ((serviceclientRow)(this.NewRow()));
  1017. object[] columnValuesArray = new object[] {
  1018. Услуга,
  1019. Начало_оказания_услуги,
  1020. Клиент};
  1021. rowserviceclientRow.ItemArray = columnValuesArray;
  1022. this.Rows.Add(rowserviceclientRow);
  1023. return rowserviceclientRow;
  1024. }
  1025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1027. public override global::System.Data.DataTable Clone() {
  1028. serviceclientDataTable cln = ((serviceclientDataTable)(base.Clone()));
  1029. cln.InitVars();
  1030. return cln;
  1031. }
  1032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1034. protected override global::System.Data.DataTable CreateInstance() {
  1035. return new serviceclientDataTable();
  1036. }
  1037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1039. internal void InitVars() {
  1040. this.columnУслуга = base.Columns["Услуга"];
  1041. this.columnНачало_оказания_услуги = base.Columns["Начало_оказания_услуги"];
  1042. this.columnКлиент = base.Columns["Клиент"];
  1043. }
  1044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1046. private void InitClass() {
  1047. this.columnУслуга = new global::System.Data.DataColumn("Услуга", typeof(string), null, global::System.Data.MappingType.Element);
  1048. base.Columns.Add(this.columnУслуга);
  1049. this.columnНачало_оказания_услуги = new global::System.Data.DataColumn("Начало_оказания_услуги", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1050. base.Columns.Add(this.columnНачало_оказания_услуги);
  1051. this.columnКлиент = new global::System.Data.DataColumn("Клиент", typeof(string), null, global::System.Data.MappingType.Element);
  1052. base.Columns.Add(this.columnКлиент);
  1053. this.columnУслуга.AllowDBNull = false;
  1054. this.columnУслуга.MaxLength = 50;
  1055. this.columnНачало_оказания_услуги.AllowDBNull = false;
  1056. this.columnКлиент.AllowDBNull = false;
  1057. this.columnКлиент.MaxLength = 50;
  1058. }
  1059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1061. public serviceclientRow NewserviceclientRow() {
  1062. return ((serviceclientRow)(this.NewRow()));
  1063. }
  1064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1066. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1067. return new serviceclientRow(builder);
  1068. }
  1069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1071. protected override global::System.Type GetRowType() {
  1072. return typeof(serviceclientRow);
  1073. }
  1074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1076. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1077. base.OnRowChanged(e);
  1078. if ((this.serviceclientRowChanged != null)) {
  1079. this.serviceclientRowChanged(this, new serviceclientRowChangeEvent(((serviceclientRow)(e.Row)), e.Action));
  1080. }
  1081. }
  1082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1084. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1085. base.OnRowChanging(e);
  1086. if ((this.serviceclientRowChanging != null)) {
  1087. this.serviceclientRowChanging(this, new serviceclientRowChangeEvent(((serviceclientRow)(e.Row)), e.Action));
  1088. }
  1089. }
  1090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1092. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1093. base.OnRowDeleted(e);
  1094. if ((this.serviceclientRowDeleted != null)) {
  1095. this.serviceclientRowDeleted(this, new serviceclientRowChangeEvent(((serviceclientRow)(e.Row)), e.Action));
  1096. }
  1097. }
  1098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1100. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1101. base.OnRowDeleting(e);
  1102. if ((this.serviceclientRowDeleting != null)) {
  1103. this.serviceclientRowDeleting(this, new serviceclientRowChangeEvent(((serviceclientRow)(e.Row)), e.Action));
  1104. }
  1105. }
  1106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1108. public void RemoveserviceclientRow(serviceclientRow row) {
  1109. this.Rows.Remove(row);
  1110. }
  1111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1113. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1114. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1115. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1116. _AstapovYNISP_33DataSet ds = new _AstapovYNISP_33DataSet();
  1117. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1118. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1119. any1.MinOccurs = new decimal(0);
  1120. any1.MaxOccurs = decimal.MaxValue;
  1121. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1122. sequence.Items.Add(any1);
  1123. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1124. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1125. any2.MinOccurs = new decimal(1);
  1126. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1127. sequence.Items.Add(any2);
  1128. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1129. attribute1.Name = "namespace";
  1130. attribute1.FixedValue = ds.Namespace;
  1131. type.Attributes.Add(attribute1);
  1132. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1133. attribute2.Name = "tableTypeName";
  1134. attribute2.FixedValue = "serviceclientDataTable";
  1135. type.Attributes.Add(attribute2);
  1136. type.Particle = sequence;
  1137. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1138. if (xs.Contains(dsSchema.TargetNamespace)) {
  1139. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1140. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1141. try {
  1142. global::System.Xml.Schema.XmlSchema schema = null;
  1143. dsSchema.Write(s1);
  1144. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1145. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1146. s2.SetLength(0);
  1147. schema.Write(s2);
  1148. if ((s1.Length == s2.Length)) {
  1149. s1.Position = 0;
  1150. s2.Position = 0;
  1151. for (; ((s1.Position != s1.Length)
  1152. && (s1.ReadByte() == s2.ReadByte())); ) {
  1153. ;
  1154. }
  1155. if ((s1.Position == s1.Length)) {
  1156. return type;
  1157. }
  1158. }
  1159. }
  1160. }
  1161. finally {
  1162. if ((s1 != null)) {
  1163. s1.Close();
  1164. }
  1165. if ((s2 != null)) {
  1166. s2.Close();
  1167. }
  1168. }
  1169. }
  1170. xs.Add(dsSchema);
  1171. return type;
  1172. }
  1173. }
  1174. /// <summary>
  1175. ///Represents strongly named DataRow class.
  1176. ///</summary>
  1177. public partial class clientRow : global::System.Data.DataRow {
  1178. private clientDataTable tableclient;
  1179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1181. internal clientRow(global::System.Data.DataRowBuilder rb) :
  1182. base(rb) {
  1183. this.tableclient = ((clientDataTable)(this.Table));
  1184. }
  1185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1187. public string Фамилия {
  1188. get {
  1189. return ((string)(this[this.tableclient.ФамилияColumn]));
  1190. }
  1191. set {
  1192. this[this.tableclient.ФамилияColumn] = value;
  1193. }
  1194. }
  1195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1197. public string Имя {
  1198. get {
  1199. return ((string)(this[this.tableclient.ИмяColumn]));
  1200. }
  1201. set {
  1202. this[this.tableclient.ИмяColumn] = value;
  1203. }
  1204. }
  1205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1207. public string Отчество {
  1208. get {
  1209. return ((string)(this[this.tableclient.ОтчествоColumn]));
  1210. }
  1211. set {
  1212. this[this.tableclient.ОтчествоColumn] = value;
  1213. }
  1214. }
  1215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1217. public string Пол {
  1218. get {
  1219. return ((string)(this[this.tableclient.ПолColumn]));
  1220. }
  1221. set {
  1222. this[this.tableclient.ПолColumn] = value;
  1223. }
  1224. }
  1225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1227. public string Телефон {
  1228. get {
  1229. return ((string)(this[this.tableclient.ТелефонColumn]));
  1230. }
  1231. set {
  1232. this[this.tableclient.ТелефонColumn] = value;
  1233. }
  1234. }
  1235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1237. public System.DateTime Дата_рождения {
  1238. get {
  1239. return ((global::System.DateTime)(this[this.tableclient.Дата_рожденияColumn]));
  1240. }
  1241. set {
  1242. this[this.tableclient.Дата_рожденияColumn] = value;
  1243. }
  1244. }
  1245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1247. public string Email {
  1248. get {
  1249. return ((string)(this[this.tableclient.EmailColumn]));
  1250. }
  1251. set {
  1252. this[this.tableclient.EmailColumn] = value;
  1253. }
  1254. }
  1255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1257. public System.DateTime Дата_регистрации {
  1258. get {
  1259. return ((global::System.DateTime)(this[this.tableclient.Дата_регистрацииColumn]));
  1260. }
  1261. set {
  1262. this[this.tableclient.Дата_регистрацииColumn] = value;
  1263. }
  1264. }
  1265. }
  1266. /// <summary>
  1267. ///Represents strongly named DataRow class.
  1268. ///</summary>
  1269. public partial class serviceRow : global::System.Data.DataRow {
  1270. private serviceDataTable tableservice;
  1271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1273. internal serviceRow(global::System.Data.DataRowBuilder rb) :
  1274. base(rb) {
  1275. this.tableservice = ((serviceDataTable)(this.Table));
  1276. }
  1277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1279. public string Наименование_услуги {
  1280. get {
  1281. return ((string)(this[this.tableservice.Наименование_услугиColumn]));
  1282. }
  1283. set {
  1284. this[this.tableservice.Наименование_услугиColumn] = value;
  1285. }
  1286. }
  1287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1289. public string Главное_изображение {
  1290. get {
  1291. return ((string)(this[this.tableservice.Главное_изображениеColumn]));
  1292. }
  1293. set {
  1294. this[this.tableservice.Главное_изображениеColumn] = value;
  1295. }
  1296. }
  1297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1299. public string Длительность {
  1300. get {
  1301. return ((string)(this[this.tableservice.ДлительностьColumn]));
  1302. }
  1303. set {
  1304. this[this.tableservice.ДлительностьColumn] = value;
  1305. }
  1306. }
  1307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1309. public string Стоимость {
  1310. get {
  1311. return ((string)(this[this.tableservice.СтоимостьColumn]));
  1312. }
  1313. set {
  1314. this[this.tableservice.СтоимостьColumn] = value;
  1315. }
  1316. }
  1317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1319. public string Действующая_скидка {
  1320. get {
  1321. return ((string)(this[this.tableservice.Действующая_скидкаColumn]));
  1322. }
  1323. set {
  1324. this[this.tableservice.Действующая_скидкаColumn] = value;
  1325. }
  1326. }
  1327. }
  1328. /// <summary>
  1329. ///Represents strongly named DataRow class.
  1330. ///</summary>
  1331. public partial class serviceclientRow : global::System.Data.DataRow {
  1332. private serviceclientDataTable tableserviceclient;
  1333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1335. internal serviceclientRow(global::System.Data.DataRowBuilder rb) :
  1336. base(rb) {
  1337. this.tableserviceclient = ((serviceclientDataTable)(this.Table));
  1338. }
  1339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1341. public string Услуга {
  1342. get {
  1343. return ((string)(this[this.tableserviceclient.УслугаColumn]));
  1344. }
  1345. set {
  1346. this[this.tableserviceclient.УслугаColumn] = value;
  1347. }
  1348. }
  1349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1351. public System.DateTime Начало_оказания_услуги {
  1352. get {
  1353. return ((global::System.DateTime)(this[this.tableserviceclient.Начало_оказания_услугиColumn]));
  1354. }
  1355. set {
  1356. this[this.tableserviceclient.Начало_оказания_услугиColumn] = value;
  1357. }
  1358. }
  1359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1361. public string Клиент {
  1362. get {
  1363. return ((string)(this[this.tableserviceclient.КлиентColumn]));
  1364. }
  1365. set {
  1366. this[this.tableserviceclient.КлиентColumn] = value;
  1367. }
  1368. }
  1369. }
  1370. /// <summary>
  1371. ///Row event argument class
  1372. ///</summary>
  1373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1374. public class clientRowChangeEvent : global::System.EventArgs {
  1375. private clientRow eventRow;
  1376. private global::System.Data.DataRowAction eventAction;
  1377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1379. public clientRowChangeEvent(clientRow row, global::System.Data.DataRowAction action) {
  1380. this.eventRow = row;
  1381. this.eventAction = action;
  1382. }
  1383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1385. public clientRow Row {
  1386. get {
  1387. return this.eventRow;
  1388. }
  1389. }
  1390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1392. public global::System.Data.DataRowAction Action {
  1393. get {
  1394. return this.eventAction;
  1395. }
  1396. }
  1397. }
  1398. /// <summary>
  1399. ///Row event argument class
  1400. ///</summary>
  1401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1402. public class serviceRowChangeEvent : global::System.EventArgs {
  1403. private serviceRow eventRow;
  1404. private global::System.Data.DataRowAction eventAction;
  1405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1407. public serviceRowChangeEvent(serviceRow row, global::System.Data.DataRowAction action) {
  1408. this.eventRow = row;
  1409. this.eventAction = action;
  1410. }
  1411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1413. public serviceRow Row {
  1414. get {
  1415. return this.eventRow;
  1416. }
  1417. }
  1418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1420. public global::System.Data.DataRowAction Action {
  1421. get {
  1422. return this.eventAction;
  1423. }
  1424. }
  1425. }
  1426. /// <summary>
  1427. ///Row event argument class
  1428. ///</summary>
  1429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1430. public class serviceclientRowChangeEvent : global::System.EventArgs {
  1431. private serviceclientRow eventRow;
  1432. private global::System.Data.DataRowAction eventAction;
  1433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1435. public serviceclientRowChangeEvent(serviceclientRow row, global::System.Data.DataRowAction action) {
  1436. this.eventRow = row;
  1437. this.eventAction = action;
  1438. }
  1439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1441. public serviceclientRow Row {
  1442. get {
  1443. return this.eventRow;
  1444. }
  1445. }
  1446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1448. public global::System.Data.DataRowAction Action {
  1449. get {
  1450. return this.eventAction;
  1451. }
  1452. }
  1453. }
  1454. }
  1455. }
  1456. namespace beautyprog._AstapovYNISP_33DataSetTableAdapters {
  1457. /// <summary>
  1458. ///Represents the connection and commands used to retrieve and save data.
  1459. ///</summary>
  1460. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1461. [global::System.ComponentModel.ToolboxItem(true)]
  1462. [global::System.ComponentModel.DataObjectAttribute(true)]
  1463. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  1464. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1465. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1466. public partial class clientTableAdapter : global::System.ComponentModel.Component {
  1467. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  1468. private global::System.Data.SqlClient.SqlConnection _connection;
  1469. private global::System.Data.SqlClient.SqlTransaction _transaction;
  1470. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  1471. private bool _clearBeforeFill;
  1472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1474. public clientTableAdapter() {
  1475. this.ClearBeforeFill = true;
  1476. }
  1477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1479. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  1480. get {
  1481. if ((this._adapter == null)) {
  1482. this.InitAdapter();
  1483. }
  1484. return this._adapter;
  1485. }
  1486. }
  1487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1489. internal global::System.Data.SqlClient.SqlConnection Connection {
  1490. get {
  1491. if ((this._connection == null)) {
  1492. this.InitConnection();
  1493. }
  1494. return this._connection;
  1495. }
  1496. set {
  1497. this._connection = value;
  1498. if ((this.Adapter.InsertCommand != null)) {
  1499. this.Adapter.InsertCommand.Connection = value;
  1500. }
  1501. if ((this.Adapter.DeleteCommand != null)) {
  1502. this.Adapter.DeleteCommand.Connection = value;
  1503. }
  1504. if ((this.Adapter.UpdateCommand != null)) {
  1505. this.Adapter.UpdateCommand.Connection = value;
  1506. }
  1507. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1508. if ((this.CommandCollection[i] != null)) {
  1509. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  1510. }
  1511. }
  1512. }
  1513. }
  1514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1516. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  1517. get {
  1518. return this._transaction;
  1519. }
  1520. set {
  1521. this._transaction = value;
  1522. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1523. this.CommandCollection[i].Transaction = this._transaction;
  1524. }
  1525. if (((this.Adapter != null)
  1526. && (this.Adapter.DeleteCommand != null))) {
  1527. this.Adapter.DeleteCommand.Transaction = this._transaction;
  1528. }
  1529. if (((this.Adapter != null)
  1530. && (this.Adapter.InsertCommand != null))) {
  1531. this.Adapter.InsertCommand.Transaction = this._transaction;
  1532. }
  1533. if (((this.Adapter != null)
  1534. && (this.Adapter.UpdateCommand != null))) {
  1535. this.Adapter.UpdateCommand.Transaction = this._transaction;
  1536. }
  1537. }
  1538. }
  1539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1541. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  1542. get {
  1543. if ((this._commandCollection == null)) {
  1544. this.InitCommandCollection();
  1545. }
  1546. return this._commandCollection;
  1547. }
  1548. }
  1549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1551. public bool ClearBeforeFill {
  1552. get {
  1553. return this._clearBeforeFill;
  1554. }
  1555. set {
  1556. this._clearBeforeFill = value;
  1557. }
  1558. }
  1559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1561. private void InitAdapter() {
  1562. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  1563. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  1564. tableMapping.SourceTable = "Table";
  1565. tableMapping.DataSetTable = "client";
  1566. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  1567. tableMapping.ColumnMappings.Add("Имя", "Имя");
  1568. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  1569. tableMapping.ColumnMappings.Add("Пол", "Пол");
  1570. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  1571. tableMapping.ColumnMappings.Add("Дата_рождения", "Дата_рождения");
  1572. tableMapping.ColumnMappings.Add("Email", "Email");
  1573. tableMapping.ColumnMappings.Add("Дата_регистрации", "Дата_регистрации");
  1574. this._adapter.TableMappings.Add(tableMapping);
  1575. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  1576. this._adapter.DeleteCommand.Connection = this.Connection;
  1577. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[client] WHERE (([Фамилия] = @Original_Фамилия) AND ([Имя] = @Original_Имя) AND ([Отчество] = @Original_Отчество) AND ([Пол] = @Original_Пол) AND ([Телефон] = @Original_Телефон) AND ([Дата_рождения] = @Original_Дата_рождения) AND ([Email] = @Original_Email) AND ([Дата_регистрации] = @Original_Дата_регистрации))";
  1578. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  1579. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1580. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1581. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1582. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пол", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1583. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1584. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_рождения", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_рождения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1585. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1586. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_регистрации", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_регистрации", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1587. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  1588. this._adapter.InsertCommand.Connection = this.Connection;
  1589. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[client] ([Фамилия], [Имя], [Отчество], [Пол], [Телефон], [Дата_рождения], [Email], [Дата_регистрации]) VALUES (@Фамилия, @Имя, @Отчество, @Пол, @Телефон, @Дата_рождения, @Email, @Дата_регистрации);
  1590. SELECT Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации FROM client WHERE (Фамилия = @Фамилия)";
  1591. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  1592. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1593. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1594. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1595. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пол", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1596. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1597. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_рождения", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_рождения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1598. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1599. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_регистрации", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_регистрации", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1600. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  1601. this._adapter.UpdateCommand.Connection = this.Connection;
  1602. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[client] SET [Фамилия] = @Фамилия, [Имя] = @Имя, [Отчество] = @Отчество, [Пол] = @Пол, [Телефон] = @Телефон, [Дата_рождения] = @Дата_рождения, [Email] = @Email, [Дата_регистрации] = @Дата_регистрации WHERE (([Фамилия] = @Original_Фамилия) AND ([Имя] = @Original_Имя) AND ([Отчество] = @Original_Отчество) AND ([Пол] = @Original_Пол) AND ([Телефон] = @Original_Телефон) AND ([Дата_рождения] = @Original_Дата_рождения) AND ([Email] = @Original_Email) AND ([Дата_регистрации] = @Original_Дата_регистрации));
  1603. SELECT Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации FROM client WHERE (Фамилия = @Фамилия)";
  1604. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  1605. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1606. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1607. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1608. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пол", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1609. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1610. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_рождения", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_рождения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1611. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1612. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_регистрации", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_регистрации", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1613. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1614. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1615. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1616. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пол", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1617. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1618. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_рождения", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_рождения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1619. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1620. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_регистрации", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_регистрации", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1621. }
  1622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1624. private void InitConnection() {
  1625. this._connection = new global::System.Data.SqlClient.SqlConnection();
  1626. this._connection.ConnectionString = global::beautyprog.Properties.Settings.Default.AstapovYNISP_33ConnectionString;
  1627. }
  1628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1630. private void InitCommandCollection() {
  1631. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  1632. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  1633. this._commandCollection[0].Connection = this.Connection;
  1634. this._commandCollection[0].CommandText = "SELECT Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрац" +
  1635. "ии FROM dbo.client";
  1636. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  1637. }
  1638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1640. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1641. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  1642. public virtual int Fill(_AstapovYNISP_33DataSet.clientDataTable dataTable) {
  1643. this.Adapter.SelectCommand = this.CommandCollection[0];
  1644. if ((this.ClearBeforeFill == true)) {
  1645. dataTable.Clear();
  1646. }
  1647. int returnValue = this.Adapter.Fill(dataTable);
  1648. return returnValue;
  1649. }
  1650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1652. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1653. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  1654. public virtual _AstapovYNISP_33DataSet.clientDataTable GetData() {
  1655. this.Adapter.SelectCommand = this.CommandCollection[0];
  1656. _AstapovYNISP_33DataSet.clientDataTable dataTable = new _AstapovYNISP_33DataSet.clientDataTable();
  1657. this.Adapter.Fill(dataTable);
  1658. return dataTable;
  1659. }
  1660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1662. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1663. public virtual int Update(_AstapovYNISP_33DataSet.clientDataTable dataTable) {
  1664. return this.Adapter.Update(dataTable);
  1665. }
  1666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1668. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1669. public virtual int Update(_AstapovYNISP_33DataSet dataSet) {
  1670. return this.Adapter.Update(dataSet, "client");
  1671. }
  1672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1674. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1675. public virtual int Update(global::System.Data.DataRow dataRow) {
  1676. return this.Adapter.Update(new global::System.Data.DataRow[] {
  1677. dataRow});
  1678. }
  1679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1681. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1682. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  1683. return this.Adapter.Update(dataRows);
  1684. }
  1685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1687. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1688. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  1689. public virtual int Delete(string Original_Фамилия, string Original_Имя, string Original_Отчество, string Original_Пол, string Original_Телефон, System.DateTime Original_Дата_рождения, string Original_Email, System.DateTime Original_Дата_регистрации) {
  1690. if ((Original_Фамилия == null)) {
  1691. throw new global::System.ArgumentNullException("Original_Фамилия");
  1692. }
  1693. else {
  1694. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Фамилия));
  1695. }
  1696. if ((Original_Имя == null)) {
  1697. throw new global::System.ArgumentNullException("Original_Имя");
  1698. }
  1699. else {
  1700. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Имя));
  1701. }
  1702. if ((Original_Отчество == null)) {
  1703. throw new global::System.ArgumentNullException("Original_Отчество");
  1704. }
  1705. else {
  1706. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Отчество));
  1707. }
  1708. if ((Original_Пол == null)) {
  1709. throw new global::System.ArgumentNullException("Original_Пол");
  1710. }
  1711. else {
  1712. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Пол));
  1713. }
  1714. if ((Original_Телефон == null)) {
  1715. throw new global::System.ArgumentNullException("Original_Телефон");
  1716. }
  1717. else {
  1718. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Телефон));
  1719. }
  1720. this.Adapter.DeleteCommand.Parameters[5].Value = ((System.DateTime)(Original_Дата_рождения));
  1721. if ((Original_Email == null)) {
  1722. throw new global::System.ArgumentNullException("Original_Email");
  1723. }
  1724. else {
  1725. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Email));
  1726. }
  1727. this.Adapter.DeleteCommand.Parameters[7].Value = ((System.DateTime)(Original_Дата_регистрации));
  1728. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  1729. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1730. != global::System.Data.ConnectionState.Open)) {
  1731. this.Adapter.DeleteCommand.Connection.Open();
  1732. }
  1733. try {
  1734. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  1735. return returnValue;
  1736. }
  1737. finally {
  1738. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1739. this.Adapter.DeleteCommand.Connection.Close();
  1740. }
  1741. }
  1742. }
  1743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1745. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1746. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  1747. public virtual int Insert(string Фамилия, string Имя, string Отчество, string Пол, string Телефон, System.DateTime Дата_рождения, string Email, System.DateTime Дата_регистрации) {
  1748. if ((Фамилия == null)) {
  1749. throw new global::System.ArgumentNullException("Фамилия");
  1750. }
  1751. else {
  1752. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Фамилия));
  1753. }
  1754. if ((Имя == null)) {
  1755. throw new global::System.ArgumentNullException("Имя");
  1756. }
  1757. else {
  1758. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Имя));
  1759. }
  1760. if ((Отчество == null)) {
  1761. throw new global::System.ArgumentNullException("Отчество");
  1762. }
  1763. else {
  1764. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Отчество));
  1765. }
  1766. if ((Пол == null)) {
  1767. throw new global::System.ArgumentNullException("Пол");
  1768. }
  1769. else {
  1770. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Пол));
  1771. }
  1772. if ((Телефон == null)) {
  1773. throw new global::System.ArgumentNullException("Телефон");
  1774. }
  1775. else {
  1776. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Телефон));
  1777. }
  1778. this.Adapter.InsertCommand.Parameters[5].Value = ((System.DateTime)(Дата_рождения));
  1779. if ((Email == null)) {
  1780. throw new global::System.ArgumentNullException("Email");
  1781. }
  1782. else {
  1783. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Email));
  1784. }
  1785. this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(Дата_регистрации));
  1786. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  1787. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1788. != global::System.Data.ConnectionState.Open)) {
  1789. this.Adapter.InsertCommand.Connection.Open();
  1790. }
  1791. try {
  1792. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  1793. return returnValue;
  1794. }
  1795. finally {
  1796. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1797. this.Adapter.InsertCommand.Connection.Close();
  1798. }
  1799. }
  1800. }
  1801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1803. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1804. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  1805. public virtual int Update(
  1806. string Фамилия,
  1807. string Имя,
  1808. string Отчество,
  1809. string Пол,
  1810. string Телефон,
  1811. System.DateTime Дата_рождения,
  1812. string Email,
  1813. System.DateTime Дата_регистрации,
  1814. string Original_Фамилия,
  1815. string Original_Имя,
  1816. string Original_Отчество,
  1817. string Original_Пол,
  1818. string Original_Телефон,
  1819. System.DateTime Original_Дата_рождения,
  1820. string Original_Email,
  1821. System.DateTime Original_Дата_регистрации) {
  1822. if ((Фамилия == null)) {
  1823. throw new global::System.ArgumentNullException("Фамилия");
  1824. }
  1825. else {
  1826. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Фамилия));
  1827. }
  1828. if ((Имя == null)) {
  1829. throw new global::System.ArgumentNullException("Имя");
  1830. }
  1831. else {
  1832. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Имя));
  1833. }
  1834. if ((Отчество == null)) {
  1835. throw new global::System.ArgumentNullException("Отчество");
  1836. }
  1837. else {
  1838. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Отчество));
  1839. }
  1840. if ((Пол == null)) {
  1841. throw new global::System.ArgumentNullException("Пол");
  1842. }
  1843. else {
  1844. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Пол));
  1845. }
  1846. if ((Телефон == null)) {
  1847. throw new global::System.ArgumentNullException("Телефон");
  1848. }
  1849. else {
  1850. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Телефон));
  1851. }
  1852. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Дата_рождения));
  1853. if ((Email == null)) {
  1854. throw new global::System.ArgumentNullException("Email");
  1855. }
  1856. else {
  1857. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Email));
  1858. }
  1859. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Дата_регистрации));
  1860. if ((Original_Фамилия == null)) {
  1861. throw new global::System.ArgumentNullException("Original_Фамилия");
  1862. }
  1863. else {
  1864. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Фамилия));
  1865. }
  1866. if ((Original_Имя == null)) {
  1867. throw new global::System.ArgumentNullException("Original_Имя");
  1868. }
  1869. else {
  1870. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Имя));
  1871. }
  1872. if ((Original_Отчество == null)) {
  1873. throw new global::System.ArgumentNullException("Original_Отчество");
  1874. }
  1875. else {
  1876. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Отчество));
  1877. }
  1878. if ((Original_Пол == null)) {
  1879. throw new global::System.ArgumentNullException("Original_Пол");
  1880. }
  1881. else {
  1882. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Пол));
  1883. }
  1884. if ((Original_Телефон == null)) {
  1885. throw new global::System.ArgumentNullException("Original_Телефон");
  1886. }
  1887. else {
  1888. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Телефон));
  1889. }
  1890. this.Adapter.UpdateCommand.Parameters[13].Value = ((System.DateTime)(Original_Дата_рождения));
  1891. if ((Original_Email == null)) {
  1892. throw new global::System.ArgumentNullException("Original_Email");
  1893. }
  1894. else {
  1895. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Email));
  1896. }
  1897. this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(Original_Дата_регистрации));
  1898. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  1899. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1900. != global::System.Data.ConnectionState.Open)) {
  1901. this.Adapter.UpdateCommand.Connection.Open();
  1902. }
  1903. try {
  1904. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  1905. return returnValue;
  1906. }
  1907. finally {
  1908. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1909. this.Adapter.UpdateCommand.Connection.Close();
  1910. }
  1911. }
  1912. }
  1913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1915. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1916. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  1917. public virtual int Update(string Имя, string Отчество, string Пол, string Телефон, System.DateTime Дата_рождения, string Email, System.DateTime Дата_регистрации, string Original_Фамилия, string Original_Имя, string Original_Отчество, string Original_Пол, string Original_Телефон, System.DateTime Original_Дата_рождения, string Original_Email, System.DateTime Original_Дата_регистрации) {
  1918. return this.Update(Original_Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации, Original_Фамилия, Original_Имя, Original_Отчество, Original_Пол, Original_Телефон, Original_Дата_рождения, Original_Email, Original_Дата_регистрации);
  1919. }
  1920. }
  1921. /// <summary>
  1922. ///Represents the connection and commands used to retrieve and save data.
  1923. ///</summary>
  1924. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1925. [global::System.ComponentModel.ToolboxItem(true)]
  1926. [global::System.ComponentModel.DataObjectAttribute(true)]
  1927. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  1928. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1929. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1930. public partial class serviceTableAdapter : global::System.ComponentModel.Component {
  1931. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  1932. private global::System.Data.SqlClient.SqlConnection _connection;
  1933. private global::System.Data.SqlClient.SqlTransaction _transaction;
  1934. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  1935. private bool _clearBeforeFill;
  1936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1938. public serviceTableAdapter() {
  1939. this.ClearBeforeFill = true;
  1940. }
  1941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1943. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  1944. get {
  1945. if ((this._adapter == null)) {
  1946. this.InitAdapter();
  1947. }
  1948. return this._adapter;
  1949. }
  1950. }
  1951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1953. internal global::System.Data.SqlClient.SqlConnection Connection {
  1954. get {
  1955. if ((this._connection == null)) {
  1956. this.InitConnection();
  1957. }
  1958. return this._connection;
  1959. }
  1960. set {
  1961. this._connection = value;
  1962. if ((this.Adapter.InsertCommand != null)) {
  1963. this.Adapter.InsertCommand.Connection = value;
  1964. }
  1965. if ((this.Adapter.DeleteCommand != null)) {
  1966. this.Adapter.DeleteCommand.Connection = value;
  1967. }
  1968. if ((this.Adapter.UpdateCommand != null)) {
  1969. this.Adapter.UpdateCommand.Connection = value;
  1970. }
  1971. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1972. if ((this.CommandCollection[i] != null)) {
  1973. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  1974. }
  1975. }
  1976. }
  1977. }
  1978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1980. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  1981. get {
  1982. return this._transaction;
  1983. }
  1984. set {
  1985. this._transaction = value;
  1986. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1987. this.CommandCollection[i].Transaction = this._transaction;
  1988. }
  1989. if (((this.Adapter != null)
  1990. && (this.Adapter.DeleteCommand != null))) {
  1991. this.Adapter.DeleteCommand.Transaction = this._transaction;
  1992. }
  1993. if (((this.Adapter != null)
  1994. && (this.Adapter.InsertCommand != null))) {
  1995. this.Adapter.InsertCommand.Transaction = this._transaction;
  1996. }
  1997. if (((this.Adapter != null)
  1998. && (this.Adapter.UpdateCommand != null))) {
  1999. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2000. }
  2001. }
  2002. }
  2003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2005. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2006. get {
  2007. if ((this._commandCollection == null)) {
  2008. this.InitCommandCollection();
  2009. }
  2010. return this._commandCollection;
  2011. }
  2012. }
  2013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2015. public bool ClearBeforeFill {
  2016. get {
  2017. return this._clearBeforeFill;
  2018. }
  2019. set {
  2020. this._clearBeforeFill = value;
  2021. }
  2022. }
  2023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2025. private void InitAdapter() {
  2026. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2027. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2028. tableMapping.SourceTable = "Table";
  2029. tableMapping.DataSetTable = "service";
  2030. tableMapping.ColumnMappings.Add("Наименование_услуги", "Наименование_услуги");
  2031. tableMapping.ColumnMappings.Add("Главное_изображение", "Главное_изображение");
  2032. tableMapping.ColumnMappings.Add("Длительность", "Длительность");
  2033. tableMapping.ColumnMappings.Add("Стоимость", "Стоимость");
  2034. tableMapping.ColumnMappings.Add("Действующая_скидка", "Действующая_скидка");
  2035. this._adapter.TableMappings.Add(tableMapping);
  2036. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  2037. this._adapter.DeleteCommand.Connection = this.Connection;
  2038. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[service] WHERE (([Наименование_услуги] = @Original_Наименование_услуги) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка))";
  2039. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  2040. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2041. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2042. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2043. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2044. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2045. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2046. this._adapter.InsertCommand.Connection = this.Connection;
  2047. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[service] ([Наименование_услуги], [Главное_изображение], [Длительность], [Стоимость], [Действующая_скидка]) VALUES (@Наименование_услуги, @Главное_изображение, @Длительность, @Стоимость, @Действующая_скидка);
  2048. SELECT Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка FROM service WHERE (Наименование_услуги = @Наименование_услуги)";
  2049. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2050. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2051. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2052. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2053. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2054. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2055. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  2056. this._adapter.UpdateCommand.Connection = this.Connection;
  2057. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[service] SET [Наименование_услуги] = @Наименование_услуги, [Главное_изображение] = @Главное_изображение, [Длительность] = @Длительность, [Стоимость] = @Стоимость, [Действующая_скидка] = @Действующая_скидка WHERE (([Наименование_услуги] = @Original_Наименование_услуги) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка));
  2058. SELECT Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка FROM service WHERE (Наименование_услуги = @Наименование_услуги)";
  2059. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  2060. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2061. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2062. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2063. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2064. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2065. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2066. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2067. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2068. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2069. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2070. }
  2071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2073. private void InitConnection() {
  2074. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2075. this._connection.ConnectionString = global::beautyprog.Properties.Settings.Default.AstapovYNISP_33ConnectionString;
  2076. }
  2077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2079. private void InitCommandCollection() {
  2080. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2081. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2082. this._commandCollection[0].Connection = this.Connection;
  2083. this._commandCollection[0].CommandText = "SELECT Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действу" +
  2084. "ющая_скидка FROM dbo.service";
  2085. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2086. }
  2087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2089. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2090. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2091. public virtual int Fill(_AstapovYNISP_33DataSet.serviceDataTable dataTable) {
  2092. this.Adapter.SelectCommand = this.CommandCollection[0];
  2093. if ((this.ClearBeforeFill == true)) {
  2094. dataTable.Clear();
  2095. }
  2096. int returnValue = this.Adapter.Fill(dataTable);
  2097. return returnValue;
  2098. }
  2099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2101. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2102. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2103. public virtual _AstapovYNISP_33DataSet.serviceDataTable GetData() {
  2104. this.Adapter.SelectCommand = this.CommandCollection[0];
  2105. _AstapovYNISP_33DataSet.serviceDataTable dataTable = new _AstapovYNISP_33DataSet.serviceDataTable();
  2106. this.Adapter.Fill(dataTable);
  2107. return dataTable;
  2108. }
  2109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2111. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2112. public virtual int Update(_AstapovYNISP_33DataSet.serviceDataTable dataTable) {
  2113. return this.Adapter.Update(dataTable);
  2114. }
  2115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2117. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2118. public virtual int Update(_AstapovYNISP_33DataSet dataSet) {
  2119. return this.Adapter.Update(dataSet, "service");
  2120. }
  2121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2123. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2124. public virtual int Update(global::System.Data.DataRow dataRow) {
  2125. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2126. dataRow});
  2127. }
  2128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2130. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2131. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2132. return this.Adapter.Update(dataRows);
  2133. }
  2134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2136. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2137. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  2138. public virtual int Delete(string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, string Original_Стоимость, string Original_Действующая_скидка) {
  2139. if ((Original_Наименование_услуги == null)) {
  2140. throw new global::System.ArgumentNullException("Original_Наименование_услуги");
  2141. }
  2142. else {
  2143. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Наименование_услуги));
  2144. }
  2145. if ((Original_Главное_изображение == null)) {
  2146. throw new global::System.ArgumentNullException("Original_Главное_изображение");
  2147. }
  2148. else {
  2149. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Главное_изображение));
  2150. }
  2151. if ((Original_Длительность == null)) {
  2152. throw new global::System.ArgumentNullException("Original_Длительность");
  2153. }
  2154. else {
  2155. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Длительность));
  2156. }
  2157. if ((Original_Стоимость == null)) {
  2158. throw new global::System.ArgumentNullException("Original_Стоимость");
  2159. }
  2160. else {
  2161. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Стоимость));
  2162. }
  2163. if ((Original_Действующая_скидка == null)) {
  2164. throw new global::System.ArgumentNullException("Original_Действующая_скидка");
  2165. }
  2166. else {
  2167. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Действующая_скидка));
  2168. }
  2169. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  2170. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2171. != global::System.Data.ConnectionState.Open)) {
  2172. this.Adapter.DeleteCommand.Connection.Open();
  2173. }
  2174. try {
  2175. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  2176. return returnValue;
  2177. }
  2178. finally {
  2179. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2180. this.Adapter.DeleteCommand.Connection.Close();
  2181. }
  2182. }
  2183. }
  2184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2186. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2187. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2188. public virtual int Insert(string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка) {
  2189. if ((Наименование_услуги == null)) {
  2190. throw new global::System.ArgumentNullException("Наименование_услуги");
  2191. }
  2192. else {
  2193. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Наименование_услуги));
  2194. }
  2195. if ((Главное_изображение == null)) {
  2196. throw new global::System.ArgumentNullException("Главное_изображение");
  2197. }
  2198. else {
  2199. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Главное_изображение));
  2200. }
  2201. if ((Длительность == null)) {
  2202. throw new global::System.ArgumentNullException("Длительность");
  2203. }
  2204. else {
  2205. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Длительность));
  2206. }
  2207. if ((Стоимость == null)) {
  2208. throw new global::System.ArgumentNullException("Стоимость");
  2209. }
  2210. else {
  2211. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Стоимость));
  2212. }
  2213. if ((Действующая_скидка == null)) {
  2214. throw new global::System.ArgumentNullException("Действующая_скидка");
  2215. }
  2216. else {
  2217. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Действующая_скидка));
  2218. }
  2219. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2220. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2221. != global::System.Data.ConnectionState.Open)) {
  2222. this.Adapter.InsertCommand.Connection.Open();
  2223. }
  2224. try {
  2225. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2226. return returnValue;
  2227. }
  2228. finally {
  2229. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2230. this.Adapter.InsertCommand.Connection.Close();
  2231. }
  2232. }
  2233. }
  2234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2236. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2237. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2238. public virtual int Update(string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка, string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, string Original_Стоимость, string Original_Действующая_скидка) {
  2239. if ((Наименование_услуги == null)) {
  2240. throw new global::System.ArgumentNullException("Наименование_услуги");
  2241. }
  2242. else {
  2243. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Наименование_услуги));
  2244. }
  2245. if ((Главное_изображение == null)) {
  2246. throw new global::System.ArgumentNullException("Главное_изображение");
  2247. }
  2248. else {
  2249. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Главное_изображение));
  2250. }
  2251. if ((Длительность == null)) {
  2252. throw new global::System.ArgumentNullException("Длительность");
  2253. }
  2254. else {
  2255. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Длительность));
  2256. }
  2257. if ((Стоимость == null)) {
  2258. throw new global::System.ArgumentNullException("Стоимость");
  2259. }
  2260. else {
  2261. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Стоимость));
  2262. }
  2263. if ((Действующая_скидка == null)) {
  2264. throw new global::System.ArgumentNullException("Действующая_скидка");
  2265. }
  2266. else {
  2267. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Действующая_скидка));
  2268. }
  2269. if ((Original_Наименование_услуги == null)) {
  2270. throw new global::System.ArgumentNullException("Original_Наименование_услуги");
  2271. }
  2272. else {
  2273. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Наименование_услуги));
  2274. }
  2275. if ((Original_Главное_изображение == null)) {
  2276. throw new global::System.ArgumentNullException("Original_Главное_изображение");
  2277. }
  2278. else {
  2279. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Главное_изображение));
  2280. }
  2281. if ((Original_Длительность == null)) {
  2282. throw new global::System.ArgumentNullException("Original_Длительность");
  2283. }
  2284. else {
  2285. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Длительность));
  2286. }
  2287. if ((Original_Стоимость == null)) {
  2288. throw new global::System.ArgumentNullException("Original_Стоимость");
  2289. }
  2290. else {
  2291. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Стоимость));
  2292. }
  2293. if ((Original_Действующая_скидка == null)) {
  2294. throw new global::System.ArgumentNullException("Original_Действующая_скидка");
  2295. }
  2296. else {
  2297. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Действующая_скидка));
  2298. }
  2299. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  2300. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2301. != global::System.Data.ConnectionState.Open)) {
  2302. this.Adapter.UpdateCommand.Connection.Open();
  2303. }
  2304. try {
  2305. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  2306. return returnValue;
  2307. }
  2308. finally {
  2309. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2310. this.Adapter.UpdateCommand.Connection.Close();
  2311. }
  2312. }
  2313. }
  2314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2316. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2317. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2318. public virtual int Update(string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка, string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, string Original_Стоимость, string Original_Действующая_скидка) {
  2319. return this.Update(Original_Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка, Original_Наименование_услуги, Original_Главное_изображение, Original_Длительность, Original_Стоимость, Original_Действующая_скидка);
  2320. }
  2321. }
  2322. /// <summary>
  2323. ///Represents the connection and commands used to retrieve and save data.
  2324. ///</summary>
  2325. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2326. [global::System.ComponentModel.ToolboxItem(true)]
  2327. [global::System.ComponentModel.DataObjectAttribute(true)]
  2328. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2329. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2330. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2331. public partial class serviceclientTableAdapter : global::System.ComponentModel.Component {
  2332. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2333. private global::System.Data.SqlClient.SqlConnection _connection;
  2334. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2335. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2336. private bool _clearBeforeFill;
  2337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2339. public serviceclientTableAdapter() {
  2340. this.ClearBeforeFill = true;
  2341. }
  2342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2344. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2345. get {
  2346. if ((this._adapter == null)) {
  2347. this.InitAdapter();
  2348. }
  2349. return this._adapter;
  2350. }
  2351. }
  2352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2354. internal global::System.Data.SqlClient.SqlConnection Connection {
  2355. get {
  2356. if ((this._connection == null)) {
  2357. this.InitConnection();
  2358. }
  2359. return this._connection;
  2360. }
  2361. set {
  2362. this._connection = value;
  2363. if ((this.Adapter.InsertCommand != null)) {
  2364. this.Adapter.InsertCommand.Connection = value;
  2365. }
  2366. if ((this.Adapter.DeleteCommand != null)) {
  2367. this.Adapter.DeleteCommand.Connection = value;
  2368. }
  2369. if ((this.Adapter.UpdateCommand != null)) {
  2370. this.Adapter.UpdateCommand.Connection = value;
  2371. }
  2372. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2373. if ((this.CommandCollection[i] != null)) {
  2374. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2375. }
  2376. }
  2377. }
  2378. }
  2379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2381. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2382. get {
  2383. return this._transaction;
  2384. }
  2385. set {
  2386. this._transaction = value;
  2387. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2388. this.CommandCollection[i].Transaction = this._transaction;
  2389. }
  2390. if (((this.Adapter != null)
  2391. && (this.Adapter.DeleteCommand != null))) {
  2392. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2393. }
  2394. if (((this.Adapter != null)
  2395. && (this.Adapter.InsertCommand != null))) {
  2396. this.Adapter.InsertCommand.Transaction = this._transaction;
  2397. }
  2398. if (((this.Adapter != null)
  2399. && (this.Adapter.UpdateCommand != null))) {
  2400. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2401. }
  2402. }
  2403. }
  2404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2406. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2407. get {
  2408. if ((this._commandCollection == null)) {
  2409. this.InitCommandCollection();
  2410. }
  2411. return this._commandCollection;
  2412. }
  2413. }
  2414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2416. public bool ClearBeforeFill {
  2417. get {
  2418. return this._clearBeforeFill;
  2419. }
  2420. set {
  2421. this._clearBeforeFill = value;
  2422. }
  2423. }
  2424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2426. private void InitAdapter() {
  2427. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2428. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2429. tableMapping.SourceTable = "Table";
  2430. tableMapping.DataSetTable = "serviceclient";
  2431. tableMapping.ColumnMappings.Add("Услуга", "Услуга");
  2432. tableMapping.ColumnMappings.Add("Начало_оказания_услуги", "Начало_оказания_услуги");
  2433. tableMapping.ColumnMappings.Add("Клиент", "Клиент");
  2434. this._adapter.TableMappings.Add(tableMapping);
  2435. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2436. this._adapter.InsertCommand.Connection = this.Connection;
  2437. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[serviceclient] ([Услуга], [Начало_оказания_услуги], [Клиент]) " +
  2438. "VALUES (@Услуга, @Начало_оказания_услуги, @Клиент)";
  2439. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2440. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Услуга", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Услуга", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2441. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Начало_оказания_услуги", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Начало_оказания_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2442. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Клиент", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Клиент", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2443. }
  2444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2446. private void InitConnection() {
  2447. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2448. this._connection.ConnectionString = global::beautyprog.Properties.Settings.Default.AstapovYNISP_33ConnectionString;
  2449. }
  2450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2452. private void InitCommandCollection() {
  2453. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2454. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2455. this._commandCollection[0].Connection = this.Connection;
  2456. this._commandCollection[0].CommandText = "SELECT Услуга, Начало_оказания_услуги, Клиент FROM dbo.serviceclient";
  2457. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2458. }
  2459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2461. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2462. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2463. public virtual int Fill(_AstapovYNISP_33DataSet.serviceclientDataTable dataTable) {
  2464. this.Adapter.SelectCommand = this.CommandCollection[0];
  2465. if ((this.ClearBeforeFill == true)) {
  2466. dataTable.Clear();
  2467. }
  2468. int returnValue = this.Adapter.Fill(dataTable);
  2469. return returnValue;
  2470. }
  2471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2473. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2474. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2475. public virtual _AstapovYNISP_33DataSet.serviceclientDataTable GetData() {
  2476. this.Adapter.SelectCommand = this.CommandCollection[0];
  2477. _AstapovYNISP_33DataSet.serviceclientDataTable dataTable = new _AstapovYNISP_33DataSet.serviceclientDataTable();
  2478. this.Adapter.Fill(dataTable);
  2479. return dataTable;
  2480. }
  2481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2483. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2484. public virtual int Update(_AstapovYNISP_33DataSet.serviceclientDataTable dataTable) {
  2485. return this.Adapter.Update(dataTable);
  2486. }
  2487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2489. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2490. public virtual int Update(_AstapovYNISP_33DataSet dataSet) {
  2491. return this.Adapter.Update(dataSet, "serviceclient");
  2492. }
  2493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2495. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2496. public virtual int Update(global::System.Data.DataRow dataRow) {
  2497. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2498. dataRow});
  2499. }
  2500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2502. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2503. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2504. return this.Adapter.Update(dataRows);
  2505. }
  2506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2508. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2509. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2510. public virtual int Insert(string Услуга, System.DateTime Начало_оказания_услуги, string Клиент) {
  2511. if ((Услуга == null)) {
  2512. throw new global::System.ArgumentNullException("Услуга");
  2513. }
  2514. else {
  2515. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Услуга));
  2516. }
  2517. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Начало_оказания_услуги));
  2518. if ((Клиент == null)) {
  2519. throw new global::System.ArgumentNullException("Клиент");
  2520. }
  2521. else {
  2522. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Клиент));
  2523. }
  2524. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2525. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2526. != global::System.Data.ConnectionState.Open)) {
  2527. this.Adapter.InsertCommand.Connection.Open();
  2528. }
  2529. try {
  2530. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2531. return returnValue;
  2532. }
  2533. finally {
  2534. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2535. this.Adapter.InsertCommand.Connection.Close();
  2536. }
  2537. }
  2538. }
  2539. }
  2540. /// <summary>
  2541. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  2542. ///</summary>
  2543. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2544. [global::System.ComponentModel.ToolboxItem(true)]
  2545. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  2546. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2547. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  2548. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  2549. private UpdateOrderOption _updateOrder;
  2550. private clientTableAdapter _clientTableAdapter;
  2551. private serviceTableAdapter _serviceTableAdapter;
  2552. private serviceclientTableAdapter _serviceclientTableAdapter;
  2553. private bool _backupDataSetBeforeUpdate;
  2554. private global::System.Data.IDbConnection _connection;
  2555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2557. public UpdateOrderOption UpdateOrder {
  2558. get {
  2559. return this._updateOrder;
  2560. }
  2561. set {
  2562. this._updateOrder = value;
  2563. }
  2564. }
  2565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2567. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  2568. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  2569. "a", "System.Drawing.Design.UITypeEditor")]
  2570. public clientTableAdapter clientTableAdapter {
  2571. get {
  2572. return this._clientTableAdapter;
  2573. }
  2574. set {
  2575. this._clientTableAdapter = value;
  2576. }
  2577. }
  2578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2580. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  2581. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  2582. "a", "System.Drawing.Design.UITypeEditor")]
  2583. public serviceTableAdapter serviceTableAdapter {
  2584. get {
  2585. return this._serviceTableAdapter;
  2586. }
  2587. set {
  2588. this._serviceTableAdapter = value;
  2589. }
  2590. }
  2591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2593. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  2594. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  2595. "a", "System.Drawing.Design.UITypeEditor")]
  2596. public serviceclientTableAdapter serviceclientTableAdapter {
  2597. get {
  2598. return this._serviceclientTableAdapter;
  2599. }
  2600. set {
  2601. this._serviceclientTableAdapter = value;
  2602. }
  2603. }
  2604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2606. public bool BackupDataSetBeforeUpdate {
  2607. get {
  2608. return this._backupDataSetBeforeUpdate;
  2609. }
  2610. set {
  2611. this._backupDataSetBeforeUpdate = value;
  2612. }
  2613. }
  2614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2616. [global::System.ComponentModel.Browsable(false)]
  2617. public global::System.Data.IDbConnection Connection {
  2618. get {
  2619. if ((this._connection != null)) {
  2620. return this._connection;
  2621. }
  2622. if (((this._clientTableAdapter != null)
  2623. && (this._clientTableAdapter.Connection != null))) {
  2624. return this._clientTableAdapter.Connection;
  2625. }
  2626. if (((this._serviceTableAdapter != null)
  2627. && (this._serviceTableAdapter.Connection != null))) {
  2628. return this._serviceTableAdapter.Connection;
  2629. }
  2630. if (((this._serviceclientTableAdapter != null)
  2631. && (this._serviceclientTableAdapter.Connection != null))) {
  2632. return this._serviceclientTableAdapter.Connection;
  2633. }
  2634. return null;
  2635. }
  2636. set {
  2637. this._connection = value;
  2638. }
  2639. }
  2640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2642. [global::System.ComponentModel.Browsable(false)]
  2643. public int TableAdapterInstanceCount {
  2644. get {
  2645. int count = 0;
  2646. if ((this._clientTableAdapter != null)) {
  2647. count = (count + 1);
  2648. }
  2649. if ((this._serviceTableAdapter != null)) {
  2650. count = (count + 1);
  2651. }
  2652. if ((this._serviceclientTableAdapter != null)) {
  2653. count = (count + 1);
  2654. }
  2655. return count;
  2656. }
  2657. }
  2658. /// <summary>
  2659. ///Update rows in top-down order.
  2660. ///</summary>
  2661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2663. private int UpdateUpdatedRows(_AstapovYNISP_33DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  2664. int result = 0;
  2665. if ((this._clientTableAdapter != null)) {
  2666. global::System.Data.DataRow[] updatedRows = dataSet.client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  2667. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  2668. if (((updatedRows != null)
  2669. && (0 < updatedRows.Length))) {
  2670. result = (result + this._clientTableAdapter.Update(updatedRows));
  2671. allChangedRows.AddRange(updatedRows);
  2672. }
  2673. }
  2674. if ((this._serviceTableAdapter != null)) {
  2675. global::System.Data.DataRow[] updatedRows = dataSet.service.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  2676. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  2677. if (((updatedRows != null)
  2678. && (0 < updatedRows.Length))) {
  2679. result = (result + this._serviceTableAdapter.Update(updatedRows));
  2680. allChangedRows.AddRange(updatedRows);
  2681. }
  2682. }
  2683. if ((this._serviceclientTableAdapter != null)) {
  2684. global::System.Data.DataRow[] updatedRows = dataSet.serviceclient.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  2685. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  2686. if (((updatedRows != null)
  2687. && (0 < updatedRows.Length))) {
  2688. result = (result + this._serviceclientTableAdapter.Update(updatedRows));
  2689. allChangedRows.AddRange(updatedRows);
  2690. }
  2691. }
  2692. return result;
  2693. }
  2694. /// <summary>
  2695. ///Insert rows in top-down order.
  2696. ///</summary>
  2697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2699. private int UpdateInsertedRows(_AstapovYNISP_33DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  2700. int result = 0;
  2701. if ((this._clientTableAdapter != null)) {
  2702. global::System.Data.DataRow[] addedRows = dataSet.client.Select(null, null, global::System.Data.DataViewRowState.Added);
  2703. if (((addedRows != null)
  2704. && (0 < addedRows.Length))) {
  2705. result = (result + this._clientTableAdapter.Update(addedRows));
  2706. allAddedRows.AddRange(addedRows);
  2707. }
  2708. }
  2709. if ((this._serviceTableAdapter != null)) {
  2710. global::System.Data.DataRow[] addedRows = dataSet.service.Select(null, null, global::System.Data.DataViewRowState.Added);
  2711. if (((addedRows != null)
  2712. && (0 < addedRows.Length))) {
  2713. result = (result + this._serviceTableAdapter.Update(addedRows));
  2714. allAddedRows.AddRange(addedRows);
  2715. }
  2716. }
  2717. if ((this._serviceclientTableAdapter != null)) {
  2718. global::System.Data.DataRow[] addedRows = dataSet.serviceclient.Select(null, null, global::System.Data.DataViewRowState.Added);
  2719. if (((addedRows != null)
  2720. && (0 < addedRows.Length))) {
  2721. result = (result + this._serviceclientTableAdapter.Update(addedRows));
  2722. allAddedRows.AddRange(addedRows);
  2723. }
  2724. }
  2725. return result;
  2726. }
  2727. /// <summary>
  2728. ///Delete rows in bottom-up order.
  2729. ///</summary>
  2730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2732. private int UpdateDeletedRows(_AstapovYNISP_33DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  2733. int result = 0;
  2734. if ((this._serviceclientTableAdapter != null)) {
  2735. global::System.Data.DataRow[] deletedRows = dataSet.serviceclient.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  2736. if (((deletedRows != null)
  2737. && (0 < deletedRows.Length))) {
  2738. result = (result + this._serviceclientTableAdapter.Update(deletedRows));
  2739. allChangedRows.AddRange(deletedRows);
  2740. }
  2741. }
  2742. if ((this._serviceTableAdapter != null)) {
  2743. global::System.Data.DataRow[] deletedRows = dataSet.service.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  2744. if (((deletedRows != null)
  2745. && (0 < deletedRows.Length))) {
  2746. result = (result + this._serviceTableAdapter.Update(deletedRows));
  2747. allChangedRows.AddRange(deletedRows);
  2748. }
  2749. }
  2750. if ((this._clientTableAdapter != null)) {
  2751. global::System.Data.DataRow[] deletedRows = dataSet.client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  2752. if (((deletedRows != null)
  2753. && (0 < deletedRows.Length))) {
  2754. result = (result + this._clientTableAdapter.Update(deletedRows));
  2755. allChangedRows.AddRange(deletedRows);
  2756. }
  2757. }
  2758. return result;
  2759. }
  2760. /// <summary>
  2761. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  2762. ///</summary>
  2763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2765. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  2766. if (((updatedRows == null)
  2767. || (updatedRows.Length < 1))) {
  2768. return updatedRows;
  2769. }
  2770. if (((allAddedRows == null)
  2771. || (allAddedRows.Count < 1))) {
  2772. return updatedRows;
  2773. }
  2774. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  2775. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  2776. global::System.Data.DataRow row = updatedRows[i];
  2777. if ((allAddedRows.Contains(row) == false)) {
  2778. realUpdatedRows.Add(row);
  2779. }
  2780. }
  2781. return realUpdatedRows.ToArray();
  2782. }
  2783. /// <summary>
  2784. ///Update all changes to the dataset.
  2785. ///</summary>
  2786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2788. public virtual int UpdateAll(_AstapovYNISP_33DataSet dataSet) {
  2789. if ((dataSet == null)) {
  2790. throw new global::System.ArgumentNullException("dataSet");
  2791. }
  2792. if ((dataSet.HasChanges() == false)) {
  2793. return 0;
  2794. }
  2795. if (((this._clientTableAdapter != null)
  2796. && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
  2797. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  2798. "r, должны использовать одинаковую строку подключения.");
  2799. }
  2800. if (((this._serviceTableAdapter != null)
  2801. && (this.MatchTableAdapterConnection(this._serviceTableAdapter.Connection) == false))) {
  2802. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  2803. "r, должны использовать одинаковую строку подключения.");
  2804. }
  2805. if (((this._serviceclientTableAdapter != null)
  2806. && (this.MatchTableAdapterConnection(this._serviceclientTableAdapter.Connection) == false))) {
  2807. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  2808. "r, должны использовать одинаковую строку подключения.");
  2809. }
  2810. global::System.Data.IDbConnection workConnection = this.Connection;
  2811. if ((workConnection == null)) {
  2812. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  2813. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  2814. }
  2815. bool workConnOpened = false;
  2816. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  2817. == global::System.Data.ConnectionState.Broken)) {
  2818. workConnection.Close();
  2819. }
  2820. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  2821. workConnection.Open();
  2822. workConnOpened = true;
  2823. }
  2824. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  2825. if ((workTransaction == null)) {
  2826. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  2827. "и или текущее состояние не позволяет начать транзакцию.");
  2828. }
  2829. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  2830. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  2831. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  2832. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  2833. int result = 0;
  2834. global::System.Data.DataSet backupDataSet = null;
  2835. if (this.BackupDataSetBeforeUpdate) {
  2836. backupDataSet = new global::System.Data.DataSet();
  2837. backupDataSet.Merge(dataSet);
  2838. }
  2839. try {
  2840. // ---- Prepare for update -----------
  2841. //
  2842. if ((this._clientTableAdapter != null)) {
  2843. revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection);
  2844. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  2845. this._clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  2846. if (this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  2847. this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  2848. adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableAdapter.Adapter);
  2849. }
  2850. }
  2851. if ((this._serviceTableAdapter != null)) {
  2852. revertConnections.Add(this._serviceTableAdapter, this._serviceTableAdapter.Connection);
  2853. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  2854. this._serviceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  2855. if (this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  2856. this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  2857. adaptersWithAcceptChangesDuringUpdate.Add(this._serviceTableAdapter.Adapter);
  2858. }
  2859. }
  2860. if ((this._serviceclientTableAdapter != null)) {
  2861. revertConnections.Add(this._serviceclientTableAdapter, this._serviceclientTableAdapter.Connection);
  2862. this._serviceclientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  2863. this._serviceclientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  2864. if (this._serviceclientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  2865. this._serviceclientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  2866. adaptersWithAcceptChangesDuringUpdate.Add(this._serviceclientTableAdapter.Adapter);
  2867. }
  2868. }
  2869. //
  2870. //---- Perform updates -----------
  2871. //
  2872. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  2873. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  2874. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  2875. }
  2876. else {
  2877. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  2878. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  2879. }
  2880. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  2881. //
  2882. //---- Commit updates -----------
  2883. //
  2884. workTransaction.Commit();
  2885. if ((0 < allAddedRows.Count)) {
  2886. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  2887. allAddedRows.CopyTo(rows);
  2888. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  2889. global::System.Data.DataRow row = rows[i];
  2890. row.AcceptChanges();
  2891. }
  2892. }
  2893. if ((0 < allChangedRows.Count)) {
  2894. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  2895. allChangedRows.CopyTo(rows);
  2896. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  2897. global::System.Data.DataRow row = rows[i];
  2898. row.AcceptChanges();
  2899. }
  2900. }
  2901. }
  2902. catch (global::System.Exception ex) {
  2903. workTransaction.Rollback();
  2904. // ---- Restore the dataset -----------
  2905. if (this.BackupDataSetBeforeUpdate) {
  2906. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  2907. dataSet.Clear();
  2908. dataSet.Merge(backupDataSet);
  2909. }
  2910. else {
  2911. if ((0 < allAddedRows.Count)) {
  2912. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  2913. allAddedRows.CopyTo(rows);
  2914. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  2915. global::System.Data.DataRow row = rows[i];
  2916. row.AcceptChanges();
  2917. row.SetAdded();
  2918. }
  2919. }
  2920. }
  2921. throw ex;
  2922. }
  2923. finally {
  2924. if (workConnOpened) {
  2925. workConnection.Close();
  2926. }
  2927. if ((this._clientTableAdapter != null)) {
  2928. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter]));
  2929. this._clientTableAdapter.Transaction = null;
  2930. }
  2931. if ((this._serviceTableAdapter != null)) {
  2932. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._serviceTableAdapter]));
  2933. this._serviceTableAdapter.Transaction = null;
  2934. }
  2935. if ((this._serviceclientTableAdapter != null)) {
  2936. this._serviceclientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._serviceclientTableAdapter]));
  2937. this._serviceclientTableAdapter.Transaction = null;
  2938. }
  2939. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  2940. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  2941. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  2942. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  2943. global::System.Data.Common.DataAdapter adapter = adapters[i];
  2944. adapter.AcceptChangesDuringUpdate = true;
  2945. }
  2946. }
  2947. }
  2948. return result;
  2949. }
  2950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2952. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  2953. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  2954. }
  2955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2957. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  2958. if ((this._connection != null)) {
  2959. return true;
  2960. }
  2961. if (((this.Connection == null)
  2962. || (inputConnection == null))) {
  2963. return true;
  2964. }
  2965. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  2966. return true;
  2967. }
  2968. return false;
  2969. }
  2970. /// <summary>
  2971. ///Update Order Option
  2972. ///</summary>
  2973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2974. public enum UpdateOrderOption {
  2975. InsertUpdateDelete = 0,
  2976. UpdateInsertDelete = 1,
  2977. }
  2978. /// <summary>
  2979. ///Used to sort self-referenced table's rows
  2980. ///</summary>
  2981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2982. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  2983. private global::System.Data.DataRelation _relation;
  2984. private int _childFirst;
  2985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2987. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  2988. this._relation = relation;
  2989. if (childFirst) {
  2990. this._childFirst = -1;
  2991. }
  2992. else {
  2993. this._childFirst = 1;
  2994. }
  2995. }
  2996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2998. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  2999. global::System.Diagnostics.Debug.Assert((row != null));
  3000. global::System.Data.DataRow root = row;
  3001. distance = 0;
  3002. 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>();
  3003. traversedRows[row] = row;
  3004. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  3005. for (
  3006. ; ((parent != null)
  3007. && (traversedRows.ContainsKey(parent) == false));
  3008. ) {
  3009. distance = (distance + 1);
  3010. root = parent;
  3011. traversedRows[parent] = parent;
  3012. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  3013. }
  3014. if ((distance == 0)) {
  3015. traversedRows.Clear();
  3016. traversedRows[row] = row;
  3017. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  3018. for (
  3019. ; ((parent != null)
  3020. && (traversedRows.ContainsKey(parent) == false));
  3021. ) {
  3022. distance = (distance + 1);
  3023. root = parent;
  3024. traversedRows[parent] = parent;
  3025. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  3026. }
  3027. }
  3028. return root;
  3029. }
  3030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3032. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  3033. if (object.ReferenceEquals(row1, row2)) {
  3034. return 0;
  3035. }
  3036. if ((row1 == null)) {
  3037. return -1;
  3038. }
  3039. if ((row2 == null)) {
  3040. return 1;
  3041. }
  3042. int distance1 = 0;
  3043. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  3044. int distance2 = 0;
  3045. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  3046. if (object.ReferenceEquals(root1, root2)) {
  3047. return (this._childFirst * distance1.CompareTo(distance2));
  3048. }
  3049. else {
  3050. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  3051. && (root2.Table != null)));
  3052. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  3053. return -1;
  3054. }
  3055. else {
  3056. return 1;
  3057. }
  3058. }
  3059. }
  3060. }
  3061. }
  3062. }
  3063. #pragma warning restore 1591