dsFrmIndentNoSale.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  1. using System;
  2. using System.CodeDom.Compiler;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.ComponentModel.Design;
  6. using System.Data;
  7. using System.Diagnostics;
  8. using System.IO;
  9. using System.Runtime.Serialization;
  10. using System.Xml;
  11. using System.Xml.Schema;
  12. using System.Xml.Serialization;
  13. namespace SunRoxm.BizPeri.ReportDataSet.ReportDataSet
  14. {
  15. [Serializable]
  16. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  17. [HelpKeyword("vs.data.DataSet")]
  18. [ToolboxItem(true)]
  19. [XmlRoot("dsFrmIndentNoSale")]
  20. [DesignerCategory("code")]
  21. [XmlSchemaProvider("GetTypedDataSetSchema")]
  22. public class dsFrmIndentNoSale : DataSet
  23. {
  24. public delegate void IndentBillNoSaleRowChangeEventHandler(object sender, IndentBillNoSaleRowChangeEvent e);
  25. [Serializable]
  26. [XmlSchemaProvider("GetTypedTableSchema")]
  27. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  28. public class IndentBillNoSaleDataTable : DataTable, IEnumerable
  29. {
  30. private DataColumn columnNo_IndentBill;
  31. private DataColumn columnDate_IndentBill;
  32. private DataColumn columnNo_Customer;
  33. private DataColumn columnShortName_Customer;
  34. private DataColumn columnNo_Product;
  35. private DataColumn columnName_Product;
  36. private DataColumn columnQuantity_IndentBillProduct;
  37. private DataColumn columnQuantity_Sale;
  38. [DebuggerNonUserCode]
  39. public DataColumn No_IndentBillColumn => columnNo_IndentBill;
  40. [DebuggerNonUserCode]
  41. public DataColumn Date_IndentBillColumn => columnDate_IndentBill;
  42. [DebuggerNonUserCode]
  43. public DataColumn No_CustomerColumn => columnNo_Customer;
  44. [DebuggerNonUserCode]
  45. public DataColumn ShortName_CustomerColumn => columnShortName_Customer;
  46. [DebuggerNonUserCode]
  47. public DataColumn No_ProductColumn => columnNo_Product;
  48. [DebuggerNonUserCode]
  49. public DataColumn Name_ProductColumn => columnName_Product;
  50. [DebuggerNonUserCode]
  51. public DataColumn Quantity_IndentBillProductColumn => columnQuantity_IndentBillProduct;
  52. [DebuggerNonUserCode]
  53. public DataColumn Quantity_SaleColumn => columnQuantity_Sale;
  54. [Browsable(false)]
  55. [DebuggerNonUserCode]
  56. public int Count => base.Rows.Count;
  57. [DebuggerNonUserCode]
  58. public IndentBillNoSaleRow this[int index] => (IndentBillNoSaleRow)base.Rows[index];
  59. public event IndentBillNoSaleRowChangeEventHandler IndentBillNoSaleRowChanging;
  60. public event IndentBillNoSaleRowChangeEventHandler IndentBillNoSaleRowChanged;
  61. public event IndentBillNoSaleRowChangeEventHandler IndentBillNoSaleRowDeleting;
  62. public event IndentBillNoSaleRowChangeEventHandler IndentBillNoSaleRowDeleted;
  63. [DebuggerNonUserCode]
  64. public IndentBillNoSaleDataTable()
  65. {
  66. base.TableName = "IndentBillNoSale";
  67. BeginInit();
  68. InitClass();
  69. EndInit();
  70. }
  71. [DebuggerNonUserCode]
  72. internal IndentBillNoSaleDataTable(DataTable table)
  73. {
  74. base.TableName = table.TableName;
  75. if (table.CaseSensitive != table.DataSet.CaseSensitive)
  76. {
  77. base.CaseSensitive = table.CaseSensitive;
  78. }
  79. if (table.Locale.ToString() != table.DataSet.Locale.ToString())
  80. {
  81. base.Locale = table.Locale;
  82. }
  83. if (table.Namespace != table.DataSet.Namespace)
  84. {
  85. base.Namespace = table.Namespace;
  86. }
  87. base.Prefix = table.Prefix;
  88. base.MinimumCapacity = table.MinimumCapacity;
  89. }
  90. [DebuggerNonUserCode]
  91. protected IndentBillNoSaleDataTable(SerializationInfo info, StreamingContext context)
  92. : base(info, context)
  93. {
  94. InitVars();
  95. }
  96. [DebuggerNonUserCode]
  97. public void AddIndentBillNoSaleRow(IndentBillNoSaleRow row)
  98. {
  99. base.Rows.Add(row);
  100. }
  101. [DebuggerNonUserCode]
  102. public IndentBillNoSaleRow AddIndentBillNoSaleRow(string No_IndentBill, DateTime Date_IndentBill, string No_Customer, string ShortName_Customer, string No_Product, string Name_Product, decimal Quantity_IndentBillProduct, decimal Quantity_Sale)
  103. {
  104. IndentBillNoSaleRow indentBillNoSaleRow = (IndentBillNoSaleRow)NewRow();
  105. indentBillNoSaleRow.ItemArray = new object[8]
  106. {
  107. No_IndentBill,
  108. Date_IndentBill,
  109. No_Customer,
  110. ShortName_Customer,
  111. No_Product,
  112. Name_Product,
  113. Quantity_IndentBillProduct,
  114. Quantity_Sale
  115. };
  116. base.Rows.Add(indentBillNoSaleRow);
  117. return indentBillNoSaleRow;
  118. }
  119. [DebuggerNonUserCode]
  120. public virtual IEnumerator GetEnumerator()
  121. {
  122. return base.Rows.GetEnumerator();
  123. }
  124. [DebuggerNonUserCode]
  125. public override DataTable Clone()
  126. {
  127. IndentBillNoSaleDataTable indentBillNoSaleDataTable = (IndentBillNoSaleDataTable)base.Clone();
  128. indentBillNoSaleDataTable.InitVars();
  129. return indentBillNoSaleDataTable;
  130. }
  131. [DebuggerNonUserCode]
  132. protected override DataTable CreateInstance()
  133. {
  134. return new IndentBillNoSaleDataTable();
  135. }
  136. [DebuggerNonUserCode]
  137. internal void InitVars()
  138. {
  139. columnNo_IndentBill = base.Columns["No_IndentBill"];
  140. columnDate_IndentBill = base.Columns["Date_IndentBill"];
  141. columnNo_Customer = base.Columns["No_Customer"];
  142. columnShortName_Customer = base.Columns["ShortName_Customer"];
  143. columnNo_Product = base.Columns["No_Product"];
  144. columnName_Product = base.Columns["Name_Product"];
  145. columnQuantity_IndentBillProduct = base.Columns["Quantity_IndentBillProduct"];
  146. columnQuantity_Sale = base.Columns["Quantity_Sale"];
  147. }
  148. [DebuggerNonUserCode]
  149. private void InitClass()
  150. {
  151. columnNo_IndentBill = new DataColumn("No_IndentBill", typeof(string), null, MappingType.Element);
  152. base.Columns.Add(columnNo_IndentBill);
  153. columnDate_IndentBill = new DataColumn("Date_IndentBill", typeof(DateTime), null, MappingType.Element);
  154. base.Columns.Add(columnDate_IndentBill);
  155. columnNo_Customer = new DataColumn("No_Customer", typeof(string), null, MappingType.Element);
  156. base.Columns.Add(columnNo_Customer);
  157. columnShortName_Customer = new DataColumn("ShortName_Customer", typeof(string), null, MappingType.Element);
  158. base.Columns.Add(columnShortName_Customer);
  159. columnNo_Product = new DataColumn("No_Product", typeof(string), null, MappingType.Element);
  160. base.Columns.Add(columnNo_Product);
  161. columnName_Product = new DataColumn("Name_Product", typeof(string), null, MappingType.Element);
  162. base.Columns.Add(columnName_Product);
  163. columnQuantity_IndentBillProduct = new DataColumn("Quantity_IndentBillProduct", typeof(decimal), null, MappingType.Element);
  164. base.Columns.Add(columnQuantity_IndentBillProduct);
  165. columnQuantity_Sale = new DataColumn("Quantity_Sale", typeof(decimal), null, MappingType.Element);
  166. base.Columns.Add(columnQuantity_Sale);
  167. }
  168. [DebuggerNonUserCode]
  169. public IndentBillNoSaleRow NewIndentBillNoSaleRow()
  170. {
  171. return (IndentBillNoSaleRow)NewRow();
  172. }
  173. [DebuggerNonUserCode]
  174. protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
  175. {
  176. return new IndentBillNoSaleRow(builder);
  177. }
  178. [DebuggerNonUserCode]
  179. protected override Type GetRowType()
  180. {
  181. return typeof(IndentBillNoSaleRow);
  182. }
  183. [DebuggerNonUserCode]
  184. protected override void OnRowChanged(DataRowChangeEventArgs e)
  185. {
  186. base.OnRowChanged(e);
  187. if (this.IndentBillNoSaleRowChanged != null)
  188. {
  189. this.IndentBillNoSaleRowChanged(this, new IndentBillNoSaleRowChangeEvent((IndentBillNoSaleRow)e.Row, e.Action));
  190. }
  191. }
  192. [DebuggerNonUserCode]
  193. protected override void OnRowChanging(DataRowChangeEventArgs e)
  194. {
  195. base.OnRowChanging(e);
  196. if (this.IndentBillNoSaleRowChanging != null)
  197. {
  198. this.IndentBillNoSaleRowChanging(this, new IndentBillNoSaleRowChangeEvent((IndentBillNoSaleRow)e.Row, e.Action));
  199. }
  200. }
  201. [DebuggerNonUserCode]
  202. protected override void OnRowDeleted(DataRowChangeEventArgs e)
  203. {
  204. base.OnRowDeleted(e);
  205. if (this.IndentBillNoSaleRowDeleted != null)
  206. {
  207. this.IndentBillNoSaleRowDeleted(this, new IndentBillNoSaleRowChangeEvent((IndentBillNoSaleRow)e.Row, e.Action));
  208. }
  209. }
  210. [DebuggerNonUserCode]
  211. protected override void OnRowDeleting(DataRowChangeEventArgs e)
  212. {
  213. base.OnRowDeleting(e);
  214. if (this.IndentBillNoSaleRowDeleting != null)
  215. {
  216. this.IndentBillNoSaleRowDeleting(this, new IndentBillNoSaleRowChangeEvent((IndentBillNoSaleRow)e.Row, e.Action));
  217. }
  218. }
  219. [DebuggerNonUserCode]
  220. public void RemoveIndentBillNoSaleRow(IndentBillNoSaleRow row)
  221. {
  222. base.Rows.Remove(row);
  223. }
  224. [DebuggerNonUserCode]
  225. public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
  226. {
  227. XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
  228. XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
  229. dsFrmIndentNoSale dsFrmIndentNoSale = new dsFrmIndentNoSale();
  230. xs.Add(dsFrmIndentNoSale.GetSchemaSerializable());
  231. XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
  232. xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema";
  233. xmlSchemaAny.MinOccurs = 0m;
  234. xmlSchemaAny.MaxOccurs = decimal.MaxValue;
  235. xmlSchemaAny.ProcessContents = XmlSchemaContentProcessing.Lax;
  236. xmlSchemaSequence.Items.Add(xmlSchemaAny);
  237. XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny();
  238. xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  239. xmlSchemaAny2.MinOccurs = 1m;
  240. xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax;
  241. xmlSchemaSequence.Items.Add(xmlSchemaAny2);
  242. XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute();
  243. xmlSchemaAttribute.Name = "namespace";
  244. xmlSchemaAttribute.FixedValue = dsFrmIndentNoSale.Namespace;
  245. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
  246. XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
  247. xmlSchemaAttribute2.Name = "tableTypeName";
  248. xmlSchemaAttribute2.FixedValue = "IndentBillNoSaleDataTable";
  249. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
  250. xmlSchemaComplexType.Particle = xmlSchemaSequence;
  251. return xmlSchemaComplexType;
  252. }
  253. }
  254. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  255. public class IndentBillNoSaleRow : DataRow
  256. {
  257. private IndentBillNoSaleDataTable tableIndentBillNoSale;
  258. [DebuggerNonUserCode]
  259. public string No_IndentBill
  260. {
  261. get
  262. {
  263. try
  264. {
  265. return (string)base[tableIndentBillNoSale.No_IndentBillColumn];
  266. }
  267. catch (InvalidCastException innerException)
  268. {
  269. throw new StrongTypingException("The value for column 'No_IndentBill' in table 'IndentBillNoSale' is DBNull.", innerException);
  270. }
  271. }
  272. set
  273. {
  274. base[tableIndentBillNoSale.No_IndentBillColumn] = value;
  275. }
  276. }
  277. [DebuggerNonUserCode]
  278. public DateTime Date_IndentBill
  279. {
  280. get
  281. {
  282. try
  283. {
  284. return (DateTime)base[tableIndentBillNoSale.Date_IndentBillColumn];
  285. }
  286. catch (InvalidCastException innerException)
  287. {
  288. throw new StrongTypingException("The value for column 'Date_IndentBill' in table 'IndentBillNoSale' is DBNull.", innerException);
  289. }
  290. }
  291. set
  292. {
  293. base[tableIndentBillNoSale.Date_IndentBillColumn] = value;
  294. }
  295. }
  296. [DebuggerNonUserCode]
  297. public string No_Customer
  298. {
  299. get
  300. {
  301. try
  302. {
  303. return (string)base[tableIndentBillNoSale.No_CustomerColumn];
  304. }
  305. catch (InvalidCastException innerException)
  306. {
  307. throw new StrongTypingException("The value for column 'No_Customer' in table 'IndentBillNoSale' is DBNull.", innerException);
  308. }
  309. }
  310. set
  311. {
  312. base[tableIndentBillNoSale.No_CustomerColumn] = value;
  313. }
  314. }
  315. [DebuggerNonUserCode]
  316. public string ShortName_Customer
  317. {
  318. get
  319. {
  320. try
  321. {
  322. return (string)base[tableIndentBillNoSale.ShortName_CustomerColumn];
  323. }
  324. catch (InvalidCastException innerException)
  325. {
  326. throw new StrongTypingException("The value for column 'ShortName_Customer' in table 'IndentBillNoSale' is DBNull.", innerException);
  327. }
  328. }
  329. set
  330. {
  331. base[tableIndentBillNoSale.ShortName_CustomerColumn] = value;
  332. }
  333. }
  334. [DebuggerNonUserCode]
  335. public string No_Product
  336. {
  337. get
  338. {
  339. try
  340. {
  341. return (string)base[tableIndentBillNoSale.No_ProductColumn];
  342. }
  343. catch (InvalidCastException innerException)
  344. {
  345. throw new StrongTypingException("The value for column 'No_Product' in table 'IndentBillNoSale' is DBNull.", innerException);
  346. }
  347. }
  348. set
  349. {
  350. base[tableIndentBillNoSale.No_ProductColumn] = value;
  351. }
  352. }
  353. [DebuggerNonUserCode]
  354. public string Name_Product
  355. {
  356. get
  357. {
  358. try
  359. {
  360. return (string)base[tableIndentBillNoSale.Name_ProductColumn];
  361. }
  362. catch (InvalidCastException innerException)
  363. {
  364. throw new StrongTypingException("The value for column 'Name_Product' in table 'IndentBillNoSale' is DBNull.", innerException);
  365. }
  366. }
  367. set
  368. {
  369. base[tableIndentBillNoSale.Name_ProductColumn] = value;
  370. }
  371. }
  372. [DebuggerNonUserCode]
  373. public decimal Quantity_IndentBillProduct
  374. {
  375. get
  376. {
  377. try
  378. {
  379. return (decimal)base[tableIndentBillNoSale.Quantity_IndentBillProductColumn];
  380. }
  381. catch (InvalidCastException innerException)
  382. {
  383. throw new StrongTypingException("The value for column 'Quantity_IndentBillProduct' in table 'IndentBillNoSale' is DBNull.", innerException);
  384. }
  385. }
  386. set
  387. {
  388. base[tableIndentBillNoSale.Quantity_IndentBillProductColumn] = value;
  389. }
  390. }
  391. [DebuggerNonUserCode]
  392. public decimal Quantity_Sale
  393. {
  394. get
  395. {
  396. try
  397. {
  398. return (decimal)base[tableIndentBillNoSale.Quantity_SaleColumn];
  399. }
  400. catch (InvalidCastException innerException)
  401. {
  402. throw new StrongTypingException("The value for column 'Quantity_Sale' in table 'IndentBillNoSale' is DBNull.", innerException);
  403. }
  404. }
  405. set
  406. {
  407. base[tableIndentBillNoSale.Quantity_SaleColumn] = value;
  408. }
  409. }
  410. [DebuggerNonUserCode]
  411. internal IndentBillNoSaleRow(DataRowBuilder rb)
  412. : base(rb)
  413. {
  414. tableIndentBillNoSale = (IndentBillNoSaleDataTable)base.Table;
  415. }
  416. [DebuggerNonUserCode]
  417. public bool IsNo_IndentBillNull()
  418. {
  419. return IsNull(tableIndentBillNoSale.No_IndentBillColumn);
  420. }
  421. [DebuggerNonUserCode]
  422. public void SetNo_IndentBillNull()
  423. {
  424. base[tableIndentBillNoSale.No_IndentBillColumn] = Convert.DBNull;
  425. }
  426. [DebuggerNonUserCode]
  427. public bool IsDate_IndentBillNull()
  428. {
  429. return IsNull(tableIndentBillNoSale.Date_IndentBillColumn);
  430. }
  431. [DebuggerNonUserCode]
  432. public void SetDate_IndentBillNull()
  433. {
  434. base[tableIndentBillNoSale.Date_IndentBillColumn] = Convert.DBNull;
  435. }
  436. [DebuggerNonUserCode]
  437. public bool IsNo_CustomerNull()
  438. {
  439. return IsNull(tableIndentBillNoSale.No_CustomerColumn);
  440. }
  441. [DebuggerNonUserCode]
  442. public void SetNo_CustomerNull()
  443. {
  444. base[tableIndentBillNoSale.No_CustomerColumn] = Convert.DBNull;
  445. }
  446. [DebuggerNonUserCode]
  447. public bool IsShortName_CustomerNull()
  448. {
  449. return IsNull(tableIndentBillNoSale.ShortName_CustomerColumn);
  450. }
  451. [DebuggerNonUserCode]
  452. public void SetShortName_CustomerNull()
  453. {
  454. base[tableIndentBillNoSale.ShortName_CustomerColumn] = Convert.DBNull;
  455. }
  456. [DebuggerNonUserCode]
  457. public bool IsNo_ProductNull()
  458. {
  459. return IsNull(tableIndentBillNoSale.No_ProductColumn);
  460. }
  461. [DebuggerNonUserCode]
  462. public void SetNo_ProductNull()
  463. {
  464. base[tableIndentBillNoSale.No_ProductColumn] = Convert.DBNull;
  465. }
  466. [DebuggerNonUserCode]
  467. public bool IsName_ProductNull()
  468. {
  469. return IsNull(tableIndentBillNoSale.Name_ProductColumn);
  470. }
  471. [DebuggerNonUserCode]
  472. public void SetName_ProductNull()
  473. {
  474. base[tableIndentBillNoSale.Name_ProductColumn] = Convert.DBNull;
  475. }
  476. [DebuggerNonUserCode]
  477. public bool IsQuantity_IndentBillProductNull()
  478. {
  479. return IsNull(tableIndentBillNoSale.Quantity_IndentBillProductColumn);
  480. }
  481. [DebuggerNonUserCode]
  482. public void SetQuantity_IndentBillProductNull()
  483. {
  484. base[tableIndentBillNoSale.Quantity_IndentBillProductColumn] = Convert.DBNull;
  485. }
  486. [DebuggerNonUserCode]
  487. public bool IsQuantity_SaleNull()
  488. {
  489. return IsNull(tableIndentBillNoSale.Quantity_SaleColumn);
  490. }
  491. [DebuggerNonUserCode]
  492. public void SetQuantity_SaleNull()
  493. {
  494. base[tableIndentBillNoSale.Quantity_SaleColumn] = Convert.DBNull;
  495. }
  496. }
  497. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  498. public class IndentBillNoSaleRowChangeEvent : EventArgs
  499. {
  500. private IndentBillNoSaleRow eventRow;
  501. private DataRowAction eventAction;
  502. [DebuggerNonUserCode]
  503. public IndentBillNoSaleRow Row => eventRow;
  504. [DebuggerNonUserCode]
  505. public DataRowAction Action => eventAction;
  506. [DebuggerNonUserCode]
  507. public IndentBillNoSaleRowChangeEvent(IndentBillNoSaleRow row, DataRowAction action)
  508. {
  509. eventRow = row;
  510. eventAction = action;
  511. }
  512. }
  513. private IndentBillNoSaleDataTable tableIndentBillNoSale;
  514. private SchemaSerializationMode _schemaSerializationMode = SchemaSerializationMode.IncludeSchema;
  515. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  516. [DebuggerNonUserCode]
  517. [Browsable(false)]
  518. public IndentBillNoSaleDataTable IndentBillNoSale => tableIndentBillNoSale;
  519. [Browsable(true)]
  520. [DebuggerNonUserCode]
  521. [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
  522. public override SchemaSerializationMode SchemaSerializationMode
  523. {
  524. get
  525. {
  526. return _schemaSerializationMode;
  527. }
  528. set
  529. {
  530. _schemaSerializationMode = value;
  531. }
  532. }
  533. [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
  534. [DebuggerNonUserCode]
  535. public new DataTableCollection Tables => base.Tables;
  536. [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
  537. [DebuggerNonUserCode]
  538. public new DataRelationCollection Relations => base.Relations;
  539. [DebuggerNonUserCode]
  540. public dsFrmIndentNoSale()
  541. {
  542. BeginInit();
  543. InitClass();
  544. CollectionChangeEventHandler value = SchemaChanged;
  545. base.Tables.CollectionChanged += value;
  546. base.Relations.CollectionChanged += value;
  547. EndInit();
  548. }
  549. [DebuggerNonUserCode]
  550. protected dsFrmIndentNoSale(SerializationInfo info, StreamingContext context)
  551. : base(info, context, ConstructSchema: false)
  552. {
  553. if (IsBinarySerialized(info, context))
  554. {
  555. InitVars(initTable: false);
  556. CollectionChangeEventHandler value = SchemaChanged;
  557. Tables.CollectionChanged += value;
  558. Relations.CollectionChanged += value;
  559. return;
  560. }
  561. string s = (string)info.GetValue("XmlSchema", typeof(string));
  562. if (DetermineSchemaSerializationMode(info, context) == SchemaSerializationMode.IncludeSchema)
  563. {
  564. DataSet dataSet = new DataSet();
  565. dataSet.ReadXmlSchema(new XmlTextReader(new StringReader(s)));
  566. if (dataSet.Tables["IndentBillNoSale"] != null)
  567. {
  568. base.Tables.Add(new IndentBillNoSaleDataTable(dataSet.Tables["IndentBillNoSale"]));
  569. }
  570. base.DataSetName = dataSet.DataSetName;
  571. base.Prefix = dataSet.Prefix;
  572. base.Namespace = dataSet.Namespace;
  573. base.Locale = dataSet.Locale;
  574. base.CaseSensitive = dataSet.CaseSensitive;
  575. base.EnforceConstraints = dataSet.EnforceConstraints;
  576. Merge(dataSet, preserveChanges: false, MissingSchemaAction.Add);
  577. InitVars();
  578. }
  579. else
  580. {
  581. ReadXmlSchema(new XmlTextReader(new StringReader(s)));
  582. }
  583. GetSerializationData(info, context);
  584. CollectionChangeEventHandler value2 = SchemaChanged;
  585. base.Tables.CollectionChanged += value2;
  586. Relations.CollectionChanged += value2;
  587. }
  588. [DebuggerNonUserCode]
  589. protected override void InitializeDerivedDataSet()
  590. {
  591. BeginInit();
  592. InitClass();
  593. EndInit();
  594. }
  595. [DebuggerNonUserCode]
  596. public override DataSet Clone()
  597. {
  598. dsFrmIndentNoSale dsFrmIndentNoSale = (dsFrmIndentNoSale)base.Clone();
  599. dsFrmIndentNoSale.InitVars();
  600. dsFrmIndentNoSale.SchemaSerializationMode = SchemaSerializationMode;
  601. return dsFrmIndentNoSale;
  602. }
  603. [DebuggerNonUserCode]
  604. protected override bool ShouldSerializeTables()
  605. {
  606. return false;
  607. }
  608. [DebuggerNonUserCode]
  609. protected override bool ShouldSerializeRelations()
  610. {
  611. return false;
  612. }
  613. [DebuggerNonUserCode]
  614. protected override void ReadXmlSerializable(XmlReader reader)
  615. {
  616. if (DetermineSchemaSerializationMode(reader) == SchemaSerializationMode.IncludeSchema)
  617. {
  618. Reset();
  619. DataSet dataSet = new DataSet();
  620. dataSet.ReadXml(reader);
  621. if (dataSet.Tables["IndentBillNoSale"] != null)
  622. {
  623. base.Tables.Add(new IndentBillNoSaleDataTable(dataSet.Tables["IndentBillNoSale"]));
  624. }
  625. base.DataSetName = dataSet.DataSetName;
  626. base.Prefix = dataSet.Prefix;
  627. base.Namespace = dataSet.Namespace;
  628. base.Locale = dataSet.Locale;
  629. base.CaseSensitive = dataSet.CaseSensitive;
  630. base.EnforceConstraints = dataSet.EnforceConstraints;
  631. Merge(dataSet, preserveChanges: false, MissingSchemaAction.Add);
  632. InitVars();
  633. }
  634. else
  635. {
  636. ReadXml(reader);
  637. InitVars();
  638. }
  639. }
  640. [DebuggerNonUserCode]
  641. protected override XmlSchema GetSchemaSerializable()
  642. {
  643. MemoryStream memoryStream = new MemoryStream();
  644. WriteXmlSchema(new XmlTextWriter(memoryStream, null));
  645. memoryStream.Position = 0L;
  646. return XmlSchema.Read(new XmlTextReader(memoryStream), null);
  647. }
  648. [DebuggerNonUserCode]
  649. internal void InitVars()
  650. {
  651. InitVars(initTable: true);
  652. }
  653. [DebuggerNonUserCode]
  654. internal void InitVars(bool initTable)
  655. {
  656. tableIndentBillNoSale = (IndentBillNoSaleDataTable)base.Tables["IndentBillNoSale"];
  657. if (initTable && tableIndentBillNoSale != null)
  658. {
  659. tableIndentBillNoSale.InitVars();
  660. }
  661. }
  662. [DebuggerNonUserCode]
  663. private void InitClass()
  664. {
  665. base.DataSetName = "dsFrmIndentNoSale";
  666. base.Prefix = "";
  667. base.Namespace = "http://tempuri.org/dsFrmIndentNoSale.xsd";
  668. base.EnforceConstraints = true;
  669. SchemaSerializationMode = SchemaSerializationMode.IncludeSchema;
  670. tableIndentBillNoSale = new IndentBillNoSaleDataTable();
  671. base.Tables.Add(tableIndentBillNoSale);
  672. }
  673. [DebuggerNonUserCode]
  674. private bool ShouldSerializeIndentBillNoSale()
  675. {
  676. return false;
  677. }
  678. [DebuggerNonUserCode]
  679. private void SchemaChanged(object sender, CollectionChangeEventArgs e)
  680. {
  681. if (e.Action == CollectionChangeAction.Remove)
  682. {
  683. InitVars();
  684. }
  685. }
  686. [DebuggerNonUserCode]
  687. public static XmlSchemaComplexType GetTypedDataSetSchema(XmlSchemaSet xs)
  688. {
  689. dsFrmIndentNoSale dsFrmIndentNoSale = new dsFrmIndentNoSale();
  690. XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
  691. XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
  692. xs.Add(dsFrmIndentNoSale.GetSchemaSerializable());
  693. XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
  694. xmlSchemaAny.Namespace = dsFrmIndentNoSale.Namespace;
  695. xmlSchemaSequence.Items.Add(xmlSchemaAny);
  696. xmlSchemaComplexType.Particle = xmlSchemaSequence;
  697. return xmlSchemaComplexType;
  698. }
  699. }
  700. }