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] [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] [HelpKeyword("vs.data.DataSet")] [ToolboxItem(true)] [XmlRoot("dsFrmIndentNoSale")] [DesignerCategory("code")] [XmlSchemaProvider("GetTypedDataSetSchema")] public class dsFrmIndentNoSale : DataSet { public delegate void IndentBillNoSaleRowChangeEventHandler(object sender, IndentBillNoSaleRowChangeEvent e); [Serializable] [XmlSchemaProvider("GetTypedTableSchema")] [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] public class IndentBillNoSaleDataTable : DataTable, IEnumerable { private DataColumn columnNo_IndentBill; private DataColumn columnDate_IndentBill; private DataColumn columnNo_Customer; private DataColumn columnShortName_Customer; private DataColumn columnNo_Product; private DataColumn columnName_Product; private DataColumn columnQuantity_IndentBillProduct; private DataColumn columnQuantity_Sale; [DebuggerNonUserCode] public DataColumn No_IndentBillColumn => columnNo_IndentBill; [DebuggerNonUserCode] public DataColumn Date_IndentBillColumn => columnDate_IndentBill; [DebuggerNonUserCode] public DataColumn No_CustomerColumn => columnNo_Customer; [DebuggerNonUserCode] public DataColumn ShortName_CustomerColumn => columnShortName_Customer; [DebuggerNonUserCode] public DataColumn No_ProductColumn => columnNo_Product; [DebuggerNonUserCode] public DataColumn Name_ProductColumn => columnName_Product; [DebuggerNonUserCode] public DataColumn Quantity_IndentBillProductColumn => columnQuantity_IndentBillProduct; [DebuggerNonUserCode] public DataColumn Quantity_SaleColumn => columnQuantity_Sale; [Browsable(false)] [DebuggerNonUserCode] public int Count => base.Rows.Count; [DebuggerNonUserCode] public IndentBillNoSaleRow this[int index] => (IndentBillNoSaleRow)base.Rows[index]; public event IndentBillNoSaleRowChangeEventHandler IndentBillNoSaleRowChanging; public event IndentBillNoSaleRowChangeEventHandler IndentBillNoSaleRowChanged; public event IndentBillNoSaleRowChangeEventHandler IndentBillNoSaleRowDeleting; public event IndentBillNoSaleRowChangeEventHandler IndentBillNoSaleRowDeleted; [DebuggerNonUserCode] public IndentBillNoSaleDataTable() { base.TableName = "IndentBillNoSale"; BeginInit(); InitClass(); EndInit(); } [DebuggerNonUserCode] internal IndentBillNoSaleDataTable(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 IndentBillNoSaleDataTable(SerializationInfo info, StreamingContext context) : base(info, context) { InitVars(); } [DebuggerNonUserCode] public void AddIndentBillNoSaleRow(IndentBillNoSaleRow row) { base.Rows.Add(row); } [DebuggerNonUserCode] public IndentBillNoSaleRow AddIndentBillNoSaleRow(string No_IndentBill, DateTime Date_IndentBill, string No_Customer, string ShortName_Customer, string No_Product, string Name_Product, decimal Quantity_IndentBillProduct, decimal Quantity_Sale) { IndentBillNoSaleRow indentBillNoSaleRow = (IndentBillNoSaleRow)NewRow(); indentBillNoSaleRow.ItemArray = new object[8] { No_IndentBill, Date_IndentBill, No_Customer, ShortName_Customer, No_Product, Name_Product, Quantity_IndentBillProduct, Quantity_Sale }; base.Rows.Add(indentBillNoSaleRow); return indentBillNoSaleRow; } [DebuggerNonUserCode] public virtual IEnumerator GetEnumerator() { return base.Rows.GetEnumerator(); } [DebuggerNonUserCode] public override DataTable Clone() { IndentBillNoSaleDataTable indentBillNoSaleDataTable = (IndentBillNoSaleDataTable)base.Clone(); indentBillNoSaleDataTable.InitVars(); return indentBillNoSaleDataTable; } [DebuggerNonUserCode] protected override DataTable CreateInstance() { return new IndentBillNoSaleDataTable(); } [DebuggerNonUserCode] internal void InitVars() { columnNo_IndentBill = base.Columns["No_IndentBill"]; columnDate_IndentBill = base.Columns["Date_IndentBill"]; columnNo_Customer = base.Columns["No_Customer"]; columnShortName_Customer = base.Columns["ShortName_Customer"]; columnNo_Product = base.Columns["No_Product"]; columnName_Product = base.Columns["Name_Product"]; columnQuantity_IndentBillProduct = base.Columns["Quantity_IndentBillProduct"]; columnQuantity_Sale = base.Columns["Quantity_Sale"]; } [DebuggerNonUserCode] private void InitClass() { columnNo_IndentBill = new DataColumn("No_IndentBill", typeof(string), null, MappingType.Element); base.Columns.Add(columnNo_IndentBill); columnDate_IndentBill = new DataColumn("Date_IndentBill", typeof(DateTime), null, MappingType.Element); base.Columns.Add(columnDate_IndentBill); columnNo_Customer = new DataColumn("No_Customer", typeof(string), null, MappingType.Element); base.Columns.Add(columnNo_Customer); columnShortName_Customer = new DataColumn("ShortName_Customer", typeof(string), null, MappingType.Element); base.Columns.Add(columnShortName_Customer); 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); columnQuantity_IndentBillProduct = new DataColumn("Quantity_IndentBillProduct", typeof(decimal), null, MappingType.Element); base.Columns.Add(columnQuantity_IndentBillProduct); columnQuantity_Sale = new DataColumn("Quantity_Sale", typeof(decimal), null, MappingType.Element); base.Columns.Add(columnQuantity_Sale); } [DebuggerNonUserCode] public IndentBillNoSaleRow NewIndentBillNoSaleRow() { return (IndentBillNoSaleRow)NewRow(); } [DebuggerNonUserCode] protected override DataRow NewRowFromBuilder(DataRowBuilder builder) { return new IndentBillNoSaleRow(builder); } [DebuggerNonUserCode] protected override Type GetRowType() { return typeof(IndentBillNoSaleRow); } [DebuggerNonUserCode] protected override void OnRowChanged(DataRowChangeEventArgs e) { base.OnRowChanged(e); if (this.IndentBillNoSaleRowChanged != null) { this.IndentBillNoSaleRowChanged(this, new IndentBillNoSaleRowChangeEvent((IndentBillNoSaleRow)e.Row, e.Action)); } } [DebuggerNonUserCode] protected override void OnRowChanging(DataRowChangeEventArgs e) { base.OnRowChanging(e); if (this.IndentBillNoSaleRowChanging != null) { this.IndentBillNoSaleRowChanging(this, new IndentBillNoSaleRowChangeEvent((IndentBillNoSaleRow)e.Row, e.Action)); } } [DebuggerNonUserCode] protected override void OnRowDeleted(DataRowChangeEventArgs e) { base.OnRowDeleted(e); if (this.IndentBillNoSaleRowDeleted != null) { this.IndentBillNoSaleRowDeleted(this, new IndentBillNoSaleRowChangeEvent((IndentBillNoSaleRow)e.Row, e.Action)); } } [DebuggerNonUserCode] protected override void OnRowDeleting(DataRowChangeEventArgs e) { base.OnRowDeleting(e); if (this.IndentBillNoSaleRowDeleting != null) { this.IndentBillNoSaleRowDeleting(this, new IndentBillNoSaleRowChangeEvent((IndentBillNoSaleRow)e.Row, e.Action)); } } [DebuggerNonUserCode] public void RemoveIndentBillNoSaleRow(IndentBillNoSaleRow row) { base.Rows.Remove(row); } [DebuggerNonUserCode] public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs) { XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType(); XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence(); dsFrmIndentNoSale dsFrmIndentNoSale = new dsFrmIndentNoSale(); xs.Add(dsFrmIndentNoSale.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 = dsFrmIndentNoSale.Namespace; xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute); XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute(); xmlSchemaAttribute2.Name = "tableTypeName"; xmlSchemaAttribute2.FixedValue = "IndentBillNoSaleDataTable"; xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2); xmlSchemaComplexType.Particle = xmlSchemaSequence; return xmlSchemaComplexType; } } [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] public class IndentBillNoSaleRow : DataRow { private IndentBillNoSaleDataTable tableIndentBillNoSale; [DebuggerNonUserCode] public string No_IndentBill { get { try { return (string)base[tableIndentBillNoSale.No_IndentBillColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'No_IndentBill' in table 'IndentBillNoSale' is DBNull.", innerException); } } set { base[tableIndentBillNoSale.No_IndentBillColumn] = value; } } [DebuggerNonUserCode] public DateTime Date_IndentBill { get { try { return (DateTime)base[tableIndentBillNoSale.Date_IndentBillColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'Date_IndentBill' in table 'IndentBillNoSale' is DBNull.", innerException); } } set { base[tableIndentBillNoSale.Date_IndentBillColumn] = value; } } [DebuggerNonUserCode] public string No_Customer { get { try { return (string)base[tableIndentBillNoSale.No_CustomerColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'No_Customer' in table 'IndentBillNoSale' is DBNull.", innerException); } } set { base[tableIndentBillNoSale.No_CustomerColumn] = value; } } [DebuggerNonUserCode] public string ShortName_Customer { get { try { return (string)base[tableIndentBillNoSale.ShortName_CustomerColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'ShortName_Customer' in table 'IndentBillNoSale' is DBNull.", innerException); } } set { base[tableIndentBillNoSale.ShortName_CustomerColumn] = value; } } [DebuggerNonUserCode] public string No_Product { get { try { return (string)base[tableIndentBillNoSale.No_ProductColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'No_Product' in table 'IndentBillNoSale' is DBNull.", innerException); } } set { base[tableIndentBillNoSale.No_ProductColumn] = value; } } [DebuggerNonUserCode] public string Name_Product { get { try { return (string)base[tableIndentBillNoSale.Name_ProductColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'Name_Product' in table 'IndentBillNoSale' is DBNull.", innerException); } } set { base[tableIndentBillNoSale.Name_ProductColumn] = value; } } [DebuggerNonUserCode] public decimal Quantity_IndentBillProduct { get { try { return (decimal)base[tableIndentBillNoSale.Quantity_IndentBillProductColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'Quantity_IndentBillProduct' in table 'IndentBillNoSale' is DBNull.", innerException); } } set { base[tableIndentBillNoSale.Quantity_IndentBillProductColumn] = value; } } [DebuggerNonUserCode] public decimal Quantity_Sale { get { try { return (decimal)base[tableIndentBillNoSale.Quantity_SaleColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'Quantity_Sale' in table 'IndentBillNoSale' is DBNull.", innerException); } } set { base[tableIndentBillNoSale.Quantity_SaleColumn] = value; } } [DebuggerNonUserCode] internal IndentBillNoSaleRow(DataRowBuilder rb) : base(rb) { tableIndentBillNoSale = (IndentBillNoSaleDataTable)base.Table; } [DebuggerNonUserCode] public bool IsNo_IndentBillNull() { return IsNull(tableIndentBillNoSale.No_IndentBillColumn); } [DebuggerNonUserCode] public void SetNo_IndentBillNull() { base[tableIndentBillNoSale.No_IndentBillColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsDate_IndentBillNull() { return IsNull(tableIndentBillNoSale.Date_IndentBillColumn); } [DebuggerNonUserCode] public void SetDate_IndentBillNull() { base[tableIndentBillNoSale.Date_IndentBillColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsNo_CustomerNull() { return IsNull(tableIndentBillNoSale.No_CustomerColumn); } [DebuggerNonUserCode] public void SetNo_CustomerNull() { base[tableIndentBillNoSale.No_CustomerColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsShortName_CustomerNull() { return IsNull(tableIndentBillNoSale.ShortName_CustomerColumn); } [DebuggerNonUserCode] public void SetShortName_CustomerNull() { base[tableIndentBillNoSale.ShortName_CustomerColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsNo_ProductNull() { return IsNull(tableIndentBillNoSale.No_ProductColumn); } [DebuggerNonUserCode] public void SetNo_ProductNull() { base[tableIndentBillNoSale.No_ProductColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsName_ProductNull() { return IsNull(tableIndentBillNoSale.Name_ProductColumn); } [DebuggerNonUserCode] public void SetName_ProductNull() { base[tableIndentBillNoSale.Name_ProductColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsQuantity_IndentBillProductNull() { return IsNull(tableIndentBillNoSale.Quantity_IndentBillProductColumn); } [DebuggerNonUserCode] public void SetQuantity_IndentBillProductNull() { base[tableIndentBillNoSale.Quantity_IndentBillProductColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsQuantity_SaleNull() { return IsNull(tableIndentBillNoSale.Quantity_SaleColumn); } [DebuggerNonUserCode] public void SetQuantity_SaleNull() { base[tableIndentBillNoSale.Quantity_SaleColumn] = Convert.DBNull; } } [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] public class IndentBillNoSaleRowChangeEvent : EventArgs { private IndentBillNoSaleRow eventRow; private DataRowAction eventAction; [DebuggerNonUserCode] public IndentBillNoSaleRow Row => eventRow; [DebuggerNonUserCode] public DataRowAction Action => eventAction; [DebuggerNonUserCode] public IndentBillNoSaleRowChangeEvent(IndentBillNoSaleRow row, DataRowAction action) { eventRow = row; eventAction = action; } } private IndentBillNoSaleDataTable tableIndentBillNoSale; private SchemaSerializationMode _schemaSerializationMode = SchemaSerializationMode.IncludeSchema; [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] [DebuggerNonUserCode] [Browsable(false)] public IndentBillNoSaleDataTable IndentBillNoSale => tableIndentBillNoSale; [Browsable(true)] [DebuggerNonUserCode] [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] public override SchemaSerializationMode SchemaSerializationMode { get { return _schemaSerializationMode; } set { _schemaSerializationMode = value; } } [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [DebuggerNonUserCode] public new DataTableCollection Tables => base.Tables; [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [DebuggerNonUserCode] public new DataRelationCollection Relations => base.Relations; [DebuggerNonUserCode] public dsFrmIndentNoSale() { BeginInit(); InitClass(); CollectionChangeEventHandler value = SchemaChanged; base.Tables.CollectionChanged += value; base.Relations.CollectionChanged += value; EndInit(); } [DebuggerNonUserCode] protected dsFrmIndentNoSale(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["IndentBillNoSale"] != null) { base.Tables.Add(new IndentBillNoSaleDataTable(dataSet.Tables["IndentBillNoSale"])); } 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() { dsFrmIndentNoSale dsFrmIndentNoSale = (dsFrmIndentNoSale)base.Clone(); dsFrmIndentNoSale.InitVars(); dsFrmIndentNoSale.SchemaSerializationMode = SchemaSerializationMode; return dsFrmIndentNoSale; } [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["IndentBillNoSale"] != null) { base.Tables.Add(new IndentBillNoSaleDataTable(dataSet.Tables["IndentBillNoSale"])); } 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) { tableIndentBillNoSale = (IndentBillNoSaleDataTable)base.Tables["IndentBillNoSale"]; if (initTable && tableIndentBillNoSale != null) { tableIndentBillNoSale.InitVars(); } } [DebuggerNonUserCode] private void InitClass() { base.DataSetName = "dsFrmIndentNoSale"; base.Prefix = ""; base.Namespace = "http://tempuri.org/dsFrmIndentNoSale.xsd"; base.EnforceConstraints = true; SchemaSerializationMode = SchemaSerializationMode.IncludeSchema; tableIndentBillNoSale = new IndentBillNoSaleDataTable(); base.Tables.Add(tableIndentBillNoSale); } [DebuggerNonUserCode] private bool ShouldSerializeIndentBillNoSale() { return false; } [DebuggerNonUserCode] private void SchemaChanged(object sender, CollectionChangeEventArgs e) { if (e.Action == CollectionChangeAction.Remove) { InitVars(); } } [DebuggerNonUserCode] public static XmlSchemaComplexType GetTypedDataSetSchema(XmlSchemaSet xs) { dsFrmIndentNoSale dsFrmIndentNoSale = new dsFrmIndentNoSale(); XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType(); XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence(); xs.Add(dsFrmIndentNoSale.GetSchemaSerializable()); XmlSchemaAny xmlSchemaAny = new XmlSchemaAny(); xmlSchemaAny.Namespace = dsFrmIndentNoSale.Namespace; xmlSchemaSequence.Items.Add(xmlSchemaAny); xmlSchemaComplexType.Particle = xmlSchemaSequence; return xmlSchemaComplexType; } } }