dsUIMonthStatistics.cs 52 KB

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