新公司的数据结构

来源:互联网 发布:西门子编程电缆接plc图 编辑:程序博客网 时间:2024/04/27 15:36

PUB_Popedom = (ZJS_PUBDataSet )CacheTableTool.GetPUB_PopedomFromXML().DataSet;
public static ZJS_PUBDataSet.PUB_CacheTableDataTable GetPUB_PopedomFromXML()
      {
          return ((ZJS_PUBDataSet)Dec.DesDecryptDataTabel(new ZJS_PUBDataSet(), "PUB_PopedomXML")).PUB_CacheTable; 
      }
public static DataSet DesDecryptDataTabel(DataSet ds,string URLKey)//解密函数
        {

           
            string deckey = GetUserInfo.GetUser().DECKey;
            byte[] bytes;
            FileStream fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ConfigurationManager.AppSettings.Get(URLKey), FileMode.Open);
            bytes = new byte[(int)fs.Length];
            fs.Read(bytes, 0, (int)fs.Length);
            fs.Close();
            bytes = Dec.DesDecryptStream(bytes, deckey);
            MemoryStream ms = new MemoryStream();

            ms.Write(bytes, 0, bytes.Length);
            ms.Position = 0;
            ds.ReadXml(ms);
            return ds ;

        }
public PUB_CacheTableDataTable PUB_CacheTable
       {
            get
   {
                return this.tablePUB_CacheTable;
            }
        }
  
private PUB_CacheTableDataTable tablePUB_CacheTable;

