dsFrmReceivables.cs 31 KB

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