⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dataset10.h

📁 Visual C++.net数据库开发经典案例
💻 H
📖 第 1 页 / 共 3 页
字号:
#pragma once 
#using <System.dll>
#using <System.Data.dll>
#using <System.Xml.dll>
#using <mscorlib.dll>

// 
// 此源代码由 xsd, Version=1.1.4322.2032 自动生成。
// 
namespace My {
    using namespace System;
    using namespace System::Data;
    using namespace System::Xml;
    using namespace System::Runtime::Serialization;
    
    using namespace System;
    public __gc class DataSet10;
    
    
    [Serializable, 
    System::ComponentModel::DesignerCategoryAttribute(S"code"), 
    System::Diagnostics::DebuggerStepThrough, 
    System::ComponentModel::ToolboxItem(true)]
    public __gc class DataSet10 : public System::Data::DataSet {
        public : __gc class ImportTableDataTable;
        public : __gc class ImportTableRow;
        public : __gc class ImportTableRowChangeEvent;
        
        private: My::DataSet10::ImportTableDataTable *  tableImportTable;
        
        public: DataSet10();
        protected: DataSet10(System::Runtime::Serialization::SerializationInfo *  info, System::Runtime::Serialization::StreamingContext context);
        public: [property: System::ComponentModel::Browsable(false), 
        property: System::ComponentModel::DesignerSerializationVisibilityAttribute(System::ComponentModel::DesignerSerializationVisibility::Content)]
         __property My::DataSet10::ImportTableDataTable *  get_ImportTable();
        
        public: virtual System::Data::DataSet *  Clone();
        
        protected: virtual System::Boolean ShouldSerializeTables();
        
        protected: virtual System::Boolean ShouldSerializeRelations();
        
        protected: virtual System::Void ReadXmlSerializable(System::Xml::XmlReader *  reader);
        
        protected: virtual System::Xml::Schema::XmlSchema *  GetSchemaSerializable();
        
        public private: System::Void InitVars();
        
        private: System::Void InitClass();
        
        private: System::Boolean ShouldSerializeImportTable();
        
        private: System::Void SchemaChanged(System::Object *  sender, System::ComponentModel::CollectionChangeEventArgs *  e);
        
        public: __delegate System::Void ImportTableRowChangeEventHandler(System::Object *  sender, My::DataSet10::ImportTableRowChangeEvent *  e);
        
        public : [System::Diagnostics::DebuggerStepThrough]
        __gc class ImportTableDataTable : public System::Data::DataTable, public System::Collections::IEnumerable {
            
            private: System::Data::DataColumn *  columnStockerID;
            
            private: System::Data::DataColumn *  columnImportDate;
            
            private: System::Data::DataColumn *  columnOperator;
            
            private: System::Data::DataColumn *  columnMaker;
            
            private: System::Data::DataColumn *  columnWareID;
            
            private: System::Data::DataColumn *  columnImportQuantity;
            
            private: System::Data::DataColumn *  columnImportPrice;
            
            private: System::Data::DataColumn *  columnTotalPrice;
            
            private: System::Data::DataColumn *  columnTaxRate;
            
            private: System::Data::DataColumn *  columnTotalNoTax;
            
            private: System::Data::DataColumn *  columnTax;
            
            private: System::Data::DataColumn *  columnName;
            
            private: System::Data::DataColumn *  columnWareName;
            
            private: System::Data::DataColumn *  columnDepot;
            
            private: System::Data::DataColumn *  columnUnit;
            
            private: System::Data::DataColumn *  columnID;
            
            public private: ImportTableDataTable();
            public private: ImportTableDataTable(System::Data::DataTable *  table);
            public: [property: System::ComponentModel::Browsable(false)]
             __property System::Int32 get_Count();
            
            public private:  __property System::Data::DataColumn *  get_StockerIDColumn();
            
            public private:  __property System::Data::DataColumn *  get_ImportDateColumn();
            
            public private:  __property System::Data::DataColumn *  get_OperatorColumn();
            
            public private:  __property System::Data::DataColumn *  get_MakerColumn();
            
            public private:  __property System::Data::DataColumn *  get_WareIDColumn();
            
            public private:  __property System::Data::DataColumn *  get_ImportQuantityColumn();
            
            public private:  __property System::Data::DataColumn *  get_ImportPriceColumn();
            
            public private:  __property System::Data::DataColumn *  get_TotalPriceColumn();
            
            public private:  __property System::Data::DataColumn *  get_TaxRateColumn();
            
            public private:  __property System::Data::DataColumn *  get_TotalNoTaxColumn();
            
            public private:  __property System::Data::DataColumn *  get_TaxColumn();
            
            public private:  __property System::Data::DataColumn *  get_NameColumn();
            
            public private:  __property System::Data::DataColumn *  get_WareNameColumn();
            
            public private:  __property System::Data::DataColumn *  get_DepotColumn();
            
            public private:  __property System::Data::DataColumn *  get_UnitColumn();
            
            public private:  __property System::Data::DataColumn *  get_IDColumn();
            
            public:  __property My::DataSet10::ImportTableRow *  get_Item(System::Int32 index);
            
            public: __event My::DataSet10::ImportTableRowChangeEventHandler *  ImportTableRowChanged;
            
            public: __event My::DataSet10::ImportTableRowChangeEventHandler *  ImportTableRowChanging;
            
            public: __event My::DataSet10::ImportTableRowChangeEventHandler *  ImportTableRowDeleted;
            
            public: __event My::DataSet10::ImportTableRowChangeEventHandler *  ImportTableRowDeleting;
            
            public: System::Void AddImportTableRow(My::DataSet10::ImportTableRow *  row);
            
            public: My::DataSet10::ImportTableRow *  AddImportTableRow(
                        System::String *  StockerID, 
                        System::DateTime ImportDate, 
                        System::String *  Operator, 
                        System::String *  Maker, 
                        System::String *  WareID, 
                        System::Decimal ImportQuantity, 
                        System::Decimal ImportPrice, 
                        System::Decimal TotalPrice, 
                        System::Decimal TaxRate, 
                        System::Decimal TotalNoTax, 
                        System::Decimal Tax, 
                        System::String *  Name, 
                        System::String *  WareName, 
                        System::String *  Depot, 
                        System::String *  Unit, 
                        System::String *  ID);
            
            public: System::Collections::IEnumerator *  GetEnumerator();
            
            public: virtual System::Data::DataTable *  Clone();
            
            protected: virtual System::Data::DataTable *  CreateInstance();
            
            public private: System::Void InitVars();
            
            private: System::Void InitClass();
            
            public: My::DataSet10::ImportTableRow *  NewImportTableRow();
            
            protected: virtual System::Data::DataRow *  NewRowFromBuilder(System::Data::DataRowBuilder *  builder);
            
            protected: virtual System::Type *  GetRowType();
            
            protected: virtual System::Void OnRowChanged(System::Data::DataRowChangeEventArgs *  e);
            
            protected: virtual System::Void OnRowChanging(System::Data::DataRowChangeEventArgs *  e);
            
            protected: virtual System::Void OnRowDeleted(System::Data::DataRowChangeEventArgs *  e);
            
            protected: virtual System::Void OnRowDeleting(System::Data::DataRowChangeEventArgs *  e);
            
            public: System::Void RemoveImportTableRow(My::DataSet10::ImportTableRow *  row);
        };
        
        public : [System::Diagnostics::DebuggerStepThrough]
        __gc class ImportTableRow : public System::Data::DataRow {
            
            private: My::DataSet10::ImportTableDataTable *  tableImportTable;
            
            public private: ImportTableRow(System::Data::DataRowBuilder *  rb);
            public:  __property System::String *  get_StockerID();
            public:  __property  void set_StockerID(System::String *  value);
            
            public:  __property System::DateTime get_ImportDate();
            public:  __property  void set_ImportDate(System::DateTime value);
            
            public:  __property System::String *  get_Operator();
            public:  __property  void set_Operator(System::String *  value);
            
            public:  __property System::String *  get_Maker();
            public:  __property  void set_Maker(System::String *  value);
            
            public:  __property System::String *  get_WareID();
            public:  __property  void set_WareID(System::String *  value);
            
            public:  __property System::Decimal get_ImportQuantity();
            public:  __property  void set_ImportQuantity(System::Decimal value);
            
            public:  __property System::Decimal get_ImportPrice();
            public:  __property  void set_ImportPrice(System::Decimal value);
            
            public:  __property System::Decimal get_TotalPrice();
            public:  __property  void set_TotalPrice(System::Decimal value);
            
            public:  __property System::Decimal get_TaxRate();
            public:  __property  void set_TaxRate(System::Decimal value);
            
            public:  __property System::Decimal get_TotalNoTax();
            public:  __property  void set_TotalNoTax(System::Decimal value);
            
            public:  __property System::Decimal get_Tax();
            public:  __property  void set_Tax(System::Decimal value);
            
            public:  __property System::String *  get_Name();
            public:  __property  void set_Name(System::String *  value);
            
            public:  __property System::String *  get_WareName();
            public:  __property  void set_WareName(System::String *  value);
            
            public:  __property System::String *  get_Depot();
            public:  __property  void set_Depot(System::String *  value);
            
            public:  __property System::String *  get_Unit();
            public:  __property  void set_Unit(System::String *  value);
            
            public:  __property System::String *  get_ID();
            public:  __property  void set_ID(System::String *  value);
            
            public: System::Boolean IsImportDateNull();
            
            public: System::Void SetImportDateNull();
            
            public: System::Boolean IsOperatorNull();
            
            public: System::Void SetOperatorNull();
            
            public: System::Boolean IsMakerNull();
            
            public: System::Void SetMakerNull();
            
            public: System::Boolean IsImportPriceNull();
            
            public: System::Void SetImportPriceNull();
            
            public: System::Boolean IsTotalPriceNull();
            
            public: System::Void SetTotalPriceNull();
            
            public: System::Boolean IsTaxRateNull();
            
            public: System::Void SetTaxRateNull();
            
            public: System::Boolean IsTotalNoTaxNull();
            
            public: System::Void SetTotalNoTaxNull();
            
            public: System::Boolean IsTaxNull();
            
            public: System::Void SetTaxNull();
            
            public: System::Boolean IsNameNull();
            
            public: System::Void SetNameNull();
            
            public: System::Boolean IsWareNameNull();
            
            public: System::Void SetWareNameNull();
            
            public: System::Boolean IsDepotNull();
            
            public: System::Void SetDepotNull();
        };
        
        public : [System::Diagnostics::DebuggerStepThrough]
        __gc class ImportTableRowChangeEvent : public System::EventArgs {
            
            private: My::DataSet10::ImportTableRow *  eventRow;
            
            private: System::Data::DataRowAction eventAction;
            
            public: ImportTableRowChangeEvent(My::DataSet10::ImportTableRow *  row, System::Data::DataRowAction action);
            public:  __property My::DataSet10::ImportTableRow *  get_Row();
            
            public:  __property System::Data::DataRowAction get_Action();
        };
        };
    
    
    
    inline DataSet10::DataSet10() {
        this->InitClass();
        System::ComponentModel::CollectionChangeEventHandler *  schemaChangedHandler = new System::ComponentModel::CollectionChangeEventHandler(this, SchemaChanged);
        this->Tables->CollectionChanged += schemaChangedHandler;
        this->Relations->CollectionChanged += schemaChangedHandler;
    }
    
    inline DataSet10::DataSet10(System::Runtime::Serialization::SerializationInfo *  info, System::Runtime::Serialization::StreamingContext context) {
        System::String *  strSchema = (__try_cast<System::String *  >(info->GetValue(S"XmlSchema", __typeof(System::String))));
        if ((strSchema != 0)) {
            System::Data::DataSet *  ds = new System::Data::DataSet();
            ds->ReadXmlSchema(new System::Xml::XmlTextReader(new System::IO::StringReader(strSchema)));
            if ((ds->Tables->Item[S"ImportTable"] != 0)) {
                this->Tables->Add(new My::DataSet10::ImportTableDataTable(ds->Tables->Item[S"ImportTable"]));
            }
            this->DataSetName = ds->DataSetName;
            this->Prefix = ds->Prefix;
            this->Namespace = ds->Namespace;
            this->Locale = ds->Locale;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -