dsFrmSaleContract.cs 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441
  1. using System;
  2. using System.CodeDom.Compiler;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.ComponentModel.Design;
  6. using System.Data;
  7. using System.Diagnostics;
  8. using System.IO;
  9. using System.Runtime.Serialization;
  10. using System.Xml;
  11. using System.Xml.Schema;
  12. using System.Xml.Serialization;
  13. namespace SunRoxm.BizPeri.ReportDataSet.ReportDataSet
  14. {
  15. [Serializable]
  16. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  17. [HelpKeyword("vs.data.DataSet")]
  18. [DesignerCategory("code")]
  19. [ToolboxItem(true)]
  20. [XmlSchemaProvider("GetTypedDataSetSchema")]
  21. [XmlRoot("dsFrmSaleContract")]
  22. public class dsFrmSaleContract : DataSet
  23. {
  24. public delegate void SaleBillRowChangeEventHandler(object sender, SaleBillRowChangeEvent e);
  25. public delegate void CessOutRowChangeEventHandler(object sender, CessOutRowChangeEvent e);
  26. public delegate void CompanyRowChangeEventHandler(object sender, CompanyRowChangeEvent e);
  27. public delegate void CustomerInfoRowChangeEventHandler(object sender, CustomerInfoRowChangeEvent e);
  28. [Serializable]
  29. [XmlSchemaProvider("GetTypedTableSchema")]
  30. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  31. public class SaleBillDataTable : DataTable, IEnumerable
  32. {
  33. private DataColumn columnName_Customer;
  34. private DataColumn columnNo_Telephone;
  35. private DataColumn columnRevenueRegisterNo_Customer;
  36. private DataColumn columnBank_Customer;
  37. private DataColumn columnAccount_Customer;
  38. private DataColumn columnSendAddr_Customer;
  39. private DataColumn columnAddress_Invoice;
  40. private DataColumn columnNo_SaleBill;
  41. private DataColumn columnTaxCurrency_SaleBill;
  42. private DataColumn columnQuantity_SaleBillProduct;
  43. private DataColumn columnUnitPrice_SaleBillProduct;
  44. private DataColumn columnTaxCurrency;
  45. private DataColumn columnNo_Product;
  46. private DataColumn columnName_Product;
  47. private DataColumn columnDate_SaleBill;
  48. private DataColumn columnMoneyCurrency;
  49. private DataColumn columnTitle_Invoice;
  50. private DataColumn columnNo_Customer;
  51. private DataColumn columnNo_Fax;
  52. [DebuggerNonUserCode]
  53. public DataColumn Name_CustomerColumn => columnName_Customer;
  54. [DebuggerNonUserCode]
  55. public DataColumn No_TelephoneColumn => columnNo_Telephone;
  56. [DebuggerNonUserCode]
  57. public DataColumn RevenueRegisterNo_CustomerColumn => columnRevenueRegisterNo_Customer;
  58. [DebuggerNonUserCode]
  59. public DataColumn Bank_CustomerColumn => columnBank_Customer;
  60. [DebuggerNonUserCode]
  61. public DataColumn Account_CustomerColumn => columnAccount_Customer;
  62. [DebuggerNonUserCode]
  63. public DataColumn SendAddr_CustomerColumn => columnSendAddr_Customer;
  64. [DebuggerNonUserCode]
  65. public DataColumn Address_InvoiceColumn => columnAddress_Invoice;
  66. [DebuggerNonUserCode]
  67. public DataColumn No_SaleBillColumn => columnNo_SaleBill;
  68. [DebuggerNonUserCode]
  69. public DataColumn TaxCurrency_SaleBillColumn => columnTaxCurrency_SaleBill;
  70. [DebuggerNonUserCode]
  71. public DataColumn Quantity_SaleBillProductColumn => columnQuantity_SaleBillProduct;
  72. [DebuggerNonUserCode]
  73. public DataColumn UnitPrice_SaleBillProductColumn => columnUnitPrice_SaleBillProduct;
  74. [DebuggerNonUserCode]
  75. public DataColumn TaxCurrencyColumn => columnTaxCurrency;
  76. [DebuggerNonUserCode]
  77. public DataColumn No_ProductColumn => columnNo_Product;
  78. [DebuggerNonUserCode]
  79. public DataColumn Name_ProductColumn => columnName_Product;
  80. [DebuggerNonUserCode]
  81. public DataColumn Date_SaleBillColumn => columnDate_SaleBill;
  82. [DebuggerNonUserCode]
  83. public DataColumn MoneyCurrencyColumn => columnMoneyCurrency;
  84. [DebuggerNonUserCode]
  85. public DataColumn Title_InvoiceColumn => columnTitle_Invoice;
  86. [DebuggerNonUserCode]
  87. public DataColumn No_CustomerColumn => columnNo_Customer;
  88. [DebuggerNonUserCode]
  89. public DataColumn No_FaxColumn => columnNo_Fax;
  90. [Browsable(false)]
  91. [DebuggerNonUserCode]
  92. public int Count => base.Rows.Count;
  93. [DebuggerNonUserCode]
  94. public SaleBillRow this[int index] => (SaleBillRow)base.Rows[index];
  95. public event SaleBillRowChangeEventHandler SaleBillRowChanging;
  96. public event SaleBillRowChangeEventHandler SaleBillRowChanged;
  97. public event SaleBillRowChangeEventHandler SaleBillRowDeleting;
  98. public event SaleBillRowChangeEventHandler SaleBillRowDeleted;
  99. [DebuggerNonUserCode]
  100. public SaleBillDataTable()
  101. {
  102. base.TableName = "SaleBill";
  103. BeginInit();
  104. InitClass();
  105. EndInit();
  106. }
  107. [DebuggerNonUserCode]
  108. internal SaleBillDataTable(DataTable table)
  109. {
  110. base.TableName = table.TableName;
  111. if (table.CaseSensitive != table.DataSet.CaseSensitive)
  112. {
  113. base.CaseSensitive = table.CaseSensitive;
  114. }
  115. if (table.Locale.ToString() != table.DataSet.Locale.ToString())
  116. {
  117. base.Locale = table.Locale;
  118. }
  119. if (table.Namespace != table.DataSet.Namespace)
  120. {
  121. base.Namespace = table.Namespace;
  122. }
  123. base.Prefix = table.Prefix;
  124. base.MinimumCapacity = table.MinimumCapacity;
  125. }
  126. [DebuggerNonUserCode]
  127. protected SaleBillDataTable(SerializationInfo info, StreamingContext context)
  128. : base(info, context)
  129. {
  130. InitVars();
  131. }
  132. [DebuggerNonUserCode]
  133. public void AddSaleBillRow(SaleBillRow row)
  134. {
  135. base.Rows.Add(row);
  136. }
  137. [DebuggerNonUserCode]
  138. public SaleBillRow AddSaleBillRow(string Name_Customer, string No_Telephone, string RevenueRegisterNo_Customer, string Bank_Customer, string Account_Customer, string SendAddr_Customer, string Address_Invoice, string No_SaleBill, string TaxCurrency_SaleBill, decimal Quantity_SaleBillProduct, decimal UnitPrice_SaleBillProduct, decimal TaxCurrency, string No_Product, string Name_Product, DateTime Date_SaleBill, decimal MoneyCurrency, string Title_Invoice, string No_Customer, string No_Fax)
  139. {
  140. SaleBillRow saleBillRow = (SaleBillRow)NewRow();
  141. saleBillRow.ItemArray = new object[19]
  142. {
  143. Name_Customer,
  144. No_Telephone,
  145. RevenueRegisterNo_Customer,
  146. Bank_Customer,
  147. Account_Customer,
  148. SendAddr_Customer,
  149. Address_Invoice,
  150. No_SaleBill,
  151. TaxCurrency_SaleBill,
  152. Quantity_SaleBillProduct,
  153. UnitPrice_SaleBillProduct,
  154. TaxCurrency,
  155. No_Product,
  156. Name_Product,
  157. Date_SaleBill,
  158. MoneyCurrency,
  159. Title_Invoice,
  160. No_Customer,
  161. No_Fax
  162. };
  163. base.Rows.Add(saleBillRow);
  164. return saleBillRow;
  165. }
  166. [DebuggerNonUserCode]
  167. public virtual IEnumerator GetEnumerator()
  168. {
  169. return base.Rows.GetEnumerator();
  170. }
  171. [DebuggerNonUserCode]
  172. public override DataTable Clone()
  173. {
  174. SaleBillDataTable saleBillDataTable = (SaleBillDataTable)base.Clone();
  175. saleBillDataTable.InitVars();
  176. return saleBillDataTable;
  177. }
  178. [DebuggerNonUserCode]
  179. protected override DataTable CreateInstance()
  180. {
  181. return new SaleBillDataTable();
  182. }
  183. [DebuggerNonUserCode]
  184. internal void InitVars()
  185. {
  186. columnName_Customer = base.Columns["Name_Customer"];
  187. columnNo_Telephone = base.Columns["No_Telephone"];
  188. columnRevenueRegisterNo_Customer = base.Columns["RevenueRegisterNo_Customer"];
  189. columnBank_Customer = base.Columns["Bank_Customer"];
  190. columnAccount_Customer = base.Columns["Account_Customer"];
  191. columnSendAddr_Customer = base.Columns["SendAddr_Customer"];
  192. columnAddress_Invoice = base.Columns["Address_Invoice"];
  193. columnNo_SaleBill = base.Columns["No_SaleBill"];
  194. columnTaxCurrency_SaleBill = base.Columns["TaxCurrency_SaleBill"];
  195. columnQuantity_SaleBillProduct = base.Columns["Quantity_SaleBillProduct"];
  196. columnUnitPrice_SaleBillProduct = base.Columns["UnitPrice_SaleBillProduct"];
  197. columnTaxCurrency = base.Columns["TaxCurrency"];
  198. columnNo_Product = base.Columns["No_Product"];
  199. columnName_Product = base.Columns["Name_Product"];
  200. columnDate_SaleBill = base.Columns["Date_SaleBill"];
  201. columnMoneyCurrency = base.Columns["MoneyCurrency"];
  202. columnTitle_Invoice = base.Columns["Title_Invoice"];
  203. columnNo_Customer = base.Columns["No_Customer"];
  204. columnNo_Fax = base.Columns["No_Fax"];
  205. }
  206. [DebuggerNonUserCode]
  207. private void InitClass()
  208. {
  209. columnName_Customer = new DataColumn("Name_Customer", typeof(string), null, MappingType.Element);
  210. base.Columns.Add(columnName_Customer);
  211. columnNo_Telephone = new DataColumn("No_Telephone", typeof(string), null, MappingType.Element);
  212. base.Columns.Add(columnNo_Telephone);
  213. columnRevenueRegisterNo_Customer = new DataColumn("RevenueRegisterNo_Customer", typeof(string), null, MappingType.Element);
  214. base.Columns.Add(columnRevenueRegisterNo_Customer);
  215. columnBank_Customer = new DataColumn("Bank_Customer", typeof(string), null, MappingType.Element);
  216. base.Columns.Add(columnBank_Customer);
  217. columnAccount_Customer = new DataColumn("Account_Customer", typeof(string), null, MappingType.Element);
  218. base.Columns.Add(columnAccount_Customer);
  219. columnSendAddr_Customer = new DataColumn("SendAddr_Customer", typeof(string), null, MappingType.Element);
  220. base.Columns.Add(columnSendAddr_Customer);
  221. columnAddress_Invoice = new DataColumn("Address_Invoice", typeof(string), null, MappingType.Element);
  222. base.Columns.Add(columnAddress_Invoice);
  223. columnNo_SaleBill = new DataColumn("No_SaleBill", typeof(string), null, MappingType.Element);
  224. base.Columns.Add(columnNo_SaleBill);
  225. columnTaxCurrency_SaleBill = new DataColumn("TaxCurrency_SaleBill", typeof(string), null, MappingType.Element);
  226. base.Columns.Add(columnTaxCurrency_SaleBill);
  227. columnQuantity_SaleBillProduct = new DataColumn("Quantity_SaleBillProduct", typeof(decimal), null, MappingType.Element);
  228. base.Columns.Add(columnQuantity_SaleBillProduct);
  229. columnUnitPrice_SaleBillProduct = new DataColumn("UnitPrice_SaleBillProduct", typeof(decimal), null, MappingType.Element);
  230. base.Columns.Add(columnUnitPrice_SaleBillProduct);
  231. columnTaxCurrency = new DataColumn("TaxCurrency", typeof(decimal), null, MappingType.Element);
  232. base.Columns.Add(columnTaxCurrency);
  233. columnNo_Product = new DataColumn("No_Product", typeof(string), null, MappingType.Element);
  234. base.Columns.Add(columnNo_Product);
  235. columnName_Product = new DataColumn("Name_Product", typeof(string), null, MappingType.Element);
  236. base.Columns.Add(columnName_Product);
  237. columnDate_SaleBill = new DataColumn("Date_SaleBill", typeof(DateTime), null, MappingType.Element);
  238. base.Columns.Add(columnDate_SaleBill);
  239. columnMoneyCurrency = new DataColumn("MoneyCurrency", typeof(decimal), null, MappingType.Element);
  240. base.Columns.Add(columnMoneyCurrency);
  241. columnTitle_Invoice = new DataColumn("Title_Invoice", typeof(string), null, MappingType.Element);
  242. base.Columns.Add(columnTitle_Invoice);
  243. columnNo_Customer = new DataColumn("No_Customer", typeof(string), null, MappingType.Element);
  244. base.Columns.Add(columnNo_Customer);
  245. columnNo_Fax = new DataColumn("No_Fax", typeof(string), null, MappingType.Element);
  246. base.Columns.Add(columnNo_Fax);
  247. }
  248. [DebuggerNonUserCode]
  249. public SaleBillRow NewSaleBillRow()
  250. {
  251. return (SaleBillRow)NewRow();
  252. }
  253. [DebuggerNonUserCode]
  254. protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
  255. {
  256. return new SaleBillRow(builder);
  257. }
  258. [DebuggerNonUserCode]
  259. protected override Type GetRowType()
  260. {
  261. return typeof(SaleBillRow);
  262. }
  263. [DebuggerNonUserCode]
  264. protected override void OnRowChanged(DataRowChangeEventArgs e)
  265. {
  266. base.OnRowChanged(e);
  267. if (this.SaleBillRowChanged != null)
  268. {
  269. this.SaleBillRowChanged(this, new SaleBillRowChangeEvent((SaleBillRow)e.Row, e.Action));
  270. }
  271. }
  272. [DebuggerNonUserCode]
  273. protected override void OnRowChanging(DataRowChangeEventArgs e)
  274. {
  275. base.OnRowChanging(e);
  276. if (this.SaleBillRowChanging != null)
  277. {
  278. this.SaleBillRowChanging(this, new SaleBillRowChangeEvent((SaleBillRow)e.Row, e.Action));
  279. }
  280. }
  281. [DebuggerNonUserCode]
  282. protected override void OnRowDeleted(DataRowChangeEventArgs e)
  283. {
  284. base.OnRowDeleted(e);
  285. if (this.SaleBillRowDeleted != null)
  286. {
  287. this.SaleBillRowDeleted(this, new SaleBillRowChangeEvent((SaleBillRow)e.Row, e.Action));
  288. }
  289. }
  290. [DebuggerNonUserCode]
  291. protected override void OnRowDeleting(DataRowChangeEventArgs e)
  292. {
  293. base.OnRowDeleting(e);
  294. if (this.SaleBillRowDeleting != null)
  295. {
  296. this.SaleBillRowDeleting(this, new SaleBillRowChangeEvent((SaleBillRow)e.Row, e.Action));
  297. }
  298. }
  299. [DebuggerNonUserCode]
  300. public void RemoveSaleBillRow(SaleBillRow row)
  301. {
  302. base.Rows.Remove(row);
  303. }
  304. [DebuggerNonUserCode]
  305. public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
  306. {
  307. XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
  308. XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
  309. dsFrmSaleContract dsFrmSaleContract = new dsFrmSaleContract();
  310. xs.Add(dsFrmSaleContract.GetSchemaSerializable());
  311. XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
  312. xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema";
  313. xmlSchemaAny.MinOccurs = 0m;
  314. xmlSchemaAny.MaxOccurs = decimal.MaxValue;
  315. xmlSchemaAny.ProcessContents = XmlSchemaContentProcessing.Lax;
  316. xmlSchemaSequence.Items.Add(xmlSchemaAny);
  317. XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny();
  318. xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  319. xmlSchemaAny2.MinOccurs = 1m;
  320. xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax;
  321. xmlSchemaSequence.Items.Add(xmlSchemaAny2);
  322. XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute();
  323. xmlSchemaAttribute.Name = "namespace";
  324. xmlSchemaAttribute.FixedValue = dsFrmSaleContract.Namespace;
  325. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
  326. XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
  327. xmlSchemaAttribute2.Name = "tableTypeName";
  328. xmlSchemaAttribute2.FixedValue = "SaleBillDataTable";
  329. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
  330. xmlSchemaComplexType.Particle = xmlSchemaSequence;
  331. return xmlSchemaComplexType;
  332. }
  333. }
  334. [Serializable]
  335. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  336. [XmlSchemaProvider("GetTypedTableSchema")]
  337. public class CessOutDataTable : DataTable, IEnumerable
  338. {
  339. private DataColumn columnCessOut_SystemSetting;
  340. [DebuggerNonUserCode]
  341. public DataColumn CessOut_SystemSettingColumn => columnCessOut_SystemSetting;
  342. [DebuggerNonUserCode]
  343. [Browsable(false)]
  344. public int Count => base.Rows.Count;
  345. [DebuggerNonUserCode]
  346. public CessOutRow this[int index] => (CessOutRow)base.Rows[index];
  347. public event CessOutRowChangeEventHandler CessOutRowChanging;
  348. public event CessOutRowChangeEventHandler CessOutRowChanged;
  349. public event CessOutRowChangeEventHandler CessOutRowDeleting;
  350. public event CessOutRowChangeEventHandler CessOutRowDeleted;
  351. [DebuggerNonUserCode]
  352. public CessOutDataTable()
  353. {
  354. base.TableName = "CessOut";
  355. BeginInit();
  356. InitClass();
  357. EndInit();
  358. }
  359. [DebuggerNonUserCode]
  360. internal CessOutDataTable(DataTable table)
  361. {
  362. base.TableName = table.TableName;
  363. if (table.CaseSensitive != table.DataSet.CaseSensitive)
  364. {
  365. base.CaseSensitive = table.CaseSensitive;
  366. }
  367. if (table.Locale.ToString() != table.DataSet.Locale.ToString())
  368. {
  369. base.Locale = table.Locale;
  370. }
  371. if (table.Namespace != table.DataSet.Namespace)
  372. {
  373. base.Namespace = table.Namespace;
  374. }
  375. base.Prefix = table.Prefix;
  376. base.MinimumCapacity = table.MinimumCapacity;
  377. }
  378. [DebuggerNonUserCode]
  379. protected CessOutDataTable(SerializationInfo info, StreamingContext context)
  380. : base(info, context)
  381. {
  382. InitVars();
  383. }
  384. [DebuggerNonUserCode]
  385. public void AddCessOutRow(CessOutRow row)
  386. {
  387. base.Rows.Add(row);
  388. }
  389. [DebuggerNonUserCode]
  390. public CessOutRow AddCessOutRow(double CessOut_SystemSetting)
  391. {
  392. CessOutRow cessOutRow = (CessOutRow)NewRow();
  393. cessOutRow.ItemArray = new object[1]
  394. {
  395. CessOut_SystemSetting
  396. };
  397. base.Rows.Add(cessOutRow);
  398. return cessOutRow;
  399. }
  400. [DebuggerNonUserCode]
  401. public virtual IEnumerator GetEnumerator()
  402. {
  403. return base.Rows.GetEnumerator();
  404. }
  405. [DebuggerNonUserCode]
  406. public override DataTable Clone()
  407. {
  408. CessOutDataTable cessOutDataTable = (CessOutDataTable)base.Clone();
  409. cessOutDataTable.InitVars();
  410. return cessOutDataTable;
  411. }
  412. [DebuggerNonUserCode]
  413. protected override DataTable CreateInstance()
  414. {
  415. return new CessOutDataTable();
  416. }
  417. [DebuggerNonUserCode]
  418. internal void InitVars()
  419. {
  420. columnCessOut_SystemSetting = base.Columns["CessOut_SystemSetting"];
  421. }
  422. [DebuggerNonUserCode]
  423. private void InitClass()
  424. {
  425. columnCessOut_SystemSetting = new DataColumn("CessOut_SystemSetting", typeof(double), null, MappingType.Element);
  426. base.Columns.Add(columnCessOut_SystemSetting);
  427. }
  428. [DebuggerNonUserCode]
  429. public CessOutRow NewCessOutRow()
  430. {
  431. return (CessOutRow)NewRow();
  432. }
  433. [DebuggerNonUserCode]
  434. protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
  435. {
  436. return new CessOutRow(builder);
  437. }
  438. [DebuggerNonUserCode]
  439. protected override Type GetRowType()
  440. {
  441. return typeof(CessOutRow);
  442. }
  443. [DebuggerNonUserCode]
  444. protected override void OnRowChanged(DataRowChangeEventArgs e)
  445. {
  446. base.OnRowChanged(e);
  447. if (this.CessOutRowChanged != null)
  448. {
  449. this.CessOutRowChanged(this, new CessOutRowChangeEvent((CessOutRow)e.Row, e.Action));
  450. }
  451. }
  452. [DebuggerNonUserCode]
  453. protected override void OnRowChanging(DataRowChangeEventArgs e)
  454. {
  455. base.OnRowChanging(e);
  456. if (this.CessOutRowChanging != null)
  457. {
  458. this.CessOutRowChanging(this, new CessOutRowChangeEvent((CessOutRow)e.Row, e.Action));
  459. }
  460. }
  461. [DebuggerNonUserCode]
  462. protected override void OnRowDeleted(DataRowChangeEventArgs e)
  463. {
  464. base.OnRowDeleted(e);
  465. if (this.CessOutRowDeleted != null)
  466. {
  467. this.CessOutRowDeleted(this, new CessOutRowChangeEvent((CessOutRow)e.Row, e.Action));
  468. }
  469. }
  470. [DebuggerNonUserCode]
  471. protected override void OnRowDeleting(DataRowChangeEventArgs e)
  472. {
  473. base.OnRowDeleting(e);
  474. if (this.CessOutRowDeleting != null)
  475. {
  476. this.CessOutRowDeleting(this, new CessOutRowChangeEvent((CessOutRow)e.Row, e.Action));
  477. }
  478. }
  479. [DebuggerNonUserCode]
  480. public void RemoveCessOutRow(CessOutRow row)
  481. {
  482. base.Rows.Remove(row);
  483. }
  484. [DebuggerNonUserCode]
  485. public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
  486. {
  487. XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
  488. XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
  489. dsFrmSaleContract dsFrmSaleContract = new dsFrmSaleContract();
  490. xs.Add(dsFrmSaleContract.GetSchemaSerializable());
  491. XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
  492. xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema";
  493. xmlSchemaAny.MinOccurs = 0m;
  494. xmlSchemaAny.MaxOccurs = decimal.MaxValue;
  495. xmlSchemaAny.ProcessContents = XmlSchemaContentProcessing.Lax;
  496. xmlSchemaSequence.Items.Add(xmlSchemaAny);
  497. XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny();
  498. xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  499. xmlSchemaAny2.MinOccurs = 1m;
  500. xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax;
  501. xmlSchemaSequence.Items.Add(xmlSchemaAny2);
  502. XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute();
  503. xmlSchemaAttribute.Name = "namespace";
  504. xmlSchemaAttribute.FixedValue = dsFrmSaleContract.Namespace;
  505. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
  506. XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
  507. xmlSchemaAttribute2.Name = "tableTypeName";
  508. xmlSchemaAttribute2.FixedValue = "CessOutDataTable";
  509. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
  510. xmlSchemaComplexType.Particle = xmlSchemaSequence;
  511. return xmlSchemaComplexType;
  512. }
  513. }
  514. [Serializable]
  515. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  516. [XmlSchemaProvider("GetTypedTableSchema")]
  517. public class CompanyDataTable : DataTable, IEnumerable
  518. {
  519. private DataColumn columnName_Company;
  520. private DataColumn columnSendAddress_Company;
  521. private DataColumn columnTel_Company;
  522. private DataColumn columnRevenueRegisterNo_Company;
  523. private DataColumn columnBank_Company;
  524. private DataColumn columnAccount_Company;
  525. private DataColumn columnFax_Company;
  526. [DebuggerNonUserCode]
  527. public DataColumn Name_CompanyColumn => columnName_Company;
  528. [DebuggerNonUserCode]
  529. public DataColumn SendAddress_CompanyColumn => columnSendAddress_Company;
  530. [DebuggerNonUserCode]
  531. public DataColumn Tel_CompanyColumn => columnTel_Company;
  532. [DebuggerNonUserCode]
  533. public DataColumn RevenueRegisterNo_CompanyColumn => columnRevenueRegisterNo_Company;
  534. [DebuggerNonUserCode]
  535. public DataColumn Bank_CompanyColumn => columnBank_Company;
  536. [DebuggerNonUserCode]
  537. public DataColumn Account_CompanyColumn => columnAccount_Company;
  538. [DebuggerNonUserCode]
  539. public DataColumn Fax_CompanyColumn => columnFax_Company;
  540. [DebuggerNonUserCode]
  541. [Browsable(false)]
  542. public int Count => base.Rows.Count;
  543. [DebuggerNonUserCode]
  544. public CompanyRow this[int index] => (CompanyRow)base.Rows[index];
  545. public event CompanyRowChangeEventHandler CompanyRowChanging;
  546. public event CompanyRowChangeEventHandler CompanyRowChanged;
  547. public event CompanyRowChangeEventHandler CompanyRowDeleting;
  548. public event CompanyRowChangeEventHandler CompanyRowDeleted;
  549. [DebuggerNonUserCode]
  550. public CompanyDataTable()
  551. {
  552. base.TableName = "Company";
  553. BeginInit();
  554. InitClass();
  555. EndInit();
  556. }
  557. [DebuggerNonUserCode]
  558. internal CompanyDataTable(DataTable table)
  559. {
  560. base.TableName = table.TableName;
  561. if (table.CaseSensitive != table.DataSet.CaseSensitive)
  562. {
  563. base.CaseSensitive = table.CaseSensitive;
  564. }
  565. if (table.Locale.ToString() != table.DataSet.Locale.ToString())
  566. {
  567. base.Locale = table.Locale;
  568. }
  569. if (table.Namespace != table.DataSet.Namespace)
  570. {
  571. base.Namespace = table.Namespace;
  572. }
  573. base.Prefix = table.Prefix;
  574. base.MinimumCapacity = table.MinimumCapacity;
  575. }
  576. [DebuggerNonUserCode]
  577. protected CompanyDataTable(SerializationInfo info, StreamingContext context)
  578. : base(info, context)
  579. {
  580. InitVars();
  581. }
  582. [DebuggerNonUserCode]
  583. public void AddCompanyRow(CompanyRow row)
  584. {
  585. base.Rows.Add(row);
  586. }
  587. [DebuggerNonUserCode]
  588. public CompanyRow AddCompanyRow(string Name_Company, string SendAddress_Company, string Tel_Company, string RevenueRegisterNo_Company, string Bank_Company, string Account_Company, string Fax_Company)
  589. {
  590. CompanyRow companyRow = (CompanyRow)NewRow();
  591. companyRow.ItemArray = new object[7]
  592. {
  593. Name_Company,
  594. SendAddress_Company,
  595. Tel_Company,
  596. RevenueRegisterNo_Company,
  597. Bank_Company,
  598. Account_Company,
  599. Fax_Company
  600. };
  601. base.Rows.Add(companyRow);
  602. return companyRow;
  603. }
  604. [DebuggerNonUserCode]
  605. public virtual IEnumerator GetEnumerator()
  606. {
  607. return base.Rows.GetEnumerator();
  608. }
  609. [DebuggerNonUserCode]
  610. public override DataTable Clone()
  611. {
  612. CompanyDataTable companyDataTable = (CompanyDataTable)base.Clone();
  613. companyDataTable.InitVars();
  614. return companyDataTable;
  615. }
  616. [DebuggerNonUserCode]
  617. protected override DataTable CreateInstance()
  618. {
  619. return new CompanyDataTable();
  620. }
  621. [DebuggerNonUserCode]
  622. internal void InitVars()
  623. {
  624. columnName_Company = base.Columns["Name_Company"];
  625. columnSendAddress_Company = base.Columns["SendAddress_Company"];
  626. columnTel_Company = base.Columns["Tel_Company"];
  627. columnRevenueRegisterNo_Company = base.Columns["RevenueRegisterNo_Company"];
  628. columnBank_Company = base.Columns["Bank_Company"];
  629. columnAccount_Company = base.Columns["Account_Company"];
  630. columnFax_Company = base.Columns["Fax_Company"];
  631. }
  632. [DebuggerNonUserCode]
  633. private void InitClass()
  634. {
  635. columnName_Company = new DataColumn("Name_Company", typeof(string), null, MappingType.Element);
  636. base.Columns.Add(columnName_Company);
  637. columnSendAddress_Company = new DataColumn("SendAddress_Company", typeof(string), null, MappingType.Element);
  638. base.Columns.Add(columnSendAddress_Company);
  639. columnTel_Company = new DataColumn("Tel_Company", typeof(string), null, MappingType.Element);
  640. base.Columns.Add(columnTel_Company);
  641. columnRevenueRegisterNo_Company = new DataColumn("RevenueRegisterNo_Company", typeof(string), null, MappingType.Element);
  642. base.Columns.Add(columnRevenueRegisterNo_Company);
  643. columnBank_Company = new DataColumn("Bank_Company", typeof(string), null, MappingType.Element);
  644. base.Columns.Add(columnBank_Company);
  645. columnAccount_Company = new DataColumn("Account_Company", typeof(string), null, MappingType.Element);
  646. base.Columns.Add(columnAccount_Company);
  647. columnFax_Company = new DataColumn("Fax_Company", typeof(string), null, MappingType.Element);
  648. base.Columns.Add(columnFax_Company);
  649. }
  650. [DebuggerNonUserCode]
  651. public CompanyRow NewCompanyRow()
  652. {
  653. return (CompanyRow)NewRow();
  654. }
  655. [DebuggerNonUserCode]
  656. protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
  657. {
  658. return new CompanyRow(builder);
  659. }
  660. [DebuggerNonUserCode]
  661. protected override Type GetRowType()
  662. {
  663. return typeof(CompanyRow);
  664. }
  665. [DebuggerNonUserCode]
  666. protected override void OnRowChanged(DataRowChangeEventArgs e)
  667. {
  668. base.OnRowChanged(e);
  669. if (this.CompanyRowChanged != null)
  670. {
  671. this.CompanyRowChanged(this, new CompanyRowChangeEvent((CompanyRow)e.Row, e.Action));
  672. }
  673. }
  674. [DebuggerNonUserCode]
  675. protected override void OnRowChanging(DataRowChangeEventArgs e)
  676. {
  677. base.OnRowChanging(e);
  678. if (this.CompanyRowChanging != null)
  679. {
  680. this.CompanyRowChanging(this, new CompanyRowChangeEvent((CompanyRow)e.Row, e.Action));
  681. }
  682. }
  683. [DebuggerNonUserCode]
  684. protected override void OnRowDeleted(DataRowChangeEventArgs e)
  685. {
  686. base.OnRowDeleted(e);
  687. if (this.CompanyRowDeleted != null)
  688. {
  689. this.CompanyRowDeleted(this, new CompanyRowChangeEvent((CompanyRow)e.Row, e.Action));
  690. }
  691. }
  692. [DebuggerNonUserCode]
  693. protected override void OnRowDeleting(DataRowChangeEventArgs e)
  694. {
  695. base.OnRowDeleting(e);
  696. if (this.CompanyRowDeleting != null)
  697. {
  698. this.CompanyRowDeleting(this, new CompanyRowChangeEvent((CompanyRow)e.Row, e.Action));
  699. }
  700. }
  701. [DebuggerNonUserCode]
  702. public void RemoveCompanyRow(CompanyRow row)
  703. {
  704. base.Rows.Remove(row);
  705. }
  706. [DebuggerNonUserCode]
  707. public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
  708. {
  709. XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
  710. XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
  711. dsFrmSaleContract dsFrmSaleContract = new dsFrmSaleContract();
  712. xs.Add(dsFrmSaleContract.GetSchemaSerializable());
  713. XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
  714. xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema";
  715. xmlSchemaAny.MinOccurs = 0m;
  716. xmlSchemaAny.MaxOccurs = decimal.MaxValue;
  717. xmlSchemaAny.ProcessContents = XmlSchemaContentProcessing.Lax;
  718. xmlSchemaSequence.Items.Add(xmlSchemaAny);
  719. XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny();
  720. xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  721. xmlSchemaAny2.MinOccurs = 1m;
  722. xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax;
  723. xmlSchemaSequence.Items.Add(xmlSchemaAny2);
  724. XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute();
  725. xmlSchemaAttribute.Name = "namespace";
  726. xmlSchemaAttribute.FixedValue = dsFrmSaleContract.Namespace;
  727. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
  728. XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
  729. xmlSchemaAttribute2.Name = "tableTypeName";
  730. xmlSchemaAttribute2.FixedValue = "CompanyDataTable";
  731. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
  732. xmlSchemaComplexType.Particle = xmlSchemaSequence;
  733. return xmlSchemaComplexType;
  734. }
  735. }
  736. [Serializable]
  737. [XmlSchemaProvider("GetTypedTableSchema")]
  738. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  739. public class CustomerInfoDataTable : DataTable, IEnumerable
  740. {
  741. private DataColumn columnComment;
  742. private DataColumn columnPayTime;
  743. [DebuggerNonUserCode]
  744. public DataColumn CommentColumn => columnComment;
  745. [DebuggerNonUserCode]
  746. public DataColumn PayTimeColumn => columnPayTime;
  747. [DebuggerNonUserCode]
  748. [Browsable(false)]
  749. public int Count => base.Rows.Count;
  750. [DebuggerNonUserCode]
  751. public CustomerInfoRow this[int index] => (CustomerInfoRow)base.Rows[index];
  752. public event CustomerInfoRowChangeEventHandler CustomerInfoRowChanging;
  753. public event CustomerInfoRowChangeEventHandler CustomerInfoRowChanged;
  754. public event CustomerInfoRowChangeEventHandler CustomerInfoRowDeleting;
  755. public event CustomerInfoRowChangeEventHandler CustomerInfoRowDeleted;
  756. [DebuggerNonUserCode]
  757. public CustomerInfoDataTable()
  758. {
  759. base.TableName = "CustomerInfo";
  760. BeginInit();
  761. InitClass();
  762. EndInit();
  763. }
  764. [DebuggerNonUserCode]
  765. internal CustomerInfoDataTable(DataTable table)
  766. {
  767. base.TableName = table.TableName;
  768. if (table.CaseSensitive != table.DataSet.CaseSensitive)
  769. {
  770. base.CaseSensitive = table.CaseSensitive;
  771. }
  772. if (table.Locale.ToString() != table.DataSet.Locale.ToString())
  773. {
  774. base.Locale = table.Locale;
  775. }
  776. if (table.Namespace != table.DataSet.Namespace)
  777. {
  778. base.Namespace = table.Namespace;
  779. }
  780. base.Prefix = table.Prefix;
  781. base.MinimumCapacity = table.MinimumCapacity;
  782. }
  783. [DebuggerNonUserCode]
  784. protected CustomerInfoDataTable(SerializationInfo info, StreamingContext context)
  785. : base(info, context)
  786. {
  787. InitVars();
  788. }
  789. [DebuggerNonUserCode]
  790. public void AddCustomerInfoRow(CustomerInfoRow row)
  791. {
  792. base.Rows.Add(row);
  793. }
  794. [DebuggerNonUserCode]
  795. public CustomerInfoRow AddCustomerInfoRow(string Comment, DateTime PayTime)
  796. {
  797. CustomerInfoRow customerInfoRow = (CustomerInfoRow)NewRow();
  798. customerInfoRow.ItemArray = new object[2]
  799. {
  800. Comment,
  801. PayTime
  802. };
  803. base.Rows.Add(customerInfoRow);
  804. return customerInfoRow;
  805. }
  806. [DebuggerNonUserCode]
  807. public virtual IEnumerator GetEnumerator()
  808. {
  809. return base.Rows.GetEnumerator();
  810. }
  811. [DebuggerNonUserCode]
  812. public override DataTable Clone()
  813. {
  814. CustomerInfoDataTable customerInfoDataTable = (CustomerInfoDataTable)base.Clone();
  815. customerInfoDataTable.InitVars();
  816. return customerInfoDataTable;
  817. }
  818. [DebuggerNonUserCode]
  819. protected override DataTable CreateInstance()
  820. {
  821. return new CustomerInfoDataTable();
  822. }
  823. [DebuggerNonUserCode]
  824. internal void InitVars()
  825. {
  826. columnComment = base.Columns["Comment"];
  827. columnPayTime = base.Columns["PayTime"];
  828. }
  829. [DebuggerNonUserCode]
  830. private void InitClass()
  831. {
  832. columnComment = new DataColumn("Comment", typeof(string), null, MappingType.Element);
  833. base.Columns.Add(columnComment);
  834. columnPayTime = new DataColumn("PayTime", typeof(DateTime), null, MappingType.Element);
  835. base.Columns.Add(columnPayTime);
  836. }
  837. [DebuggerNonUserCode]
  838. public CustomerInfoRow NewCustomerInfoRow()
  839. {
  840. return (CustomerInfoRow)NewRow();
  841. }
  842. [DebuggerNonUserCode]
  843. protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
  844. {
  845. return new CustomerInfoRow(builder);
  846. }
  847. [DebuggerNonUserCode]
  848. protected override Type GetRowType()
  849. {
  850. return typeof(CustomerInfoRow);
  851. }
  852. [DebuggerNonUserCode]
  853. protected override void OnRowChanged(DataRowChangeEventArgs e)
  854. {
  855. base.OnRowChanged(e);
  856. if (this.CustomerInfoRowChanged != null)
  857. {
  858. this.CustomerInfoRowChanged(this, new CustomerInfoRowChangeEvent((CustomerInfoRow)e.Row, e.Action));
  859. }
  860. }
  861. [DebuggerNonUserCode]
  862. protected override void OnRowChanging(DataRowChangeEventArgs e)
  863. {
  864. base.OnRowChanging(e);
  865. if (this.CustomerInfoRowChanging != null)
  866. {
  867. this.CustomerInfoRowChanging(this, new CustomerInfoRowChangeEvent((CustomerInfoRow)e.Row, e.Action));
  868. }
  869. }
  870. [DebuggerNonUserCode]
  871. protected override void OnRowDeleted(DataRowChangeEventArgs e)
  872. {
  873. base.OnRowDeleted(e);
  874. if (this.CustomerInfoRowDeleted != null)
  875. {
  876. this.CustomerInfoRowDeleted(this, new CustomerInfoRowChangeEvent((CustomerInfoRow)e.Row, e.Action));
  877. }
  878. }
  879. [DebuggerNonUserCode]
  880. protected override void OnRowDeleting(DataRowChangeEventArgs e)
  881. {
  882. base.OnRowDeleting(e);
  883. if (this.CustomerInfoRowDeleting != null)
  884. {
  885. this.CustomerInfoRowDeleting(this, new CustomerInfoRowChangeEvent((CustomerInfoRow)e.Row, e.Action));
  886. }
  887. }
  888. [DebuggerNonUserCode]
  889. public void RemoveCustomerInfoRow(CustomerInfoRow row)
  890. {
  891. base.Rows.Remove(row);
  892. }
  893. [DebuggerNonUserCode]
  894. public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
  895. {
  896. XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
  897. XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
  898. dsFrmSaleContract dsFrmSaleContract = new dsFrmSaleContract();
  899. xs.Add(dsFrmSaleContract.GetSchemaSerializable());
  900. XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
  901. xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema";
  902. xmlSchemaAny.MinOccurs = 0m;
  903. xmlSchemaAny.MaxOccurs = decimal.MaxValue;
  904. xmlSchemaAny.ProcessContents = XmlSchemaContentProcessing.Lax;
  905. xmlSchemaSequence.Items.Add(xmlSchemaAny);
  906. XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny();
  907. xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  908. xmlSchemaAny2.MinOccurs = 1m;
  909. xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax;
  910. xmlSchemaSequence.Items.Add(xmlSchemaAny2);
  911. XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute();
  912. xmlSchemaAttribute.Name = "namespace";
  913. xmlSchemaAttribute.FixedValue = dsFrmSaleContract.Namespace;
  914. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
  915. XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
  916. xmlSchemaAttribute2.Name = "tableTypeName";
  917. xmlSchemaAttribute2.FixedValue = "CustomerInfoDataTable";
  918. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
  919. xmlSchemaComplexType.Particle = xmlSchemaSequence;
  920. return xmlSchemaComplexType;
  921. }
  922. }
  923. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  924. public class SaleBillRow : DataRow
  925. {
  926. private SaleBillDataTable tableSaleBill;
  927. [DebuggerNonUserCode]
  928. public string Name_Customer
  929. {
  930. get
  931. {
  932. try
  933. {
  934. return (string)base[tableSaleBill.Name_CustomerColumn];
  935. }
  936. catch (InvalidCastException innerException)
  937. {
  938. throw new StrongTypingException("The value for column 'Name_Customer' in table 'SaleBill' is DBNull.", innerException);
  939. }
  940. }
  941. set
  942. {
  943. base[tableSaleBill.Name_CustomerColumn] = value;
  944. }
  945. }
  946. [DebuggerNonUserCode]
  947. public string No_Telephone
  948. {
  949. get
  950. {
  951. try
  952. {
  953. return (string)base[tableSaleBill.No_TelephoneColumn];
  954. }
  955. catch (InvalidCastException innerException)
  956. {
  957. throw new StrongTypingException("The value for column 'No_Telephone' in table 'SaleBill' is DBNull.", innerException);
  958. }
  959. }
  960. set
  961. {
  962. base[tableSaleBill.No_TelephoneColumn] = value;
  963. }
  964. }
  965. [DebuggerNonUserCode]
  966. public string RevenueRegisterNo_Customer
  967. {
  968. get
  969. {
  970. try
  971. {
  972. return (string)base[tableSaleBill.RevenueRegisterNo_CustomerColumn];
  973. }
  974. catch (InvalidCastException innerException)
  975. {
  976. throw new StrongTypingException("The value for column 'RevenueRegisterNo_Customer' in table 'SaleBill' is DBNull.", innerException);
  977. }
  978. }
  979. set
  980. {
  981. base[tableSaleBill.RevenueRegisterNo_CustomerColumn] = value;
  982. }
  983. }
  984. [DebuggerNonUserCode]
  985. public string Bank_Customer
  986. {
  987. get
  988. {
  989. try
  990. {
  991. return (string)base[tableSaleBill.Bank_CustomerColumn];
  992. }
  993. catch (InvalidCastException innerException)
  994. {
  995. throw new StrongTypingException("The value for column 'Bank_Customer' in table 'SaleBill' is DBNull.", innerException);
  996. }
  997. }
  998. set
  999. {
  1000. base[tableSaleBill.Bank_CustomerColumn] = value;
  1001. }
  1002. }
  1003. [DebuggerNonUserCode]
  1004. public string Account_Customer
  1005. {
  1006. get
  1007. {
  1008. try
  1009. {
  1010. return (string)base[tableSaleBill.Account_CustomerColumn];
  1011. }
  1012. catch (InvalidCastException innerException)
  1013. {
  1014. throw new StrongTypingException("The value for column 'Account_Customer' in table 'SaleBill' is DBNull.", innerException);
  1015. }
  1016. }
  1017. set
  1018. {
  1019. base[tableSaleBill.Account_CustomerColumn] = value;
  1020. }
  1021. }
  1022. [DebuggerNonUserCode]
  1023. public string SendAddr_Customer
  1024. {
  1025. get
  1026. {
  1027. try
  1028. {
  1029. return (string)base[tableSaleBill.SendAddr_CustomerColumn];
  1030. }
  1031. catch (InvalidCastException innerException)
  1032. {
  1033. throw new StrongTypingException("The value for column 'SendAddr_Customer' in table 'SaleBill' is DBNull.", innerException);
  1034. }
  1035. }
  1036. set
  1037. {
  1038. base[tableSaleBill.SendAddr_CustomerColumn] = value;
  1039. }
  1040. }
  1041. [DebuggerNonUserCode]
  1042. public string Address_Invoice
  1043. {
  1044. get
  1045. {
  1046. try
  1047. {
  1048. return (string)base[tableSaleBill.Address_InvoiceColumn];
  1049. }
  1050. catch (InvalidCastException innerException)
  1051. {
  1052. throw new StrongTypingException("The value for column 'Address_Invoice' in table 'SaleBill' is DBNull.", innerException);
  1053. }
  1054. }
  1055. set
  1056. {
  1057. base[tableSaleBill.Address_InvoiceColumn] = value;
  1058. }
  1059. }
  1060. [DebuggerNonUserCode]
  1061. public string No_SaleBill
  1062. {
  1063. get
  1064. {
  1065. try
  1066. {
  1067. return (string)base[tableSaleBill.No_SaleBillColumn];
  1068. }
  1069. catch (InvalidCastException innerException)
  1070. {
  1071. throw new StrongTypingException("The value for column 'No_SaleBill' in table 'SaleBill' is DBNull.", innerException);
  1072. }
  1073. }
  1074. set
  1075. {
  1076. base[tableSaleBill.No_SaleBillColumn] = value;
  1077. }
  1078. }
  1079. [DebuggerNonUserCode]
  1080. public string TaxCurrency_SaleBill
  1081. {
  1082. get
  1083. {
  1084. try
  1085. {
  1086. return (string)base[tableSaleBill.TaxCurrency_SaleBillColumn];
  1087. }
  1088. catch (InvalidCastException innerException)
  1089. {
  1090. throw new StrongTypingException("The value for column 'TaxCurrency_SaleBill' in table 'SaleBill' is DBNull.", innerException);
  1091. }
  1092. }
  1093. set
  1094. {
  1095. base[tableSaleBill.TaxCurrency_SaleBillColumn] = value;
  1096. }
  1097. }
  1098. [DebuggerNonUserCode]
  1099. public decimal Quantity_SaleBillProduct
  1100. {
  1101. get
  1102. {
  1103. try
  1104. {
  1105. return (decimal)base[tableSaleBill.Quantity_SaleBillProductColumn];
  1106. }
  1107. catch (InvalidCastException innerException)
  1108. {
  1109. throw new StrongTypingException("The value for column 'Quantity_SaleBillProduct' in table 'SaleBill' is DBNull.", innerException);
  1110. }
  1111. }
  1112. set
  1113. {
  1114. base[tableSaleBill.Quantity_SaleBillProductColumn] = value;
  1115. }
  1116. }
  1117. [DebuggerNonUserCode]
  1118. public decimal UnitPrice_SaleBillProduct
  1119. {
  1120. get
  1121. {
  1122. try
  1123. {
  1124. return (decimal)base[tableSaleBill.UnitPrice_SaleBillProductColumn];
  1125. }
  1126. catch (InvalidCastException innerException)
  1127. {
  1128. throw new StrongTypingException("The value for column 'UnitPrice_SaleBillProduct' in table 'SaleBill' is DBNull.", innerException);
  1129. }
  1130. }
  1131. set
  1132. {
  1133. base[tableSaleBill.UnitPrice_SaleBillProductColumn] = value;
  1134. }
  1135. }
  1136. [DebuggerNonUserCode]
  1137. public decimal TaxCurrency
  1138. {
  1139. get
  1140. {
  1141. try
  1142. {
  1143. return (decimal)base[tableSaleBill.TaxCurrencyColumn];
  1144. }
  1145. catch (InvalidCastException innerException)
  1146. {
  1147. throw new StrongTypingException("The value for column 'TaxCurrency' in table 'SaleBill' is DBNull.", innerException);
  1148. }
  1149. }
  1150. set
  1151. {
  1152. base[tableSaleBill.TaxCurrencyColumn] = value;
  1153. }
  1154. }
  1155. [DebuggerNonUserCode]
  1156. public string No_Product
  1157. {
  1158. get
  1159. {
  1160. try
  1161. {
  1162. return (string)base[tableSaleBill.No_ProductColumn];
  1163. }
  1164. catch (InvalidCastException innerException)
  1165. {
  1166. throw new StrongTypingException("The value for column 'No_Product' in table 'SaleBill' is DBNull.", innerException);
  1167. }
  1168. }
  1169. set
  1170. {
  1171. base[tableSaleBill.No_ProductColumn] = value;
  1172. }
  1173. }
  1174. [DebuggerNonUserCode]
  1175. public string Name_Product
  1176. {
  1177. get
  1178. {
  1179. try
  1180. {
  1181. return (string)base[tableSaleBill.Name_ProductColumn];
  1182. }
  1183. catch (InvalidCastException innerException)
  1184. {
  1185. throw new StrongTypingException("The value for column 'Name_Product' in table 'SaleBill' is DBNull.", innerException);
  1186. }
  1187. }
  1188. set
  1189. {
  1190. base[tableSaleBill.Name_ProductColumn] = value;
  1191. }
  1192. }
  1193. [DebuggerNonUserCode]
  1194. public DateTime Date_SaleBill
  1195. {
  1196. get
  1197. {
  1198. try
  1199. {
  1200. return (DateTime)base[tableSaleBill.Date_SaleBillColumn];
  1201. }
  1202. catch (InvalidCastException innerException)
  1203. {
  1204. throw new StrongTypingException("The value for column 'Date_SaleBill' in table 'SaleBill' is DBNull.", innerException);
  1205. }
  1206. }
  1207. set
  1208. {
  1209. base[tableSaleBill.Date_SaleBillColumn] = value;
  1210. }
  1211. }
  1212. [DebuggerNonUserCode]
  1213. public decimal MoneyCurrency
  1214. {
  1215. get
  1216. {
  1217. try
  1218. {
  1219. return (decimal)base[tableSaleBill.MoneyCurrencyColumn];
  1220. }
  1221. catch (InvalidCastException innerException)
  1222. {
  1223. throw new StrongTypingException("The value for column 'MoneyCurrency' in table 'SaleBill' is DBNull.", innerException);
  1224. }
  1225. }
  1226. set
  1227. {
  1228. base[tableSaleBill.MoneyCurrencyColumn] = value;
  1229. }
  1230. }
  1231. [DebuggerNonUserCode]
  1232. public string Title_Invoice
  1233. {
  1234. get
  1235. {
  1236. try
  1237. {
  1238. return (string)base[tableSaleBill.Title_InvoiceColumn];
  1239. }
  1240. catch (InvalidCastException innerException)
  1241. {
  1242. throw new StrongTypingException("The value for column 'Title_Invoice' in table 'SaleBill' is DBNull.", innerException);
  1243. }
  1244. }
  1245. set
  1246. {
  1247. base[tableSaleBill.Title_InvoiceColumn] = value;
  1248. }
  1249. }
  1250. [DebuggerNonUserCode]
  1251. public string No_Customer
  1252. {
  1253. get
  1254. {
  1255. try
  1256. {
  1257. return (string)base[tableSaleBill.No_CustomerColumn];
  1258. }
  1259. catch (InvalidCastException innerException)
  1260. {
  1261. throw new StrongTypingException("The value for column 'No_Customer' in table 'SaleBill' is DBNull.", innerException);
  1262. }
  1263. }
  1264. set
  1265. {
  1266. base[tableSaleBill.No_CustomerColumn] = value;
  1267. }
  1268. }
  1269. [DebuggerNonUserCode]
  1270. public string No_Fax
  1271. {
  1272. get
  1273. {
  1274. try
  1275. {
  1276. return (string)base[tableSaleBill.No_FaxColumn];
  1277. }
  1278. catch (InvalidCastException innerException)
  1279. {
  1280. throw new StrongTypingException("The value for column 'No_Fax' in table 'SaleBill' is DBNull.", innerException);
  1281. }
  1282. }
  1283. set
  1284. {
  1285. base[tableSaleBill.No_FaxColumn] = value;
  1286. }
  1287. }
  1288. [DebuggerNonUserCode]
  1289. internal SaleBillRow(DataRowBuilder rb)
  1290. : base(rb)
  1291. {
  1292. tableSaleBill = (SaleBillDataTable)base.Table;
  1293. }
  1294. [DebuggerNonUserCode]
  1295. public bool IsName_CustomerNull()
  1296. {
  1297. return IsNull(tableSaleBill.Name_CustomerColumn);
  1298. }
  1299. [DebuggerNonUserCode]
  1300. public void SetName_CustomerNull()
  1301. {
  1302. base[tableSaleBill.Name_CustomerColumn] = Convert.DBNull;
  1303. }
  1304. [DebuggerNonUserCode]
  1305. public bool IsNo_TelephoneNull()
  1306. {
  1307. return IsNull(tableSaleBill.No_TelephoneColumn);
  1308. }
  1309. [DebuggerNonUserCode]
  1310. public void SetNo_TelephoneNull()
  1311. {
  1312. base[tableSaleBill.No_TelephoneColumn] = Convert.DBNull;
  1313. }
  1314. [DebuggerNonUserCode]
  1315. public bool IsRevenueRegisterNo_CustomerNull()
  1316. {
  1317. return IsNull(tableSaleBill.RevenueRegisterNo_CustomerColumn);
  1318. }
  1319. [DebuggerNonUserCode]
  1320. public void SetRevenueRegisterNo_CustomerNull()
  1321. {
  1322. base[tableSaleBill.RevenueRegisterNo_CustomerColumn] = Convert.DBNull;
  1323. }
  1324. [DebuggerNonUserCode]
  1325. public bool IsBank_CustomerNull()
  1326. {
  1327. return IsNull(tableSaleBill.Bank_CustomerColumn);
  1328. }
  1329. [DebuggerNonUserCode]
  1330. public void SetBank_CustomerNull()
  1331. {
  1332. base[tableSaleBill.Bank_CustomerColumn] = Convert.DBNull;
  1333. }
  1334. [DebuggerNonUserCode]
  1335. public bool IsAccount_CustomerNull()
  1336. {
  1337. return IsNull(tableSaleBill.Account_CustomerColumn);
  1338. }
  1339. [DebuggerNonUserCode]
  1340. public void SetAccount_CustomerNull()
  1341. {
  1342. base[tableSaleBill.Account_CustomerColumn] = Convert.DBNull;
  1343. }
  1344. [DebuggerNonUserCode]
  1345. public bool IsSendAddr_CustomerNull()
  1346. {
  1347. return IsNull(tableSaleBill.SendAddr_CustomerColumn);
  1348. }
  1349. [DebuggerNonUserCode]
  1350. public void SetSendAddr_CustomerNull()
  1351. {
  1352. base[tableSaleBill.SendAddr_CustomerColumn] = Convert.DBNull;
  1353. }
  1354. [DebuggerNonUserCode]
  1355. public bool IsAddress_InvoiceNull()
  1356. {
  1357. return IsNull(tableSaleBill.Address_InvoiceColumn);
  1358. }
  1359. [DebuggerNonUserCode]
  1360. public void SetAddress_InvoiceNull()
  1361. {
  1362. base[tableSaleBill.Address_InvoiceColumn] = Convert.DBNull;
  1363. }
  1364. [DebuggerNonUserCode]
  1365. public bool IsNo_SaleBillNull()
  1366. {
  1367. return IsNull(tableSaleBill.No_SaleBillColumn);
  1368. }
  1369. [DebuggerNonUserCode]
  1370. public void SetNo_SaleBillNull()
  1371. {
  1372. base[tableSaleBill.No_SaleBillColumn] = Convert.DBNull;
  1373. }
  1374. [DebuggerNonUserCode]
  1375. public bool IsTaxCurrency_SaleBillNull()
  1376. {
  1377. return IsNull(tableSaleBill.TaxCurrency_SaleBillColumn);
  1378. }
  1379. [DebuggerNonUserCode]
  1380. public void SetTaxCurrency_SaleBillNull()
  1381. {
  1382. base[tableSaleBill.TaxCurrency_SaleBillColumn] = Convert.DBNull;
  1383. }
  1384. [DebuggerNonUserCode]
  1385. public bool IsQuantity_SaleBillProductNull()
  1386. {
  1387. return IsNull(tableSaleBill.Quantity_SaleBillProductColumn);
  1388. }
  1389. [DebuggerNonUserCode]
  1390. public void SetQuantity_SaleBillProductNull()
  1391. {
  1392. base[tableSaleBill.Quantity_SaleBillProductColumn] = Convert.DBNull;
  1393. }
  1394. [DebuggerNonUserCode]
  1395. public bool IsUnitPrice_SaleBillProductNull()
  1396. {
  1397. return IsNull(tableSaleBill.UnitPrice_SaleBillProductColumn);
  1398. }
  1399. [DebuggerNonUserCode]
  1400. public void SetUnitPrice_SaleBillProductNull()
  1401. {
  1402. base[tableSaleBill.UnitPrice_SaleBillProductColumn] = Convert.DBNull;
  1403. }
  1404. [DebuggerNonUserCode]
  1405. public bool IsTaxCurrencyNull()
  1406. {
  1407. return IsNull(tableSaleBill.TaxCurrencyColumn);
  1408. }
  1409. [DebuggerNonUserCode]
  1410. public void SetTaxCurrencyNull()
  1411. {
  1412. base[tableSaleBill.TaxCurrencyColumn] = Convert.DBNull;
  1413. }
  1414. [DebuggerNonUserCode]
  1415. public bool IsNo_ProductNull()
  1416. {
  1417. return IsNull(tableSaleBill.No_ProductColumn);
  1418. }
  1419. [DebuggerNonUserCode]
  1420. public void SetNo_ProductNull()
  1421. {
  1422. base[tableSaleBill.No_ProductColumn] = Convert.DBNull;
  1423. }
  1424. [DebuggerNonUserCode]
  1425. public bool IsName_ProductNull()
  1426. {
  1427. return IsNull(tableSaleBill.Name_ProductColumn);
  1428. }
  1429. [DebuggerNonUserCode]
  1430. public void SetName_ProductNull()
  1431. {
  1432. base[tableSaleBill.Name_ProductColumn] = Convert.DBNull;
  1433. }
  1434. [DebuggerNonUserCode]
  1435. public bool IsDate_SaleBillNull()
  1436. {
  1437. return IsNull(tableSaleBill.Date_SaleBillColumn);
  1438. }
  1439. [DebuggerNonUserCode]
  1440. public void SetDate_SaleBillNull()
  1441. {
  1442. base[tableSaleBill.Date_SaleBillColumn] = Convert.DBNull;
  1443. }
  1444. [DebuggerNonUserCode]
  1445. public bool IsMoneyCurrencyNull()
  1446. {
  1447. return IsNull(tableSaleBill.MoneyCurrencyColumn);
  1448. }
  1449. [DebuggerNonUserCode]
  1450. public void SetMoneyCurrencyNull()
  1451. {
  1452. base[tableSaleBill.MoneyCurrencyColumn] = Convert.DBNull;
  1453. }
  1454. [DebuggerNonUserCode]
  1455. public bool IsTitle_InvoiceNull()
  1456. {
  1457. return IsNull(tableSaleBill.Title_InvoiceColumn);
  1458. }
  1459. [DebuggerNonUserCode]
  1460. public void SetTitle_InvoiceNull()
  1461. {
  1462. base[tableSaleBill.Title_InvoiceColumn] = Convert.DBNull;
  1463. }
  1464. [DebuggerNonUserCode]
  1465. public bool IsNo_CustomerNull()
  1466. {
  1467. return IsNull(tableSaleBill.No_CustomerColumn);
  1468. }
  1469. [DebuggerNonUserCode]
  1470. public void SetNo_CustomerNull()
  1471. {
  1472. base[tableSaleBill.No_CustomerColumn] = Convert.DBNull;
  1473. }
  1474. [DebuggerNonUserCode]
  1475. public bool IsNo_FaxNull()
  1476. {
  1477. return IsNull(tableSaleBill.No_FaxColumn);
  1478. }
  1479. [DebuggerNonUserCode]
  1480. public void SetNo_FaxNull()
  1481. {
  1482. base[tableSaleBill.No_FaxColumn] = Convert.DBNull;
  1483. }
  1484. }
  1485. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  1486. public class CessOutRow : DataRow
  1487. {
  1488. private CessOutDataTable tableCessOut;
  1489. [DebuggerNonUserCode]
  1490. public double CessOut_SystemSetting
  1491. {
  1492. get
  1493. {
  1494. try
  1495. {
  1496. return (double)base[tableCessOut.CessOut_SystemSettingColumn];
  1497. }
  1498. catch (InvalidCastException innerException)
  1499. {
  1500. throw new StrongTypingException("The value for column 'CessOut_SystemSetting' in table 'CessOut' is DBNull.", innerException);
  1501. }
  1502. }
  1503. set
  1504. {
  1505. base[tableCessOut.CessOut_SystemSettingColumn] = value;
  1506. }
  1507. }
  1508. [DebuggerNonUserCode]
  1509. internal CessOutRow(DataRowBuilder rb)
  1510. : base(rb)
  1511. {
  1512. tableCessOut = (CessOutDataTable)base.Table;
  1513. }
  1514. [DebuggerNonUserCode]
  1515. public bool IsCessOut_SystemSettingNull()
  1516. {
  1517. return IsNull(tableCessOut.CessOut_SystemSettingColumn);
  1518. }
  1519. [DebuggerNonUserCode]
  1520. public void SetCessOut_SystemSettingNull()
  1521. {
  1522. base[tableCessOut.CessOut_SystemSettingColumn] = Convert.DBNull;
  1523. }
  1524. }
  1525. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  1526. public class CompanyRow : DataRow
  1527. {
  1528. private CompanyDataTable tableCompany;
  1529. [DebuggerNonUserCode]
  1530. public string Name_Company
  1531. {
  1532. get
  1533. {
  1534. try
  1535. {
  1536. return (string)base[tableCompany.Name_CompanyColumn];
  1537. }
  1538. catch (InvalidCastException innerException)
  1539. {
  1540. throw new StrongTypingException("The value for column 'Name_Company' in table 'Company' is DBNull.", innerException);
  1541. }
  1542. }
  1543. set
  1544. {
  1545. base[tableCompany.Name_CompanyColumn] = value;
  1546. }
  1547. }
  1548. [DebuggerNonUserCode]
  1549. public string SendAddress_Company
  1550. {
  1551. get
  1552. {
  1553. try
  1554. {
  1555. return (string)base[tableCompany.SendAddress_CompanyColumn];
  1556. }
  1557. catch (InvalidCastException innerException)
  1558. {
  1559. throw new StrongTypingException("The value for column 'SendAddress_Company' in table 'Company' is DBNull.", innerException);
  1560. }
  1561. }
  1562. set
  1563. {
  1564. base[tableCompany.SendAddress_CompanyColumn] = value;
  1565. }
  1566. }
  1567. [DebuggerNonUserCode]
  1568. public string Tel_Company
  1569. {
  1570. get
  1571. {
  1572. try
  1573. {
  1574. return (string)base[tableCompany.Tel_CompanyColumn];
  1575. }
  1576. catch (InvalidCastException innerException)
  1577. {
  1578. throw new StrongTypingException("The value for column 'Tel_Company' in table 'Company' is DBNull.", innerException);
  1579. }
  1580. }
  1581. set
  1582. {
  1583. base[tableCompany.Tel_CompanyColumn] = value;
  1584. }
  1585. }
  1586. [DebuggerNonUserCode]
  1587. public string RevenueRegisterNo_Company
  1588. {
  1589. get
  1590. {
  1591. try
  1592. {
  1593. return (string)base[tableCompany.RevenueRegisterNo_CompanyColumn];
  1594. }
  1595. catch (InvalidCastException innerException)
  1596. {
  1597. throw new StrongTypingException("The value for column 'RevenueRegisterNo_Company' in table 'Company' is DBNull.", innerException);
  1598. }
  1599. }
  1600. set
  1601. {
  1602. base[tableCompany.RevenueRegisterNo_CompanyColumn] = value;
  1603. }
  1604. }
  1605. [DebuggerNonUserCode]
  1606. public string Bank_Company
  1607. {
  1608. get
  1609. {
  1610. try
  1611. {
  1612. return (string)base[tableCompany.Bank_CompanyColumn];
  1613. }
  1614. catch (InvalidCastException innerException)
  1615. {
  1616. throw new StrongTypingException("The value for column 'Bank_Company' in table 'Company' is DBNull.", innerException);
  1617. }
  1618. }
  1619. set
  1620. {
  1621. base[tableCompany.Bank_CompanyColumn] = value;
  1622. }
  1623. }
  1624. [DebuggerNonUserCode]
  1625. public string Account_Company
  1626. {
  1627. get
  1628. {
  1629. try
  1630. {
  1631. return (string)base[tableCompany.Account_CompanyColumn];
  1632. }
  1633. catch (InvalidCastException innerException)
  1634. {
  1635. throw new StrongTypingException("The value for column 'Account_Company' in table 'Company' is DBNull.", innerException);
  1636. }
  1637. }
  1638. set
  1639. {
  1640. base[tableCompany.Account_CompanyColumn] = value;
  1641. }
  1642. }
  1643. [DebuggerNonUserCode]
  1644. public string Fax_Company
  1645. {
  1646. get
  1647. {
  1648. try
  1649. {
  1650. return (string)base[tableCompany.Fax_CompanyColumn];
  1651. }
  1652. catch (InvalidCastException innerException)
  1653. {
  1654. throw new StrongTypingException("The value for column 'Fax_Company' in table 'Company' is DBNull.", innerException);
  1655. }
  1656. }
  1657. set
  1658. {
  1659. base[tableCompany.Fax_CompanyColumn] = value;
  1660. }
  1661. }
  1662. [DebuggerNonUserCode]
  1663. internal CompanyRow(DataRowBuilder rb)
  1664. : base(rb)
  1665. {
  1666. tableCompany = (CompanyDataTable)base.Table;
  1667. }
  1668. [DebuggerNonUserCode]
  1669. public bool IsName_CompanyNull()
  1670. {
  1671. return IsNull(tableCompany.Name_CompanyColumn);
  1672. }
  1673. [DebuggerNonUserCode]
  1674. public void SetName_CompanyNull()
  1675. {
  1676. base[tableCompany.Name_CompanyColumn] = Convert.DBNull;
  1677. }
  1678. [DebuggerNonUserCode]
  1679. public bool IsSendAddress_CompanyNull()
  1680. {
  1681. return IsNull(tableCompany.SendAddress_CompanyColumn);
  1682. }
  1683. [DebuggerNonUserCode]
  1684. public void SetSendAddress_CompanyNull()
  1685. {
  1686. base[tableCompany.SendAddress_CompanyColumn] = Convert.DBNull;
  1687. }
  1688. [DebuggerNonUserCode]
  1689. public bool IsTel_CompanyNull()
  1690. {
  1691. return IsNull(tableCompany.Tel_CompanyColumn);
  1692. }
  1693. [DebuggerNonUserCode]
  1694. public void SetTel_CompanyNull()
  1695. {
  1696. base[tableCompany.Tel_CompanyColumn] = Convert.DBNull;
  1697. }
  1698. [DebuggerNonUserCode]
  1699. public bool IsRevenueRegisterNo_CompanyNull()
  1700. {
  1701. return IsNull(tableCompany.RevenueRegisterNo_CompanyColumn);
  1702. }
  1703. [DebuggerNonUserCode]
  1704. public void SetRevenueRegisterNo_CompanyNull()
  1705. {
  1706. base[tableCompany.RevenueRegisterNo_CompanyColumn] = Convert.DBNull;
  1707. }
  1708. [DebuggerNonUserCode]
  1709. public bool IsBank_CompanyNull()
  1710. {
  1711. return IsNull(tableCompany.Bank_CompanyColumn);
  1712. }
  1713. [DebuggerNonUserCode]
  1714. public void SetBank_CompanyNull()
  1715. {
  1716. base[tableCompany.Bank_CompanyColumn] = Convert.DBNull;
  1717. }
  1718. [DebuggerNonUserCode]
  1719. public bool IsAccount_CompanyNull()
  1720. {
  1721. return IsNull(tableCompany.Account_CompanyColumn);
  1722. }
  1723. [DebuggerNonUserCode]
  1724. public void SetAccount_CompanyNull()
  1725. {
  1726. base[tableCompany.Account_CompanyColumn] = Convert.DBNull;
  1727. }
  1728. [DebuggerNonUserCode]
  1729. public bool IsFax_CompanyNull()
  1730. {
  1731. return IsNull(tableCompany.Fax_CompanyColumn);
  1732. }
  1733. [DebuggerNonUserCode]
  1734. public void SetFax_CompanyNull()
  1735. {
  1736. base[tableCompany.Fax_CompanyColumn] = Convert.DBNull;
  1737. }
  1738. }
  1739. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  1740. public class CustomerInfoRow : DataRow
  1741. {
  1742. private CustomerInfoDataTable tableCustomerInfo;
  1743. [DebuggerNonUserCode]
  1744. public string Comment
  1745. {
  1746. get
  1747. {
  1748. try
  1749. {
  1750. return (string)base[tableCustomerInfo.CommentColumn];
  1751. }
  1752. catch (InvalidCastException innerException)
  1753. {
  1754. throw new StrongTypingException("The value for column 'Comment' in table 'CustomerInfo' is DBNull.", innerException);
  1755. }
  1756. }
  1757. set
  1758. {
  1759. base[tableCustomerInfo.CommentColumn] = value;
  1760. }
  1761. }
  1762. [DebuggerNonUserCode]
  1763. public DateTime PayTime
  1764. {
  1765. get
  1766. {
  1767. try
  1768. {
  1769. return (DateTime)base[tableCustomerInfo.PayTimeColumn];
  1770. }
  1771. catch (InvalidCastException innerException)
  1772. {
  1773. throw new StrongTypingException("The value for column 'PayTime' in table 'CustomerInfo' is DBNull.", innerException);
  1774. }
  1775. }
  1776. set
  1777. {
  1778. base[tableCustomerInfo.PayTimeColumn] = value;
  1779. }
  1780. }
  1781. [DebuggerNonUserCode]
  1782. internal CustomerInfoRow(DataRowBuilder rb)
  1783. : base(rb)
  1784. {
  1785. tableCustomerInfo = (CustomerInfoDataTable)base.Table;
  1786. }
  1787. [DebuggerNonUserCode]
  1788. public bool IsCommentNull()
  1789. {
  1790. return IsNull(tableCustomerInfo.CommentColumn);
  1791. }
  1792. [DebuggerNonUserCode]
  1793. public void SetCommentNull()
  1794. {
  1795. base[tableCustomerInfo.CommentColumn] = Convert.DBNull;
  1796. }
  1797. [DebuggerNonUserCode]
  1798. public bool IsPayTimeNull()
  1799. {
  1800. return IsNull(tableCustomerInfo.PayTimeColumn);
  1801. }
  1802. [DebuggerNonUserCode]
  1803. public void SetPayTimeNull()
  1804. {
  1805. base[tableCustomerInfo.PayTimeColumn] = Convert.DBNull;
  1806. }
  1807. }
  1808. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  1809. public class SaleBillRowChangeEvent : EventArgs
  1810. {
  1811. private SaleBillRow eventRow;
  1812. private DataRowAction eventAction;
  1813. [DebuggerNonUserCode]
  1814. public SaleBillRow Row => eventRow;
  1815. [DebuggerNonUserCode]
  1816. public DataRowAction Action => eventAction;
  1817. [DebuggerNonUserCode]
  1818. public SaleBillRowChangeEvent(SaleBillRow row, DataRowAction action)
  1819. {
  1820. eventRow = row;
  1821. eventAction = action;
  1822. }
  1823. }
  1824. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  1825. public class CessOutRowChangeEvent : EventArgs
  1826. {
  1827. private CessOutRow eventRow;
  1828. private DataRowAction eventAction;
  1829. [DebuggerNonUserCode]
  1830. public CessOutRow Row => eventRow;
  1831. [DebuggerNonUserCode]
  1832. public DataRowAction Action => eventAction;
  1833. [DebuggerNonUserCode]
  1834. public CessOutRowChangeEvent(CessOutRow row, DataRowAction action)
  1835. {
  1836. eventRow = row;
  1837. eventAction = action;
  1838. }
  1839. }
  1840. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  1841. public class CompanyRowChangeEvent : EventArgs
  1842. {
  1843. private CompanyRow eventRow;
  1844. private DataRowAction eventAction;
  1845. [DebuggerNonUserCode]
  1846. public CompanyRow Row => eventRow;
  1847. [DebuggerNonUserCode]
  1848. public DataRowAction Action => eventAction;
  1849. [DebuggerNonUserCode]
  1850. public CompanyRowChangeEvent(CompanyRow row, DataRowAction action)
  1851. {
  1852. eventRow = row;
  1853. eventAction = action;
  1854. }
  1855. }
  1856. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  1857. public class CustomerInfoRowChangeEvent : EventArgs
  1858. {
  1859. private CustomerInfoRow eventRow;
  1860. private DataRowAction eventAction;
  1861. [DebuggerNonUserCode]
  1862. public CustomerInfoRow Row => eventRow;
  1863. [DebuggerNonUserCode]
  1864. public DataRowAction Action => eventAction;
  1865. [DebuggerNonUserCode]
  1866. public CustomerInfoRowChangeEvent(CustomerInfoRow row, DataRowAction action)
  1867. {
  1868. eventRow = row;
  1869. eventAction = action;
  1870. }
  1871. }
  1872. private SaleBillDataTable tableSaleBill;
  1873. private CessOutDataTable tableCessOut;
  1874. private CompanyDataTable tableCompany;
  1875. private CustomerInfoDataTable tableCustomerInfo;
  1876. private SchemaSerializationMode _schemaSerializationMode = SchemaSerializationMode.IncludeSchema;
  1877. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  1878. [DebuggerNonUserCode]
  1879. [Browsable(false)]
  1880. public SaleBillDataTable SaleBill => tableSaleBill;
  1881. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  1882. [Browsable(false)]
  1883. [DebuggerNonUserCode]
  1884. public CessOutDataTable CessOut => tableCessOut;
  1885. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  1886. [DebuggerNonUserCode]
  1887. [Browsable(false)]
  1888. public CompanyDataTable Company => tableCompany;
  1889. [Browsable(false)]
  1890. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  1891. [DebuggerNonUserCode]
  1892. public CustomerInfoDataTable CustomerInfo => tableCustomerInfo;
  1893. [DebuggerNonUserCode]
  1894. [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
  1895. [Browsable(true)]
  1896. public override SchemaSerializationMode SchemaSerializationMode
  1897. {
  1898. get
  1899. {
  1900. return _schemaSerializationMode;
  1901. }
  1902. set
  1903. {
  1904. _schemaSerializationMode = value;
  1905. }
  1906. }
  1907. [DebuggerNonUserCode]
  1908. [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
  1909. public new DataTableCollection Tables => base.Tables;
  1910. [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
  1911. [DebuggerNonUserCode]
  1912. public new DataRelationCollection Relations => base.Relations;
  1913. [DebuggerNonUserCode]
  1914. public dsFrmSaleContract()
  1915. {
  1916. BeginInit();
  1917. InitClass();
  1918. CollectionChangeEventHandler value = SchemaChanged;
  1919. base.Tables.CollectionChanged += value;
  1920. base.Relations.CollectionChanged += value;
  1921. EndInit();
  1922. }
  1923. [DebuggerNonUserCode]
  1924. protected dsFrmSaleContract(SerializationInfo info, StreamingContext context)
  1925. : base(info, context, ConstructSchema: false)
  1926. {
  1927. if (IsBinarySerialized(info, context))
  1928. {
  1929. InitVars(initTable: false);
  1930. CollectionChangeEventHandler value = SchemaChanged;
  1931. Tables.CollectionChanged += value;
  1932. Relations.CollectionChanged += value;
  1933. return;
  1934. }
  1935. string s = (string)info.GetValue("XmlSchema", typeof(string));
  1936. if (DetermineSchemaSerializationMode(info, context) == SchemaSerializationMode.IncludeSchema)
  1937. {
  1938. DataSet dataSet = new DataSet();
  1939. dataSet.ReadXmlSchema(new XmlTextReader(new StringReader(s)));
  1940. if (dataSet.Tables["SaleBill"] != null)
  1941. {
  1942. base.Tables.Add(new SaleBillDataTable(dataSet.Tables["SaleBill"]));
  1943. }
  1944. if (dataSet.Tables["CessOut"] != null)
  1945. {
  1946. base.Tables.Add(new CessOutDataTable(dataSet.Tables["CessOut"]));
  1947. }
  1948. if (dataSet.Tables["Company"] != null)
  1949. {
  1950. base.Tables.Add(new CompanyDataTable(dataSet.Tables["Company"]));
  1951. }
  1952. if (dataSet.Tables["CustomerInfo"] != null)
  1953. {
  1954. base.Tables.Add(new CustomerInfoDataTable(dataSet.Tables["CustomerInfo"]));
  1955. }
  1956. base.DataSetName = dataSet.DataSetName;
  1957. base.Prefix = dataSet.Prefix;
  1958. base.Namespace = dataSet.Namespace;
  1959. base.Locale = dataSet.Locale;
  1960. base.CaseSensitive = dataSet.CaseSensitive;
  1961. base.EnforceConstraints = dataSet.EnforceConstraints;
  1962. Merge(dataSet, preserveChanges: false, MissingSchemaAction.Add);
  1963. InitVars();
  1964. }
  1965. else
  1966. {
  1967. ReadXmlSchema(new XmlTextReader(new StringReader(s)));
  1968. }
  1969. GetSerializationData(info, context);
  1970. CollectionChangeEventHandler value2 = SchemaChanged;
  1971. base.Tables.CollectionChanged += value2;
  1972. Relations.CollectionChanged += value2;
  1973. }
  1974. [DebuggerNonUserCode]
  1975. protected override void InitializeDerivedDataSet()
  1976. {
  1977. BeginInit();
  1978. InitClass();
  1979. EndInit();
  1980. }
  1981. [DebuggerNonUserCode]
  1982. public override DataSet Clone()
  1983. {
  1984. dsFrmSaleContract dsFrmSaleContract = (dsFrmSaleContract)base.Clone();
  1985. dsFrmSaleContract.InitVars();
  1986. dsFrmSaleContract.SchemaSerializationMode = SchemaSerializationMode;
  1987. return dsFrmSaleContract;
  1988. }
  1989. [DebuggerNonUserCode]
  1990. protected override bool ShouldSerializeTables()
  1991. {
  1992. return false;
  1993. }
  1994. [DebuggerNonUserCode]
  1995. protected override bool ShouldSerializeRelations()
  1996. {
  1997. return false;
  1998. }
  1999. [DebuggerNonUserCode]
  2000. protected override void ReadXmlSerializable(XmlReader reader)
  2001. {
  2002. if (DetermineSchemaSerializationMode(reader) == SchemaSerializationMode.IncludeSchema)
  2003. {
  2004. Reset();
  2005. DataSet dataSet = new DataSet();
  2006. dataSet.ReadXml(reader);
  2007. if (dataSet.Tables["SaleBill"] != null)
  2008. {
  2009. base.Tables.Add(new SaleBillDataTable(dataSet.Tables["SaleBill"]));
  2010. }
  2011. if (dataSet.Tables["CessOut"] != null)
  2012. {
  2013. base.Tables.Add(new CessOutDataTable(dataSet.Tables["CessOut"]));
  2014. }
  2015. if (dataSet.Tables["Company"] != null)
  2016. {
  2017. base.Tables.Add(new CompanyDataTable(dataSet.Tables["Company"]));
  2018. }
  2019. if (dataSet.Tables["CustomerInfo"] != null)
  2020. {
  2021. base.Tables.Add(new CustomerInfoDataTable(dataSet.Tables["CustomerInfo"]));
  2022. }
  2023. base.DataSetName = dataSet.DataSetName;
  2024. base.Prefix = dataSet.Prefix;
  2025. base.Namespace = dataSet.Namespace;
  2026. base.Locale = dataSet.Locale;
  2027. base.CaseSensitive = dataSet.CaseSensitive;
  2028. base.EnforceConstraints = dataSet.EnforceConstraints;
  2029. Merge(dataSet, preserveChanges: false, MissingSchemaAction.Add);
  2030. InitVars();
  2031. }
  2032. else
  2033. {
  2034. ReadXml(reader);
  2035. InitVars();
  2036. }
  2037. }
  2038. [DebuggerNonUserCode]
  2039. protected override XmlSchema GetSchemaSerializable()
  2040. {
  2041. MemoryStream memoryStream = new MemoryStream();
  2042. WriteXmlSchema(new XmlTextWriter(memoryStream, null));
  2043. memoryStream.Position = 0L;
  2044. return XmlSchema.Read(new XmlTextReader(memoryStream), null);
  2045. }
  2046. [DebuggerNonUserCode]
  2047. internal void InitVars()
  2048. {
  2049. InitVars(initTable: true);
  2050. }
  2051. [DebuggerNonUserCode]
  2052. internal void InitVars(bool initTable)
  2053. {
  2054. tableSaleBill = (SaleBillDataTable)base.Tables["SaleBill"];
  2055. if (initTable && tableSaleBill != null)
  2056. {
  2057. tableSaleBill.InitVars();
  2058. }
  2059. tableCessOut = (CessOutDataTable)base.Tables["CessOut"];
  2060. if (initTable && tableCessOut != null)
  2061. {
  2062. tableCessOut.InitVars();
  2063. }
  2064. tableCompany = (CompanyDataTable)base.Tables["Company"];
  2065. if (initTable && tableCompany != null)
  2066. {
  2067. tableCompany.InitVars();
  2068. }
  2069. tableCustomerInfo = (CustomerInfoDataTable)base.Tables["CustomerInfo"];
  2070. if (initTable && tableCustomerInfo != null)
  2071. {
  2072. tableCustomerInfo.InitVars();
  2073. }
  2074. }
  2075. [DebuggerNonUserCode]
  2076. private void InitClass()
  2077. {
  2078. base.DataSetName = "dsFrmSaleContract";
  2079. base.Prefix = "";
  2080. base.Namespace = "http://tempuri.org/dsFrmSaleContract.xsd";
  2081. base.EnforceConstraints = true;
  2082. SchemaSerializationMode = SchemaSerializationMode.IncludeSchema;
  2083. tableSaleBill = new SaleBillDataTable();
  2084. base.Tables.Add(tableSaleBill);
  2085. tableCessOut = new CessOutDataTable();
  2086. base.Tables.Add(tableCessOut);
  2087. tableCompany = new CompanyDataTable();
  2088. base.Tables.Add(tableCompany);
  2089. tableCustomerInfo = new CustomerInfoDataTable();
  2090. base.Tables.Add(tableCustomerInfo);
  2091. }
  2092. [DebuggerNonUserCode]
  2093. private bool ShouldSerializeSaleBill()
  2094. {
  2095. return false;
  2096. }
  2097. [DebuggerNonUserCode]
  2098. private bool ShouldSerializeCessOut()
  2099. {
  2100. return false;
  2101. }
  2102. [DebuggerNonUserCode]
  2103. private bool ShouldSerializeCompany()
  2104. {
  2105. return false;
  2106. }
  2107. [DebuggerNonUserCode]
  2108. private bool ShouldSerializeCustomerInfo()
  2109. {
  2110. return false;
  2111. }
  2112. [DebuggerNonUserCode]
  2113. private void SchemaChanged(object sender, CollectionChangeEventArgs e)
  2114. {
  2115. if (e.Action == CollectionChangeAction.Remove)
  2116. {
  2117. InitVars();
  2118. }
  2119. }
  2120. [DebuggerNonUserCode]
  2121. public static XmlSchemaComplexType GetTypedDataSetSchema(XmlSchemaSet xs)
  2122. {
  2123. dsFrmSaleContract dsFrmSaleContract = new dsFrmSaleContract();
  2124. XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
  2125. XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
  2126. xs.Add(dsFrmSaleContract.GetSchemaSerializable());
  2127. XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
  2128. xmlSchemaAny.Namespace = dsFrmSaleContract.Namespace;
  2129. xmlSchemaSequence.Items.Add(xmlSchemaAny);
  2130. xmlSchemaComplexType.Particle = xmlSchemaSequence;
  2131. return xmlSchemaComplexType;
  2132. }
  2133. }
  2134. }