dsFrmSaleConsignment.cs 25 KB

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