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; } } }