[System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
        public partial class PUB_CacheTableDataTable : System.Data.DataTable, System.Collections.IEnumerable {
           
            private System.Data.DataColumn columnTableID;
           
            private System.Data.DataColumn columnTableName;
           
            private System.Data.DataColumn columnTableVer;
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public PUB_CacheTableDataTable() {
                this.TableName = "PUB_CacheTable";
                this.BeginInit();
                this.InitClass();
                this.EndInit();
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal PUB_CacheTableDataTable(System.Data.DataTable table) {
                this.TableName = table.TableName;
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected PUB_CacheTableDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
                    base(info, context) {
                this.InitVars();
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn TableIDColumn {
                get {
                    return this.columnTableID;
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn TableNameColumn {
                get {
                    return this.columnTableName;
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn TableVerColumn {
                get {
                    return this.columnTableVer;
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public PUB_CacheTableRow this[int index] {
                get {
                    return ((PUB_CacheTableRow)(this.Rows[index]));
                }
            }
           
            public event PUB_CacheTableRowChangeEventHandler PUB_CacheTableRowChanging;
           
            public event PUB_CacheTableRowChangeEventHandler PUB_CacheTableRowChanged;
           
            public event PUB_CacheTableRowChangeEventHandler PUB_CacheTableRowDeleting;
           
            public event PUB_CacheTableRowChangeEventHandler PUB_CacheTableRowDeleted;
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void AddPUB_CacheTableRow(PUB_CacheTableRow row) {
                this.Rows.Add(row);
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public PUB_CacheTableRow AddPUB_CacheTableRow(int TableID, string TableName, int TableVer) {
                PUB_CacheTableRow rowPUB_CacheTableRow = ((PUB_CacheTableRow)(this.NewRow()));
                rowPUB_CacheTableRow.ItemArray = new object[] {
                        TableID,
                        TableName,
                        TableVer};
                this.Rows.Add(rowPUB_CacheTableRow);
                return rowPUB_CacheTableRow;
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public PUB_CacheTableRow FindByTableID(int TableID) {
                return ((PUB_CacheTableRow)(this.Rows.Find(new object[] {
                            TableID})));
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public virtual System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public override System.Data.DataTable Clone() {
                PUB_CacheTableDataTable cln = ((PUB_CacheTableDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Data.DataTable CreateInstance() {
                return new PUB_CacheTableDataTable();
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal void InitVars() {
                this.columnTableID = base.Columns["TableID"];
                this.columnTableName = base.Columns["TableName"];
                this.columnTableVer = base.Columns["TableVer"];
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            private void InitClass() {
                this.columnTableID = new System.Data.DataColumn("TableID", typeof(int), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnTableID);
                this.columnTableName = new System.Data.DataColumn("TableName", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnTableName);
                this.columnTableVer = new System.Data.DataColumn("TableVer", typeof(int), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnTableVer);
                this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
                                this.columnTableID}, true));
                this.columnTableID.AllowDBNull = false;
                this.columnTableID.Unique = true;
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public PUB_CacheTableRow NewPUB_CacheTableRow() {
                return ((PUB_CacheTableRow)(this.NewRow()));
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
                return new PUB_CacheTableRow(builder);
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Type GetRowType() {
                return typeof(PUB_CacheTableRow);
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.PUB_CacheTableRowChanged != null)) {
                    this.PUB_CacheTableRowChanged(this, new PUB_CacheTableRowChangeEvent(((PUB_CacheTableRow)(e.Row)), e.Action));
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.PUB_CacheTableRowChanging != null)) {
                    this.PUB_CacheTableRowChanging(this, new PUB_CacheTableRowChangeEvent(((PUB_CacheTableRow)(e.Row)), e.Action));
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.PUB_CacheTableRowDeleted != null)) {
                    this.PUB_CacheTableRowDeleted(this, new PUB_CacheTableRowChangeEvent(((PUB_CacheTableRow)(e.Row)), e.Action));
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.PUB_CacheTableRowDeleting != null)) {
                    this.PUB_CacheTableRowDeleting(this, new PUB_CacheTableRowChangeEvent(((PUB_CacheTableRow)(e.Row)), e.Action));
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void RemovePUB_CacheTableRow(PUB_CacheTableRow row) {
                this.Rows.Remove(row);
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) {
                System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
                System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
                ZJS_PUBDataSet ds = new ZJS_PUBDataSet();
                xs.Add(ds.GetSchemaSerializable());
                System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny();
                any1.Namespace = "http://www.w3.org/2001/XMLSchema";
                any1.MinOccurs = new decimal(0);
                any1.MaxOccurs = decimal.MaxValue;
                any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any1);
                System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny();
                any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
                any2.MinOccurs = new decimal(1);
                any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any2);
                System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute();
                attribute1.Name = "namespace";
                attribute1.FixedValue = ds.Namespace;
                type.Attributes.Add(attribute1);
                System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute();
                attribute2.Name = "tableTypeName";
                attribute2.FixedValue = "PUB_CacheTableDataTable";
                type.Attributes.Add(attribute2);
                type.Particle = sequence;
                return type;
            }
        }
       
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        [System.Serializable()]
        [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
        public partial class PUB_FrameworkRelationDataTable : System.Data.DataTable, System.Collections.IEnumerable {
           
            private System.Data.DataColumn columnID;
           
            private System.Data.DataColumn columnChineseName;
           
            private System.Data.DataColumn columnFatherID;
           
            private System.Data.DataColumn columncompanytype;
           
            private System.Data.DataColumn columnType;
           
            private System.Data.DataColumn columnRelationID;
           
            private System.Data.DataColumn columnCompanyCode;
           
            private System.Data.DataColumn columnIsView;
           
            private System.Data.DataColumn columnFrameWorkID;
           
            private System.Data.DataColumn columnDistinction;
           
            private System.Data.DataColumn columnProvince;
           
            private System.Data.DataColumn columnCity;
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public PUB_FrameworkRelationDataTable() {
                this.TableName = "PUB_FrameworkRelation";
                this.BeginInit();
                this.InitClass();
                this.EndInit();
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal PUB_FrameworkRelationDataTable(System.Data.DataTable table) {
                this.TableName = table.TableName;
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected PUB_FrameworkRelationDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
                    base(info, context) {
                this.InitVars();
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn IDColumn {
                get {
                    return this.columnID;
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn ChineseNameColumn {
                get {
                    return this.columnChineseName;
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn FatherIDColumn {
                get {
                    return this.columnFatherID;
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn companytypeColumn {
                get {
                    return this.columncompanytype;
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn TypeColumn {
                get {
                    return this.columnType;
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn RelationIDColumn {
                get {
                    return this.columnRelationID;
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn CompanyCodeColumn {
                get {
                    return this.columnCompanyCode;
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn IsViewColumn {
                get {
                    return this.columnIsView;
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn FrameWorkIDColumn {
                get {
                    return this.columnFrameWorkID;
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn DistinctionColumn {
                get {
                    return this.columnDistinction;
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn ProvinceColumn {
                get {
                    return this.columnProvince;
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn CityColumn {
                get {
                    return this.columnCity;
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public PUB_FrameworkRelationRow this[int index] {
                get {
                    return ((PUB_FrameworkRelationRow)(this.Rows[index]));
                }
            }
           
            public event PUB_FrameworkRelationRowChangeEventHandler PUB_FrameworkRelationRowChanging;
           
            public event PUB_FrameworkRelationRowChangeEventHandler PUB_FrameworkRelationRowChanged;
           
            public event PUB_FrameworkRelationRowChangeEventHandler PUB_FrameworkRelationRowDeleting;
           
            public event PUB_FrameworkRelationRowChangeEventHandler PUB_FrameworkRelationRowDeleted;
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void AddPUB_FrameworkRelationRow(PUB_FrameworkRelationRow row) {
                this.Rows.Add(row);
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public PUB_FrameworkRelationRow AddPUB_FrameworkRelationRow(int ID, string ChineseName, int FatherID, int companytype, int Type, int RelationID, string CompanyCode, short IsView, int FrameWorkID, int Distinction, string Province, string City) {
                PUB_FrameworkRelationRow rowPUB_FrameworkRelationRow = ((PUB_FrameworkRelationRow)(this.NewRow()));
                rowPUB_FrameworkRelationRow.ItemArray = new object[] {
                        ID,
                        ChineseName,
                        FatherID,
                        companytype,
                        Type,
                        RelationID,
                        CompanyCode,
                        IsView,
                        FrameWorkID,
                        Distinction,
                        Province,
                        City};
                this.Rows.Add(rowPUB_FrameworkRelationRow);
                return rowPUB_FrameworkRelationRow;
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public virtual System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public override System.Data.DataTable Clone() {
                PUB_FrameworkRelationDataTable cln = ((PUB_FrameworkRelationDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Data.DataTable CreateInstance() {
                return new PUB_FrameworkRelationDataTable();
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal void InitVars() {
                this.columnID = base.Columns["ID"];
                this.columnChineseName = base.Columns["ChineseName"];
                this.columnFatherID = base.Columns["FatherID"];
                this.columncompanytype = base.Columns["companytype"];
                this.columnType = base.Columns["Type"];
                this.columnRelationID = base.Columns["RelationID"];
                this.columnCompanyCode = base.Columns["CompanyCode"];
                this.columnIsView = base.Columns["IsView"];
                this.columnFrameWorkID = base.Columns["FrameWorkID"];
                this.columnDistinction = base.Columns["Distinction"];
                this.columnProvince = base.Columns["Province"];
                this.columnCity = base.Columns["City"];
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            private void InitClass() {
                this.columnID = new System.Data.DataColumn("ID", typeof(int), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnID);
                this.columnChineseName = new System.Data.DataColumn("ChineseName", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnChineseName);
                this.columnFatherID = new System.Data.DataColumn("FatherID", typeof(int), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnFatherID);
                this.columncompanytype = new System.Data.DataColumn("companytype", typeof(int), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columncompanytype);
                this.columnType = new System.Data.DataColumn("Type", typeof(int), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnType);
                this.columnRelationID = new System.Data.DataColumn("RelationID", typeof(int), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnRelationID);
                this.columnCompanyCode = new System.Data.DataColumn("CompanyCode", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnCompanyCode);
                this.columnIsView = new System.Data.DataColumn("IsView", typeof(short), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnIsView);
                this.columnFrameWorkID = new System.Data.DataColumn("FrameWorkID", typeof(int), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnFrameWorkID);
                this.columnDistinction = new System.Data.DataColumn("Distinction", typeof(int), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnDistinction);
                this.columnProvince = new System.Data.DataColumn("Province", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnProvince);
                this.columnCity = new System.Data.DataColumn("City", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnCity);
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public PUB_FrameworkRelationRow NewPUB_FrameworkRelationRow() {
                return ((PUB_FrameworkRelationRow)(this.NewRow()));
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
                return new PUB_FrameworkRelationRow(builder);
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Type GetRowType() {
                return typeof(PUB_FrameworkRelationRow);
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.PUB_FrameworkRelationRowChanged != null)) {
                    this.PUB_FrameworkRelationRowChanged(this, new PUB_FrameworkRelationRowChangeEvent(((PUB_FrameworkRelationRow)(e.Row)), e.Action));
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.PUB_FrameworkRelationRowChanging != null)) {
                    this.PUB_FrameworkRelationRowChanging(this, new PUB_FrameworkRelationRowChangeEvent(((PUB_FrameworkRelationRow)(e.Row)), e.Action));
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.PUB_FrameworkRelationRowDeleted != null)) {
                    this.PUB_FrameworkRelationRowDeleted(this, new PUB_FrameworkRelationRowChangeEvent(((PUB_FrameworkRelationRow)(e.Row)), e.Action));
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.PUB_FrameworkRelationRowDeleting != null)) {
                    this.PUB_FrameworkRelationRowDeleting(this, new PUB_FrameworkRelationRowChangeEvent(((PUB_FrameworkRelationRow)(e.Row)), e.Action));
                }
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void RemovePUB_FrameworkRelationRow(PUB_FrameworkRelationRow row) {
                this.Rows.Remove(row);
            }
           
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) {
                System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
                System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
                ZJS_PUBDataSet ds = new ZJS_PUBDataSet();
                xs.Add(ds.GetSchemaSerializable());
                System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny();
                any1.Namespace = "http://www.w3.org/2001/XMLSchema";
                any1.MinOccurs = new decimal(0);
                any1.MaxOccurs = decimal.MaxValue;
                any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any1);
                System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny();
                any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
                any2.MinOccurs = new decimal(1);
                any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any2);
                System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute();
                attribute1.Name = "namespace";
                attribute1.FixedValue = ds.Namespace;
                type.Attributes.Add(attribute1);
                System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute();
                attribute2.Name = "tableTypeName";
                attribute2.FixedValue = "PUB_FrameworkRelationDataTable";
                type.Attributes.Add(attribute2);
                type.Particle = sequence;
                return type;
            }
        } 

 /// <summary>
        /// 状态标志(0代表正常,1代表删除或作废)
        /// </summary>
        public int State;
        /// <summary>
        /// 功能分区Id是否存在(0代表存在,1代表不存在)
        /// </summary>
        public int IsExit;

原创粉丝点击