12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015 |
- using System;
- using System.CodeDom.Compiler;
- using System.Collections;
- using System.ComponentModel;
- using System.ComponentModel.Design;
- using System.Data;
- using System.Diagnostics;
- using System.IO;
- using System.Runtime.Serialization;
- using System.Xml;
- using System.Xml.Schema;
- using System.Xml.Serialization;
- namespace SunRoxm.BizPeri.ReportDataSet.ReportDataSet
- {
- [Serializable]
- [XmlRoot("dsFrmStocktakingBill")]
- [ToolboxItem(true)]
- [HelpKeyword("vs.data.DataSet")]
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [DesignerCategory("code")]
- [XmlSchemaProvider("GetTypedDataSetSchema")]
- public class dsFrmStocktakingBill : DataSet
- {
- public delegate void StocktakingBillProductRowChangeEventHandler(object sender, StocktakingBillProductRowChangeEvent e);
- public delegate void StocktakingBillRowChangeEventHandler(object sender, StocktakingBillRowChangeEvent e);
- public delegate void AppendInfoRowChangeEventHandler(object sender, AppendInfoRowChangeEvent e);
- [Serializable]
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [XmlSchemaProvider("GetTypedTableSchema")]
- public class StocktakingBillProductDataTable : DataTable, IEnumerable
- {
- private DataColumn columnNo_StocktakingBillProduct;
- private DataColumn columnStockQty_StocktakingBillProduct;
- private DataColumn columnQuantity_StocktakingBillProduct;
- private DataColumn columnUnitPrice_StocktakingBillProduct;
- private DataColumn columnComment_StocktakingBillProduct;
- private DataColumn columnAccount;
- private DataColumn columnNo_Product;
- private DataColumn columnName_Product;
- private DataColumn columnUnit_Product;
- private DataColumn columnNo_Location;
- private DataColumn columnName_Location;
- private DataColumn columnNo_StocktakingBill;
- [DebuggerNonUserCode]
- public DataColumn No_StocktakingBillProductColumn => columnNo_StocktakingBillProduct;
- [DebuggerNonUserCode]
- public DataColumn StockQty_StocktakingBillProductColumn => columnStockQty_StocktakingBillProduct;
- [DebuggerNonUserCode]
- public DataColumn Quantity_StocktakingBillProductColumn => columnQuantity_StocktakingBillProduct;
- [DebuggerNonUserCode]
- public DataColumn UnitPrice_StocktakingBillProductColumn => columnUnitPrice_StocktakingBillProduct;
- [DebuggerNonUserCode]
- public DataColumn Comment_StocktakingBillProductColumn => columnComment_StocktakingBillProduct;
- [DebuggerNonUserCode]
- public DataColumn AccountColumn => columnAccount;
- [DebuggerNonUserCode]
- public DataColumn No_ProductColumn => columnNo_Product;
- [DebuggerNonUserCode]
- public DataColumn Name_ProductColumn => columnName_Product;
- [DebuggerNonUserCode]
- public DataColumn Unit_ProductColumn => columnUnit_Product;
- [DebuggerNonUserCode]
- public DataColumn No_LocationColumn => columnNo_Location;
- [DebuggerNonUserCode]
- public DataColumn Name_LocationColumn => columnName_Location;
- [DebuggerNonUserCode]
- public DataColumn No_StocktakingBillColumn => columnNo_StocktakingBill;
- [DebuggerNonUserCode]
- [Browsable(false)]
- public int Count => base.Rows.Count;
- [DebuggerNonUserCode]
- public StocktakingBillProductRow this[int index] => (StocktakingBillProductRow)base.Rows[index];
- public event StocktakingBillProductRowChangeEventHandler StocktakingBillProductRowChanging;
- public event StocktakingBillProductRowChangeEventHandler StocktakingBillProductRowChanged;
- public event StocktakingBillProductRowChangeEventHandler StocktakingBillProductRowDeleting;
- public event StocktakingBillProductRowChangeEventHandler StocktakingBillProductRowDeleted;
- [DebuggerNonUserCode]
- public StocktakingBillProductDataTable()
- {
- base.TableName = "StocktakingBillProduct";
- BeginInit();
- InitClass();
- EndInit();
- }
- [DebuggerNonUserCode]
- internal StocktakingBillProductDataTable(DataTable table)
- {
- base.TableName = table.TableName;
- if (table.CaseSensitive != table.DataSet.CaseSensitive)
- {
- base.CaseSensitive = table.CaseSensitive;
- }
- if (table.Locale.ToString() != table.DataSet.Locale.ToString())
- {
- base.Locale = table.Locale;
- }
- if (table.Namespace != table.DataSet.Namespace)
- {
- base.Namespace = table.Namespace;
- }
- base.Prefix = table.Prefix;
- base.MinimumCapacity = table.MinimumCapacity;
- }
- [DebuggerNonUserCode]
- protected StocktakingBillProductDataTable(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- InitVars();
- }
- [DebuggerNonUserCode]
- public void AddStocktakingBillProductRow(StocktakingBillProductRow row)
- {
- base.Rows.Add(row);
- }
- [DebuggerNonUserCode]
- 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)
- {
- StocktakingBillProductRow stocktakingBillProductRow = (StocktakingBillProductRow)NewRow();
- stocktakingBillProductRow.ItemArray = new object[12]
- {
- No_StocktakingBillProduct,
- StockQty_StocktakingBillProduct,
- Quantity_StocktakingBillProduct,
- UnitPrice_StocktakingBillProduct,
- Comment_StocktakingBillProduct,
- Account,
- No_Product,
- Name_Product,
- Unit_Product,
- No_Location,
- Name_Location,
- No_StocktakingBill
- };
- base.Rows.Add(stocktakingBillProductRow);
- return stocktakingBillProductRow;
- }
- [DebuggerNonUserCode]
- public virtual IEnumerator GetEnumerator()
- {
- return base.Rows.GetEnumerator();
- }
- [DebuggerNonUserCode]
- public override DataTable Clone()
- {
- StocktakingBillProductDataTable stocktakingBillProductDataTable = (StocktakingBillProductDataTable)base.Clone();
- stocktakingBillProductDataTable.InitVars();
- return stocktakingBillProductDataTable;
- }
- [DebuggerNonUserCode]
- protected override DataTable CreateInstance()
- {
- return new StocktakingBillProductDataTable();
- }
- [DebuggerNonUserCode]
- internal void InitVars()
- {
- columnNo_StocktakingBillProduct = base.Columns["No_StocktakingBillProduct"];
- columnStockQty_StocktakingBillProduct = base.Columns["StockQty_StocktakingBillProduct"];
- columnQuantity_StocktakingBillProduct = base.Columns["Quantity_StocktakingBillProduct"];
- columnUnitPrice_StocktakingBillProduct = base.Columns["UnitPrice_StocktakingBillProduct"];
- columnComment_StocktakingBillProduct = base.Columns["Comment_StocktakingBillProduct"];
- columnAccount = base.Columns["Account"];
- columnNo_Product = base.Columns["No_Product"];
- columnName_Product = base.Columns["Name_Product"];
- columnUnit_Product = base.Columns["Unit_Product"];
- columnNo_Location = base.Columns["No_Location"];
- columnName_Location = base.Columns["Name_Location"];
- columnNo_StocktakingBill = base.Columns["No_StocktakingBill"];
- }
- [DebuggerNonUserCode]
- private void InitClass()
- {
- columnNo_StocktakingBillProduct = new DataColumn("No_StocktakingBillProduct", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnNo_StocktakingBillProduct);
- columnStockQty_StocktakingBillProduct = new DataColumn("StockQty_StocktakingBillProduct", typeof(decimal), null, MappingType.Element);
- base.Columns.Add(columnStockQty_StocktakingBillProduct);
- columnQuantity_StocktakingBillProduct = new DataColumn("Quantity_StocktakingBillProduct", typeof(decimal), null, MappingType.Element);
- base.Columns.Add(columnQuantity_StocktakingBillProduct);
- columnUnitPrice_StocktakingBillProduct = new DataColumn("UnitPrice_StocktakingBillProduct", typeof(decimal), null, MappingType.Element);
- base.Columns.Add(columnUnitPrice_StocktakingBillProduct);
- columnComment_StocktakingBillProduct = new DataColumn("Comment_StocktakingBillProduct", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnComment_StocktakingBillProduct);
- columnAccount = new DataColumn("Account", typeof(decimal), null, MappingType.Element);
- base.Columns.Add(columnAccount);
- columnNo_Product = new DataColumn("No_Product", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnNo_Product);
- columnName_Product = new DataColumn("Name_Product", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnName_Product);
- columnUnit_Product = new DataColumn("Unit_Product", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnUnit_Product);
- columnNo_Location = new DataColumn("No_Location", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnNo_Location);
- columnName_Location = new DataColumn("Name_Location", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnName_Location);
- columnNo_StocktakingBill = new DataColumn("No_StocktakingBill", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnNo_StocktakingBill);
- }
- [DebuggerNonUserCode]
- public StocktakingBillProductRow NewStocktakingBillProductRow()
- {
- return (StocktakingBillProductRow)NewRow();
- }
- [DebuggerNonUserCode]
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
- {
- return new StocktakingBillProductRow(builder);
- }
- [DebuggerNonUserCode]
- protected override Type GetRowType()
- {
- return typeof(StocktakingBillProductRow);
- }
- [DebuggerNonUserCode]
- protected override void OnRowChanged(DataRowChangeEventArgs e)
- {
- base.OnRowChanged(e);
- if (this.StocktakingBillProductRowChanged != null)
- {
- this.StocktakingBillProductRowChanged(this, new StocktakingBillProductRowChangeEvent((StocktakingBillProductRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowChanging(DataRowChangeEventArgs e)
- {
- base.OnRowChanging(e);
- if (this.StocktakingBillProductRowChanging != null)
- {
- this.StocktakingBillProductRowChanging(this, new StocktakingBillProductRowChangeEvent((StocktakingBillProductRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowDeleted(DataRowChangeEventArgs e)
- {
- base.OnRowDeleted(e);
- if (this.StocktakingBillProductRowDeleted != null)
- {
- this.StocktakingBillProductRowDeleted(this, new StocktakingBillProductRowChangeEvent((StocktakingBillProductRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowDeleting(DataRowChangeEventArgs e)
- {
- base.OnRowDeleting(e);
- if (this.StocktakingBillProductRowDeleting != null)
- {
- this.StocktakingBillProductRowDeleting(this, new StocktakingBillProductRowChangeEvent((StocktakingBillProductRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- public void RemoveStocktakingBillProductRow(StocktakingBillProductRow row)
- {
- base.Rows.Remove(row);
- }
- [DebuggerNonUserCode]
- public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
- {
- XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
- XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
- dsFrmStocktakingBill dsFrmStocktakingBill = new dsFrmStocktakingBill();
- xs.Add(dsFrmStocktakingBill.GetSchemaSerializable());
- XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
- xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema";
- xmlSchemaAny.MinOccurs = 0m;
- xmlSchemaAny.MaxOccurs = decimal.MaxValue;
- xmlSchemaAny.ProcessContents = XmlSchemaContentProcessing.Lax;
- xmlSchemaSequence.Items.Add(xmlSchemaAny);
- XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny();
- xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
- xmlSchemaAny2.MinOccurs = 1m;
- xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax;
- xmlSchemaSequence.Items.Add(xmlSchemaAny2);
- XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute();
- xmlSchemaAttribute.Name = "namespace";
- xmlSchemaAttribute.FixedValue = dsFrmStocktakingBill.Namespace;
- xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
- XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
- xmlSchemaAttribute2.Name = "tableTypeName";
- xmlSchemaAttribute2.FixedValue = "StocktakingBillProductDataTable";
- xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
- xmlSchemaComplexType.Particle = xmlSchemaSequence;
- return xmlSchemaComplexType;
- }
- }
- [Serializable]
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [XmlSchemaProvider("GetTypedTableSchema")]
- public class StocktakingBillDataTable : DataTable, IEnumerable
- {
- private DataColumn columnNo_StocktakingBill;
- private DataColumn columnDate_StocktakingBill;
- private DataColumn columnAssessDate_StocktakingBill;
- private DataColumn columnComment_StocktakingBill;
- private DataColumn columnCreateDate_StocktakingBill;
- private DataColumn columnLastModDate_StocktakingBill;
- private DataColumn columnName_Creator;
- private DataColumn columnName_Assessor;
- private DataColumn columnLastModUserName;
- private DataColumn columnNo_Location;
- private DataColumn columnName_Location;
- [DebuggerNonUserCode]
- public DataColumn No_StocktakingBillColumn => columnNo_StocktakingBill;
- [DebuggerNonUserCode]
- public DataColumn Date_StocktakingBillColumn => columnDate_StocktakingBill;
- [DebuggerNonUserCode]
- public DataColumn AssessDate_StocktakingBillColumn => columnAssessDate_StocktakingBill;
- [DebuggerNonUserCode]
- public DataColumn Comment_StocktakingBillColumn => columnComment_StocktakingBill;
- [DebuggerNonUserCode]
- public DataColumn CreateDate_StocktakingBillColumn => columnCreateDate_StocktakingBill;
- [DebuggerNonUserCode]
- public DataColumn LastModDate_StocktakingBillColumn => columnLastModDate_StocktakingBill;
- [DebuggerNonUserCode]
- public DataColumn Name_CreatorColumn => columnName_Creator;
- [DebuggerNonUserCode]
- public DataColumn Name_AssessorColumn => columnName_Assessor;
- [DebuggerNonUserCode]
- public DataColumn LastModUserNameColumn => columnLastModUserName;
- [DebuggerNonUserCode]
- public DataColumn No_LocationColumn => columnNo_Location;
- [DebuggerNonUserCode]
- public DataColumn Name_LocationColumn => columnName_Location;
- [DebuggerNonUserCode]
- [Browsable(false)]
- public int Count => base.Rows.Count;
- [DebuggerNonUserCode]
- public StocktakingBillRow this[int index] => (StocktakingBillRow)base.Rows[index];
- public event StocktakingBillRowChangeEventHandler StocktakingBillRowChanging;
- public event StocktakingBillRowChangeEventHandler StocktakingBillRowChanged;
- public event StocktakingBillRowChangeEventHandler StocktakingBillRowDeleting;
- public event StocktakingBillRowChangeEventHandler StocktakingBillRowDeleted;
- [DebuggerNonUserCode]
- public StocktakingBillDataTable()
- {
- base.TableName = "StocktakingBill";
- BeginInit();
- InitClass();
- EndInit();
- }
- [DebuggerNonUserCode]
- internal StocktakingBillDataTable(DataTable table)
- {
- base.TableName = table.TableName;
- if (table.CaseSensitive != table.DataSet.CaseSensitive)
- {
- base.CaseSensitive = table.CaseSensitive;
- }
- if (table.Locale.ToString() != table.DataSet.Locale.ToString())
- {
- base.Locale = table.Locale;
- }
- if (table.Namespace != table.DataSet.Namespace)
- {
- base.Namespace = table.Namespace;
- }
- base.Prefix = table.Prefix;
- base.MinimumCapacity = table.MinimumCapacity;
- }
- [DebuggerNonUserCode]
- protected StocktakingBillDataTable(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- InitVars();
- }
- [DebuggerNonUserCode]
- public void AddStocktakingBillRow(StocktakingBillRow row)
- {
- base.Rows.Add(row);
- }
- [DebuggerNonUserCode]
- 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)
- {
- StocktakingBillRow stocktakingBillRow = (StocktakingBillRow)NewRow();
- stocktakingBillRow.ItemArray = new object[11]
- {
- No_StocktakingBill,
- Date_StocktakingBill,
- AssessDate_StocktakingBill,
- Comment_StocktakingBill,
- CreateDate_StocktakingBill,
- LastModDate_StocktakingBill,
- Name_Creator,
- Name_Assessor,
- LastModUserName,
- No_Location,
- Name_Location
- };
- base.Rows.Add(stocktakingBillRow);
- return stocktakingBillRow;
- }
- [DebuggerNonUserCode]
- public virtual IEnumerator GetEnumerator()
- {
- return base.Rows.GetEnumerator();
- }
- [DebuggerNonUserCode]
- public override DataTable Clone()
- {
- StocktakingBillDataTable stocktakingBillDataTable = (StocktakingBillDataTable)base.Clone();
- stocktakingBillDataTable.InitVars();
- return stocktakingBillDataTable;
- }
- [DebuggerNonUserCode]
- protected override DataTable CreateInstance()
- {
- return new StocktakingBillDataTable();
- }
- [DebuggerNonUserCode]
- internal void InitVars()
- {
- columnNo_StocktakingBill = base.Columns["No_StocktakingBill"];
- columnDate_StocktakingBill = base.Columns["Date_StocktakingBill"];
- columnAssessDate_StocktakingBill = base.Columns["AssessDate_StocktakingBill"];
- columnComment_StocktakingBill = base.Columns["Comment_StocktakingBill"];
- columnCreateDate_StocktakingBill = base.Columns["CreateDate_StocktakingBill"];
- columnLastModDate_StocktakingBill = base.Columns["LastModDate_StocktakingBill"];
- columnName_Creator = base.Columns["Name_Creator"];
- columnName_Assessor = base.Columns["Name_Assessor"];
- columnLastModUserName = base.Columns["LastModUserName"];
- columnNo_Location = base.Columns["No_Location"];
- columnName_Location = base.Columns["Name_Location"];
- }
- [DebuggerNonUserCode]
- private void InitClass()
- {
- columnNo_StocktakingBill = new DataColumn("No_StocktakingBill", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnNo_StocktakingBill);
- columnDate_StocktakingBill = new DataColumn("Date_StocktakingBill", typeof(DateTime), null, MappingType.Element);
- base.Columns.Add(columnDate_StocktakingBill);
- columnAssessDate_StocktakingBill = new DataColumn("AssessDate_StocktakingBill", typeof(DateTime), null, MappingType.Element);
- base.Columns.Add(columnAssessDate_StocktakingBill);
- columnComment_StocktakingBill = new DataColumn("Comment_StocktakingBill", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnComment_StocktakingBill);
- columnCreateDate_StocktakingBill = new DataColumn("CreateDate_StocktakingBill", typeof(DateTime), null, MappingType.Element);
- base.Columns.Add(columnCreateDate_StocktakingBill);
- columnLastModDate_StocktakingBill = new DataColumn("LastModDate_StocktakingBill", typeof(DateTime), null, MappingType.Element);
- base.Columns.Add(columnLastModDate_StocktakingBill);
- columnName_Creator = new DataColumn("Name_Creator", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnName_Creator);
- columnName_Assessor = new DataColumn("Name_Assessor", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnName_Assessor);
- columnLastModUserName = new DataColumn("LastModUserName", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnLastModUserName);
- columnNo_Location = new DataColumn("No_Location", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnNo_Location);
- columnName_Location = new DataColumn("Name_Location", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnName_Location);
- }
- [DebuggerNonUserCode]
- public StocktakingBillRow NewStocktakingBillRow()
- {
- return (StocktakingBillRow)NewRow();
- }
- [DebuggerNonUserCode]
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
- {
- return new StocktakingBillRow(builder);
- }
- [DebuggerNonUserCode]
- protected override Type GetRowType()
- {
- return typeof(StocktakingBillRow);
- }
- [DebuggerNonUserCode]
- protected override void OnRowChanged(DataRowChangeEventArgs e)
- {
- base.OnRowChanged(e);
- if (this.StocktakingBillRowChanged != null)
- {
- this.StocktakingBillRowChanged(this, new StocktakingBillRowChangeEvent((StocktakingBillRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowChanging(DataRowChangeEventArgs e)
- {
- base.OnRowChanging(e);
- if (this.StocktakingBillRowChanging != null)
- {
- this.StocktakingBillRowChanging(this, new StocktakingBillRowChangeEvent((StocktakingBillRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowDeleted(DataRowChangeEventArgs e)
- {
- base.OnRowDeleted(e);
- if (this.StocktakingBillRowDeleted != null)
- {
- this.StocktakingBillRowDeleted(this, new StocktakingBillRowChangeEvent((StocktakingBillRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowDeleting(DataRowChangeEventArgs e)
- {
- base.OnRowDeleting(e);
- if (this.StocktakingBillRowDeleting != null)
- {
- this.StocktakingBillRowDeleting(this, new StocktakingBillRowChangeEvent((StocktakingBillRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- public void RemoveStocktakingBillRow(StocktakingBillRow row)
- {
- base.Rows.Remove(row);
- }
- [DebuggerNonUserCode]
- public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
- {
- XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
- XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
- dsFrmStocktakingBill dsFrmStocktakingBill = new dsFrmStocktakingBill();
- xs.Add(dsFrmStocktakingBill.GetSchemaSerializable());
- XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
- xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema";
- xmlSchemaAny.MinOccurs = 0m;
- xmlSchemaAny.MaxOccurs = decimal.MaxValue;
- xmlSchemaAny.ProcessContents = XmlSchemaContentProcessing.Lax;
- xmlSchemaSequence.Items.Add(xmlSchemaAny);
- XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny();
- xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
- xmlSchemaAny2.MinOccurs = 1m;
- xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax;
- xmlSchemaSequence.Items.Add(xmlSchemaAny2);
- XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute();
- xmlSchemaAttribute.Name = "namespace";
- xmlSchemaAttribute.FixedValue = dsFrmStocktakingBill.Namespace;
- xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
- XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
- xmlSchemaAttribute2.Name = "tableTypeName";
- xmlSchemaAttribute2.FixedValue = "StocktakingBillDataTable";
- xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
- xmlSchemaComplexType.Particle = xmlSchemaSequence;
- return xmlSchemaComplexType;
- }
- }
- [Serializable]
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [XmlSchemaProvider("GetTypedTableSchema")]
- public class AppendInfoDataTable : DataTable, IEnumerable
- {
- private DataColumn columnCurrentCompany;
- private DataColumn columnCurrentUser;
- [DebuggerNonUserCode]
- public DataColumn CurrentCompanyColumn => columnCurrentCompany;
- [DebuggerNonUserCode]
- public DataColumn CurrentUserColumn => columnCurrentUser;
- [DebuggerNonUserCode]
- [Browsable(false)]
- public int Count => base.Rows.Count;
- [DebuggerNonUserCode]
- public AppendInfoRow this[int index] => (AppendInfoRow)base.Rows[index];
- public event AppendInfoRowChangeEventHandler AppendInfoRowChanging;
- public event AppendInfoRowChangeEventHandler AppendInfoRowChanged;
- public event AppendInfoRowChangeEventHandler AppendInfoRowDeleting;
- public event AppendInfoRowChangeEventHandler AppendInfoRowDeleted;
- [DebuggerNonUserCode]
- public AppendInfoDataTable()
- {
- base.TableName = "AppendInfo";
- BeginInit();
- InitClass();
- EndInit();
- }
- [DebuggerNonUserCode]
- internal AppendInfoDataTable(DataTable table)
- {
- base.TableName = table.TableName;
- if (table.CaseSensitive != table.DataSet.CaseSensitive)
- {
- base.CaseSensitive = table.CaseSensitive;
- }
- if (table.Locale.ToString() != table.DataSet.Locale.ToString())
- {
- base.Locale = table.Locale;
- }
- if (table.Namespace != table.DataSet.Namespace)
- {
- base.Namespace = table.Namespace;
- }
- base.Prefix = table.Prefix;
- base.MinimumCapacity = table.MinimumCapacity;
- }
- [DebuggerNonUserCode]
- protected AppendInfoDataTable(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- InitVars();
- }
- [DebuggerNonUserCode]
- public void AddAppendInfoRow(AppendInfoRow row)
- {
- base.Rows.Add(row);
- }
- [DebuggerNonUserCode]
- public AppendInfoRow AddAppendInfoRow(string CurrentCompany, string CurrentUser)
- {
- AppendInfoRow appendInfoRow = (AppendInfoRow)NewRow();
- appendInfoRow.ItemArray = new object[2]
- {
- CurrentCompany,
- CurrentUser
- };
- base.Rows.Add(appendInfoRow);
- return appendInfoRow;
- }
- [DebuggerNonUserCode]
- public virtual IEnumerator GetEnumerator()
- {
- return base.Rows.GetEnumerator();
- }
- [DebuggerNonUserCode]
- public override DataTable Clone()
- {
- AppendInfoDataTable appendInfoDataTable = (AppendInfoDataTable)base.Clone();
- appendInfoDataTable.InitVars();
- return appendInfoDataTable;
- }
- [DebuggerNonUserCode]
- protected override DataTable CreateInstance()
- {
- return new AppendInfoDataTable();
- }
- [DebuggerNonUserCode]
- internal void InitVars()
- {
- columnCurrentCompany = base.Columns["CurrentCompany"];
- columnCurrentUser = base.Columns["CurrentUser"];
- }
- [DebuggerNonUserCode]
- private void InitClass()
- {
- columnCurrentCompany = new DataColumn("CurrentCompany", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnCurrentCompany);
- columnCurrentUser = new DataColumn("CurrentUser", typeof(string), null, MappingType.Element);
- base.Columns.Add(columnCurrentUser);
- }
- [DebuggerNonUserCode]
- public AppendInfoRow NewAppendInfoRow()
- {
- return (AppendInfoRow)NewRow();
- }
- [DebuggerNonUserCode]
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
- {
- return new AppendInfoRow(builder);
- }
- [DebuggerNonUserCode]
- protected override Type GetRowType()
- {
- return typeof(AppendInfoRow);
- }
- [DebuggerNonUserCode]
- protected override void OnRowChanged(DataRowChangeEventArgs e)
- {
- base.OnRowChanged(e);
- if (this.AppendInfoRowChanged != null)
- {
- this.AppendInfoRowChanged(this, new AppendInfoRowChangeEvent((AppendInfoRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowChanging(DataRowChangeEventArgs e)
- {
- base.OnRowChanging(e);
- if (this.AppendInfoRowChanging != null)
- {
- this.AppendInfoRowChanging(this, new AppendInfoRowChangeEvent((AppendInfoRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowDeleted(DataRowChangeEventArgs e)
- {
- base.OnRowDeleted(e);
- if (this.AppendInfoRowDeleted != null)
- {
- this.AppendInfoRowDeleted(this, new AppendInfoRowChangeEvent((AppendInfoRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- protected override void OnRowDeleting(DataRowChangeEventArgs e)
- {
- base.OnRowDeleting(e);
- if (this.AppendInfoRowDeleting != null)
- {
- this.AppendInfoRowDeleting(this, new AppendInfoRowChangeEvent((AppendInfoRow)e.Row, e.Action));
- }
- }
- [DebuggerNonUserCode]
- public void RemoveAppendInfoRow(AppendInfoRow row)
- {
- base.Rows.Remove(row);
- }
- [DebuggerNonUserCode]
- public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
- {
- XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
- XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
- dsFrmStocktakingBill dsFrmStocktakingBill = new dsFrmStocktakingBill();
- xs.Add(dsFrmStocktakingBill.GetSchemaSerializable());
- XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
- xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema";
- xmlSchemaAny.MinOccurs = 0m;
- xmlSchemaAny.MaxOccurs = decimal.MaxValue;
- xmlSchemaAny.ProcessContents = XmlSchemaContentProcessing.Lax;
- xmlSchemaSequence.Items.Add(xmlSchemaAny);
- XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny();
- xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
- xmlSchemaAny2.MinOccurs = 1m;
- xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax;
- xmlSchemaSequence.Items.Add(xmlSchemaAny2);
- XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute();
- xmlSchemaAttribute.Name = "namespace";
- xmlSchemaAttribute.FixedValue = dsFrmStocktakingBill.Namespace;
- xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
- XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
- xmlSchemaAttribute2.Name = "tableTypeName";
- xmlSchemaAttribute2.FixedValue = "AppendInfoDataTable";
- xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
- xmlSchemaComplexType.Particle = xmlSchemaSequence;
- return xmlSchemaComplexType;
- }
- }
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class StocktakingBillProductRow : DataRow
- {
- private StocktakingBillProductDataTable tableStocktakingBillProduct;
- [DebuggerNonUserCode]
- public string No_StocktakingBillProduct
- {
- get
- {
- try
- {
- return (string)base[tableStocktakingBillProduct.No_StocktakingBillProductColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'No_StocktakingBillProduct' in table 'StocktakingBillProduct' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBillProduct.No_StocktakingBillProductColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public decimal StockQty_StocktakingBillProduct
- {
- get
- {
- try
- {
- return (decimal)base[tableStocktakingBillProduct.StockQty_StocktakingBillProductColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'StockQty_StocktakingBillProduct' in table 'StocktakingBillProduct' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBillProduct.StockQty_StocktakingBillProductColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public decimal Quantity_StocktakingBillProduct
- {
- get
- {
- try
- {
- return (decimal)base[tableStocktakingBillProduct.Quantity_StocktakingBillProductColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Quantity_StocktakingBillProduct' in table 'StocktakingBillProduct' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBillProduct.Quantity_StocktakingBillProductColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public decimal UnitPrice_StocktakingBillProduct
- {
- get
- {
- try
- {
- return (decimal)base[tableStocktakingBillProduct.UnitPrice_StocktakingBillProductColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'UnitPrice_StocktakingBillProduct' in table 'StocktakingBillProduct' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBillProduct.UnitPrice_StocktakingBillProductColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string Comment_StocktakingBillProduct
- {
- get
- {
- try
- {
- return (string)base[tableStocktakingBillProduct.Comment_StocktakingBillProductColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Comment_StocktakingBillProduct' in table 'StocktakingBillProduct' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBillProduct.Comment_StocktakingBillProductColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public decimal Account
- {
- get
- {
- try
- {
- return (decimal)base[tableStocktakingBillProduct.AccountColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Account' in table 'StocktakingBillProduct' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBillProduct.AccountColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string No_Product
- {
- get
- {
- try
- {
- return (string)base[tableStocktakingBillProduct.No_ProductColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'No_Product' in table 'StocktakingBillProduct' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBillProduct.No_ProductColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string Name_Product
- {
- get
- {
- try
- {
- return (string)base[tableStocktakingBillProduct.Name_ProductColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Name_Product' in table 'StocktakingBillProduct' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBillProduct.Name_ProductColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string Unit_Product
- {
- get
- {
- try
- {
- return (string)base[tableStocktakingBillProduct.Unit_ProductColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Unit_Product' in table 'StocktakingBillProduct' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBillProduct.Unit_ProductColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string No_Location
- {
- get
- {
- try
- {
- return (string)base[tableStocktakingBillProduct.No_LocationColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'No_Location' in table 'StocktakingBillProduct' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBillProduct.No_LocationColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string Name_Location
- {
- get
- {
- try
- {
- return (string)base[tableStocktakingBillProduct.Name_LocationColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Name_Location' in table 'StocktakingBillProduct' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBillProduct.Name_LocationColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string No_StocktakingBill
- {
- get
- {
- try
- {
- return (string)base[tableStocktakingBillProduct.No_StocktakingBillColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'No_StocktakingBill' in table 'StocktakingBillProduct' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBillProduct.No_StocktakingBillColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- internal StocktakingBillProductRow(DataRowBuilder rb)
- : base(rb)
- {
- tableStocktakingBillProduct = (StocktakingBillProductDataTable)base.Table;
- }
- [DebuggerNonUserCode]
- public bool IsNo_StocktakingBillProductNull()
- {
- return IsNull(tableStocktakingBillProduct.No_StocktakingBillProductColumn);
- }
- [DebuggerNonUserCode]
- public void SetNo_StocktakingBillProductNull()
- {
- base[tableStocktakingBillProduct.No_StocktakingBillProductColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsStockQty_StocktakingBillProductNull()
- {
- return IsNull(tableStocktakingBillProduct.StockQty_StocktakingBillProductColumn);
- }
- [DebuggerNonUserCode]
- public void SetStockQty_StocktakingBillProductNull()
- {
- base[tableStocktakingBillProduct.StockQty_StocktakingBillProductColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsQuantity_StocktakingBillProductNull()
- {
- return IsNull(tableStocktakingBillProduct.Quantity_StocktakingBillProductColumn);
- }
- [DebuggerNonUserCode]
- public void SetQuantity_StocktakingBillProductNull()
- {
- base[tableStocktakingBillProduct.Quantity_StocktakingBillProductColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsUnitPrice_StocktakingBillProductNull()
- {
- return IsNull(tableStocktakingBillProduct.UnitPrice_StocktakingBillProductColumn);
- }
- [DebuggerNonUserCode]
- public void SetUnitPrice_StocktakingBillProductNull()
- {
- base[tableStocktakingBillProduct.UnitPrice_StocktakingBillProductColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsComment_StocktakingBillProductNull()
- {
- return IsNull(tableStocktakingBillProduct.Comment_StocktakingBillProductColumn);
- }
- [DebuggerNonUserCode]
- public void SetComment_StocktakingBillProductNull()
- {
- base[tableStocktakingBillProduct.Comment_StocktakingBillProductColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsAccountNull()
- {
- return IsNull(tableStocktakingBillProduct.AccountColumn);
- }
- [DebuggerNonUserCode]
- public void SetAccountNull()
- {
- base[tableStocktakingBillProduct.AccountColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsNo_ProductNull()
- {
- return IsNull(tableStocktakingBillProduct.No_ProductColumn);
- }
- [DebuggerNonUserCode]
- public void SetNo_ProductNull()
- {
- base[tableStocktakingBillProduct.No_ProductColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsName_ProductNull()
- {
- return IsNull(tableStocktakingBillProduct.Name_ProductColumn);
- }
- [DebuggerNonUserCode]
- public void SetName_ProductNull()
- {
- base[tableStocktakingBillProduct.Name_ProductColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsUnit_ProductNull()
- {
- return IsNull(tableStocktakingBillProduct.Unit_ProductColumn);
- }
- [DebuggerNonUserCode]
- public void SetUnit_ProductNull()
- {
- base[tableStocktakingBillProduct.Unit_ProductColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsNo_LocationNull()
- {
- return IsNull(tableStocktakingBillProduct.No_LocationColumn);
- }
- [DebuggerNonUserCode]
- public void SetNo_LocationNull()
- {
- base[tableStocktakingBillProduct.No_LocationColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsName_LocationNull()
- {
- return IsNull(tableStocktakingBillProduct.Name_LocationColumn);
- }
- [DebuggerNonUserCode]
- public void SetName_LocationNull()
- {
- base[tableStocktakingBillProduct.Name_LocationColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsNo_StocktakingBillNull()
- {
- return IsNull(tableStocktakingBillProduct.No_StocktakingBillColumn);
- }
- [DebuggerNonUserCode]
- public void SetNo_StocktakingBillNull()
- {
- base[tableStocktakingBillProduct.No_StocktakingBillColumn] = Convert.DBNull;
- }
- }
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class StocktakingBillRow : DataRow
- {
- private StocktakingBillDataTable tableStocktakingBill;
- [DebuggerNonUserCode]
- public string No_StocktakingBill
- {
- get
- {
- try
- {
- return (string)base[tableStocktakingBill.No_StocktakingBillColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'No_StocktakingBill' in table 'StocktakingBill' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBill.No_StocktakingBillColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public DateTime Date_StocktakingBill
- {
- get
- {
- try
- {
- return (DateTime)base[tableStocktakingBill.Date_StocktakingBillColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Date_StocktakingBill' in table 'StocktakingBill' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBill.Date_StocktakingBillColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public DateTime AssessDate_StocktakingBill
- {
- get
- {
- try
- {
- return (DateTime)base[tableStocktakingBill.AssessDate_StocktakingBillColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'AssessDate_StocktakingBill' in table 'StocktakingBill' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBill.AssessDate_StocktakingBillColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string Comment_StocktakingBill
- {
- get
- {
- try
- {
- return (string)base[tableStocktakingBill.Comment_StocktakingBillColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Comment_StocktakingBill' in table 'StocktakingBill' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBill.Comment_StocktakingBillColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public DateTime CreateDate_StocktakingBill
- {
- get
- {
- try
- {
- return (DateTime)base[tableStocktakingBill.CreateDate_StocktakingBillColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'CreateDate_StocktakingBill' in table 'StocktakingBill' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBill.CreateDate_StocktakingBillColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public DateTime LastModDate_StocktakingBill
- {
- get
- {
- try
- {
- return (DateTime)base[tableStocktakingBill.LastModDate_StocktakingBillColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'LastModDate_StocktakingBill' in table 'StocktakingBill' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBill.LastModDate_StocktakingBillColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string Name_Creator
- {
- get
- {
- try
- {
- return (string)base[tableStocktakingBill.Name_CreatorColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Name_Creator' in table 'StocktakingBill' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBill.Name_CreatorColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string Name_Assessor
- {
- get
- {
- try
- {
- return (string)base[tableStocktakingBill.Name_AssessorColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Name_Assessor' in table 'StocktakingBill' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBill.Name_AssessorColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string LastModUserName
- {
- get
- {
- try
- {
- return (string)base[tableStocktakingBill.LastModUserNameColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'LastModUserName' in table 'StocktakingBill' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBill.LastModUserNameColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string No_Location
- {
- get
- {
- try
- {
- return (string)base[tableStocktakingBill.No_LocationColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'No_Location' in table 'StocktakingBill' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBill.No_LocationColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string Name_Location
- {
- get
- {
- try
- {
- return (string)base[tableStocktakingBill.Name_LocationColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'Name_Location' in table 'StocktakingBill' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableStocktakingBill.Name_LocationColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- internal StocktakingBillRow(DataRowBuilder rb)
- : base(rb)
- {
- tableStocktakingBill = (StocktakingBillDataTable)base.Table;
- }
- [DebuggerNonUserCode]
- public bool IsNo_StocktakingBillNull()
- {
- return IsNull(tableStocktakingBill.No_StocktakingBillColumn);
- }
- [DebuggerNonUserCode]
- public void SetNo_StocktakingBillNull()
- {
- base[tableStocktakingBill.No_StocktakingBillColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsDate_StocktakingBillNull()
- {
- return IsNull(tableStocktakingBill.Date_StocktakingBillColumn);
- }
- [DebuggerNonUserCode]
- public void SetDate_StocktakingBillNull()
- {
- base[tableStocktakingBill.Date_StocktakingBillColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsAssessDate_StocktakingBillNull()
- {
- return IsNull(tableStocktakingBill.AssessDate_StocktakingBillColumn);
- }
- [DebuggerNonUserCode]
- public void SetAssessDate_StocktakingBillNull()
- {
- base[tableStocktakingBill.AssessDate_StocktakingBillColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsComment_StocktakingBillNull()
- {
- return IsNull(tableStocktakingBill.Comment_StocktakingBillColumn);
- }
- [DebuggerNonUserCode]
- public void SetComment_StocktakingBillNull()
- {
- base[tableStocktakingBill.Comment_StocktakingBillColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsCreateDate_StocktakingBillNull()
- {
- return IsNull(tableStocktakingBill.CreateDate_StocktakingBillColumn);
- }
- [DebuggerNonUserCode]
- public void SetCreateDate_StocktakingBillNull()
- {
- base[tableStocktakingBill.CreateDate_StocktakingBillColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsLastModDate_StocktakingBillNull()
- {
- return IsNull(tableStocktakingBill.LastModDate_StocktakingBillColumn);
- }
- [DebuggerNonUserCode]
- public void SetLastModDate_StocktakingBillNull()
- {
- base[tableStocktakingBill.LastModDate_StocktakingBillColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsName_CreatorNull()
- {
- return IsNull(tableStocktakingBill.Name_CreatorColumn);
- }
- [DebuggerNonUserCode]
- public void SetName_CreatorNull()
- {
- base[tableStocktakingBill.Name_CreatorColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsName_AssessorNull()
- {
- return IsNull(tableStocktakingBill.Name_AssessorColumn);
- }
- [DebuggerNonUserCode]
- public void SetName_AssessorNull()
- {
- base[tableStocktakingBill.Name_AssessorColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsLastModUserNameNull()
- {
- return IsNull(tableStocktakingBill.LastModUserNameColumn);
- }
- [DebuggerNonUserCode]
- public void SetLastModUserNameNull()
- {
- base[tableStocktakingBill.LastModUserNameColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsNo_LocationNull()
- {
- return IsNull(tableStocktakingBill.No_LocationColumn);
- }
- [DebuggerNonUserCode]
- public void SetNo_LocationNull()
- {
- base[tableStocktakingBill.No_LocationColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsName_LocationNull()
- {
- return IsNull(tableStocktakingBill.Name_LocationColumn);
- }
- [DebuggerNonUserCode]
- public void SetName_LocationNull()
- {
- base[tableStocktakingBill.Name_LocationColumn] = Convert.DBNull;
- }
- }
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class AppendInfoRow : DataRow
- {
- private AppendInfoDataTable tableAppendInfo;
- [DebuggerNonUserCode]
- public string CurrentCompany
- {
- get
- {
- try
- {
- return (string)base[tableAppendInfo.CurrentCompanyColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'CurrentCompany' in table 'AppendInfo' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableAppendInfo.CurrentCompanyColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- public string CurrentUser
- {
- get
- {
- try
- {
- return (string)base[tableAppendInfo.CurrentUserColumn];
- }
- catch (InvalidCastException innerException)
- {
- throw new StrongTypingException("The value for column 'CurrentUser' in table 'AppendInfo' is DBNull.", innerException);
- }
- }
- set
- {
- base[tableAppendInfo.CurrentUserColumn] = value;
- }
- }
- [DebuggerNonUserCode]
- internal AppendInfoRow(DataRowBuilder rb)
- : base(rb)
- {
- tableAppendInfo = (AppendInfoDataTable)base.Table;
- }
- [DebuggerNonUserCode]
- public bool IsCurrentCompanyNull()
- {
- return IsNull(tableAppendInfo.CurrentCompanyColumn);
- }
- [DebuggerNonUserCode]
- public void SetCurrentCompanyNull()
- {
- base[tableAppendInfo.CurrentCompanyColumn] = Convert.DBNull;
- }
- [DebuggerNonUserCode]
- public bool IsCurrentUserNull()
- {
- return IsNull(tableAppendInfo.CurrentUserColumn);
- }
- [DebuggerNonUserCode]
- public void SetCurrentUserNull()
- {
- base[tableAppendInfo.CurrentUserColumn] = Convert.DBNull;
- }
- }
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class StocktakingBillProductRowChangeEvent : EventArgs
- {
- private StocktakingBillProductRow eventRow;
- private DataRowAction eventAction;
- [DebuggerNonUserCode]
- public StocktakingBillProductRow Row => eventRow;
- [DebuggerNonUserCode]
- public DataRowAction Action => eventAction;
- [DebuggerNonUserCode]
- public StocktakingBillProductRowChangeEvent(StocktakingBillProductRow row, DataRowAction action)
- {
- eventRow = row;
- eventAction = action;
- }
- }
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class StocktakingBillRowChangeEvent : EventArgs
- {
- private StocktakingBillRow eventRow;
- private DataRowAction eventAction;
- [DebuggerNonUserCode]
- public StocktakingBillRow Row => eventRow;
- [DebuggerNonUserCode]
- public DataRowAction Action => eventAction;
- [DebuggerNonUserCode]
- public StocktakingBillRowChangeEvent(StocktakingBillRow row, DataRowAction action)
- {
- eventRow = row;
- eventAction = action;
- }
- }
- [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- public class AppendInfoRowChangeEvent : EventArgs
- {
- private AppendInfoRow eventRow;
- private DataRowAction eventAction;
- [DebuggerNonUserCode]
- public AppendInfoRow Row => eventRow;
- [DebuggerNonUserCode]
- public DataRowAction Action => eventAction;
- [DebuggerNonUserCode]
- public AppendInfoRowChangeEvent(AppendInfoRow row, DataRowAction action)
- {
- eventRow = row;
- eventAction = action;
- }
- }
- private StocktakingBillProductDataTable tableStocktakingBillProduct;
- private StocktakingBillDataTable tableStocktakingBill;
- private AppendInfoDataTable tableAppendInfo;
- private SchemaSerializationMode _schemaSerializationMode = SchemaSerializationMode.IncludeSchema;
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
- [DebuggerNonUserCode]
- [Browsable(false)]
- public StocktakingBillProductDataTable StocktakingBillProduct => tableStocktakingBillProduct;
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
- [DebuggerNonUserCode]
- public StocktakingBillDataTable StocktakingBill => tableStocktakingBill;
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
- [DebuggerNonUserCode]
- public AppendInfoDataTable AppendInfo => tableAppendInfo;
- [DebuggerNonUserCode]
- [Browsable(true)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
- public override SchemaSerializationMode SchemaSerializationMode
- {
- get
- {
- return _schemaSerializationMode;
- }
- set
- {
- _schemaSerializationMode = value;
- }
- }
- [DebuggerNonUserCode]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- public new DataTableCollection Tables => base.Tables;
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
- [DebuggerNonUserCode]
- public new DataRelationCollection Relations => base.Relations;
- [DebuggerNonUserCode]
- public dsFrmStocktakingBill()
- {
- BeginInit();
- InitClass();
- CollectionChangeEventHandler value = SchemaChanged;
- base.Tables.CollectionChanged += value;
- base.Relations.CollectionChanged += value;
- EndInit();
- }
- [DebuggerNonUserCode]
- protected dsFrmStocktakingBill(SerializationInfo info, StreamingContext context)
- : base(info, context, ConstructSchema: false)
- {
- if (IsBinarySerialized(info, context))
- {
- InitVars(initTable: false);
- CollectionChangeEventHandler value = SchemaChanged;
- Tables.CollectionChanged += value;
- Relations.CollectionChanged += value;
- return;
- }
- string s = (string)info.GetValue("XmlSchema", typeof(string));
- if (DetermineSchemaSerializationMode(info, context) == SchemaSerializationMode.IncludeSchema)
- {
- DataSet dataSet = new DataSet();
- dataSet.ReadXmlSchema(new XmlTextReader(new StringReader(s)));
- if (dataSet.Tables["StocktakingBillProduct"] != null)
- {
- base.Tables.Add(new StocktakingBillProductDataTable(dataSet.Tables["StocktakingBillProduct"]));
- }
- if (dataSet.Tables["StocktakingBill"] != null)
- {
- base.Tables.Add(new StocktakingBillDataTable(dataSet.Tables["StocktakingBill"]));
- }
- if (dataSet.Tables["AppendInfo"] != null)
- {
- base.Tables.Add(new AppendInfoDataTable(dataSet.Tables["AppendInfo"]));
- }
- base.DataSetName = dataSet.DataSetName;
- base.Prefix = dataSet.Prefix;
- base.Namespace = dataSet.Namespace;
- base.Locale = dataSet.Locale;
- base.CaseSensitive = dataSet.CaseSensitive;
- base.EnforceConstraints = dataSet.EnforceConstraints;
- Merge(dataSet, preserveChanges: false, MissingSchemaAction.Add);
- InitVars();
- }
- else
- {
- ReadXmlSchema(new XmlTextReader(new StringReader(s)));
- }
- GetSerializationData(info, context);
- CollectionChangeEventHandler value2 = SchemaChanged;
- base.Tables.CollectionChanged += value2;
- Relations.CollectionChanged += value2;
- }
- [DebuggerNonUserCode]
- protected override void InitializeDerivedDataSet()
- {
- BeginInit();
- InitClass();
- EndInit();
- }
- [DebuggerNonUserCode]
- public override DataSet Clone()
- {
- dsFrmStocktakingBill dsFrmStocktakingBill = (dsFrmStocktakingBill)base.Clone();
- dsFrmStocktakingBill.InitVars();
- dsFrmStocktakingBill.SchemaSerializationMode = SchemaSerializationMode;
- return dsFrmStocktakingBill;
- }
- [DebuggerNonUserCode]
- protected override bool ShouldSerializeTables()
- {
- return false;
- }
- [DebuggerNonUserCode]
- protected override bool ShouldSerializeRelations()
- {
- return false;
- }
- [DebuggerNonUserCode]
- protected override void ReadXmlSerializable(XmlReader reader)
- {
- if (DetermineSchemaSerializationMode(reader) == SchemaSerializationMode.IncludeSchema)
- {
- Reset();
- DataSet dataSet = new DataSet();
- dataSet.ReadXml(reader);
- if (dataSet.Tables["StocktakingBillProduct"] != null)
- {
- base.Tables.Add(new StocktakingBillProductDataTable(dataSet.Tables["StocktakingBillProduct"]));
- }
- if (dataSet.Tables["StocktakingBill"] != null)
- {
- base.Tables.Add(new StocktakingBillDataTable(dataSet.Tables["StocktakingBill"]));
- }
- if (dataSet.Tables["AppendInfo"] != null)
- {
- base.Tables.Add(new AppendInfoDataTable(dataSet.Tables["AppendInfo"]));
- }
- base.DataSetName = dataSet.DataSetName;
- base.Prefix = dataSet.Prefix;
- base.Namespace = dataSet.Namespace;
- base.Locale = dataSet.Locale;
- base.CaseSensitive = dataSet.CaseSensitive;
- base.EnforceConstraints = dataSet.EnforceConstraints;
- Merge(dataSet, preserveChanges: false, MissingSchemaAction.Add);
- InitVars();
- }
- else
- {
- ReadXml(reader);
- InitVars();
- }
- }
- [DebuggerNonUserCode]
- protected override XmlSchema GetSchemaSerializable()
- {
- MemoryStream memoryStream = new MemoryStream();
- WriteXmlSchema(new XmlTextWriter(memoryStream, null));
- memoryStream.Position = 0L;
- return XmlSchema.Read(new XmlTextReader(memoryStream), null);
- }
- [DebuggerNonUserCode]
- internal void InitVars()
- {
- InitVars(initTable: true);
- }
- [DebuggerNonUserCode]
- internal void InitVars(bool initTable)
- {
- tableStocktakingBillProduct = (StocktakingBillProductDataTable)base.Tables["StocktakingBillProduct"];
- if (initTable && tableStocktakingBillProduct != null)
- {
- tableStocktakingBillProduct.InitVars();
- }
- tableStocktakingBill = (StocktakingBillDataTable)base.Tables["StocktakingBill"];
- if (initTable && tableStocktakingBill != null)
- {
- tableStocktakingBill.InitVars();
- }
- tableAppendInfo = (AppendInfoDataTable)base.Tables["AppendInfo"];
- if (initTable && tableAppendInfo != null)
- {
- tableAppendInfo.InitVars();
- }
- }
- [DebuggerNonUserCode]
- private void InitClass()
- {
- base.DataSetName = "dsFrmStocktakingBill";
- base.Prefix = "";
- base.Namespace = "http://tempuri.org/dsFrmStocktakingBill.xsd";
- base.EnforceConstraints = true;
- SchemaSerializationMode = SchemaSerializationMode.IncludeSchema;
- tableStocktakingBillProduct = new StocktakingBillProductDataTable();
- base.Tables.Add(tableStocktakingBillProduct);
- tableStocktakingBill = new StocktakingBillDataTable();
- base.Tables.Add(tableStocktakingBill);
- tableAppendInfo = new AppendInfoDataTable();
- base.Tables.Add(tableAppendInfo);
- }
- [DebuggerNonUserCode]
- private bool ShouldSerializeStocktakingBillProduct()
- {
- return false;
- }
- [DebuggerNonUserCode]
- private bool ShouldSerializeStocktakingBill()
- {
- return false;
- }
- [DebuggerNonUserCode]
- private bool ShouldSerializeAppendInfo()
- {
- return false;
- }
- [DebuggerNonUserCode]
- private void SchemaChanged(object sender, CollectionChangeEventArgs e)
- {
- if (e.Action == CollectionChangeAction.Remove)
- {
- InitVars();
- }
- }
- [DebuggerNonUserCode]
- public static XmlSchemaComplexType GetTypedDataSetSchema(XmlSchemaSet xs)
- {
- dsFrmStocktakingBill dsFrmStocktakingBill = new dsFrmStocktakingBill();
- XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
- XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
- xs.Add(dsFrmStocktakingBill.GetSchemaSerializable());
- XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
- xmlSchemaAny.Namespace = dsFrmStocktakingBill.Namespace;
- xmlSchemaSequence.Items.Add(xmlSchemaAny);
- xmlSchemaComplexType.Particle = xmlSchemaSequence;
- return xmlSchemaComplexType;
- }
- }
- }
|