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

📄 datasetimporttable.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.573 自动生成。
// 
namespace My {
    using namespace System;
    using namespace System::Data;
    using namespace System::Xml;
    using namespace System::Runtime::Serialization;
    
    using namespace System;
    public __gc class DataSetImportTable;
    
    
    [Serializable, 
    System::ComponentModel::DesignerCategoryAttribute(S"code"), 
    System::Diagnostics::DebuggerStepThrough, 
    System::ComponentModel::ToolboxItem(true)]
    public __gc class DataSetImportTable : public System::Data::DataSet {
        public : __gc class ImportTableDataTable;
        public : __gc class ImportTableRow;
        public : __gc class ImportTableRowChangeEvent;
        
        private: My::DataSetImportTable::ImportTableDataTable *  tableImportTable;
        
        public: DataSetImportTable();
        protected: DataSetImportTable(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::DataSetImportTable::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::DataSetImportTable::ImportTableRowChangeEvent *  e);
        
        public : [System::Diagnostics::DebuggerStepThrough]
        __gc class ImportTableDataTable : public System::Data::DataTable, public System::Collections::IEnumerable {
            
            private: System::Data::DataColumn *  columnDate;
            
            private: System::Data::DataColumn *  columnTotal;
            
            private: System::Data::DataColumn *  columnQuantity;
            
            private: System::Data::DataColumn *  columnPrice;
            
            private: System::Data::DataColumn *  columnDetailTotal;
            
            private: System::Data::DataColumn *  columnDiscount;
            
            private: System::Data::DataColumn *  columnTaxRate;
            
            private: System::Data::DataColumn *  columnDepot;
            
            private: System::Data::DataColumn *  columnWareName;
            
            private: System::Data::DataColumn *  columnStockerName;
            
            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_DateColumn();
            
            public private:  __property System::Data::DataColumn *  get_TotalColumn();
            
            public private:  __property System::Data::DataColumn *  get_QuantityColumn();
            
            public private:  __property System::Data::DataColumn *  get_PriceColumn();
            
            public private:  __property System::Data::DataColumn *  get_DetailTotalColumn();
            
            public private:  __property System::Data::DataColumn *  get_DiscountColumn();
            
            public private:  __property System::Data::DataColumn *  get_TaxRateColumn();
            
            public private:  __property System::Data::DataColumn *  get_DepotColumn();
            
            public private:  __property System::Data::DataColumn *  get_WareNameColumn();
            
            public private:  __property System::Data::DataColumn *  get_StockerNameColumn();
            
            public:  __property My::DataSetImportTable::ImportTableRow *  get_Item(System::Int32 index);
            
            public: __event My::DataSetImportTable::ImportTableRowChangeEventHandler *  ImportTableRowChanged;
            
            public: __event My::DataSetImportTable::ImportTableRowChangeEventHandler *  ImportTableRowChanging;
            
            public: __event My::DataSetImportTable::ImportTableRowChangeEventHandler *  ImportTableRowDeleted;
            
            public: __event My::DataSetImportTable::ImportTableRowChangeEventHandler *  ImportTableRowDeleting;
            
            public: System::Void AddImportTableRow(My::DataSetImportTable::ImportTableRow *  row);
            
            public: My::DataSetImportTable::ImportTableRow *  AddImportTableRow(System::DateTime Date, System::Decimal Total, System::Decimal Quantity, System::Decimal Price, System::Decimal DetailTotal, System::Decimal Discount, System::Decimal TaxRate, System::String *  Depot, System::String *  WareName, System::String *  StockerName);
            
            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::DataSetImportTable::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::DataSetImportTable::ImportTableRow *  row);
        };
        
        public : [System::Diagnostics::DebuggerStepThrough]
        __gc class ImportTableRow : public System::Data::DataRow {
            
            private: My::DataSetImportTable::ImportTableDataTable *  tableImportTable;
            
            public private: ImportTableRow(System::Data::DataRowBuilder *  rb);
            public:  __property System::DateTime get_Date();
            public:  __property  void set_Date(System::DateTime value);
            
            public:  __property System::Decimal get_Total();
            public:  __property  void set_Total(System::Decimal value);
            
            public:  __property System::Decimal get_Quantity();
            public:  __property  void set_Quantity(System::Decimal value);
            
            public:  __property System::Decimal get_Price();
            public:  __property  void set_Price(System::Decimal value);
            
            public:  __property System::Decimal get_DetailTotal();
            public:  __property  void set_DetailTotal(System::Decimal value);
            
            public:  __property System::Decimal get_Discount();
            public:  __property  void set_Discount(System::Decimal value);
            
            public:  __property System::Decimal get_TaxRate();
            public:  __property  void set_TaxRate(System::Decimal value);
            
            public:  __property System::String *  get_Depot();
            public:  __property  void set_Depot(System::String *  value);
            
            public:  __property System::String *  get_WareName();
            public:  __property  void set_WareName(System::String *  value);
            
            public:  __property System::String *  get_StockerName();
            public:  __property  void set_StockerName(System::String *  value);
            
            public: System::Boolean IsDateNull();
            
            public: System::Void SetDateNull();
            
            public: System::Boolean IsTotalNull();
            
            public: System::Void SetTotalNull();
            
            public: System::Boolean IsPriceNull();
            
            public: System::Void SetPriceNull();
            
            public: System::Boolean IsDetailTotalNull();
            
            public: System::Void SetDetailTotalNull();
            
            public: System::Boolean IsDiscountNull();
            
            public: System::Void SetDiscountNull();
            
            public: System::Boolean IsTaxRateNull();
            
            public: System::Void SetTaxRateNull();
            
            public: System::Boolean IsDepotNull();
            
            public: System::Void SetDepotNull();
            
            public: System::Boolean IsWareNameNull();
            
            public: System::Void SetWareNameNull();
            
            public: System::Boolean IsStockerNameNull();
            
            public: System::Void SetStockerNameNull();
        };
        
        public : [System::Diagnostics::DebuggerStepThrough]
        __gc class ImportTableRowChangeEvent : public System::EventArgs {
            
            private: My::DataSetImportTable::ImportTableRow *  eventRow;
            
            private: System::Data::DataRowAction eventAction;
            
            public: ImportTableRowChangeEvent(My::DataSetImportTable::ImportTableRow *  row, System::Data::DataRowAction action);
            public:  __property My::DataSetImportTable::ImportTableRow *  get_Row();
            
            public:  __property System::Data::DataRowAction get_Action();
        };
        };
    
    
    
    inline DataSetImportTable::DataSetImportTable() {
        this->InitClass();
        System::ComponentModel::CollectionChangeEventHandler *  schemaChangedHandler = new System::ComponentModel::CollectionChangeEventHandler(this, SchemaChanged);
        this->Tables->CollectionChanged += schemaChangedHandler;
        this->Relations->CollectionChanged += schemaChangedHandler;
    }
    
    inline DataSetImportTable::DataSetImportTable(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::DataSetImportTable::ImportTableDataTable(ds->Tables->Item[S"ImportTable"]));
            }
            this->DataSetName = ds->DataSetName;

⌨️ 快捷键说明

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