Beispiel #1
0
 private void InitClass() {
     this.DataSetName = "Purchase";
     this.Prefix = "";
     this.Namespace = "http://tempuri.org/Purchase.xsd";
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableUOMMaster = new UOMMasterDataTable();
     base.Tables.Add(this.tableUOMMaster);
     this.tableItemMaster = new ItemMasterDataTable();
     base.Tables.Add(this.tableItemMaster);
     this.tableVendorMaster = new VendorMasterDataTable();
     base.Tables.Add(this.tableVendorMaster);
     this.tablePurchaseRegDetail = new PurchaseRegDetailDataTable();
     base.Tables.Add(this.tablePurchaseRegDetail);
     this.tablePurchaseRegHeader = new PurchaseRegHeaderDataTable();
     base.Tables.Add(this.tablePurchaseRegHeader);
     this.relationFK_ItemMaster_UOMMaster = new global::System.Data.DataRelation("FK_ItemMaster_UOMMaster", new global::System.Data.DataColumn[] {
                 this.tableUOMMaster.UomIDColumn}, new global::System.Data.DataColumn[] {
                 this.tableItemMaster.UomIDColumn}, false);
     this.Relations.Add(this.relationFK_ItemMaster_UOMMaster);
     this.relationFK_PurchaseRegDetail_ItemMaster = new global::System.Data.DataRelation("FK_PurchaseRegDetail_ItemMaster", new global::System.Data.DataColumn[] {
                 this.tableItemMaster.ItemIDColumn}, new global::System.Data.DataColumn[] {
                 this.tablePurchaseRegDetail.ItemIDColumn}, false);
     this.Relations.Add(this.relationFK_PurchaseRegDetail_ItemMaster);
     this.relationFK_PurchaseRegDetail_PurchaseRegHeader = new global::System.Data.DataRelation("FK_PurchaseRegDetail_PurchaseRegHeader", new global::System.Data.DataColumn[] {
                 this.tablePurchaseRegHeader.PurchaseIDColumn}, new global::System.Data.DataColumn[] {
                 this.tablePurchaseRegDetail.PurchaseIDColumn}, false);
     this.Relations.Add(this.relationFK_PurchaseRegDetail_PurchaseRegHeader);
     this.relationFK_PurchaseRegHeader_VendorMaster = new global::System.Data.DataRelation("FK_PurchaseRegHeader_VendorMaster", new global::System.Data.DataColumn[] {
                 this.tableVendorMaster.VendorIDColumn}, new global::System.Data.DataColumn[] {
                 this.tablePurchaseRegHeader.VendorIDColumn}, false);
     this.Relations.Add(this.relationFK_PurchaseRegHeader_VendorMaster);
 }
Beispiel #2
0
 internal PurchaseRegHeaderRow(global::System.Data.DataRowBuilder rb) : 
         base(rb) {
     this.tablePurchaseRegHeader = ((PurchaseRegHeaderDataTable)(this.Table));
 }
Beispiel #3
0
 internal void InitVars(bool initTable) {
     this.tableUOMMaster = ((UOMMasterDataTable)(base.Tables["UOMMaster"]));
     if ((initTable == true)) {
         if ((this.tableUOMMaster != null)) {
             this.tableUOMMaster.InitVars();
         }
     }
     this.tableItemMaster = ((ItemMasterDataTable)(base.Tables["ItemMaster"]));
     if ((initTable == true)) {
         if ((this.tableItemMaster != null)) {
             this.tableItemMaster.InitVars();
         }
     }
     this.tableVendorMaster = ((VendorMasterDataTable)(base.Tables["VendorMaster"]));
     if ((initTable == true)) {
         if ((this.tableVendorMaster != null)) {
             this.tableVendorMaster.InitVars();
         }
     }
     this.tablePurchaseRegDetail = ((PurchaseRegDetailDataTable)(base.Tables["PurchaseRegDetail"]));
     if ((initTable == true)) {
         if ((this.tablePurchaseRegDetail != null)) {
             this.tablePurchaseRegDetail.InitVars();
         }
     }
     this.tablePurchaseRegHeader = ((PurchaseRegHeaderDataTable)(base.Tables["PurchaseRegHeader"]));
     if ((initTable == true)) {
         if ((this.tablePurchaseRegHeader != null)) {
             this.tablePurchaseRegHeader.InitVars();
         }
     }
     this.relationFK_ItemMaster_UOMMaster = this.Relations["FK_ItemMaster_UOMMaster"];
     this.relationFK_PurchaseRegDetail_ItemMaster = this.Relations["FK_PurchaseRegDetail_ItemMaster"];
     this.relationFK_PurchaseRegDetail_PurchaseRegHeader = this.Relations["FK_PurchaseRegDetail_PurchaseRegHeader"];
     this.relationFK_PurchaseRegHeader_VendorMaster = this.Relations["FK_PurchaseRegHeader_VendorMaster"];
 }