dsFrmSaleNoOutDepot.cs 24 KB

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