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] [XmlSchemaProvider("GetTypedDataSetSchema")] [XmlRoot("dsFrmDepartment")] [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] [ToolboxItem(true)] [HelpKeyword("vs.data.DataSet")] [DesignerCategory("code")] public class dsFrmDepartment : DataSet { public delegate void DepartmentRowChangeEventHandler(object sender, DepartmentRowChangeEvent e); public delegate void AppendInfoRowChangeEventHandler(object sender, AppendInfoRowChangeEvent e); [Serializable] [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] [XmlSchemaProvider("GetTypedTableSchema")] public class DepartmentDataTable : DataTable, IEnumerable { private DataColumn columnNo_Department; private DataColumn columnName_Department; private DataColumn columnCreateDate_Department; private DataColumn columnComment_Department; private DataColumn columnSuspendDate_Department; private DataColumn columnLevel_Department; private DataColumn columnLastModDate_Department; private DataColumn columnName_SubDepartment; private DataColumn columnNo_SubDepartment; private DataColumn columnLastModUser_DepartmentName; private DataColumn columnCreateName; [DebuggerNonUserCode] public DataColumn No_DepartmentColumn => columnNo_Department; [DebuggerNonUserCode] public DataColumn Name_DepartmentColumn => columnName_Department; [DebuggerNonUserCode] public DataColumn CreateDate_DepartmentColumn => columnCreateDate_Department; [DebuggerNonUserCode] public DataColumn Comment_DepartmentColumn => columnComment_Department; [DebuggerNonUserCode] public DataColumn SuspendDate_DepartmentColumn => columnSuspendDate_Department; [DebuggerNonUserCode] public DataColumn Level_DepartmentColumn => columnLevel_Department; [DebuggerNonUserCode] public DataColumn LastModDate_DepartmentColumn => columnLastModDate_Department; [DebuggerNonUserCode] public DataColumn Name_SubDepartmentColumn => columnName_SubDepartment; [DebuggerNonUserCode] public DataColumn No_SubDepartmentColumn => columnNo_SubDepartment; [DebuggerNonUserCode] public DataColumn LastModUser_DepartmentNameColumn => columnLastModUser_DepartmentName; [DebuggerNonUserCode] public DataColumn CreateNameColumn => columnCreateName; [Browsable(false)] [DebuggerNonUserCode] public int Count => base.Rows.Count; [DebuggerNonUserCode] public DepartmentRow this[int index] => (DepartmentRow)base.Rows[index]; public event DepartmentRowChangeEventHandler DepartmentRowChanging; public event DepartmentRowChangeEventHandler DepartmentRowChanged; public event DepartmentRowChangeEventHandler DepartmentRowDeleting; public event DepartmentRowChangeEventHandler DepartmentRowDeleted; [DebuggerNonUserCode] public DepartmentDataTable() { base.TableName = "Department"; BeginInit(); InitClass(); EndInit(); } [DebuggerNonUserCode] internal DepartmentDataTable(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 DepartmentDataTable(SerializationInfo info, StreamingContext context) : base(info, context) { InitVars(); } [DebuggerNonUserCode] public void AddDepartmentRow(DepartmentRow row) { base.Rows.Add(row); } [DebuggerNonUserCode] public DepartmentRow AddDepartmentRow(string No_Department, string Name_Department, DateTime CreateDate_Department, string Comment_Department, DateTime SuspendDate_Department, int Level_Department, DateTime LastModDate_Department, string Name_SubDepartment, string No_SubDepartment, string LastModUser_DepartmentName, string CreateName) { DepartmentRow departmentRow = (DepartmentRow)NewRow(); departmentRow.ItemArray = new object[11] { No_Department, Name_Department, CreateDate_Department, Comment_Department, SuspendDate_Department, Level_Department, LastModDate_Department, Name_SubDepartment, No_SubDepartment, LastModUser_DepartmentName, CreateName }; base.Rows.Add(departmentRow); return departmentRow; } [DebuggerNonUserCode] public virtual IEnumerator GetEnumerator() { return base.Rows.GetEnumerator(); } [DebuggerNonUserCode] public override DataTable Clone() { DepartmentDataTable departmentDataTable = (DepartmentDataTable)base.Clone(); departmentDataTable.InitVars(); return departmentDataTable; } [DebuggerNonUserCode] protected override DataTable CreateInstance() { return new DepartmentDataTable(); } [DebuggerNonUserCode] internal void InitVars() { columnNo_Department = base.Columns["No_Department"]; columnName_Department = base.Columns["Name_Department"]; columnCreateDate_Department = base.Columns["CreateDate_Department"]; columnComment_Department = base.Columns["Comment_Department"]; columnSuspendDate_Department = base.Columns["SuspendDate_Department"]; columnLevel_Department = base.Columns["Level_Department"]; columnLastModDate_Department = base.Columns["LastModDate_Department"]; columnName_SubDepartment = base.Columns["Name_SubDepartment"]; columnNo_SubDepartment = base.Columns["No_SubDepartment"]; columnLastModUser_DepartmentName = base.Columns["LastModUser_DepartmentName"]; columnCreateName = base.Columns["CreateName"]; } [DebuggerNonUserCode] private void InitClass() { columnNo_Department = new DataColumn("No_Department", typeof(string), null, MappingType.Element); base.Columns.Add(columnNo_Department); columnName_Department = new DataColumn("Name_Department", typeof(string), null, MappingType.Element); base.Columns.Add(columnName_Department); columnCreateDate_Department = new DataColumn("CreateDate_Department", typeof(DateTime), null, MappingType.Element); base.Columns.Add(columnCreateDate_Department); columnComment_Department = new DataColumn("Comment_Department", typeof(string), null, MappingType.Element); base.Columns.Add(columnComment_Department); columnSuspendDate_Department = new DataColumn("SuspendDate_Department", typeof(DateTime), null, MappingType.Element); base.Columns.Add(columnSuspendDate_Department); columnLevel_Department = new DataColumn("Level_Department", typeof(int), null, MappingType.Element); base.Columns.Add(columnLevel_Department); columnLastModDate_Department = new DataColumn("LastModDate_Department", typeof(DateTime), null, MappingType.Element); base.Columns.Add(columnLastModDate_Department); columnName_SubDepartment = new DataColumn("Name_SubDepartment", typeof(string), null, MappingType.Element); base.Columns.Add(columnName_SubDepartment); columnNo_SubDepartment = new DataColumn("No_SubDepartment", typeof(string), null, MappingType.Element); base.Columns.Add(columnNo_SubDepartment); columnLastModUser_DepartmentName = new DataColumn("LastModUser_DepartmentName", typeof(string), null, MappingType.Element); base.Columns.Add(columnLastModUser_DepartmentName); columnCreateName = new DataColumn("CreateName", typeof(string), null, MappingType.Element); base.Columns.Add(columnCreateName); } [DebuggerNonUserCode] public DepartmentRow NewDepartmentRow() { return (DepartmentRow)NewRow(); } [DebuggerNonUserCode] protected override DataRow NewRowFromBuilder(DataRowBuilder builder) { return new DepartmentRow(builder); } [DebuggerNonUserCode] protected override Type GetRowType() { return typeof(DepartmentRow); } [DebuggerNonUserCode] protected override void OnRowChanged(DataRowChangeEventArgs e) { base.OnRowChanged(e); if (this.DepartmentRowChanged != null) { this.DepartmentRowChanged(this, new DepartmentRowChangeEvent((DepartmentRow)e.Row, e.Action)); } } [DebuggerNonUserCode] protected override void OnRowChanging(DataRowChangeEventArgs e) { base.OnRowChanging(e); if (this.DepartmentRowChanging != null) { this.DepartmentRowChanging(this, new DepartmentRowChangeEvent((DepartmentRow)e.Row, e.Action)); } } [DebuggerNonUserCode] protected override void OnRowDeleted(DataRowChangeEventArgs e) { base.OnRowDeleted(e); if (this.DepartmentRowDeleted != null) { this.DepartmentRowDeleted(this, new DepartmentRowChangeEvent((DepartmentRow)e.Row, e.Action)); } } [DebuggerNonUserCode] protected override void OnRowDeleting(DataRowChangeEventArgs e) { base.OnRowDeleting(e); if (this.DepartmentRowDeleting != null) { this.DepartmentRowDeleting(this, new DepartmentRowChangeEvent((DepartmentRow)e.Row, e.Action)); } } [DebuggerNonUserCode] public void RemoveDepartmentRow(DepartmentRow row) { base.Rows.Remove(row); } [DebuggerNonUserCode] public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs) { XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType(); XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence(); dsFrmDepartment dsFrmDepartment = new dsFrmDepartment(); xs.Add(dsFrmDepartment.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 = dsFrmDepartment.Namespace; xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute); XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute(); xmlSchemaAttribute2.Name = "tableTypeName"; xmlSchemaAttribute2.FixedValue = "DepartmentDataTable"; xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2); xmlSchemaComplexType.Particle = xmlSchemaSequence; return xmlSchemaComplexType; } } [Serializable] [XmlSchemaProvider("GetTypedTableSchema")] [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] public class AppendInfoDataTable : DataTable, IEnumerable { private DataColumn columnCurrentCompany; private DataColumn columnCurrentUser; [DebuggerNonUserCode] public DataColumn CurrentCompanyColumn => columnCurrentCompany; [DebuggerNonUserCode] public DataColumn CurrentUserColumn => columnCurrentUser; [Browsable(false)] [DebuggerNonUserCode] 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(); dsFrmDepartment dsFrmDepartment = new dsFrmDepartment(); xs.Add(dsFrmDepartment.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 = dsFrmDepartment.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 DepartmentRow : DataRow { private DepartmentDataTable tableDepartment; [DebuggerNonUserCode] public string No_Department { get { try { return (string)base[tableDepartment.No_DepartmentColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'No_Department' in table 'Department' is DBNull.", innerException); } } set { base[tableDepartment.No_DepartmentColumn] = value; } } [DebuggerNonUserCode] public string Name_Department { get { try { return (string)base[tableDepartment.Name_DepartmentColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'Name_Department' in table 'Department' is DBNull.", innerException); } } set { base[tableDepartment.Name_DepartmentColumn] = value; } } [DebuggerNonUserCode] public DateTime CreateDate_Department { get { try { return (DateTime)base[tableDepartment.CreateDate_DepartmentColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'CreateDate_Department' in table 'Department' is DBNull.", innerException); } } set { base[tableDepartment.CreateDate_DepartmentColumn] = value; } } [DebuggerNonUserCode] public string Comment_Department { get { try { return (string)base[tableDepartment.Comment_DepartmentColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'Comment_Department' in table 'Department' is DBNull.", innerException); } } set { base[tableDepartment.Comment_DepartmentColumn] = value; } } [DebuggerNonUserCode] public DateTime SuspendDate_Department { get { try { return (DateTime)base[tableDepartment.SuspendDate_DepartmentColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'SuspendDate_Department' in table 'Department' is DBNull.", innerException); } } set { base[tableDepartment.SuspendDate_DepartmentColumn] = value; } } [DebuggerNonUserCode] public int Level_Department { get { try { return (int)base[tableDepartment.Level_DepartmentColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'Level_Department' in table 'Department' is DBNull.", innerException); } } set { base[tableDepartment.Level_DepartmentColumn] = value; } } [DebuggerNonUserCode] public DateTime LastModDate_Department { get { try { return (DateTime)base[tableDepartment.LastModDate_DepartmentColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'LastModDate_Department' in table 'Department' is DBNull.", innerException); } } set { base[tableDepartment.LastModDate_DepartmentColumn] = value; } } [DebuggerNonUserCode] public string Name_SubDepartment { get { try { return (string)base[tableDepartment.Name_SubDepartmentColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'Name_SubDepartment' in table 'Department' is DBNull.", innerException); } } set { base[tableDepartment.Name_SubDepartmentColumn] = value; } } [DebuggerNonUserCode] public string No_SubDepartment { get { try { return (string)base[tableDepartment.No_SubDepartmentColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'No_SubDepartment' in table 'Department' is DBNull.", innerException); } } set { base[tableDepartment.No_SubDepartmentColumn] = value; } } [DebuggerNonUserCode] public string LastModUser_DepartmentName { get { try { return (string)base[tableDepartment.LastModUser_DepartmentNameColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'LastModUser_DepartmentName' in table 'Department' is DBNull.", innerException); } } set { base[tableDepartment.LastModUser_DepartmentNameColumn] = value; } } [DebuggerNonUserCode] public string CreateName { get { try { return (string)base[tableDepartment.CreateNameColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'CreateName' in table 'Department' is DBNull.", innerException); } } set { base[tableDepartment.CreateNameColumn] = value; } } [DebuggerNonUserCode] internal DepartmentRow(DataRowBuilder rb) : base(rb) { tableDepartment = (DepartmentDataTable)base.Table; } [DebuggerNonUserCode] public bool IsNo_DepartmentNull() { return IsNull(tableDepartment.No_DepartmentColumn); } [DebuggerNonUserCode] public void SetNo_DepartmentNull() { base[tableDepartment.No_DepartmentColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsName_DepartmentNull() { return IsNull(tableDepartment.Name_DepartmentColumn); } [DebuggerNonUserCode] public void SetName_DepartmentNull() { base[tableDepartment.Name_DepartmentColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsCreateDate_DepartmentNull() { return IsNull(tableDepartment.CreateDate_DepartmentColumn); } [DebuggerNonUserCode] public void SetCreateDate_DepartmentNull() { base[tableDepartment.CreateDate_DepartmentColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsComment_DepartmentNull() { return IsNull(tableDepartment.Comment_DepartmentColumn); } [DebuggerNonUserCode] public void SetComment_DepartmentNull() { base[tableDepartment.Comment_DepartmentColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsSuspendDate_DepartmentNull() { return IsNull(tableDepartment.SuspendDate_DepartmentColumn); } [DebuggerNonUserCode] public void SetSuspendDate_DepartmentNull() { base[tableDepartment.SuspendDate_DepartmentColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsLevel_DepartmentNull() { return IsNull(tableDepartment.Level_DepartmentColumn); } [DebuggerNonUserCode] public void SetLevel_DepartmentNull() { base[tableDepartment.Level_DepartmentColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsLastModDate_DepartmentNull() { return IsNull(tableDepartment.LastModDate_DepartmentColumn); } [DebuggerNonUserCode] public void SetLastModDate_DepartmentNull() { base[tableDepartment.LastModDate_DepartmentColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsName_SubDepartmentNull() { return IsNull(tableDepartment.Name_SubDepartmentColumn); } [DebuggerNonUserCode] public void SetName_SubDepartmentNull() { base[tableDepartment.Name_SubDepartmentColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsNo_SubDepartmentNull() { return IsNull(tableDepartment.No_SubDepartmentColumn); } [DebuggerNonUserCode] public void SetNo_SubDepartmentNull() { base[tableDepartment.No_SubDepartmentColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsLastModUser_DepartmentNameNull() { return IsNull(tableDepartment.LastModUser_DepartmentNameColumn); } [DebuggerNonUserCode] public void SetLastModUser_DepartmentNameNull() { base[tableDepartment.LastModUser_DepartmentNameColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsCreateNameNull() { return IsNull(tableDepartment.CreateNameColumn); } [DebuggerNonUserCode] public void SetCreateNameNull() { base[tableDepartment.CreateNameColumn] = 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 DepartmentRowChangeEvent : EventArgs { private DepartmentRow eventRow; private DataRowAction eventAction; [DebuggerNonUserCode] public DepartmentRow Row => eventRow; [DebuggerNonUserCode] public DataRowAction Action => eventAction; [DebuggerNonUserCode] public DepartmentRowChangeEvent(DepartmentRow 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 DepartmentDataTable tableDepartment; private AppendInfoDataTable tableAppendInfo; private SchemaSerializationMode _schemaSerializationMode = SchemaSerializationMode.IncludeSchema; [DebuggerNonUserCode] [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public DepartmentDataTable Department => tableDepartment; [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] [Browsable(false)] [DebuggerNonUserCode] public AppendInfoDataTable AppendInfo => tableAppendInfo; [Browsable(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] [DebuggerNonUserCode] public override SchemaSerializationMode SchemaSerializationMode { get { return _schemaSerializationMode; } set { _schemaSerializationMode = value; } } [DebuggerNonUserCode] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public new DataTableCollection Tables => base.Tables; [DebuggerNonUserCode] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public new DataRelationCollection Relations => base.Relations; [DebuggerNonUserCode] public dsFrmDepartment() { BeginInit(); InitClass(); CollectionChangeEventHandler value = SchemaChanged; base.Tables.CollectionChanged += value; base.Relations.CollectionChanged += value; EndInit(); } [DebuggerNonUserCode] protected dsFrmDepartment(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["Department"] != null) { base.Tables.Add(new DepartmentDataTable(dataSet.Tables["Department"])); } 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() { dsFrmDepartment dsFrmDepartment = (dsFrmDepartment)base.Clone(); dsFrmDepartment.InitVars(); dsFrmDepartment.SchemaSerializationMode = SchemaSerializationMode; return dsFrmDepartment; } [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["Department"] != null) { base.Tables.Add(new DepartmentDataTable(dataSet.Tables["Department"])); } 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) { tableDepartment = (DepartmentDataTable)base.Tables["Department"]; if (initTable && tableDepartment != null) { tableDepartment.InitVars(); } tableAppendInfo = (AppendInfoDataTable)base.Tables["AppendInfo"]; if (initTable && tableAppendInfo != null) { tableAppendInfo.InitVars(); } } [DebuggerNonUserCode] private void InitClass() { base.DataSetName = "dsFrmDepartment"; base.Prefix = ""; base.Namespace = "http://tempuri.org/dsFrmDepartment.xsd"; base.EnforceConstraints = true; SchemaSerializationMode = SchemaSerializationMode.IncludeSchema; tableDepartment = new DepartmentDataTable(); base.Tables.Add(tableDepartment); tableAppendInfo = new AppendInfoDataTable(); base.Tables.Add(tableAppendInfo); } [DebuggerNonUserCode] private bool ShouldSerializeDepartment() { 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) { dsFrmDepartment dsFrmDepartment = new dsFrmDepartment(); XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType(); XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence(); xs.Add(dsFrmDepartment.GetSchemaSerializable()); XmlSchemaAny xmlSchemaAny = new XmlSchemaAny(); xmlSchemaAny.Namespace = dsFrmDepartment.Namespace; xmlSchemaSequence.Items.Add(xmlSchemaAny); xmlSchemaComplexType.Particle = xmlSchemaSequence; return xmlSchemaComplexType; } } }