internal void InitVars(bool initTable) {
     this.tableSUBREGION = ((SUBREGIONDataTable)(base.Tables["SUBREGION"]));
     if ((initTable == true)) {
         if ((this.tableSUBREGION != null)) {
             this.tableSUBREGION.InitVars();
         }
     }
     this.tableDESTINATION_CODE = ((DESTINATION_CODEDataTable)(base.Tables["DESTINATION_CODE"]));
     if ((initTable == true)) {
         if ((this.tableDESTINATION_CODE != null)) {
             this.tableDESTINATION_CODE.InitVars();
         }
     }
     this.tableBOX = ((BOXDataTable)(base.Tables["BOX"]));
     if ((initTable == true)) {
         if ((this.tableBOX != null)) {
             this.tableBOX.InitVars();
         }
     }
     this.tableUDF_HEADER = ((UDF_HEADERDataTable)(base.Tables["UDF_HEADER"]));
     if ((initTable == true)) {
         if ((this.tableUDF_HEADER != null)) {
             this.tableUDF_HEADER.InitVars();
         }
     }
     this.tableUDF_DETAIL = ((UDF_DETAILDataTable)(base.Tables["UDF_DETAIL"]));
     if ((initTable == true)) {
         if ((this.tableUDF_DETAIL != null)) {
             this.tableUDF_DETAIL.InitVars();
         }
     }
     this.tableUDF_BOX = ((UDF_BOXDataTable)(base.Tables["UDF_BOX"]));
     if ((initTable == true)) {
         if ((this.tableUDF_BOX != null)) {
             this.tableUDF_BOX.InitVars();
         }
     }
     this.relationSUBREGION_DESTINATION_CODE = this.Relations["SUBREGION_DESTINATION_CODE"];
     this.relationDESTINATION_CODE_BOX = this.Relations["DESTINATION_CODE_BOX"];
     this.relationBOX_UDF_HEADER = this.Relations["BOX_UDF_HEADER"];
     this.relationBOX_UDF_DETAIL = this.Relations["BOX_UDF_DETAIL"];
     this.relationBOX_UDF_BOX = this.Relations["BOX_UDF_BOX"];
 }
 private void InitClass() {
     this.DataSetName = "WAYBILL_ADDITION";
     this.Prefix = "";
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableSUBREGION = new SUBREGIONDataTable();
     base.Tables.Add(this.tableSUBREGION);
     this.tableDESTINATION_CODE = new DESTINATION_CODEDataTable();
     base.Tables.Add(this.tableDESTINATION_CODE);
     this.tableBOX = new BOXDataTable();
     base.Tables.Add(this.tableBOX);
     this.tableUDF_HEADER = new UDF_HEADERDataTable();
     base.Tables.Add(this.tableUDF_HEADER);
     this.tableUDF_DETAIL = new UDF_DETAILDataTable();
     base.Tables.Add(this.tableUDF_DETAIL);
     this.tableUDF_BOX = new UDF_BOXDataTable();
     base.Tables.Add(this.tableUDF_BOX);
     global::System.Data.ForeignKeyConstraint fkc;
     fkc = new global::System.Data.ForeignKeyConstraint("SUBREGION_DESTINATION_CODE", new global::System.Data.DataColumn[] {
                 this.tableSUBREGION.SUBREGION_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableDESTINATION_CODE.SUBREGION_IdColumn});
     this.tableDESTINATION_CODE.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     fkc = new global::System.Data.ForeignKeyConstraint("DESTINATION_CODE_BOX", new global::System.Data.DataColumn[] {
                 this.tableDESTINATION_CODE.DESTINATION_CODE_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableBOX.DESTINATION_CODE_IdColumn});
     this.tableBOX.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     fkc = new global::System.Data.ForeignKeyConstraint("BOX_UDF_HEADER", new global::System.Data.DataColumn[] {
                 this.tableBOX.BOX_Id_0Column}, new global::System.Data.DataColumn[] {
                 this.tableUDF_HEADER.BOX_Id_0Column});
     this.tableUDF_HEADER.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     fkc = new global::System.Data.ForeignKeyConstraint("BOX_UDF_DETAIL", new global::System.Data.DataColumn[] {
                 this.tableBOX.BOX_Id_0Column}, new global::System.Data.DataColumn[] {
                 this.tableUDF_DETAIL.BOX_Id_0Column});
     this.tableUDF_DETAIL.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     fkc = new global::System.Data.ForeignKeyConstraint("BOX_UDF_BOX", new global::System.Data.DataColumn[] {
                 this.tableBOX.BOX_Id_0Column}, new global::System.Data.DataColumn[] {
                 this.tableUDF_BOX.BOX_Id_0Column});
     this.tableUDF_BOX.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     this.relationSUBREGION_DESTINATION_CODE = new global::System.Data.DataRelation("SUBREGION_DESTINATION_CODE", new global::System.Data.DataColumn[] {
                 this.tableSUBREGION.SUBREGION_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableDESTINATION_CODE.SUBREGION_IdColumn}, false);
     this.relationSUBREGION_DESTINATION_CODE.Nested = true;
     this.Relations.Add(this.relationSUBREGION_DESTINATION_CODE);
     this.relationDESTINATION_CODE_BOX = new global::System.Data.DataRelation("DESTINATION_CODE_BOX", new global::System.Data.DataColumn[] {
                 this.tableDESTINATION_CODE.DESTINATION_CODE_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableBOX.DESTINATION_CODE_IdColumn}, false);
     this.relationDESTINATION_CODE_BOX.Nested = true;
     this.Relations.Add(this.relationDESTINATION_CODE_BOX);
     this.relationBOX_UDF_HEADER = new global::System.Data.DataRelation("BOX_UDF_HEADER", new global::System.Data.DataColumn[] {
                 this.tableBOX.BOX_Id_0Column}, new global::System.Data.DataColumn[] {
                 this.tableUDF_HEADER.BOX_Id_0Column}, false);
     this.relationBOX_UDF_HEADER.Nested = true;
     this.Relations.Add(this.relationBOX_UDF_HEADER);
     this.relationBOX_UDF_DETAIL = new global::System.Data.DataRelation("BOX_UDF_DETAIL", new global::System.Data.DataColumn[] {
                 this.tableBOX.BOX_Id_0Column}, new global::System.Data.DataColumn[] {
                 this.tableUDF_DETAIL.BOX_Id_0Column}, false);
     this.relationBOX_UDF_DETAIL.Nested = true;
     this.Relations.Add(this.relationBOX_UDF_DETAIL);
     this.relationBOX_UDF_BOX = new global::System.Data.DataRelation("BOX_UDF_BOX", new global::System.Data.DataColumn[] {
                 this.tableBOX.BOX_Id_0Column}, new global::System.Data.DataColumn[] {
                 this.tableUDF_BOX.BOX_Id_0Column}, false);
     this.relationBOX_UDF_BOX.Nested = true;
     this.Relations.Add(this.relationBOX_UDF_BOX);
 }
 internal SUBREGIONRow(global::System.Data.DataRowBuilder rb) : 
         base(rb) {
     this.tableSUBREGION = ((SUBREGIONDataTable)(this.Table));
 }