dsFrmStocktakingBill.cs 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015
  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("dsFrmStocktakingBill")]
  17. [ToolboxItem(true)]
  18. [HelpKeyword("vs.data.DataSet")]
  19. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  20. [DesignerCategory("code")]
  21. [XmlSchemaProvider("GetTypedDataSetSchema")]
  22. public class dsFrmStocktakingBill : DataSet
  23. {
  24. public delegate void StocktakingBillProductRowChangeEventHandler(object sender, StocktakingBillProductRowChangeEvent e);
  25. public delegate void StocktakingBillRowChangeEventHandler(object sender, StocktakingBillRowChangeEvent e);
  26. public delegate void AppendInfoRowChangeEventHandler(object sender, AppendInfoRowChangeEvent e);
  27. [Serializable]
  28. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  29. [XmlSchemaProvider("GetTypedTableSchema")]
  30. public class StocktakingBillProductDataTable : DataTable, IEnumerable
  31. {
  32. private DataColumn columnNo_StocktakingBillProduct;
  33. private DataColumn columnStockQty_StocktakingBillProduct;
  34. private DataColumn columnQuantity_StocktakingBillProduct;
  35. private DataColumn columnUnitPrice_StocktakingBillProduct;
  36. private DataColumn columnComment_StocktakingBillProduct;
  37. private DataColumn columnAccount;
  38. private DataColumn columnNo_Product;
  39. private DataColumn columnName_Product;
  40. private DataColumn columnUnit_Product;
  41. private DataColumn columnNo_Location;
  42. private DataColumn columnName_Location;
  43. private DataColumn columnNo_StocktakingBill;
  44. [DebuggerNonUserCode]
  45. public DataColumn No_StocktakingBillProductColumn => columnNo_StocktakingBillProduct;
  46. [DebuggerNonUserCode]
  47. public DataColumn StockQty_StocktakingBillProductColumn => columnStockQty_StocktakingBillProduct;
  48. [DebuggerNonUserCode]
  49. public DataColumn Quantity_StocktakingBillProductColumn => columnQuantity_StocktakingBillProduct;
  50. [DebuggerNonUserCode]
  51. public DataColumn UnitPrice_StocktakingBillProductColumn => columnUnitPrice_StocktakingBillProduct;
  52. [DebuggerNonUserCode]
  53. public DataColumn Comment_StocktakingBillProductColumn => columnComment_StocktakingBillProduct;
  54. [DebuggerNonUserCode]
  55. public DataColumn AccountColumn => columnAccount;
  56. [DebuggerNonUserCode]
  57. public DataColumn No_ProductColumn => columnNo_Product;
  58. [DebuggerNonUserCode]
  59. public DataColumn Name_ProductColumn => columnName_Product;
  60. [DebuggerNonUserCode]
  61. public DataColumn Unit_ProductColumn => columnUnit_Product;
  62. [DebuggerNonUserCode]
  63. public DataColumn No_LocationColumn => columnNo_Location;
  64. [DebuggerNonUserCode]
  65. public DataColumn Name_LocationColumn => columnName_Location;
  66. [DebuggerNonUserCode]
  67. public DataColumn No_StocktakingBillColumn => columnNo_StocktakingBill;
  68. [DebuggerNonUserCode]
  69. [Browsable(false)]
  70. public int Count => base.Rows.Count;
  71. [DebuggerNonUserCode]
  72. public StocktakingBillProductRow this[int index] => (StocktakingBillProductRow)base.Rows[index];
  73. public event StocktakingBillProductRowChangeEventHandler StocktakingBillProductRowChanging;
  74. public event StocktakingBillProductRowChangeEventHandler StocktakingBillProductRowChanged;
  75. public event StocktakingBillProductRowChangeEventHandler StocktakingBillProductRowDeleting;
  76. public event StocktakingBillProductRowChangeEventHandler StocktakingBillProductRowDeleted;
  77. [DebuggerNonUserCode]
  78. public StocktakingBillProductDataTable()
  79. {
  80. base.TableName = "StocktakingBillProduct";
  81. BeginInit();
  82. InitClass();
  83. EndInit();
  84. }
  85. [DebuggerNonUserCode]
  86. internal StocktakingBillProductDataTable(DataTable table)
  87. {
  88. base.TableName = table.TableName;
  89. if (table.CaseSensitive != table.DataSet.CaseSensitive)
  90. {
  91. base.CaseSensitive = table.CaseSensitive;
  92. }
  93. if (table.Locale.ToString() != table.DataSet.Locale.ToString())
  94. {
  95. base.Locale = table.Locale;
  96. }
  97. if (table.Namespace != table.DataSet.Namespace)
  98. {
  99. base.Namespace = table.Namespace;
  100. }
  101. base.Prefix = table.Prefix;
  102. base.MinimumCapacity = table.MinimumCapacity;
  103. }
  104. [DebuggerNonUserCode]
  105. protected StocktakingBillProductDataTable(SerializationInfo info, StreamingContext context)
  106. : base(info, context)
  107. {
  108. InitVars();
  109. }
  110. [DebuggerNonUserCode]
  111. public void AddStocktakingBillProductRow(StocktakingBillProductRow row)
  112. {
  113. base.Rows.Add(row);
  114. }
  115. [DebuggerNonUserCode]
  116. public StocktakingBillProductRow AddStocktakingBillProductRow(string No_StocktakingBillProduct, decimal StockQty_StocktakingBillProduct, decimal Quantity_StocktakingBillProduct, decimal UnitPrice_StocktakingBillProduct, string Comment_StocktakingBillProduct, decimal Account, string No_Product, string Name_Product, string Unit_Product, string No_Location, string Name_Location, string No_StocktakingBill)
  117. {
  118. StocktakingBillProductRow stocktakingBillProductRow = (StocktakingBillProductRow)NewRow();
  119. stocktakingBillProductRow.ItemArray = new object[12]
  120. {
  121. No_StocktakingBillProduct,
  122. StockQty_StocktakingBillProduct,
  123. Quantity_StocktakingBillProduct,
  124. UnitPrice_StocktakingBillProduct,
  125. Comment_StocktakingBillProduct,
  126. Account,
  127. No_Product,
  128. Name_Product,
  129. Unit_Product,
  130. No_Location,
  131. Name_Location,
  132. No_StocktakingBill
  133. };
  134. base.Rows.Add(stocktakingBillProductRow);
  135. return stocktakingBillProductRow;
  136. }
  137. [DebuggerNonUserCode]
  138. public virtual IEnumerator GetEnumerator()
  139. {
  140. return base.Rows.GetEnumerator();
  141. }
  142. [DebuggerNonUserCode]
  143. public override DataTable Clone()
  144. {
  145. StocktakingBillProductDataTable stocktakingBillProductDataTable = (StocktakingBillProductDataTable)base.Clone();
  146. stocktakingBillProductDataTable.InitVars();
  147. return stocktakingBillProductDataTable;
  148. }
  149. [DebuggerNonUserCode]
  150. protected override DataTable CreateInstance()
  151. {
  152. return new StocktakingBillProductDataTable();
  153. }
  154. [DebuggerNonUserCode]
  155. internal void InitVars()
  156. {
  157. columnNo_StocktakingBillProduct = base.Columns["No_StocktakingBillProduct"];
  158. columnStockQty_StocktakingBillProduct = base.Columns["StockQty_StocktakingBillProduct"];
  159. columnQuantity_StocktakingBillProduct = base.Columns["Quantity_StocktakingBillProduct"];
  160. columnUnitPrice_StocktakingBillProduct = base.Columns["UnitPrice_StocktakingBillProduct"];
  161. columnComment_StocktakingBillProduct = base.Columns["Comment_StocktakingBillProduct"];
  162. columnAccount = base.Columns["Account"];
  163. columnNo_Product = base.Columns["No_Product"];
  164. columnName_Product = base.Columns["Name_Product"];
  165. columnUnit_Product = base.Columns["Unit_Product"];
  166. columnNo_Location = base.Columns["No_Location"];
  167. columnName_Location = base.Columns["Name_Location"];
  168. columnNo_StocktakingBill = base.Columns["No_StocktakingBill"];
  169. }
  170. [DebuggerNonUserCode]
  171. private void InitClass()
  172. {
  173. columnNo_StocktakingBillProduct = new DataColumn("No_StocktakingBillProduct", typeof(string), null, MappingType.Element);
  174. base.Columns.Add(columnNo_StocktakingBillProduct);
  175. columnStockQty_StocktakingBillProduct = new DataColumn("StockQty_StocktakingBillProduct", typeof(decimal), null, MappingType.Element);
  176. base.Columns.Add(columnStockQty_StocktakingBillProduct);
  177. columnQuantity_StocktakingBillProduct = new DataColumn("Quantity_StocktakingBillProduct", typeof(decimal), null, MappingType.Element);
  178. base.Columns.Add(columnQuantity_StocktakingBillProduct);
  179. columnUnitPrice_StocktakingBillProduct = new DataColumn("UnitPrice_StocktakingBillProduct", typeof(decimal), null, MappingType.Element);
  180. base.Columns.Add(columnUnitPrice_StocktakingBillProduct);
  181. columnComment_StocktakingBillProduct = new DataColumn("Comment_StocktakingBillProduct", typeof(string), null, MappingType.Element);
  182. base.Columns.Add(columnComment_StocktakingBillProduct);
  183. columnAccount = new DataColumn("Account", typeof(decimal), null, MappingType.Element);
  184. base.Columns.Add(columnAccount);
  185. columnNo_Product = new DataColumn("No_Product", typeof(string), null, MappingType.Element);
  186. base.Columns.Add(columnNo_Product);
  187. columnName_Product = new DataColumn("Name_Product", typeof(string), null, MappingType.Element);
  188. base.Columns.Add(columnName_Product);
  189. columnUnit_Product = new DataColumn("Unit_Product", typeof(string), null, MappingType.Element);
  190. base.Columns.Add(columnUnit_Product);
  191. columnNo_Location = new DataColumn("No_Location", typeof(string), null, MappingType.Element);
  192. base.Columns.Add(columnNo_Location);
  193. columnName_Location = new DataColumn("Name_Location", typeof(string), null, MappingType.Element);
  194. base.Columns.Add(columnName_Location);
  195. columnNo_StocktakingBill = new DataColumn("No_StocktakingBill", typeof(string), null, MappingType.Element);
  196. base.Columns.Add(columnNo_StocktakingBill);
  197. }
  198. [DebuggerNonUserCode]
  199. public StocktakingBillProductRow NewStocktakingBillProductRow()
  200. {
  201. return (StocktakingBillProductRow)NewRow();
  202. }
  203. [DebuggerNonUserCode]
  204. protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
  205. {
  206. return new StocktakingBillProductRow(builder);
  207. }
  208. [DebuggerNonUserCode]
  209. protected override Type GetRowType()
  210. {
  211. return typeof(StocktakingBillProductRow);
  212. }
  213. [DebuggerNonUserCode]
  214. protected override void OnRowChanged(DataRowChangeEventArgs e)
  215. {
  216. base.OnRowChanged(e);
  217. if (this.StocktakingBillProductRowChanged != null)
  218. {
  219. this.StocktakingBillProductRowChanged(this, new StocktakingBillProductRowChangeEvent((StocktakingBillProductRow)e.Row, e.Action));
  220. }
  221. }
  222. [DebuggerNonUserCode]
  223. protected override void OnRowChanging(DataRowChangeEventArgs e)
  224. {
  225. base.OnRowChanging(e);
  226. if (this.StocktakingBillProductRowChanging != null)
  227. {
  228. this.StocktakingBillProductRowChanging(this, new StocktakingBillProductRowChangeEvent((StocktakingBillProductRow)e.Row, e.Action));
  229. }
  230. }
  231. [DebuggerNonUserCode]
  232. protected override void OnRowDeleted(DataRowChangeEventArgs e)
  233. {
  234. base.OnRowDeleted(e);
  235. if (this.StocktakingBillProductRowDeleted != null)
  236. {
  237. this.StocktakingBillProductRowDeleted(this, new StocktakingBillProductRowChangeEvent((StocktakingBillProductRow)e.Row, e.Action));
  238. }
  239. }
  240. [DebuggerNonUserCode]
  241. protected override void OnRowDeleting(DataRowChangeEventArgs e)
  242. {
  243. base.OnRowDeleting(e);
  244. if (this.StocktakingBillProductRowDeleting != null)
  245. {
  246. this.StocktakingBillProductRowDeleting(this, new StocktakingBillProductRowChangeEvent((StocktakingBillProductRow)e.Row, e.Action));
  247. }
  248. }
  249. [DebuggerNonUserCode]
  250. public void RemoveStocktakingBillProductRow(StocktakingBillProductRow row)
  251. {
  252. base.Rows.Remove(row);
  253. }
  254. [DebuggerNonUserCode]
  255. public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
  256. {
  257. XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
  258. XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
  259. dsFrmStocktakingBill dsFrmStocktakingBill = new dsFrmStocktakingBill();
  260. xs.Add(dsFrmStocktakingBill.GetSchemaSerializable());
  261. XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
  262. xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema";
  263. xmlSchemaAny.MinOccurs = 0m;
  264. xmlSchemaAny.MaxOccurs = decimal.MaxValue;
  265. xmlSchemaAny.ProcessContents = XmlSchemaContentProcessing.Lax;
  266. xmlSchemaSequence.Items.Add(xmlSchemaAny);
  267. XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny();
  268. xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  269. xmlSchemaAny2.MinOccurs = 1m;
  270. xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax;
  271. xmlSchemaSequence.Items.Add(xmlSchemaAny2);
  272. XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute();
  273. xmlSchemaAttribute.Name = "namespace";
  274. xmlSchemaAttribute.FixedValue = dsFrmStocktakingBill.Namespace;
  275. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
  276. XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
  277. xmlSchemaAttribute2.Name = "tableTypeName";
  278. xmlSchemaAttribute2.FixedValue = "StocktakingBillProductDataTable";
  279. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
  280. xmlSchemaComplexType.Particle = xmlSchemaSequence;
  281. return xmlSchemaComplexType;
  282. }
  283. }
  284. [Serializable]
  285. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  286. [XmlSchemaProvider("GetTypedTableSchema")]
  287. public class StocktakingBillDataTable : DataTable, IEnumerable
  288. {
  289. private DataColumn columnNo_StocktakingBill;
  290. private DataColumn columnDate_StocktakingBill;
  291. private DataColumn columnAssessDate_StocktakingBill;
  292. private DataColumn columnComment_StocktakingBill;
  293. private DataColumn columnCreateDate_StocktakingBill;
  294. private DataColumn columnLastModDate_StocktakingBill;
  295. private DataColumn columnName_Creator;
  296. private DataColumn columnName_Assessor;
  297. private DataColumn columnLastModUserName;
  298. private DataColumn columnNo_Location;
  299. private DataColumn columnName_Location;
  300. [DebuggerNonUserCode]
  301. public DataColumn No_StocktakingBillColumn => columnNo_StocktakingBill;
  302. [DebuggerNonUserCode]
  303. public DataColumn Date_StocktakingBillColumn => columnDate_StocktakingBill;
  304. [DebuggerNonUserCode]
  305. public DataColumn AssessDate_StocktakingBillColumn => columnAssessDate_StocktakingBill;
  306. [DebuggerNonUserCode]
  307. public DataColumn Comment_StocktakingBillColumn => columnComment_StocktakingBill;
  308. [DebuggerNonUserCode]
  309. public DataColumn CreateDate_StocktakingBillColumn => columnCreateDate_StocktakingBill;
  310. [DebuggerNonUserCode]
  311. public DataColumn LastModDate_StocktakingBillColumn => columnLastModDate_StocktakingBill;
  312. [DebuggerNonUserCode]
  313. public DataColumn Name_CreatorColumn => columnName_Creator;
  314. [DebuggerNonUserCode]
  315. public DataColumn Name_AssessorColumn => columnName_Assessor;
  316. [DebuggerNonUserCode]
  317. public DataColumn LastModUserNameColumn => columnLastModUserName;
  318. [DebuggerNonUserCode]
  319. public DataColumn No_LocationColumn => columnNo_Location;
  320. [DebuggerNonUserCode]
  321. public DataColumn Name_LocationColumn => columnName_Location;
  322. [DebuggerNonUserCode]
  323. [Browsable(false)]
  324. public int Count => base.Rows.Count;
  325. [DebuggerNonUserCode]
  326. public StocktakingBillRow this[int index] => (StocktakingBillRow)base.Rows[index];
  327. public event StocktakingBillRowChangeEventHandler StocktakingBillRowChanging;
  328. public event StocktakingBillRowChangeEventHandler StocktakingBillRowChanged;
  329. public event StocktakingBillRowChangeEventHandler StocktakingBillRowDeleting;
  330. public event StocktakingBillRowChangeEventHandler StocktakingBillRowDeleted;
  331. [DebuggerNonUserCode]
  332. public StocktakingBillDataTable()
  333. {
  334. base.TableName = "StocktakingBill";
  335. BeginInit();
  336. InitClass();
  337. EndInit();
  338. }
  339. [DebuggerNonUserCode]
  340. internal StocktakingBillDataTable(DataTable table)
  341. {
  342. base.TableName = table.TableName;
  343. if (table.CaseSensitive != table.DataSet.CaseSensitive)
  344. {
  345. base.CaseSensitive = table.CaseSensitive;
  346. }
  347. if (table.Locale.ToString() != table.DataSet.Locale.ToString())
  348. {
  349. base.Locale = table.Locale;
  350. }
  351. if (table.Namespace != table.DataSet.Namespace)
  352. {
  353. base.Namespace = table.Namespace;
  354. }
  355. base.Prefix = table.Prefix;
  356. base.MinimumCapacity = table.MinimumCapacity;
  357. }
  358. [DebuggerNonUserCode]
  359. protected StocktakingBillDataTable(SerializationInfo info, StreamingContext context)
  360. : base(info, context)
  361. {
  362. InitVars();
  363. }
  364. [DebuggerNonUserCode]
  365. public void AddStocktakingBillRow(StocktakingBillRow row)
  366. {
  367. base.Rows.Add(row);
  368. }
  369. [DebuggerNonUserCode]
  370. public StocktakingBillRow AddStocktakingBillRow(string No_StocktakingBill, DateTime Date_StocktakingBill, DateTime AssessDate_StocktakingBill, string Comment_StocktakingBill, DateTime CreateDate_StocktakingBill, DateTime LastModDate_StocktakingBill, string Name_Creator, string Name_Assessor, string LastModUserName, string No_Location, string Name_Location)
  371. {
  372. StocktakingBillRow stocktakingBillRow = (StocktakingBillRow)NewRow();
  373. stocktakingBillRow.ItemArray = new object[11]
  374. {
  375. No_StocktakingBill,
  376. Date_StocktakingBill,
  377. AssessDate_StocktakingBill,
  378. Comment_StocktakingBill,
  379. CreateDate_StocktakingBill,
  380. LastModDate_StocktakingBill,
  381. Name_Creator,
  382. Name_Assessor,
  383. LastModUserName,
  384. No_Location,
  385. Name_Location
  386. };
  387. base.Rows.Add(stocktakingBillRow);
  388. return stocktakingBillRow;
  389. }
  390. [DebuggerNonUserCode]
  391. public virtual IEnumerator GetEnumerator()
  392. {
  393. return base.Rows.GetEnumerator();
  394. }
  395. [DebuggerNonUserCode]
  396. public override DataTable Clone()
  397. {
  398. StocktakingBillDataTable stocktakingBillDataTable = (StocktakingBillDataTable)base.Clone();
  399. stocktakingBillDataTable.InitVars();
  400. return stocktakingBillDataTable;
  401. }
  402. [DebuggerNonUserCode]
  403. protected override DataTable CreateInstance()
  404. {
  405. return new StocktakingBillDataTable();
  406. }
  407. [DebuggerNonUserCode]
  408. internal void InitVars()
  409. {
  410. columnNo_StocktakingBill = base.Columns["No_StocktakingBill"];
  411. columnDate_StocktakingBill = base.Columns["Date_StocktakingBill"];
  412. columnAssessDate_StocktakingBill = base.Columns["AssessDate_StocktakingBill"];
  413. columnComment_StocktakingBill = base.Columns["Comment_StocktakingBill"];
  414. columnCreateDate_StocktakingBill = base.Columns["CreateDate_StocktakingBill"];
  415. columnLastModDate_StocktakingBill = base.Columns["LastModDate_StocktakingBill"];
  416. columnName_Creator = base.Columns["Name_Creator"];
  417. columnName_Assessor = base.Columns["Name_Assessor"];
  418. columnLastModUserName = base.Columns["LastModUserName"];
  419. columnNo_Location = base.Columns["No_Location"];
  420. columnName_Location = base.Columns["Name_Location"];
  421. }
  422. [DebuggerNonUserCode]
  423. private void InitClass()
  424. {
  425. columnNo_StocktakingBill = new DataColumn("No_StocktakingBill", typeof(string), null, MappingType.Element);
  426. base.Columns.Add(columnNo_StocktakingBill);
  427. columnDate_StocktakingBill = new DataColumn("Date_StocktakingBill", typeof(DateTime), null, MappingType.Element);
  428. base.Columns.Add(columnDate_StocktakingBill);
  429. columnAssessDate_StocktakingBill = new DataColumn("AssessDate_StocktakingBill", typeof(DateTime), null, MappingType.Element);
  430. base.Columns.Add(columnAssessDate_StocktakingBill);
  431. columnComment_StocktakingBill = new DataColumn("Comment_StocktakingBill", typeof(string), null, MappingType.Element);
  432. base.Columns.Add(columnComment_StocktakingBill);
  433. columnCreateDate_StocktakingBill = new DataColumn("CreateDate_StocktakingBill", typeof(DateTime), null, MappingType.Element);
  434. base.Columns.Add(columnCreateDate_StocktakingBill);
  435. columnLastModDate_StocktakingBill = new DataColumn("LastModDate_StocktakingBill", typeof(DateTime), null, MappingType.Element);
  436. base.Columns.Add(columnLastModDate_StocktakingBill);
  437. columnName_Creator = new DataColumn("Name_Creator", typeof(string), null, MappingType.Element);
  438. base.Columns.Add(columnName_Creator);
  439. columnName_Assessor = new DataColumn("Name_Assessor", typeof(string), null, MappingType.Element);
  440. base.Columns.Add(columnName_Assessor);
  441. columnLastModUserName = new DataColumn("LastModUserName", typeof(string), null, MappingType.Element);
  442. base.Columns.Add(columnLastModUserName);
  443. columnNo_Location = new DataColumn("No_Location", typeof(string), null, MappingType.Element);
  444. base.Columns.Add(columnNo_Location);
  445. columnName_Location = new DataColumn("Name_Location", typeof(string), null, MappingType.Element);
  446. base.Columns.Add(columnName_Location);
  447. }
  448. [DebuggerNonUserCode]
  449. public StocktakingBillRow NewStocktakingBillRow()
  450. {
  451. return (StocktakingBillRow)NewRow();
  452. }
  453. [DebuggerNonUserCode]
  454. protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
  455. {
  456. return new StocktakingBillRow(builder);
  457. }
  458. [DebuggerNonUserCode]
  459. protected override Type GetRowType()
  460. {
  461. return typeof(StocktakingBillRow);
  462. }
  463. [DebuggerNonUserCode]
  464. protected override void OnRowChanged(DataRowChangeEventArgs e)
  465. {
  466. base.OnRowChanged(e);
  467. if (this.StocktakingBillRowChanged != null)
  468. {
  469. this.StocktakingBillRowChanged(this, new StocktakingBillRowChangeEvent((StocktakingBillRow)e.Row, e.Action));
  470. }
  471. }
  472. [DebuggerNonUserCode]
  473. protected override void OnRowChanging(DataRowChangeEventArgs e)
  474. {
  475. base.OnRowChanging(e);
  476. if (this.StocktakingBillRowChanging != null)
  477. {
  478. this.StocktakingBillRowChanging(this, new StocktakingBillRowChangeEvent((StocktakingBillRow)e.Row, e.Action));
  479. }
  480. }
  481. [DebuggerNonUserCode]
  482. protected override void OnRowDeleted(DataRowChangeEventArgs e)
  483. {
  484. base.OnRowDeleted(e);
  485. if (this.StocktakingBillRowDeleted != null)
  486. {
  487. this.StocktakingBillRowDeleted(this, new StocktakingBillRowChangeEvent((StocktakingBillRow)e.Row, e.Action));
  488. }
  489. }
  490. [DebuggerNonUserCode]
  491. protected override void OnRowDeleting(DataRowChangeEventArgs e)
  492. {
  493. base.OnRowDeleting(e);
  494. if (this.StocktakingBillRowDeleting != null)
  495. {
  496. this.StocktakingBillRowDeleting(this, new StocktakingBillRowChangeEvent((StocktakingBillRow)e.Row, e.Action));
  497. }
  498. }
  499. [DebuggerNonUserCode]
  500. public void RemoveStocktakingBillRow(StocktakingBillRow row)
  501. {
  502. base.Rows.Remove(row);
  503. }
  504. [DebuggerNonUserCode]
  505. public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
  506. {
  507. XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
  508. XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
  509. dsFrmStocktakingBill dsFrmStocktakingBill = new dsFrmStocktakingBill();
  510. xs.Add(dsFrmStocktakingBill.GetSchemaSerializable());
  511. XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
  512. xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema";
  513. xmlSchemaAny.MinOccurs = 0m;
  514. xmlSchemaAny.MaxOccurs = decimal.MaxValue;
  515. xmlSchemaAny.ProcessContents = XmlSchemaContentProcessing.Lax;
  516. xmlSchemaSequence.Items.Add(xmlSchemaAny);
  517. XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny();
  518. xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  519. xmlSchemaAny2.MinOccurs = 1m;
  520. xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax;
  521. xmlSchemaSequence.Items.Add(xmlSchemaAny2);
  522. XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute();
  523. xmlSchemaAttribute.Name = "namespace";
  524. xmlSchemaAttribute.FixedValue = dsFrmStocktakingBill.Namespace;
  525. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
  526. XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
  527. xmlSchemaAttribute2.Name = "tableTypeName";
  528. xmlSchemaAttribute2.FixedValue = "StocktakingBillDataTable";
  529. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
  530. xmlSchemaComplexType.Particle = xmlSchemaSequence;
  531. return xmlSchemaComplexType;
  532. }
  533. }
  534. [Serializable]
  535. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  536. [XmlSchemaProvider("GetTypedTableSchema")]
  537. public class AppendInfoDataTable : DataTable, IEnumerable
  538. {
  539. private DataColumn columnCurrentCompany;
  540. private DataColumn columnCurrentUser;
  541. [DebuggerNonUserCode]
  542. public DataColumn CurrentCompanyColumn => columnCurrentCompany;
  543. [DebuggerNonUserCode]
  544. public DataColumn CurrentUserColumn => columnCurrentUser;
  545. [DebuggerNonUserCode]
  546. [Browsable(false)]
  547. public int Count => base.Rows.Count;
  548. [DebuggerNonUserCode]
  549. public AppendInfoRow this[int index] => (AppendInfoRow)base.Rows[index];
  550. public event AppendInfoRowChangeEventHandler AppendInfoRowChanging;
  551. public event AppendInfoRowChangeEventHandler AppendInfoRowChanged;
  552. public event AppendInfoRowChangeEventHandler AppendInfoRowDeleting;
  553. public event AppendInfoRowChangeEventHandler AppendInfoRowDeleted;
  554. [DebuggerNonUserCode]
  555. public AppendInfoDataTable()
  556. {
  557. base.TableName = "AppendInfo";
  558. BeginInit();
  559. InitClass();
  560. EndInit();
  561. }
  562. [DebuggerNonUserCode]
  563. internal AppendInfoDataTable(DataTable table)
  564. {
  565. base.TableName = table.TableName;
  566. if (table.CaseSensitive != table.DataSet.CaseSensitive)
  567. {
  568. base.CaseSensitive = table.CaseSensitive;
  569. }
  570. if (table.Locale.ToString() != table.DataSet.Locale.ToString())
  571. {
  572. base.Locale = table.Locale;
  573. }
  574. if (table.Namespace != table.DataSet.Namespace)
  575. {
  576. base.Namespace = table.Namespace;
  577. }
  578. base.Prefix = table.Prefix;
  579. base.MinimumCapacity = table.MinimumCapacity;
  580. }
  581. [DebuggerNonUserCode]
  582. protected AppendInfoDataTable(SerializationInfo info, StreamingContext context)
  583. : base(info, context)
  584. {
  585. InitVars();
  586. }
  587. [DebuggerNonUserCode]
  588. public void AddAppendInfoRow(AppendInfoRow row)
  589. {
  590. base.Rows.Add(row);
  591. }
  592. [DebuggerNonUserCode]
  593. public AppendInfoRow AddAppendInfoRow(string CurrentCompany, string CurrentUser)
  594. {
  595. AppendInfoRow appendInfoRow = (AppendInfoRow)NewRow();
  596. appendInfoRow.ItemArray = new object[2]
  597. {
  598. CurrentCompany,
  599. CurrentUser
  600. };
  601. base.Rows.Add(appendInfoRow);
  602. return appendInfoRow;
  603. }
  604. [DebuggerNonUserCode]
  605. public virtual IEnumerator GetEnumerator()
  606. {
  607. return base.Rows.GetEnumerator();
  608. }
  609. [DebuggerNonUserCode]
  610. public override DataTable Clone()
  611. {
  612. AppendInfoDataTable appendInfoDataTable = (AppendInfoDataTable)base.Clone();
  613. appendInfoDataTable.InitVars();
  614. return appendInfoDataTable;
  615. }
  616. [DebuggerNonUserCode]
  617. protected override DataTable CreateInstance()
  618. {
  619. return new AppendInfoDataTable();
  620. }
  621. [DebuggerNonUserCode]
  622. internal void InitVars()
  623. {
  624. columnCurrentCompany = base.Columns["CurrentCompany"];
  625. columnCurrentUser = base.Columns["CurrentUser"];
  626. }
  627. [DebuggerNonUserCode]
  628. private void InitClass()
  629. {
  630. columnCurrentCompany = new DataColumn("CurrentCompany", typeof(string), null, MappingType.Element);
  631. base.Columns.Add(columnCurrentCompany);
  632. columnCurrentUser = new DataColumn("CurrentUser", typeof(string), null, MappingType.Element);
  633. base.Columns.Add(columnCurrentUser);
  634. }
  635. [DebuggerNonUserCode]
  636. public AppendInfoRow NewAppendInfoRow()
  637. {
  638. return (AppendInfoRow)NewRow();
  639. }
  640. [DebuggerNonUserCode]
  641. protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
  642. {
  643. return new AppendInfoRow(builder);
  644. }
  645. [DebuggerNonUserCode]
  646. protected override Type GetRowType()
  647. {
  648. return typeof(AppendInfoRow);
  649. }
  650. [DebuggerNonUserCode]
  651. protected override void OnRowChanged(DataRowChangeEventArgs e)
  652. {
  653. base.OnRowChanged(e);
  654. if (this.AppendInfoRowChanged != null)
  655. {
  656. this.AppendInfoRowChanged(this, new AppendInfoRowChangeEvent((AppendInfoRow)e.Row, e.Action));
  657. }
  658. }
  659. [DebuggerNonUserCode]
  660. protected override void OnRowChanging(DataRowChangeEventArgs e)
  661. {
  662. base.OnRowChanging(e);
  663. if (this.AppendInfoRowChanging != null)
  664. {
  665. this.AppendInfoRowChanging(this, new AppendInfoRowChangeEvent((AppendInfoRow)e.Row, e.Action));
  666. }
  667. }
  668. [DebuggerNonUserCode]
  669. protected override void OnRowDeleted(DataRowChangeEventArgs e)
  670. {
  671. base.OnRowDeleted(e);
  672. if (this.AppendInfoRowDeleted != null)
  673. {
  674. this.AppendInfoRowDeleted(this, new AppendInfoRowChangeEvent((AppendInfoRow)e.Row, e.Action));
  675. }
  676. }
  677. [DebuggerNonUserCode]
  678. protected override void OnRowDeleting(DataRowChangeEventArgs e)
  679. {
  680. base.OnRowDeleting(e);
  681. if (this.AppendInfoRowDeleting != null)
  682. {
  683. this.AppendInfoRowDeleting(this, new AppendInfoRowChangeEvent((AppendInfoRow)e.Row, e.Action));
  684. }
  685. }
  686. [DebuggerNonUserCode]
  687. public void RemoveAppendInfoRow(AppendInfoRow row)
  688. {
  689. base.Rows.Remove(row);
  690. }
  691. [DebuggerNonUserCode]
  692. public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
  693. {
  694. XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
  695. XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
  696. dsFrmStocktakingBill dsFrmStocktakingBill = new dsFrmStocktakingBill();
  697. xs.Add(dsFrmStocktakingBill.GetSchemaSerializable());
  698. XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
  699. xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema";
  700. xmlSchemaAny.MinOccurs = 0m;
  701. xmlSchemaAny.MaxOccurs = decimal.MaxValue;
  702. xmlSchemaAny.ProcessContents = XmlSchemaContentProcessing.Lax;
  703. xmlSchemaSequence.Items.Add(xmlSchemaAny);
  704. XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny();
  705. xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  706. xmlSchemaAny2.MinOccurs = 1m;
  707. xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax;
  708. xmlSchemaSequence.Items.Add(xmlSchemaAny2);
  709. XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute();
  710. xmlSchemaAttribute.Name = "namespace";
  711. xmlSchemaAttribute.FixedValue = dsFrmStocktakingBill.Namespace;
  712. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
  713. XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
  714. xmlSchemaAttribute2.Name = "tableTypeName";
  715. xmlSchemaAttribute2.FixedValue = "AppendInfoDataTable";
  716. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
  717. xmlSchemaComplexType.Particle = xmlSchemaSequence;
  718. return xmlSchemaComplexType;
  719. }
  720. }
  721. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  722. public class StocktakingBillProductRow : DataRow
  723. {
  724. private StocktakingBillProductDataTable tableStocktakingBillProduct;
  725. [DebuggerNonUserCode]
  726. public string No_StocktakingBillProduct
  727. {
  728. get
  729. {
  730. try
  731. {
  732. return (string)base[tableStocktakingBillProduct.No_StocktakingBillProductColumn];
  733. }
  734. catch (InvalidCastException innerException)
  735. {
  736. throw new StrongTypingException("The value for column 'No_StocktakingBillProduct' in table 'StocktakingBillProduct' is DBNull.", innerException);
  737. }
  738. }
  739. set
  740. {
  741. base[tableStocktakingBillProduct.No_StocktakingBillProductColumn] = value;
  742. }
  743. }
  744. [DebuggerNonUserCode]
  745. public decimal StockQty_StocktakingBillProduct
  746. {
  747. get
  748. {
  749. try
  750. {
  751. return (decimal)base[tableStocktakingBillProduct.StockQty_StocktakingBillProductColumn];
  752. }
  753. catch (InvalidCastException innerException)
  754. {
  755. throw new StrongTypingException("The value for column 'StockQty_StocktakingBillProduct' in table 'StocktakingBillProduct' is DBNull.", innerException);
  756. }
  757. }
  758. set
  759. {
  760. base[tableStocktakingBillProduct.StockQty_StocktakingBillProductColumn] = value;
  761. }
  762. }
  763. [DebuggerNonUserCode]
  764. public decimal Quantity_StocktakingBillProduct
  765. {
  766. get
  767. {
  768. try
  769. {
  770. return (decimal)base[tableStocktakingBillProduct.Quantity_StocktakingBillProductColumn];
  771. }
  772. catch (InvalidCastException innerException)
  773. {
  774. throw new StrongTypingException("The value for column 'Quantity_StocktakingBillProduct' in table 'StocktakingBillProduct' is DBNull.", innerException);
  775. }
  776. }
  777. set
  778. {
  779. base[tableStocktakingBillProduct.Quantity_StocktakingBillProductColumn] = value;
  780. }
  781. }
  782. [DebuggerNonUserCode]
  783. public decimal UnitPrice_StocktakingBillProduct
  784. {
  785. get
  786. {
  787. try
  788. {
  789. return (decimal)base[tableStocktakingBillProduct.UnitPrice_StocktakingBillProductColumn];
  790. }
  791. catch (InvalidCastException innerException)
  792. {
  793. throw new StrongTypingException("The value for column 'UnitPrice_StocktakingBillProduct' in table 'StocktakingBillProduct' is DBNull.", innerException);
  794. }
  795. }
  796. set
  797. {
  798. base[tableStocktakingBillProduct.UnitPrice_StocktakingBillProductColumn] = value;
  799. }
  800. }
  801. [DebuggerNonUserCode]
  802. public string Comment_StocktakingBillProduct
  803. {
  804. get
  805. {
  806. try
  807. {
  808. return (string)base[tableStocktakingBillProduct.Comment_StocktakingBillProductColumn];
  809. }
  810. catch (InvalidCastException innerException)
  811. {
  812. throw new StrongTypingException("The value for column 'Comment_StocktakingBillProduct' in table 'StocktakingBillProduct' is DBNull.", innerException);
  813. }
  814. }
  815. set
  816. {
  817. base[tableStocktakingBillProduct.Comment_StocktakingBillProductColumn] = value;
  818. }
  819. }
  820. [DebuggerNonUserCode]
  821. public decimal Account
  822. {
  823. get
  824. {
  825. try
  826. {
  827. return (decimal)base[tableStocktakingBillProduct.AccountColumn];
  828. }
  829. catch (InvalidCastException innerException)
  830. {
  831. throw new StrongTypingException("The value for column 'Account' in table 'StocktakingBillProduct' is DBNull.", innerException);
  832. }
  833. }
  834. set
  835. {
  836. base[tableStocktakingBillProduct.AccountColumn] = value;
  837. }
  838. }
  839. [DebuggerNonUserCode]
  840. public string No_Product
  841. {
  842. get
  843. {
  844. try
  845. {
  846. return (string)base[tableStocktakingBillProduct.No_ProductColumn];
  847. }
  848. catch (InvalidCastException innerException)
  849. {
  850. throw new StrongTypingException("The value for column 'No_Product' in table 'StocktakingBillProduct' is DBNull.", innerException);
  851. }
  852. }
  853. set
  854. {
  855. base[tableStocktakingBillProduct.No_ProductColumn] = value;
  856. }
  857. }
  858. [DebuggerNonUserCode]
  859. public string Name_Product
  860. {
  861. get
  862. {
  863. try
  864. {
  865. return (string)base[tableStocktakingBillProduct.Name_ProductColumn];
  866. }
  867. catch (InvalidCastException innerException)
  868. {
  869. throw new StrongTypingException("The value for column 'Name_Product' in table 'StocktakingBillProduct' is DBNull.", innerException);
  870. }
  871. }
  872. set
  873. {
  874. base[tableStocktakingBillProduct.Name_ProductColumn] = value;
  875. }
  876. }
  877. [DebuggerNonUserCode]
  878. public string Unit_Product
  879. {
  880. get
  881. {
  882. try
  883. {
  884. return (string)base[tableStocktakingBillProduct.Unit_ProductColumn];
  885. }
  886. catch (InvalidCastException innerException)
  887. {
  888. throw new StrongTypingException("The value for column 'Unit_Product' in table 'StocktakingBillProduct' is DBNull.", innerException);
  889. }
  890. }
  891. set
  892. {
  893. base[tableStocktakingBillProduct.Unit_ProductColumn] = value;
  894. }
  895. }
  896. [DebuggerNonUserCode]
  897. public string No_Location
  898. {
  899. get
  900. {
  901. try
  902. {
  903. return (string)base[tableStocktakingBillProduct.No_LocationColumn];
  904. }
  905. catch (InvalidCastException innerException)
  906. {
  907. throw new StrongTypingException("The value for column 'No_Location' in table 'StocktakingBillProduct' is DBNull.", innerException);
  908. }
  909. }
  910. set
  911. {
  912. base[tableStocktakingBillProduct.No_LocationColumn] = value;
  913. }
  914. }
  915. [DebuggerNonUserCode]
  916. public string Name_Location
  917. {
  918. get
  919. {
  920. try
  921. {
  922. return (string)base[tableStocktakingBillProduct.Name_LocationColumn];
  923. }
  924. catch (InvalidCastException innerException)
  925. {
  926. throw new StrongTypingException("The value for column 'Name_Location' in table 'StocktakingBillProduct' is DBNull.", innerException);
  927. }
  928. }
  929. set
  930. {
  931. base[tableStocktakingBillProduct.Name_LocationColumn] = value;
  932. }
  933. }
  934. [DebuggerNonUserCode]
  935. public string No_StocktakingBill
  936. {
  937. get
  938. {
  939. try
  940. {
  941. return (string)base[tableStocktakingBillProduct.No_StocktakingBillColumn];
  942. }
  943. catch (InvalidCastException innerException)
  944. {
  945. throw new StrongTypingException("The value for column 'No_StocktakingBill' in table 'StocktakingBillProduct' is DBNull.", innerException);
  946. }
  947. }
  948. set
  949. {
  950. base[tableStocktakingBillProduct.No_StocktakingBillColumn] = value;
  951. }
  952. }
  953. [DebuggerNonUserCode]
  954. internal StocktakingBillProductRow(DataRowBuilder rb)
  955. : base(rb)
  956. {
  957. tableStocktakingBillProduct = (StocktakingBillProductDataTable)base.Table;
  958. }
  959. [DebuggerNonUserCode]
  960. public bool IsNo_StocktakingBillProductNull()
  961. {
  962. return IsNull(tableStocktakingBillProduct.No_StocktakingBillProductColumn);
  963. }
  964. [DebuggerNonUserCode]
  965. public void SetNo_StocktakingBillProductNull()
  966. {
  967. base[tableStocktakingBillProduct.No_StocktakingBillProductColumn] = Convert.DBNull;
  968. }
  969. [DebuggerNonUserCode]
  970. public bool IsStockQty_StocktakingBillProductNull()
  971. {
  972. return IsNull(tableStocktakingBillProduct.StockQty_StocktakingBillProductColumn);
  973. }
  974. [DebuggerNonUserCode]
  975. public void SetStockQty_StocktakingBillProductNull()
  976. {
  977. base[tableStocktakingBillProduct.StockQty_StocktakingBillProductColumn] = Convert.DBNull;
  978. }
  979. [DebuggerNonUserCode]
  980. public bool IsQuantity_StocktakingBillProductNull()
  981. {
  982. return IsNull(tableStocktakingBillProduct.Quantity_StocktakingBillProductColumn);
  983. }
  984. [DebuggerNonUserCode]
  985. public void SetQuantity_StocktakingBillProductNull()
  986. {
  987. base[tableStocktakingBillProduct.Quantity_StocktakingBillProductColumn] = Convert.DBNull;
  988. }
  989. [DebuggerNonUserCode]
  990. public bool IsUnitPrice_StocktakingBillProductNull()
  991. {
  992. return IsNull(tableStocktakingBillProduct.UnitPrice_StocktakingBillProductColumn);
  993. }
  994. [DebuggerNonUserCode]
  995. public void SetUnitPrice_StocktakingBillProductNull()
  996. {
  997. base[tableStocktakingBillProduct.UnitPrice_StocktakingBillProductColumn] = Convert.DBNull;
  998. }
  999. [DebuggerNonUserCode]
  1000. public bool IsComment_StocktakingBillProductNull()
  1001. {
  1002. return IsNull(tableStocktakingBillProduct.Comment_StocktakingBillProductColumn);
  1003. }
  1004. [DebuggerNonUserCode]
  1005. public void SetComment_StocktakingBillProductNull()
  1006. {
  1007. base[tableStocktakingBillProduct.Comment_StocktakingBillProductColumn] = Convert.DBNull;
  1008. }
  1009. [DebuggerNonUserCode]
  1010. public bool IsAccountNull()
  1011. {
  1012. return IsNull(tableStocktakingBillProduct.AccountColumn);
  1013. }
  1014. [DebuggerNonUserCode]
  1015. public void SetAccountNull()
  1016. {
  1017. base[tableStocktakingBillProduct.AccountColumn] = Convert.DBNull;
  1018. }
  1019. [DebuggerNonUserCode]
  1020. public bool IsNo_ProductNull()
  1021. {
  1022. return IsNull(tableStocktakingBillProduct.No_ProductColumn);
  1023. }
  1024. [DebuggerNonUserCode]
  1025. public void SetNo_ProductNull()
  1026. {
  1027. base[tableStocktakingBillProduct.No_ProductColumn] = Convert.DBNull;
  1028. }
  1029. [DebuggerNonUserCode]
  1030. public bool IsName_ProductNull()
  1031. {
  1032. return IsNull(tableStocktakingBillProduct.Name_ProductColumn);
  1033. }
  1034. [DebuggerNonUserCode]
  1035. public void SetName_ProductNull()
  1036. {
  1037. base[tableStocktakingBillProduct.Name_ProductColumn] = Convert.DBNull;
  1038. }
  1039. [DebuggerNonUserCode]
  1040. public bool IsUnit_ProductNull()
  1041. {
  1042. return IsNull(tableStocktakingBillProduct.Unit_ProductColumn);
  1043. }
  1044. [DebuggerNonUserCode]
  1045. public void SetUnit_ProductNull()
  1046. {
  1047. base[tableStocktakingBillProduct.Unit_ProductColumn] = Convert.DBNull;
  1048. }
  1049. [DebuggerNonUserCode]
  1050. public bool IsNo_LocationNull()
  1051. {
  1052. return IsNull(tableStocktakingBillProduct.No_LocationColumn);
  1053. }
  1054. [DebuggerNonUserCode]
  1055. public void SetNo_LocationNull()
  1056. {
  1057. base[tableStocktakingBillProduct.No_LocationColumn] = Convert.DBNull;
  1058. }
  1059. [DebuggerNonUserCode]
  1060. public bool IsName_LocationNull()
  1061. {
  1062. return IsNull(tableStocktakingBillProduct.Name_LocationColumn);
  1063. }
  1064. [DebuggerNonUserCode]
  1065. public void SetName_LocationNull()
  1066. {
  1067. base[tableStocktakingBillProduct.Name_LocationColumn] = Convert.DBNull;
  1068. }
  1069. [DebuggerNonUserCode]
  1070. public bool IsNo_StocktakingBillNull()
  1071. {
  1072. return IsNull(tableStocktakingBillProduct.No_StocktakingBillColumn);
  1073. }
  1074. [DebuggerNonUserCode]
  1075. public void SetNo_StocktakingBillNull()
  1076. {
  1077. base[tableStocktakingBillProduct.No_StocktakingBillColumn] = Convert.DBNull;
  1078. }
  1079. }
  1080. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  1081. public class StocktakingBillRow : DataRow
  1082. {
  1083. private StocktakingBillDataTable tableStocktakingBill;
  1084. [DebuggerNonUserCode]
  1085. public string No_StocktakingBill
  1086. {
  1087. get
  1088. {
  1089. try
  1090. {
  1091. return (string)base[tableStocktakingBill.No_StocktakingBillColumn];
  1092. }
  1093. catch (InvalidCastException innerException)
  1094. {
  1095. throw new StrongTypingException("The value for column 'No_StocktakingBill' in table 'StocktakingBill' is DBNull.", innerException);
  1096. }
  1097. }
  1098. set
  1099. {
  1100. base[tableStocktakingBill.No_StocktakingBillColumn] = value;
  1101. }
  1102. }
  1103. [DebuggerNonUserCode]
  1104. public DateTime Date_StocktakingBill
  1105. {
  1106. get
  1107. {
  1108. try
  1109. {
  1110. return (DateTime)base[tableStocktakingBill.Date_StocktakingBillColumn];
  1111. }
  1112. catch (InvalidCastException innerException)
  1113. {
  1114. throw new StrongTypingException("The value for column 'Date_StocktakingBill' in table 'StocktakingBill' is DBNull.", innerException);
  1115. }
  1116. }
  1117. set
  1118. {
  1119. base[tableStocktakingBill.Date_StocktakingBillColumn] = value;
  1120. }
  1121. }
  1122. [DebuggerNonUserCode]
  1123. public DateTime AssessDate_StocktakingBill
  1124. {
  1125. get
  1126. {
  1127. try
  1128. {
  1129. return (DateTime)base[tableStocktakingBill.AssessDate_StocktakingBillColumn];
  1130. }
  1131. catch (InvalidCastException innerException)
  1132. {
  1133. throw new StrongTypingException("The value for column 'AssessDate_StocktakingBill' in table 'StocktakingBill' is DBNull.", innerException);
  1134. }
  1135. }
  1136. set
  1137. {
  1138. base[tableStocktakingBill.AssessDate_StocktakingBillColumn] = value;
  1139. }
  1140. }
  1141. [DebuggerNonUserCode]
  1142. public string Comment_StocktakingBill
  1143. {
  1144. get
  1145. {
  1146. try
  1147. {
  1148. return (string)base[tableStocktakingBill.Comment_StocktakingBillColumn];
  1149. }
  1150. catch (InvalidCastException innerException)
  1151. {
  1152. throw new StrongTypingException("The value for column 'Comment_StocktakingBill' in table 'StocktakingBill' is DBNull.", innerException);
  1153. }
  1154. }
  1155. set
  1156. {
  1157. base[tableStocktakingBill.Comment_StocktakingBillColumn] = value;
  1158. }
  1159. }
  1160. [DebuggerNonUserCode]
  1161. public DateTime CreateDate_StocktakingBill
  1162. {
  1163. get
  1164. {
  1165. try
  1166. {
  1167. return (DateTime)base[tableStocktakingBill.CreateDate_StocktakingBillColumn];
  1168. }
  1169. catch (InvalidCastException innerException)
  1170. {
  1171. throw new StrongTypingException("The value for column 'CreateDate_StocktakingBill' in table 'StocktakingBill' is DBNull.", innerException);
  1172. }
  1173. }
  1174. set
  1175. {
  1176. base[tableStocktakingBill.CreateDate_StocktakingBillColumn] = value;
  1177. }
  1178. }
  1179. [DebuggerNonUserCode]
  1180. public DateTime LastModDate_StocktakingBill
  1181. {
  1182. get
  1183. {
  1184. try
  1185. {
  1186. return (DateTime)base[tableStocktakingBill.LastModDate_StocktakingBillColumn];
  1187. }
  1188. catch (InvalidCastException innerException)
  1189. {
  1190. throw new StrongTypingException("The value for column 'LastModDate_StocktakingBill' in table 'StocktakingBill' is DBNull.", innerException);
  1191. }
  1192. }
  1193. set
  1194. {
  1195. base[tableStocktakingBill.LastModDate_StocktakingBillColumn] = value;
  1196. }
  1197. }
  1198. [DebuggerNonUserCode]
  1199. public string Name_Creator
  1200. {
  1201. get
  1202. {
  1203. try
  1204. {
  1205. return (string)base[tableStocktakingBill.Name_CreatorColumn];
  1206. }
  1207. catch (InvalidCastException innerException)
  1208. {
  1209. throw new StrongTypingException("The value for column 'Name_Creator' in table 'StocktakingBill' is DBNull.", innerException);
  1210. }
  1211. }
  1212. set
  1213. {
  1214. base[tableStocktakingBill.Name_CreatorColumn] = value;
  1215. }
  1216. }
  1217. [DebuggerNonUserCode]
  1218. public string Name_Assessor
  1219. {
  1220. get
  1221. {
  1222. try
  1223. {
  1224. return (string)base[tableStocktakingBill.Name_AssessorColumn];
  1225. }
  1226. catch (InvalidCastException innerException)
  1227. {
  1228. throw new StrongTypingException("The value for column 'Name_Assessor' in table 'StocktakingBill' is DBNull.", innerException);
  1229. }
  1230. }
  1231. set
  1232. {
  1233. base[tableStocktakingBill.Name_AssessorColumn] = value;
  1234. }
  1235. }
  1236. [DebuggerNonUserCode]
  1237. public string LastModUserName
  1238. {
  1239. get
  1240. {
  1241. try
  1242. {
  1243. return (string)base[tableStocktakingBill.LastModUserNameColumn];
  1244. }
  1245. catch (InvalidCastException innerException)
  1246. {
  1247. throw new StrongTypingException("The value for column 'LastModUserName' in table 'StocktakingBill' is DBNull.", innerException);
  1248. }
  1249. }
  1250. set
  1251. {
  1252. base[tableStocktakingBill.LastModUserNameColumn] = value;
  1253. }
  1254. }
  1255. [DebuggerNonUserCode]
  1256. public string No_Location
  1257. {
  1258. get
  1259. {
  1260. try
  1261. {
  1262. return (string)base[tableStocktakingBill.No_LocationColumn];
  1263. }
  1264. catch (InvalidCastException innerException)
  1265. {
  1266. throw new StrongTypingException("The value for column 'No_Location' in table 'StocktakingBill' is DBNull.", innerException);
  1267. }
  1268. }
  1269. set
  1270. {
  1271. base[tableStocktakingBill.No_LocationColumn] = value;
  1272. }
  1273. }
  1274. [DebuggerNonUserCode]
  1275. public string Name_Location
  1276. {
  1277. get
  1278. {
  1279. try
  1280. {
  1281. return (string)base[tableStocktakingBill.Name_LocationColumn];
  1282. }
  1283. catch (InvalidCastException innerException)
  1284. {
  1285. throw new StrongTypingException("The value for column 'Name_Location' in table 'StocktakingBill' is DBNull.", innerException);
  1286. }
  1287. }
  1288. set
  1289. {
  1290. base[tableStocktakingBill.Name_LocationColumn] = value;
  1291. }
  1292. }
  1293. [DebuggerNonUserCode]
  1294. internal StocktakingBillRow(DataRowBuilder rb)
  1295. : base(rb)
  1296. {
  1297. tableStocktakingBill = (StocktakingBillDataTable)base.Table;
  1298. }
  1299. [DebuggerNonUserCode]
  1300. public bool IsNo_StocktakingBillNull()
  1301. {
  1302. return IsNull(tableStocktakingBill.No_StocktakingBillColumn);
  1303. }
  1304. [DebuggerNonUserCode]
  1305. public void SetNo_StocktakingBillNull()
  1306. {
  1307. base[tableStocktakingBill.No_StocktakingBillColumn] = Convert.DBNull;
  1308. }
  1309. [DebuggerNonUserCode]
  1310. public bool IsDate_StocktakingBillNull()
  1311. {
  1312. return IsNull(tableStocktakingBill.Date_StocktakingBillColumn);
  1313. }
  1314. [DebuggerNonUserCode]
  1315. public void SetDate_StocktakingBillNull()
  1316. {
  1317. base[tableStocktakingBill.Date_StocktakingBillColumn] = Convert.DBNull;
  1318. }
  1319. [DebuggerNonUserCode]
  1320. public bool IsAssessDate_StocktakingBillNull()
  1321. {
  1322. return IsNull(tableStocktakingBill.AssessDate_StocktakingBillColumn);
  1323. }
  1324. [DebuggerNonUserCode]
  1325. public void SetAssessDate_StocktakingBillNull()
  1326. {
  1327. base[tableStocktakingBill.AssessDate_StocktakingBillColumn] = Convert.DBNull;
  1328. }
  1329. [DebuggerNonUserCode]
  1330. public bool IsComment_StocktakingBillNull()
  1331. {
  1332. return IsNull(tableStocktakingBill.Comment_StocktakingBillColumn);
  1333. }
  1334. [DebuggerNonUserCode]
  1335. public void SetComment_StocktakingBillNull()
  1336. {
  1337. base[tableStocktakingBill.Comment_StocktakingBillColumn] = Convert.DBNull;
  1338. }
  1339. [DebuggerNonUserCode]
  1340. public bool IsCreateDate_StocktakingBillNull()
  1341. {
  1342. return IsNull(tableStocktakingBill.CreateDate_StocktakingBillColumn);
  1343. }
  1344. [DebuggerNonUserCode]
  1345. public void SetCreateDate_StocktakingBillNull()
  1346. {
  1347. base[tableStocktakingBill.CreateDate_StocktakingBillColumn] = Convert.DBNull;
  1348. }
  1349. [DebuggerNonUserCode]
  1350. public bool IsLastModDate_StocktakingBillNull()
  1351. {
  1352. return IsNull(tableStocktakingBill.LastModDate_StocktakingBillColumn);
  1353. }
  1354. [DebuggerNonUserCode]
  1355. public void SetLastModDate_StocktakingBillNull()
  1356. {
  1357. base[tableStocktakingBill.LastModDate_StocktakingBillColumn] = Convert.DBNull;
  1358. }
  1359. [DebuggerNonUserCode]
  1360. public bool IsName_CreatorNull()
  1361. {
  1362. return IsNull(tableStocktakingBill.Name_CreatorColumn);
  1363. }
  1364. [DebuggerNonUserCode]
  1365. public void SetName_CreatorNull()
  1366. {
  1367. base[tableStocktakingBill.Name_CreatorColumn] = Convert.DBNull;
  1368. }
  1369. [DebuggerNonUserCode]
  1370. public bool IsName_AssessorNull()
  1371. {
  1372. return IsNull(tableStocktakingBill.Name_AssessorColumn);
  1373. }
  1374. [DebuggerNonUserCode]
  1375. public void SetName_AssessorNull()
  1376. {
  1377. base[tableStocktakingBill.Name_AssessorColumn] = Convert.DBNull;
  1378. }
  1379. [DebuggerNonUserCode]
  1380. public bool IsLastModUserNameNull()
  1381. {
  1382. return IsNull(tableStocktakingBill.LastModUserNameColumn);
  1383. }
  1384. [DebuggerNonUserCode]
  1385. public void SetLastModUserNameNull()
  1386. {
  1387. base[tableStocktakingBill.LastModUserNameColumn] = Convert.DBNull;
  1388. }
  1389. [DebuggerNonUserCode]
  1390. public bool IsNo_LocationNull()
  1391. {
  1392. return IsNull(tableStocktakingBill.No_LocationColumn);
  1393. }
  1394. [DebuggerNonUserCode]
  1395. public void SetNo_LocationNull()
  1396. {
  1397. base[tableStocktakingBill.No_LocationColumn] = Convert.DBNull;
  1398. }
  1399. [DebuggerNonUserCode]
  1400. public bool IsName_LocationNull()
  1401. {
  1402. return IsNull(tableStocktakingBill.Name_LocationColumn);
  1403. }
  1404. [DebuggerNonUserCode]
  1405. public void SetName_LocationNull()
  1406. {
  1407. base[tableStocktakingBill.Name_LocationColumn] = Convert.DBNull;
  1408. }
  1409. }
  1410. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  1411. public class AppendInfoRow : DataRow
  1412. {
  1413. private AppendInfoDataTable tableAppendInfo;
  1414. [DebuggerNonUserCode]
  1415. public string CurrentCompany
  1416. {
  1417. get
  1418. {
  1419. try
  1420. {
  1421. return (string)base[tableAppendInfo.CurrentCompanyColumn];
  1422. }
  1423. catch (InvalidCastException innerException)
  1424. {
  1425. throw new StrongTypingException("The value for column 'CurrentCompany' in table 'AppendInfo' is DBNull.", innerException);
  1426. }
  1427. }
  1428. set
  1429. {
  1430. base[tableAppendInfo.CurrentCompanyColumn] = value;
  1431. }
  1432. }
  1433. [DebuggerNonUserCode]
  1434. public string CurrentUser
  1435. {
  1436. get
  1437. {
  1438. try
  1439. {
  1440. return (string)base[tableAppendInfo.CurrentUserColumn];
  1441. }
  1442. catch (InvalidCastException innerException)
  1443. {
  1444. throw new StrongTypingException("The value for column 'CurrentUser' in table 'AppendInfo' is DBNull.", innerException);
  1445. }
  1446. }
  1447. set
  1448. {
  1449. base[tableAppendInfo.CurrentUserColumn] = value;
  1450. }
  1451. }
  1452. [DebuggerNonUserCode]
  1453. internal AppendInfoRow(DataRowBuilder rb)
  1454. : base(rb)
  1455. {
  1456. tableAppendInfo = (AppendInfoDataTable)base.Table;
  1457. }
  1458. [DebuggerNonUserCode]
  1459. public bool IsCurrentCompanyNull()
  1460. {
  1461. return IsNull(tableAppendInfo.CurrentCompanyColumn);
  1462. }
  1463. [DebuggerNonUserCode]
  1464. public void SetCurrentCompanyNull()
  1465. {
  1466. base[tableAppendInfo.CurrentCompanyColumn] = Convert.DBNull;
  1467. }
  1468. [DebuggerNonUserCode]
  1469. public bool IsCurrentUserNull()
  1470. {
  1471. return IsNull(tableAppendInfo.CurrentUserColumn);
  1472. }
  1473. [DebuggerNonUserCode]
  1474. public void SetCurrentUserNull()
  1475. {
  1476. base[tableAppendInfo.CurrentUserColumn] = Convert.DBNull;
  1477. }
  1478. }
  1479. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  1480. public class StocktakingBillProductRowChangeEvent : EventArgs
  1481. {
  1482. private StocktakingBillProductRow eventRow;
  1483. private DataRowAction eventAction;
  1484. [DebuggerNonUserCode]
  1485. public StocktakingBillProductRow Row => eventRow;
  1486. [DebuggerNonUserCode]
  1487. public DataRowAction Action => eventAction;
  1488. [DebuggerNonUserCode]
  1489. public StocktakingBillProductRowChangeEvent(StocktakingBillProductRow row, DataRowAction action)
  1490. {
  1491. eventRow = row;
  1492. eventAction = action;
  1493. }
  1494. }
  1495. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  1496. public class StocktakingBillRowChangeEvent : EventArgs
  1497. {
  1498. private StocktakingBillRow eventRow;
  1499. private DataRowAction eventAction;
  1500. [DebuggerNonUserCode]
  1501. public StocktakingBillRow Row => eventRow;
  1502. [DebuggerNonUserCode]
  1503. public DataRowAction Action => eventAction;
  1504. [DebuggerNonUserCode]
  1505. public StocktakingBillRowChangeEvent(StocktakingBillRow row, DataRowAction action)
  1506. {
  1507. eventRow = row;
  1508. eventAction = action;
  1509. }
  1510. }
  1511. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  1512. public class AppendInfoRowChangeEvent : EventArgs
  1513. {
  1514. private AppendInfoRow eventRow;
  1515. private DataRowAction eventAction;
  1516. [DebuggerNonUserCode]
  1517. public AppendInfoRow Row => eventRow;
  1518. [DebuggerNonUserCode]
  1519. public DataRowAction Action => eventAction;
  1520. [DebuggerNonUserCode]
  1521. public AppendInfoRowChangeEvent(AppendInfoRow row, DataRowAction action)
  1522. {
  1523. eventRow = row;
  1524. eventAction = action;
  1525. }
  1526. }
  1527. private StocktakingBillProductDataTable tableStocktakingBillProduct;
  1528. private StocktakingBillDataTable tableStocktakingBill;
  1529. private AppendInfoDataTable tableAppendInfo;
  1530. private SchemaSerializationMode _schemaSerializationMode = SchemaSerializationMode.IncludeSchema;
  1531. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  1532. [DebuggerNonUserCode]
  1533. [Browsable(false)]
  1534. public StocktakingBillProductDataTable StocktakingBillProduct => tableStocktakingBillProduct;
  1535. [Browsable(false)]
  1536. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  1537. [DebuggerNonUserCode]
  1538. public StocktakingBillDataTable StocktakingBill => tableStocktakingBill;
  1539. [Browsable(false)]
  1540. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  1541. [DebuggerNonUserCode]
  1542. public AppendInfoDataTable AppendInfo => tableAppendInfo;
  1543. [DebuggerNonUserCode]
  1544. [Browsable(true)]
  1545. [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
  1546. public override SchemaSerializationMode SchemaSerializationMode
  1547. {
  1548. get
  1549. {
  1550. return _schemaSerializationMode;
  1551. }
  1552. set
  1553. {
  1554. _schemaSerializationMode = value;
  1555. }
  1556. }
  1557. [DebuggerNonUserCode]
  1558. [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
  1559. public new DataTableCollection Tables => base.Tables;
  1560. [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
  1561. [DebuggerNonUserCode]
  1562. public new DataRelationCollection Relations => base.Relations;
  1563. [DebuggerNonUserCode]
  1564. public dsFrmStocktakingBill()
  1565. {
  1566. BeginInit();
  1567. InitClass();
  1568. CollectionChangeEventHandler value = SchemaChanged;
  1569. base.Tables.CollectionChanged += value;
  1570. base.Relations.CollectionChanged += value;
  1571. EndInit();
  1572. }
  1573. [DebuggerNonUserCode]
  1574. protected dsFrmStocktakingBill(SerializationInfo info, StreamingContext context)
  1575. : base(info, context, ConstructSchema: false)
  1576. {
  1577. if (IsBinarySerialized(info, context))
  1578. {
  1579. InitVars(initTable: false);
  1580. CollectionChangeEventHandler value = SchemaChanged;
  1581. Tables.CollectionChanged += value;
  1582. Relations.CollectionChanged += value;
  1583. return;
  1584. }
  1585. string s = (string)info.GetValue("XmlSchema", typeof(string));
  1586. if (DetermineSchemaSerializationMode(info, context) == SchemaSerializationMode.IncludeSchema)
  1587. {
  1588. DataSet dataSet = new DataSet();
  1589. dataSet.ReadXmlSchema(new XmlTextReader(new StringReader(s)));
  1590. if (dataSet.Tables["StocktakingBillProduct"] != null)
  1591. {
  1592. base.Tables.Add(new StocktakingBillProductDataTable(dataSet.Tables["StocktakingBillProduct"]));
  1593. }
  1594. if (dataSet.Tables["StocktakingBill"] != null)
  1595. {
  1596. base.Tables.Add(new StocktakingBillDataTable(dataSet.Tables["StocktakingBill"]));
  1597. }
  1598. if (dataSet.Tables["AppendInfo"] != null)
  1599. {
  1600. base.Tables.Add(new AppendInfoDataTable(dataSet.Tables["AppendInfo"]));
  1601. }
  1602. base.DataSetName = dataSet.DataSetName;
  1603. base.Prefix = dataSet.Prefix;
  1604. base.Namespace = dataSet.Namespace;
  1605. base.Locale = dataSet.Locale;
  1606. base.CaseSensitive = dataSet.CaseSensitive;
  1607. base.EnforceConstraints = dataSet.EnforceConstraints;
  1608. Merge(dataSet, preserveChanges: false, MissingSchemaAction.Add);
  1609. InitVars();
  1610. }
  1611. else
  1612. {
  1613. ReadXmlSchema(new XmlTextReader(new StringReader(s)));
  1614. }
  1615. GetSerializationData(info, context);
  1616. CollectionChangeEventHandler value2 = SchemaChanged;
  1617. base.Tables.CollectionChanged += value2;
  1618. Relations.CollectionChanged += value2;
  1619. }
  1620. [DebuggerNonUserCode]
  1621. protected override void InitializeDerivedDataSet()
  1622. {
  1623. BeginInit();
  1624. InitClass();
  1625. EndInit();
  1626. }
  1627. [DebuggerNonUserCode]
  1628. public override DataSet Clone()
  1629. {
  1630. dsFrmStocktakingBill dsFrmStocktakingBill = (dsFrmStocktakingBill)base.Clone();
  1631. dsFrmStocktakingBill.InitVars();
  1632. dsFrmStocktakingBill.SchemaSerializationMode = SchemaSerializationMode;
  1633. return dsFrmStocktakingBill;
  1634. }
  1635. [DebuggerNonUserCode]
  1636. protected override bool ShouldSerializeTables()
  1637. {
  1638. return false;
  1639. }
  1640. [DebuggerNonUserCode]
  1641. protected override bool ShouldSerializeRelations()
  1642. {
  1643. return false;
  1644. }
  1645. [DebuggerNonUserCode]
  1646. protected override void ReadXmlSerializable(XmlReader reader)
  1647. {
  1648. if (DetermineSchemaSerializationMode(reader) == SchemaSerializationMode.IncludeSchema)
  1649. {
  1650. Reset();
  1651. DataSet dataSet = new DataSet();
  1652. dataSet.ReadXml(reader);
  1653. if (dataSet.Tables["StocktakingBillProduct"] != null)
  1654. {
  1655. base.Tables.Add(new StocktakingBillProductDataTable(dataSet.Tables["StocktakingBillProduct"]));
  1656. }
  1657. if (dataSet.Tables["StocktakingBill"] != null)
  1658. {
  1659. base.Tables.Add(new StocktakingBillDataTable(dataSet.Tables["StocktakingBill"]));
  1660. }
  1661. if (dataSet.Tables["AppendInfo"] != null)
  1662. {
  1663. base.Tables.Add(new AppendInfoDataTable(dataSet.Tables["AppendInfo"]));
  1664. }
  1665. base.DataSetName = dataSet.DataSetName;
  1666. base.Prefix = dataSet.Prefix;
  1667. base.Namespace = dataSet.Namespace;
  1668. base.Locale = dataSet.Locale;
  1669. base.CaseSensitive = dataSet.CaseSensitive;
  1670. base.EnforceConstraints = dataSet.EnforceConstraints;
  1671. Merge(dataSet, preserveChanges: false, MissingSchemaAction.Add);
  1672. InitVars();
  1673. }
  1674. else
  1675. {
  1676. ReadXml(reader);
  1677. InitVars();
  1678. }
  1679. }
  1680. [DebuggerNonUserCode]
  1681. protected override XmlSchema GetSchemaSerializable()
  1682. {
  1683. MemoryStream memoryStream = new MemoryStream();
  1684. WriteXmlSchema(new XmlTextWriter(memoryStream, null));
  1685. memoryStream.Position = 0L;
  1686. return XmlSchema.Read(new XmlTextReader(memoryStream), null);
  1687. }
  1688. [DebuggerNonUserCode]
  1689. internal void InitVars()
  1690. {
  1691. InitVars(initTable: true);
  1692. }
  1693. [DebuggerNonUserCode]
  1694. internal void InitVars(bool initTable)
  1695. {
  1696. tableStocktakingBillProduct = (StocktakingBillProductDataTable)base.Tables["StocktakingBillProduct"];
  1697. if (initTable && tableStocktakingBillProduct != null)
  1698. {
  1699. tableStocktakingBillProduct.InitVars();
  1700. }
  1701. tableStocktakingBill = (StocktakingBillDataTable)base.Tables["StocktakingBill"];
  1702. if (initTable && tableStocktakingBill != null)
  1703. {
  1704. tableStocktakingBill.InitVars();
  1705. }
  1706. tableAppendInfo = (AppendInfoDataTable)base.Tables["AppendInfo"];
  1707. if (initTable && tableAppendInfo != null)
  1708. {
  1709. tableAppendInfo.InitVars();
  1710. }
  1711. }
  1712. [DebuggerNonUserCode]
  1713. private void InitClass()
  1714. {
  1715. base.DataSetName = "dsFrmStocktakingBill";
  1716. base.Prefix = "";
  1717. base.Namespace = "http://tempuri.org/dsFrmStocktakingBill.xsd";
  1718. base.EnforceConstraints = true;
  1719. SchemaSerializationMode = SchemaSerializationMode.IncludeSchema;
  1720. tableStocktakingBillProduct = new StocktakingBillProductDataTable();
  1721. base.Tables.Add(tableStocktakingBillProduct);
  1722. tableStocktakingBill = new StocktakingBillDataTable();
  1723. base.Tables.Add(tableStocktakingBill);
  1724. tableAppendInfo = new AppendInfoDataTable();
  1725. base.Tables.Add(tableAppendInfo);
  1726. }
  1727. [DebuggerNonUserCode]
  1728. private bool ShouldSerializeStocktakingBillProduct()
  1729. {
  1730. return false;
  1731. }
  1732. [DebuggerNonUserCode]
  1733. private bool ShouldSerializeStocktakingBill()
  1734. {
  1735. return false;
  1736. }
  1737. [DebuggerNonUserCode]
  1738. private bool ShouldSerializeAppendInfo()
  1739. {
  1740. return false;
  1741. }
  1742. [DebuggerNonUserCode]
  1743. private void SchemaChanged(object sender, CollectionChangeEventArgs e)
  1744. {
  1745. if (e.Action == CollectionChangeAction.Remove)
  1746. {
  1747. InitVars();
  1748. }
  1749. }
  1750. [DebuggerNonUserCode]
  1751. public static XmlSchemaComplexType GetTypedDataSetSchema(XmlSchemaSet xs)
  1752. {
  1753. dsFrmStocktakingBill dsFrmStocktakingBill = new dsFrmStocktakingBill();
  1754. XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
  1755. XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
  1756. xs.Add(dsFrmStocktakingBill.GetSchemaSerializable());
  1757. XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
  1758. xmlSchemaAny.Namespace = dsFrmStocktakingBill.Namespace;
  1759. xmlSchemaSequence.Items.Add(xmlSchemaAny);
  1760. xmlSchemaComplexType.Particle = xmlSchemaSequence;
  1761. return xmlSchemaComplexType;
  1762. }
  1763. }
  1764. }