dsFrmSaleNoBilling.cs 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069
  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. [XmlRoot("dsFrmSaleNoBilling")]
  17. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  18. [XmlSchemaProvider("GetTypedDataSetSchema")]
  19. [HelpKeyword("vs.data.DataSet")]
  20. [DesignerCategory("code")]
  21. [ToolboxItem(true)]
  22. public class dsFrmSaleNoBilling : DataSet
  23. {
  24. public delegate void SaleBillDetailRowChangeEventHandler(object sender, SaleBillDetailRowChangeEvent e);
  25. [Serializable]
  26. [XmlSchemaProvider("GetTypedTableSchema")]
  27. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  28. public class SaleBillDetailDataTable : DataTable, IEnumerable
  29. {
  30. private DataColumn columnNo_Bill;
  31. private DataColumn columnDate;
  32. private DataColumn columnGetMethod_Bill;
  33. private DataColumn columnNo_Customer;
  34. private DataColumn columnShortName_Customer;
  35. private DataColumn columnNo_Product;
  36. private DataColumn columnName_Product;
  37. private DataColumn columnQuantity_SaleBillProduct;
  38. private DataColumn columnName_Bill;
  39. private DataColumn columnUnitPrice_SaleBillProduct;
  40. private DataColumn columnTaxCurrency_SaleBill;
  41. private DataColumn columnMoneyCurrency;
  42. private DataColumn columnTaxCurrency;
  43. [DebuggerNonUserCode]
  44. public DataColumn No_BillColumn => columnNo_Bill;
  45. [DebuggerNonUserCode]
  46. public DataColumn DateColumn => columnDate;
  47. [DebuggerNonUserCode]
  48. public DataColumn GetMethod_BillColumn => columnGetMethod_Bill;
  49. [DebuggerNonUserCode]
  50. public DataColumn No_CustomerColumn => columnNo_Customer;
  51. [DebuggerNonUserCode]
  52. public DataColumn ShortName_CustomerColumn => columnShortName_Customer;
  53. [DebuggerNonUserCode]
  54. public DataColumn No_ProductColumn => columnNo_Product;
  55. [DebuggerNonUserCode]
  56. public DataColumn Name_ProductColumn => columnName_Product;
  57. [DebuggerNonUserCode]
  58. public DataColumn Quantity_SaleBillProductColumn => columnQuantity_SaleBillProduct;
  59. [DebuggerNonUserCode]
  60. public DataColumn Name_BillColumn => columnName_Bill;
  61. [DebuggerNonUserCode]
  62. public DataColumn UnitPrice_SaleBillProductColumn => columnUnitPrice_SaleBillProduct;
  63. [DebuggerNonUserCode]
  64. public DataColumn TaxCurrency_SaleBillColumn => columnTaxCurrency_SaleBill;
  65. [DebuggerNonUserCode]
  66. public DataColumn MoneyCurrencyColumn => columnMoneyCurrency;
  67. [DebuggerNonUserCode]
  68. public DataColumn TaxCurrencyColumn => columnTaxCurrency;
  69. [Browsable(false)]
  70. [DebuggerNonUserCode]
  71. public int Count => base.Rows.Count;
  72. [DebuggerNonUserCode]
  73. public SaleBillDetailRow this[int index] => (SaleBillDetailRow)base.Rows[index];
  74. public event SaleBillDetailRowChangeEventHandler SaleBillDetailRowChanging;
  75. public event SaleBillDetailRowChangeEventHandler SaleBillDetailRowChanged;
  76. public event SaleBillDetailRowChangeEventHandler SaleBillDetailRowDeleting;
  77. public event SaleBillDetailRowChangeEventHandler SaleBillDetailRowDeleted;
  78. [DebuggerNonUserCode]
  79. public SaleBillDetailDataTable()
  80. {
  81. base.TableName = "SaleBillDetail";
  82. BeginInit();
  83. InitClass();
  84. EndInit();
  85. }
  86. [DebuggerNonUserCode]
  87. internal SaleBillDetailDataTable(DataTable table)
  88. {
  89. base.TableName = table.TableName;
  90. if (table.CaseSensitive != table.DataSet.CaseSensitive)
  91. {
  92. base.CaseSensitive = table.CaseSensitive;
  93. }
  94. if (table.Locale.ToString() != table.DataSet.Locale.ToString())
  95. {
  96. base.Locale = table.Locale;
  97. }
  98. if (table.Namespace != table.DataSet.Namespace)
  99. {
  100. base.Namespace = table.Namespace;
  101. }
  102. base.Prefix = table.Prefix;
  103. base.MinimumCapacity = table.MinimumCapacity;
  104. }
  105. [DebuggerNonUserCode]
  106. protected SaleBillDetailDataTable(SerializationInfo info, StreamingContext context)
  107. : base(info, context)
  108. {
  109. InitVars();
  110. }
  111. [DebuggerNonUserCode]
  112. public void AddSaleBillDetailRow(SaleBillDetailRow row)
  113. {
  114. base.Rows.Add(row);
  115. }
  116. [DebuggerNonUserCode]
  117. public SaleBillDetailRow AddSaleBillDetailRow(string No_Bill, DateTime Date, string GetMethod_Bill, string No_Customer, string ShortName_Customer, string No_Product, string Name_Product, decimal Quantity_SaleBillProduct, string Name_Bill, decimal UnitPrice_SaleBillProduct, string TaxCurrency_SaleBill, decimal MoneyCurrency, decimal TaxCurrency)
  118. {
  119. SaleBillDetailRow saleBillDetailRow = (SaleBillDetailRow)NewRow();
  120. object[] array2 = saleBillDetailRow.ItemArray = new object[13]
  121. {
  122. No_Bill,
  123. Date,
  124. GetMethod_Bill,
  125. No_Customer,
  126. ShortName_Customer,
  127. No_Product,
  128. Name_Product,
  129. Quantity_SaleBillProduct,
  130. Name_Bill,
  131. UnitPrice_SaleBillProduct,
  132. TaxCurrency_SaleBill,
  133. MoneyCurrency,
  134. TaxCurrency
  135. };
  136. base.Rows.Add(saleBillDetailRow);
  137. return saleBillDetailRow;
  138. }
  139. [DebuggerNonUserCode]
  140. public virtual IEnumerator GetEnumerator()
  141. {
  142. return base.Rows.GetEnumerator();
  143. }
  144. [DebuggerNonUserCode]
  145. public override DataTable Clone()
  146. {
  147. SaleBillDetailDataTable saleBillDetailDataTable = (SaleBillDetailDataTable)base.Clone();
  148. saleBillDetailDataTable.InitVars();
  149. return saleBillDetailDataTable;
  150. }
  151. [DebuggerNonUserCode]
  152. protected override DataTable CreateInstance()
  153. {
  154. return new SaleBillDetailDataTable();
  155. }
  156. [DebuggerNonUserCode]
  157. internal void InitVars()
  158. {
  159. columnNo_Bill = base.Columns["No_Bill"];
  160. columnDate = base.Columns["Date"];
  161. columnGetMethod_Bill = base.Columns["GetMethod_Bill"];
  162. columnNo_Customer = base.Columns["No_Customer"];
  163. columnShortName_Customer = base.Columns["ShortName_Customer"];
  164. columnNo_Product = base.Columns["No_Product"];
  165. columnName_Product = base.Columns["Name_Product"];
  166. columnQuantity_SaleBillProduct = base.Columns["Quantity_SaleBillProduct"];
  167. columnName_Bill = base.Columns["Name_Bill"];
  168. columnUnitPrice_SaleBillProduct = base.Columns["UnitPrice_SaleBillProduct"];
  169. columnTaxCurrency_SaleBill = base.Columns["TaxCurrency_SaleBill"];
  170. columnMoneyCurrency = base.Columns["MoneyCurrency"];
  171. columnTaxCurrency = base.Columns["TaxCurrency"];
  172. }
  173. [DebuggerNonUserCode]
  174. private void InitClass()
  175. {
  176. columnNo_Bill = new DataColumn("No_Bill", typeof(string), null, MappingType.Element);
  177. base.Columns.Add(columnNo_Bill);
  178. columnDate = new DataColumn("Date", typeof(DateTime), null, MappingType.Element);
  179. base.Columns.Add(columnDate);
  180. columnGetMethod_Bill = new DataColumn("GetMethod_Bill", typeof(string), null, MappingType.Element);
  181. base.Columns.Add(columnGetMethod_Bill);
  182. columnNo_Customer = new DataColumn("No_Customer", typeof(string), null, MappingType.Element);
  183. base.Columns.Add(columnNo_Customer);
  184. columnShortName_Customer = new DataColumn("ShortName_Customer", typeof(string), null, MappingType.Element);
  185. base.Columns.Add(columnShortName_Customer);
  186. columnNo_Product = new DataColumn("No_Product", typeof(string), null, MappingType.Element);
  187. base.Columns.Add(columnNo_Product);
  188. columnName_Product = new DataColumn("Name_Product", typeof(string), null, MappingType.Element);
  189. base.Columns.Add(columnName_Product);
  190. columnQuantity_SaleBillProduct = new DataColumn("Quantity_SaleBillProduct", typeof(decimal), null, MappingType.Element);
  191. base.Columns.Add(columnQuantity_SaleBillProduct);
  192. columnName_Bill = new DataColumn("Name_Bill", typeof(string), null, MappingType.Element);
  193. base.Columns.Add(columnName_Bill);
  194. columnUnitPrice_SaleBillProduct = new DataColumn("UnitPrice_SaleBillProduct", typeof(decimal), null, MappingType.Element);
  195. base.Columns.Add(columnUnitPrice_SaleBillProduct);
  196. columnTaxCurrency_SaleBill = new DataColumn("TaxCurrency_SaleBill", typeof(string), null, MappingType.Element);
  197. base.Columns.Add(columnTaxCurrency_SaleBill);
  198. columnMoneyCurrency = new DataColumn("MoneyCurrency", typeof(decimal), null, MappingType.Element);
  199. base.Columns.Add(columnMoneyCurrency);
  200. columnTaxCurrency = new DataColumn("TaxCurrency", typeof(decimal), null, MappingType.Element);
  201. base.Columns.Add(columnTaxCurrency);
  202. }
  203. [DebuggerNonUserCode]
  204. public SaleBillDetailRow NewSaleBillDetailRow()
  205. {
  206. return (SaleBillDetailRow)NewRow();
  207. }
  208. [DebuggerNonUserCode]
  209. protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
  210. {
  211. return new SaleBillDetailRow(builder);
  212. }
  213. [DebuggerNonUserCode]
  214. protected override Type GetRowType()
  215. {
  216. return typeof(SaleBillDetailRow);
  217. }
  218. [DebuggerNonUserCode]
  219. protected override void OnRowChanged(DataRowChangeEventArgs e)
  220. {
  221. base.OnRowChanged(e);
  222. if (this.SaleBillDetailRowChanged != null)
  223. {
  224. this.SaleBillDetailRowChanged(this, new SaleBillDetailRowChangeEvent((SaleBillDetailRow)e.Row, e.Action));
  225. }
  226. }
  227. [DebuggerNonUserCode]
  228. protected override void OnRowChanging(DataRowChangeEventArgs e)
  229. {
  230. base.OnRowChanging(e);
  231. if (this.SaleBillDetailRowChanging != null)
  232. {
  233. this.SaleBillDetailRowChanging(this, new SaleBillDetailRowChangeEvent((SaleBillDetailRow)e.Row, e.Action));
  234. }
  235. }
  236. [DebuggerNonUserCode]
  237. protected override void OnRowDeleted(DataRowChangeEventArgs e)
  238. {
  239. base.OnRowDeleted(e);
  240. if (this.SaleBillDetailRowDeleted != null)
  241. {
  242. this.SaleBillDetailRowDeleted(this, new SaleBillDetailRowChangeEvent((SaleBillDetailRow)e.Row, e.Action));
  243. }
  244. }
  245. [DebuggerNonUserCode]
  246. protected override void OnRowDeleting(DataRowChangeEventArgs e)
  247. {
  248. base.OnRowDeleting(e);
  249. if (this.SaleBillDetailRowDeleting != null)
  250. {
  251. this.SaleBillDetailRowDeleting(this, new SaleBillDetailRowChangeEvent((SaleBillDetailRow)e.Row, e.Action));
  252. }
  253. }
  254. [DebuggerNonUserCode]
  255. public void RemoveSaleBillDetailRow(SaleBillDetailRow row)
  256. {
  257. base.Rows.Remove(row);
  258. }
  259. [DebuggerNonUserCode]
  260. public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
  261. {
  262. XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
  263. XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
  264. dsFrmSaleNoBilling dsFrmSaleNoBilling = new dsFrmSaleNoBilling();
  265. XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
  266. xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema";
  267. xmlSchemaAny.MinOccurs = 0m;
  268. xmlSchemaAny.MaxOccurs = decimal.MaxValue;
  269. xmlSchemaAny.ProcessContents = XmlSchemaContentProcessing.Lax;
  270. xmlSchemaSequence.Items.Add(xmlSchemaAny);
  271. XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny();
  272. xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  273. xmlSchemaAny2.MinOccurs = 1m;
  274. xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax;
  275. xmlSchemaSequence.Items.Add(xmlSchemaAny2);
  276. XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute();
  277. xmlSchemaAttribute.Name = "namespace";
  278. xmlSchemaAttribute.FixedValue = dsFrmSaleNoBilling.Namespace;
  279. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
  280. XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
  281. xmlSchemaAttribute2.Name = "tableTypeName";
  282. xmlSchemaAttribute2.FixedValue = "SaleBillDetailDataTable";
  283. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
  284. xmlSchemaComplexType.Particle = xmlSchemaSequence;
  285. XmlSchema schemaSerializable = dsFrmSaleNoBilling.GetSchemaSerializable();
  286. if (xs.Contains(schemaSerializable.TargetNamespace))
  287. {
  288. MemoryStream memoryStream = new MemoryStream();
  289. MemoryStream memoryStream2 = new MemoryStream();
  290. try
  291. {
  292. XmlSchema xmlSchema = null;
  293. schemaSerializable.Write(memoryStream);
  294. IEnumerator enumerator = xs.Schemas(schemaSerializable.TargetNamespace).GetEnumerator();
  295. while (enumerator.MoveNext())
  296. {
  297. xmlSchema = (XmlSchema)enumerator.Current;
  298. memoryStream2.SetLength(0L);
  299. xmlSchema.Write(memoryStream2);
  300. if (memoryStream.Length == memoryStream2.Length)
  301. {
  302. memoryStream.Position = 0L;
  303. memoryStream2.Position = 0L;
  304. while (memoryStream.Position != memoryStream.Length && memoryStream.ReadByte() == memoryStream2.ReadByte())
  305. {
  306. }
  307. if (memoryStream.Position == memoryStream.Length)
  308. {
  309. return xmlSchemaComplexType;
  310. }
  311. }
  312. }
  313. }
  314. finally
  315. {
  316. memoryStream?.Close();
  317. memoryStream2?.Close();
  318. }
  319. }
  320. xs.Add(schemaSerializable);
  321. return xmlSchemaComplexType;
  322. }
  323. }
  324. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  325. public class SaleBillDetailRow : DataRow
  326. {
  327. private SaleBillDetailDataTable tableSaleBillDetail;
  328. [DebuggerNonUserCode]
  329. public string No_Bill
  330. {
  331. get
  332. {
  333. try
  334. {
  335. return (string)base[tableSaleBillDetail.No_BillColumn];
  336. }
  337. catch (InvalidCastException innerException)
  338. {
  339. throw new StrongTypingException("The value for column 'No_Bill' in table 'SaleBillDetail' is DBNull.", innerException);
  340. }
  341. }
  342. set
  343. {
  344. base[tableSaleBillDetail.No_BillColumn] = value;
  345. }
  346. }
  347. [DebuggerNonUserCode]
  348. public DateTime Date
  349. {
  350. get
  351. {
  352. try
  353. {
  354. return (DateTime)base[tableSaleBillDetail.DateColumn];
  355. }
  356. catch (InvalidCastException innerException)
  357. {
  358. throw new StrongTypingException("The value for column 'Date' in table 'SaleBillDetail' is DBNull.", innerException);
  359. }
  360. }
  361. set
  362. {
  363. base[tableSaleBillDetail.DateColumn] = value;
  364. }
  365. }
  366. [DebuggerNonUserCode]
  367. public string GetMethod_Bill
  368. {
  369. get
  370. {
  371. try
  372. {
  373. return (string)base[tableSaleBillDetail.GetMethod_BillColumn];
  374. }
  375. catch (InvalidCastException innerException)
  376. {
  377. throw new StrongTypingException("The value for column 'GetMethod_Bill' in table 'SaleBillDetail' is DBNull.", innerException);
  378. }
  379. }
  380. set
  381. {
  382. base[tableSaleBillDetail.GetMethod_BillColumn] = value;
  383. }
  384. }
  385. [DebuggerNonUserCode]
  386. public string No_Customer
  387. {
  388. get
  389. {
  390. try
  391. {
  392. return (string)base[tableSaleBillDetail.No_CustomerColumn];
  393. }
  394. catch (InvalidCastException innerException)
  395. {
  396. throw new StrongTypingException("The value for column 'No_Customer' in table 'SaleBillDetail' is DBNull.", innerException);
  397. }
  398. }
  399. set
  400. {
  401. base[tableSaleBillDetail.No_CustomerColumn] = value;
  402. }
  403. }
  404. [DebuggerNonUserCode]
  405. public string ShortName_Customer
  406. {
  407. get
  408. {
  409. try
  410. {
  411. return (string)base[tableSaleBillDetail.ShortName_CustomerColumn];
  412. }
  413. catch (InvalidCastException innerException)
  414. {
  415. throw new StrongTypingException("The value for column 'ShortName_Customer' in table 'SaleBillDetail' is DBNull.", innerException);
  416. }
  417. }
  418. set
  419. {
  420. base[tableSaleBillDetail.ShortName_CustomerColumn] = value;
  421. }
  422. }
  423. [DebuggerNonUserCode]
  424. public string No_Product
  425. {
  426. get
  427. {
  428. try
  429. {
  430. return (string)base[tableSaleBillDetail.No_ProductColumn];
  431. }
  432. catch (InvalidCastException innerException)
  433. {
  434. throw new StrongTypingException("The value for column 'No_Product' in table 'SaleBillDetail' is DBNull.", innerException);
  435. }
  436. }
  437. set
  438. {
  439. base[tableSaleBillDetail.No_ProductColumn] = value;
  440. }
  441. }
  442. [DebuggerNonUserCode]
  443. public string Name_Product
  444. {
  445. get
  446. {
  447. try
  448. {
  449. return (string)base[tableSaleBillDetail.Name_ProductColumn];
  450. }
  451. catch (InvalidCastException innerException)
  452. {
  453. throw new StrongTypingException("The value for column 'Name_Product' in table 'SaleBillDetail' is DBNull.", innerException);
  454. }
  455. }
  456. set
  457. {
  458. base[tableSaleBillDetail.Name_ProductColumn] = value;
  459. }
  460. }
  461. [DebuggerNonUserCode]
  462. public decimal Quantity_SaleBillProduct
  463. {
  464. get
  465. {
  466. try
  467. {
  468. return (decimal)base[tableSaleBillDetail.Quantity_SaleBillProductColumn];
  469. }
  470. catch (InvalidCastException innerException)
  471. {
  472. throw new StrongTypingException("The value for column 'Quantity_SaleBillProduct' in table 'SaleBillDetail' is DBNull.", innerException);
  473. }
  474. }
  475. set
  476. {
  477. base[tableSaleBillDetail.Quantity_SaleBillProductColumn] = value;
  478. }
  479. }
  480. [DebuggerNonUserCode]
  481. public string Name_Bill
  482. {
  483. get
  484. {
  485. try
  486. {
  487. return (string)base[tableSaleBillDetail.Name_BillColumn];
  488. }
  489. catch (InvalidCastException innerException)
  490. {
  491. throw new StrongTypingException("The value for column 'Name_Bill' in table 'SaleBillDetail' is DBNull.", innerException);
  492. }
  493. }
  494. set
  495. {
  496. base[tableSaleBillDetail.Name_BillColumn] = value;
  497. }
  498. }
  499. [DebuggerNonUserCode]
  500. public decimal UnitPrice_SaleBillProduct
  501. {
  502. get
  503. {
  504. try
  505. {
  506. return (decimal)base[tableSaleBillDetail.UnitPrice_SaleBillProductColumn];
  507. }
  508. catch (InvalidCastException innerException)
  509. {
  510. throw new StrongTypingException("The value for column 'UnitPrice_SaleBillProduct' in table 'SaleBillDetail' is DBNull.", innerException);
  511. }
  512. }
  513. set
  514. {
  515. base[tableSaleBillDetail.UnitPrice_SaleBillProductColumn] = value;
  516. }
  517. }
  518. [DebuggerNonUserCode]
  519. public string TaxCurrency_SaleBill
  520. {
  521. get
  522. {
  523. try
  524. {
  525. return (string)base[tableSaleBillDetail.TaxCurrency_SaleBillColumn];
  526. }
  527. catch (InvalidCastException innerException)
  528. {
  529. throw new StrongTypingException("The value for column 'TaxCurrency_SaleBill' in table 'SaleBillDetail' is DBNull.", innerException);
  530. }
  531. }
  532. set
  533. {
  534. base[tableSaleBillDetail.TaxCurrency_SaleBillColumn] = value;
  535. }
  536. }
  537. [DebuggerNonUserCode]
  538. public decimal MoneyCurrency
  539. {
  540. get
  541. {
  542. try
  543. {
  544. return (decimal)base[tableSaleBillDetail.MoneyCurrencyColumn];
  545. }
  546. catch (InvalidCastException innerException)
  547. {
  548. throw new StrongTypingException("The value for column 'MoneyCurrency' in table 'SaleBillDetail' is DBNull.", innerException);
  549. }
  550. }
  551. set
  552. {
  553. base[tableSaleBillDetail.MoneyCurrencyColumn] = value;
  554. }
  555. }
  556. [DebuggerNonUserCode]
  557. public decimal TaxCurrency
  558. {
  559. get
  560. {
  561. try
  562. {
  563. return (decimal)base[tableSaleBillDetail.TaxCurrencyColumn];
  564. }
  565. catch (InvalidCastException innerException)
  566. {
  567. throw new StrongTypingException("The value for column 'TaxCurrency' in table 'SaleBillDetail' is DBNull.", innerException);
  568. }
  569. }
  570. set
  571. {
  572. base[tableSaleBillDetail.TaxCurrencyColumn] = value;
  573. }
  574. }
  575. [DebuggerNonUserCode]
  576. internal SaleBillDetailRow(DataRowBuilder rb)
  577. : base(rb)
  578. {
  579. tableSaleBillDetail = (SaleBillDetailDataTable)base.Table;
  580. }
  581. [DebuggerNonUserCode]
  582. public bool IsNo_BillNull()
  583. {
  584. return IsNull(tableSaleBillDetail.No_BillColumn);
  585. }
  586. [DebuggerNonUserCode]
  587. public void SetNo_BillNull()
  588. {
  589. base[tableSaleBillDetail.No_BillColumn] = Convert.DBNull;
  590. }
  591. [DebuggerNonUserCode]
  592. public bool IsDateNull()
  593. {
  594. return IsNull(tableSaleBillDetail.DateColumn);
  595. }
  596. [DebuggerNonUserCode]
  597. public void SetDateNull()
  598. {
  599. base[tableSaleBillDetail.DateColumn] = Convert.DBNull;
  600. }
  601. [DebuggerNonUserCode]
  602. public bool IsGetMethod_BillNull()
  603. {
  604. return IsNull(tableSaleBillDetail.GetMethod_BillColumn);
  605. }
  606. [DebuggerNonUserCode]
  607. public void SetGetMethod_BillNull()
  608. {
  609. base[tableSaleBillDetail.GetMethod_BillColumn] = Convert.DBNull;
  610. }
  611. [DebuggerNonUserCode]
  612. public bool IsNo_CustomerNull()
  613. {
  614. return IsNull(tableSaleBillDetail.No_CustomerColumn);
  615. }
  616. [DebuggerNonUserCode]
  617. public void SetNo_CustomerNull()
  618. {
  619. base[tableSaleBillDetail.No_CustomerColumn] = Convert.DBNull;
  620. }
  621. [DebuggerNonUserCode]
  622. public bool IsShortName_CustomerNull()
  623. {
  624. return IsNull(tableSaleBillDetail.ShortName_CustomerColumn);
  625. }
  626. [DebuggerNonUserCode]
  627. public void SetShortName_CustomerNull()
  628. {
  629. base[tableSaleBillDetail.ShortName_CustomerColumn] = Convert.DBNull;
  630. }
  631. [DebuggerNonUserCode]
  632. public bool IsNo_ProductNull()
  633. {
  634. return IsNull(tableSaleBillDetail.No_ProductColumn);
  635. }
  636. [DebuggerNonUserCode]
  637. public void SetNo_ProductNull()
  638. {
  639. base[tableSaleBillDetail.No_ProductColumn] = Convert.DBNull;
  640. }
  641. [DebuggerNonUserCode]
  642. public bool IsName_ProductNull()
  643. {
  644. return IsNull(tableSaleBillDetail.Name_ProductColumn);
  645. }
  646. [DebuggerNonUserCode]
  647. public void SetName_ProductNull()
  648. {
  649. base[tableSaleBillDetail.Name_ProductColumn] = Convert.DBNull;
  650. }
  651. [DebuggerNonUserCode]
  652. public bool IsQuantity_SaleBillProductNull()
  653. {
  654. return IsNull(tableSaleBillDetail.Quantity_SaleBillProductColumn);
  655. }
  656. [DebuggerNonUserCode]
  657. public void SetQuantity_SaleBillProductNull()
  658. {
  659. base[tableSaleBillDetail.Quantity_SaleBillProductColumn] = Convert.DBNull;
  660. }
  661. [DebuggerNonUserCode]
  662. public bool IsName_BillNull()
  663. {
  664. return IsNull(tableSaleBillDetail.Name_BillColumn);
  665. }
  666. [DebuggerNonUserCode]
  667. public void SetName_BillNull()
  668. {
  669. base[tableSaleBillDetail.Name_BillColumn] = Convert.DBNull;
  670. }
  671. [DebuggerNonUserCode]
  672. public bool IsUnitPrice_SaleBillProductNull()
  673. {
  674. return IsNull(tableSaleBillDetail.UnitPrice_SaleBillProductColumn);
  675. }
  676. [DebuggerNonUserCode]
  677. public void SetUnitPrice_SaleBillProductNull()
  678. {
  679. base[tableSaleBillDetail.UnitPrice_SaleBillProductColumn] = Convert.DBNull;
  680. }
  681. [DebuggerNonUserCode]
  682. public bool IsTaxCurrency_SaleBillNull()
  683. {
  684. return IsNull(tableSaleBillDetail.TaxCurrency_SaleBillColumn);
  685. }
  686. [DebuggerNonUserCode]
  687. public void SetTaxCurrency_SaleBillNull()
  688. {
  689. base[tableSaleBillDetail.TaxCurrency_SaleBillColumn] = Convert.DBNull;
  690. }
  691. [DebuggerNonUserCode]
  692. public bool IsMoneyCurrencyNull()
  693. {
  694. return IsNull(tableSaleBillDetail.MoneyCurrencyColumn);
  695. }
  696. [DebuggerNonUserCode]
  697. public void SetMoneyCurrencyNull()
  698. {
  699. base[tableSaleBillDetail.MoneyCurrencyColumn] = Convert.DBNull;
  700. }
  701. [DebuggerNonUserCode]
  702. public bool IsTaxCurrencyNull()
  703. {
  704. return IsNull(tableSaleBillDetail.TaxCurrencyColumn);
  705. }
  706. [DebuggerNonUserCode]
  707. public void SetTaxCurrencyNull()
  708. {
  709. base[tableSaleBillDetail.TaxCurrencyColumn] = Convert.DBNull;
  710. }
  711. }
  712. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  713. public class SaleBillDetailRowChangeEvent : EventArgs
  714. {
  715. private SaleBillDetailRow eventRow;
  716. private DataRowAction eventAction;
  717. [DebuggerNonUserCode]
  718. public SaleBillDetailRow Row => eventRow;
  719. [DebuggerNonUserCode]
  720. public DataRowAction Action => eventAction;
  721. [DebuggerNonUserCode]
  722. public SaleBillDetailRowChangeEvent(SaleBillDetailRow row, DataRowAction action)
  723. {
  724. eventRow = row;
  725. eventAction = action;
  726. }
  727. }
  728. private SaleBillDetailDataTable tableSaleBillDetail;
  729. private SchemaSerializationMode _schemaSerializationMode = SchemaSerializationMode.IncludeSchema;
  730. [DebuggerNonUserCode]
  731. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  732. [Browsable(false)]
  733. public SaleBillDetailDataTable SaleBillDetail => tableSaleBillDetail;
  734. [Browsable(true)]
  735. [DebuggerNonUserCode]
  736. [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
  737. public override SchemaSerializationMode SchemaSerializationMode
  738. {
  739. get
  740. {
  741. return _schemaSerializationMode;
  742. }
  743. set
  744. {
  745. _schemaSerializationMode = value;
  746. }
  747. }
  748. [DebuggerNonUserCode]
  749. [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
  750. public new DataTableCollection Tables => base.Tables;
  751. [DebuggerNonUserCode]
  752. [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
  753. public new DataRelationCollection Relations => base.Relations;
  754. [DebuggerNonUserCode]
  755. public dsFrmSaleNoBilling()
  756. {
  757. BeginInit();
  758. InitClass();
  759. CollectionChangeEventHandler value = SchemaChanged;
  760. base.Tables.CollectionChanged += value;
  761. base.Relations.CollectionChanged += value;
  762. EndInit();
  763. }
  764. [DebuggerNonUserCode]
  765. protected dsFrmSaleNoBilling(SerializationInfo info, StreamingContext context)
  766. : base(info, context, ConstructSchema: false)
  767. {
  768. if (IsBinarySerialized(info, context))
  769. {
  770. InitVars(initTable: false);
  771. CollectionChangeEventHandler value = SchemaChanged;
  772. Tables.CollectionChanged += value;
  773. Relations.CollectionChanged += value;
  774. return;
  775. }
  776. string s = (string)info.GetValue("XmlSchema", typeof(string));
  777. if (DetermineSchemaSerializationMode(info, context) == SchemaSerializationMode.IncludeSchema)
  778. {
  779. DataSet dataSet = new DataSet();
  780. dataSet.ReadXmlSchema(new XmlTextReader(new StringReader(s)));
  781. if (dataSet.Tables["SaleBillDetail"] != null)
  782. {
  783. base.Tables.Add(new SaleBillDetailDataTable(dataSet.Tables["SaleBillDetail"]));
  784. }
  785. base.DataSetName = dataSet.DataSetName;
  786. base.Prefix = dataSet.Prefix;
  787. base.Namespace = dataSet.Namespace;
  788. base.Locale = dataSet.Locale;
  789. base.CaseSensitive = dataSet.CaseSensitive;
  790. base.EnforceConstraints = dataSet.EnforceConstraints;
  791. Merge(dataSet, preserveChanges: false, MissingSchemaAction.Add);
  792. InitVars();
  793. }
  794. else
  795. {
  796. ReadXmlSchema(new XmlTextReader(new StringReader(s)));
  797. }
  798. GetSerializationData(info, context);
  799. CollectionChangeEventHandler value2 = SchemaChanged;
  800. base.Tables.CollectionChanged += value2;
  801. Relations.CollectionChanged += value2;
  802. }
  803. [DebuggerNonUserCode]
  804. protected override void InitializeDerivedDataSet()
  805. {
  806. BeginInit();
  807. InitClass();
  808. EndInit();
  809. }
  810. [DebuggerNonUserCode]
  811. public override DataSet Clone()
  812. {
  813. dsFrmSaleNoBilling dsFrmSaleNoBilling = (dsFrmSaleNoBilling)base.Clone();
  814. dsFrmSaleNoBilling.InitVars();
  815. dsFrmSaleNoBilling.SchemaSerializationMode = SchemaSerializationMode;
  816. return dsFrmSaleNoBilling;
  817. }
  818. [DebuggerNonUserCode]
  819. protected override bool ShouldSerializeTables()
  820. {
  821. return false;
  822. }
  823. [DebuggerNonUserCode]
  824. protected override bool ShouldSerializeRelations()
  825. {
  826. return false;
  827. }
  828. [DebuggerNonUserCode]
  829. protected override void ReadXmlSerializable(XmlReader reader)
  830. {
  831. if (DetermineSchemaSerializationMode(reader) == SchemaSerializationMode.IncludeSchema)
  832. {
  833. Reset();
  834. DataSet dataSet = new DataSet();
  835. dataSet.ReadXml(reader);
  836. if (dataSet.Tables["SaleBillDetail"] != null)
  837. {
  838. base.Tables.Add(new SaleBillDetailDataTable(dataSet.Tables["SaleBillDetail"]));
  839. }
  840. base.DataSetName = dataSet.DataSetName;
  841. base.Prefix = dataSet.Prefix;
  842. base.Namespace = dataSet.Namespace;
  843. base.Locale = dataSet.Locale;
  844. base.CaseSensitive = dataSet.CaseSensitive;
  845. base.EnforceConstraints = dataSet.EnforceConstraints;
  846. Merge(dataSet, preserveChanges: false, MissingSchemaAction.Add);
  847. InitVars();
  848. }
  849. else
  850. {
  851. ReadXml(reader);
  852. InitVars();
  853. }
  854. }
  855. [DebuggerNonUserCode]
  856. protected override XmlSchema GetSchemaSerializable()
  857. {
  858. MemoryStream memoryStream = new MemoryStream();
  859. WriteXmlSchema(new XmlTextWriter(memoryStream, null));
  860. memoryStream.Position = 0L;
  861. return XmlSchema.Read(new XmlTextReader(memoryStream), null);
  862. }
  863. [DebuggerNonUserCode]
  864. internal void InitVars()
  865. {
  866. InitVars(initTable: true);
  867. }
  868. [DebuggerNonUserCode]
  869. internal void InitVars(bool initTable)
  870. {
  871. tableSaleBillDetail = (SaleBillDetailDataTable)base.Tables["SaleBillDetail"];
  872. if (initTable && tableSaleBillDetail != null)
  873. {
  874. tableSaleBillDetail.InitVars();
  875. }
  876. }
  877. [DebuggerNonUserCode]
  878. private void InitClass()
  879. {
  880. base.DataSetName = "dsFrmSaleNoBilling";
  881. base.Prefix = "";
  882. base.Namespace = "http://tempuri.org/dsFrmSaleNoBilling.xsd";
  883. base.EnforceConstraints = true;
  884. SchemaSerializationMode = SchemaSerializationMode.IncludeSchema;
  885. tableSaleBillDetail = new SaleBillDetailDataTable();
  886. base.Tables.Add(tableSaleBillDetail);
  887. }
  888. [DebuggerNonUserCode]
  889. private bool ShouldSerializeSaleBillDetail()
  890. {
  891. return false;
  892. }
  893. [DebuggerNonUserCode]
  894. private void SchemaChanged(object sender, CollectionChangeEventArgs e)
  895. {
  896. if (e.Action == CollectionChangeAction.Remove)
  897. {
  898. InitVars();
  899. }
  900. }
  901. [DebuggerNonUserCode]
  902. public static XmlSchemaComplexType GetTypedDataSetSchema(XmlSchemaSet xs)
  903. {
  904. dsFrmSaleNoBilling dsFrmSaleNoBilling = new dsFrmSaleNoBilling();
  905. XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
  906. XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
  907. XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
  908. xmlSchemaAny.Namespace = dsFrmSaleNoBilling.Namespace;
  909. xmlSchemaSequence.Items.Add(xmlSchemaAny);
  910. xmlSchemaComplexType.Particle = xmlSchemaSequence;
  911. XmlSchema schemaSerializable = dsFrmSaleNoBilling.GetSchemaSerializable();
  912. if (xs.Contains(schemaSerializable.TargetNamespace))
  913. {
  914. MemoryStream memoryStream = new MemoryStream();
  915. MemoryStream memoryStream2 = new MemoryStream();
  916. try
  917. {
  918. XmlSchema xmlSchema = null;
  919. schemaSerializable.Write(memoryStream);
  920. IEnumerator enumerator = xs.Schemas(schemaSerializable.TargetNamespace).GetEnumerator();
  921. while (enumerator.MoveNext())
  922. {
  923. xmlSchema = (XmlSchema)enumerator.Current;
  924. memoryStream2.SetLength(0L);
  925. xmlSchema.Write(memoryStream2);
  926. if (memoryStream.Length == memoryStream2.Length)
  927. {
  928. memoryStream.Position = 0L;
  929. memoryStream2.Position = 0L;
  930. while (memoryStream.Position != memoryStream.Length && memoryStream.ReadByte() == memoryStream2.ReadByte())
  931. {
  932. }
  933. if (memoryStream.Position == memoryStream.Length)
  934. {
  935. return xmlSchemaComplexType;
  936. }
  937. }
  938. }
  939. }
  940. finally
  941. {
  942. memoryStream?.Close();
  943. memoryStream2?.Close();
  944. }
  945. }
  946. xs.Add(schemaSerializable);
  947. return xmlSchemaComplexType;
  948. }
  949. }
  950. }