internal BOXRow(global::System.Data.DataRowBuilder rb) : 
         base(rb) {
     this.tableBOX = ((BOXDataTable)(this.Table));
 }
 internal void InitVars(bool initTable) {
     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.tableSERIAL_NUM = ((SERIAL_NUMDataTable)(base.Tables["SERIAL_NUM"]));
     if ((initTable == true)) {
         if ((this.tableSERIAL_NUM != null)) {
             this.tableSERIAL_NUM.InitVars();
         }
     }
     this.tableLABEL_INSTR_HEAD = ((LABEL_INSTR_HEADDataTable)(base.Tables["LABEL_INSTR_HEAD"]));
     if ((initTable == true)) {
         if ((this.tableLABEL_INSTR_HEAD != null)) {
             this.tableLABEL_INSTR_HEAD.InitVars();
         }
     }
     this.tablePACK_ID_LINE_ITEM = ((PACK_ID_LINE_ITEMDataTable)(base.Tables["PACK_ID_LINE_ITEM"]));
     if ((initTable == true)) {
         if ((this.tablePACK_ID_LINE_ITEM != null)) {
             this.tablePACK_ID_LINE_ITEM.InitVars();
         }
     }
     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"];
     this.relationBOX_SERIAL_NUM = this.Relations["BOX_SERIAL_NUM"];
     this.relationBOX_LABEL_INSTR_HEAD = this.Relations["BOX_LABEL_INSTR_HEAD"];
     this.relationBOX_PACK_ID_LINE_ITEM = this.Relations["BOX_PACK_ID_LINE_ITEM"];
 }
 private void InitClass() {
     this.DataSetName = "BOXES";
     this.Prefix = "";
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     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);
     this.tableSERIAL_NUM = new SERIAL_NUMDataTable();
     base.Tables.Add(this.tableSERIAL_NUM);
     this.tableLABEL_INSTR_HEAD = new LABEL_INSTR_HEADDataTable();
     base.Tables.Add(this.tableLABEL_INSTR_HEAD);
     this.tablePACK_ID_LINE_ITEM = new PACK_ID_LINE_ITEMDataTable();
     base.Tables.Add(this.tablePACK_ID_LINE_ITEM);
     global::System.Data.ForeignKeyConstraint fkc;
     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;
     fkc = new global::System.Data.ForeignKeyConstraint("BOX_SERIAL_NUM", new global::System.Data.DataColumn[] {
                 this.tableBOX.BOX_Id_0Column}, new global::System.Data.DataColumn[] {
                 this.tableSERIAL_NUM.BOX_Id_0Column});
     this.tableSERIAL_NUM.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_LABEL_INSTR_HEAD", new global::System.Data.DataColumn[] {
                 this.tableBOX.BOX_Id_0Column}, new global::System.Data.DataColumn[] {
                 this.tableLABEL_INSTR_HEAD.BOX_Id_0Column});
     this.tableLABEL_INSTR_HEAD.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_PACK_ID_LINE_ITEM", new global::System.Data.DataColumn[] {
                 this.tableBOX.BOX_Id_0Column}, new global::System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.BOX_Id_0Column});
     this.tablePACK_ID_LINE_ITEM.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.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);
     this.relationBOX_SERIAL_NUM = new global::System.Data.DataRelation("BOX_SERIAL_NUM", new global::System.Data.DataColumn[] {
                 this.tableBOX.BOX_Id_0Column}, new global::System.Data.DataColumn[] {
                 this.tableSERIAL_NUM.BOX_Id_0Column}, false);
     this.relationBOX_SERIAL_NUM.Nested = true;
     this.Relations.Add(this.relationBOX_SERIAL_NUM);
     this.relationBOX_LABEL_INSTR_HEAD = new global::System.Data.DataRelation("BOX_LABEL_INSTR_HEAD", new global::System.Data.DataColumn[] {
                 this.tableBOX.BOX_Id_0Column}, new global::System.Data.DataColumn[] {
                 this.tableLABEL_INSTR_HEAD.BOX_Id_0Column}, false);
     this.relationBOX_LABEL_INSTR_HEAD.Nested = true;
     this.Relations.Add(this.relationBOX_LABEL_INSTR_HEAD);
     this.relationBOX_PACK_ID_LINE_ITEM = new global::System.Data.DataRelation("BOX_PACK_ID_LINE_ITEM", new global::System.Data.DataColumn[] {
                 this.tableBOX.BOX_Id_0Column}, new global::System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.BOX_Id_0Column}, false);
     this.relationBOX_PACK_ID_LINE_ITEM.Nested = true;
     this.Relations.Add(this.relationBOX_PACK_ID_LINE_ITEM);
 }
 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);
 }
 private void InitClass() {
     this.DataSetName = "MASTER_WAYBILLS";
     this.Prefix = "";
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableMASTER_WAYBILL = new MASTER_WAYBILLDataTable();
     base.Tables.Add(this.tableMASTER_WAYBILL);
     this.tableHOUSE_WAYBILL = new HOUSE_WAYBILLDataTable();
     base.Tables.Add(this.tableHOUSE_WAYBILL);
     this.tablePALLET = new PALLETDataTable();
     base.Tables.Add(this.tablePALLET);
     this.tableUDF_PALLET = new UDF_PALLETDataTable();
     base.Tables.Add(this.tableUDF_PALLET);
     this.tableBOX = new BOXDataTable();
     base.Tables.Add(this.tableBOX);
     this.tableSERIAL_NUM = new SERIAL_NUMDataTable();
     base.Tables.Add(this.tableSERIAL_NUM);
     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("MASTER_WAYBILL_HOUSE_WAYBILL", new global::System.Data.DataColumn[] {
                 this.tableMASTER_WAYBILL.MASTER_WAYBILL_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableHOUSE_WAYBILL.MASTER_WAYBILL_IdColumn});
     this.tableHOUSE_WAYBILL.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("HOUSE_WAYBILL_PALLET", new global::System.Data.DataColumn[] {
                 this.tableHOUSE_WAYBILL.HOUSE_WAYBILL_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablePALLET.HOUSE_WAYBILL_IdColumn});
     this.tablePALLET.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("PALLET_UDF_PALLET", new global::System.Data.DataColumn[] {
                 this.tablePALLET.PALLET_Id_0Column}, new global::System.Data.DataColumn[] {
                 this.tableUDF_PALLET.PALLET_Id_0Column});
     this.tableUDF_PALLET.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("PALLET_BOX", new global::System.Data.DataColumn[] {
                 this.tablePALLET.PALLET_Id_0Column}, new global::System.Data.DataColumn[] {
                 this.tableBOX.PALLET_Id_0Column});
     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_SERIAL_NUM", new global::System.Data.DataColumn[] {
                 this.tableBOX.BOX_Id_0Column}, new global::System.Data.DataColumn[] {
                 this.tableSERIAL_NUM.BOX_Id_0Column});
     this.tableSERIAL_NUM.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.relationMASTER_WAYBILL_HOUSE_WAYBILL = new global::System.Data.DataRelation("MASTER_WAYBILL_HOUSE_WAYBILL", new global::System.Data.DataColumn[] {
                 this.tableMASTER_WAYBILL.MASTER_WAYBILL_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableHOUSE_WAYBILL.MASTER_WAYBILL_IdColumn}, false);
     this.relationMASTER_WAYBILL_HOUSE_WAYBILL.Nested = true;
     this.Relations.Add(this.relationMASTER_WAYBILL_HOUSE_WAYBILL);
     this.relationHOUSE_WAYBILL_PALLET = new global::System.Data.DataRelation("HOUSE_WAYBILL_PALLET", new global::System.Data.DataColumn[] {
                 this.tableHOUSE_WAYBILL.HOUSE_WAYBILL_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablePALLET.HOUSE_WAYBILL_IdColumn}, false);
     this.relationHOUSE_WAYBILL_PALLET.Nested = true;
     this.Relations.Add(this.relationHOUSE_WAYBILL_PALLET);
     this.relationPALLET_UDF_PALLET = new global::System.Data.DataRelation("PALLET_UDF_PALLET", new global::System.Data.DataColumn[] {
                 this.tablePALLET.PALLET_Id_0Column}, new global::System.Data.DataColumn[] {
                 this.tableUDF_PALLET.PALLET_Id_0Column}, false);
     this.relationPALLET_UDF_PALLET.Nested = true;
     this.Relations.Add(this.relationPALLET_UDF_PALLET);
     this.relationPALLET_BOX = new global::System.Data.DataRelation("PALLET_BOX", new global::System.Data.DataColumn[] {
                 this.tablePALLET.PALLET_Id_0Column}, new global::System.Data.DataColumn[] {
                 this.tableBOX.PALLET_Id_0Column}, false);
     this.relationPALLET_BOX.Nested = true;
     this.Relations.Add(this.relationPALLET_BOX);
     this.relationBOX_SERIAL_NUM = new global::System.Data.DataRelation("BOX_SERIAL_NUM", new global::System.Data.DataColumn[] {
                 this.tableBOX.BOX_Id_0Column}, new global::System.Data.DataColumn[] {
                 this.tableSERIAL_NUM.BOX_Id_0Column}, false);
     this.relationBOX_SERIAL_NUM.Nested = true;
     this.Relations.Add(this.relationBOX_SERIAL_NUM);
     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 void InitVars(bool initTable) {
     this.tableMASTER_WAYBILL = ((MASTER_WAYBILLDataTable)(base.Tables["MASTER_WAYBILL"]));
     if ((initTable == true)) {
         if ((this.tableMASTER_WAYBILL != null)) {
             this.tableMASTER_WAYBILL.InitVars();
         }
     }
     this.tableHOUSE_WAYBILL = ((HOUSE_WAYBILLDataTable)(base.Tables["HOUSE_WAYBILL"]));
     if ((initTable == true)) {
         if ((this.tableHOUSE_WAYBILL != null)) {
             this.tableHOUSE_WAYBILL.InitVars();
         }
     }
     this.tablePALLET = ((PALLETDataTable)(base.Tables["PALLET"]));
     if ((initTable == true)) {
         if ((this.tablePALLET != null)) {
             this.tablePALLET.InitVars();
         }
     }
     this.tableUDF_PALLET = ((UDF_PALLETDataTable)(base.Tables["UDF_PALLET"]));
     if ((initTable == true)) {
         if ((this.tableUDF_PALLET != null)) {
             this.tableUDF_PALLET.InitVars();
         }
     }
     this.tableBOX = ((BOXDataTable)(base.Tables["BOX"]));
     if ((initTable == true)) {
         if ((this.tableBOX != null)) {
             this.tableBOX.InitVars();
         }
     }
     this.tableSERIAL_NUM = ((SERIAL_NUMDataTable)(base.Tables["SERIAL_NUM"]));
     if ((initTable == true)) {
         if ((this.tableSERIAL_NUM != null)) {
             this.tableSERIAL_NUM.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.relationMASTER_WAYBILL_HOUSE_WAYBILL = this.Relations["MASTER_WAYBILL_HOUSE_WAYBILL"];
     this.relationHOUSE_WAYBILL_PALLET = this.Relations["HOUSE_WAYBILL_PALLET"];
     this.relationPALLET_UDF_PALLET = this.Relations["PALLET_UDF_PALLET"];
     this.relationPALLET_BOX = this.Relations["PALLET_BOX"];
     this.relationBOX_SERIAL_NUM = this.Relations["BOX_SERIAL_NUM"];
     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"];
 }
 internal void InitVars(bool initTable) {
     this.tablePALLET = ((PALLETDataTable)(base.Tables["PALLET"]));
     if ((initTable == true)) {
         if ((this.tablePALLET != null)) {
             this.tablePALLET.InitVars();
         }
     }
     this.tableUDF_PALLET = ((UDF_PALLETDataTable)(base.Tables["UDF_PALLET"]));
     if ((initTable == true)) {
         if ((this.tableUDF_PALLET != null)) {
             this.tableUDF_PALLET.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.tableBOX = ((BOXDataTable)(base.Tables["BOX"]));
     if ((initTable == true)) {
         if ((this.tableBOX != null)) {
             this.tableBOX.InitVars();
         }
     }
     this.tableSERIAL_NUM = ((SERIAL_NUMDataTable)(base.Tables["SERIAL_NUM"]));
     if ((initTable == true)) {
         if ((this.tableSERIAL_NUM != null)) {
             this.tableSERIAL_NUM.InitVars();
         }
     }
     this.tablePACK_ID = ((PACK_IDDataTable)(base.Tables["PACK_ID"]));
     if ((initTable == true)) {
         if ((this.tablePACK_ID != null)) {
             this.tablePACK_ID.InitVars();
         }
     }
     this.tableHP_SO = ((HP_SODataTable)(base.Tables["HP_SO"]));
     if ((initTable == true)) {
         if ((this.tableHP_SO != null)) {
             this.tableHP_SO.InitVars();
         }
     }
     this.tableUDF_BOX = ((UDF_BOXDataTable)(base.Tables["UDF_BOX"]));
     if ((initTable == true)) {
         if ((this.tableUDF_BOX != null)) {
             this.tableUDF_BOX.InitVars();
         }
     }
     this.relationPALLET_UDF_PALLET = this.Relations["PALLET_UDF_PALLET"];
     this.relationPALLET_UDF_HEADER = this.Relations["PALLET_UDF_HEADER"];
     this.relationPALLET_UDF_DETAIL = this.Relations["PALLET_UDF_DETAIL"];
     this.relationPALLET_BOX = this.Relations["PALLET_BOX"];
     this.relationBOX_SERIAL_NUM = this.Relations["BOX_SERIAL_NUM"];
     this.relationBOX_PACK_ID = this.Relations["BOX_PACK_ID"];
     this.relationBOX_HP_SO = this.Relations["BOX_HP_SO"];
     this.relationBOX_UDF_BOX = this.Relations["BOX_UDF_BOX"];
 }
 private void InitClass() {
     this.DataSetName = "NewDataSet";
     this.Prefix = "";
     this.Locale = new System.Globalization.CultureInfo("");
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     this.tablePACK_ID = new PACK_IDDataTable();
     base.Tables.Add(this.tablePACK_ID);
     this.tableEXPORT_NOTES_HEAD = new EXPORT_NOTES_HEADDataTable();
     base.Tables.Add(this.tableEXPORT_NOTES_HEAD);
     this.tableSHIPPING_INSTR_HEAD = new SHIPPING_INSTR_HEADDataTable();
     base.Tables.Add(this.tableSHIPPING_INSTR_HEAD);
     this.tablePICKING_INSTR_HEAD = new PICKING_INSTR_HEADDataTable();
     base.Tables.Add(this.tablePICKING_INSTR_HEAD);
     this.tableDELIVERY_INSTR_HEAD = new DELIVERY_INSTR_HEADDataTable();
     base.Tables.Add(this.tableDELIVERY_INSTR_HEAD);
     this.tableSPECIAL_INSTR_HEAD = new SPECIAL_INSTR_HEADDataTable();
     base.Tables.Add(this.tableSPECIAL_INSTR_HEAD);
     this.tableCUSTOMER_INSTR_HEAD = new CUSTOMER_INSTR_HEADDataTable();
     base.Tables.Add(this.tableCUSTOMER_INSTR_HEAD);
     this.tableLABEL_INSTR_HEAD = new LABEL_INSTR_HEADDataTable();
     base.Tables.Add(this.tableLABEL_INSTR_HEAD);
     this.tableCARRIER_INST_HEAD = new CARRIER_INST_HEADDataTable();
     base.Tables.Add(this.tableCARRIER_INST_HEAD);
     this.tableINVOICE_UDF_HEAD = new INVOICE_UDF_HEADDataTable();
     base.Tables.Add(this.tableINVOICE_UDF_HEAD);
     this.tableUDF_HEAD = new UDF_HEADDataTable();
     base.Tables.Add(this.tableUDF_HEAD);
     this.tableUDF_HEADER = new UDF_HEADERDataTable();
     base.Tables.Add(this.tableUDF_HEADER);
     this.tableHANDLING_INSTR_HEAD = new HANDLING_INSTR_HEADDataTable();
     base.Tables.Add(this.tableHANDLING_INSTR_HEAD);
     this.tablePACK_ID_LINE_ITEM = new PACK_ID_LINE_ITEMDataTable();
     base.Tables.Add(this.tablePACK_ID_LINE_ITEM);
     this.tableEXPORT_NOTES_DETAIL = new EXPORT_NOTES_DETAILDataTable();
     base.Tables.Add(this.tableEXPORT_NOTES_DETAIL);
     this.tableSHIPPING_INSTR_DETAIL = new SHIPPING_INSTR_DETAILDataTable();
     base.Tables.Add(this.tableSHIPPING_INSTR_DETAIL);
     this.tablePICKING_INSTR_DETAIL = new PICKING_INSTR_DETAILDataTable();
     base.Tables.Add(this.tablePICKING_INSTR_DETAIL);
     this.tableDELIVERY_INSTR_DETAIL = new DELIVERY_INSTR_DETAILDataTable();
     base.Tables.Add(this.tableDELIVERY_INSTR_DETAIL);
     this.tableSPECIAL_INSTR_DETAIL = new SPECIAL_INSTR_DETAILDataTable();
     base.Tables.Add(this.tableSPECIAL_INSTR_DETAIL);
     this.tableCUSTOMER_INSTR_DETAIL = new CUSTOMER_INSTR_DETAILDataTable();
     base.Tables.Add(this.tableCUSTOMER_INSTR_DETAIL);
     this.tableHANDLING_INSTR_DETAIL = new HANDLING_INSTR_DETAILDataTable();
     base.Tables.Add(this.tableHANDLING_INSTR_DETAIL);
     this.tableUID_INSTR_DETAIL = new UID_INSTR_DETAILDataTable();
     base.Tables.Add(this.tableUID_INSTR_DETAIL);
     this.tableCONFIG_INSTR_DETAIL = new CONFIG_INSTR_DETAILDataTable();
     base.Tables.Add(this.tableCONFIG_INSTR_DETAIL);
     this.tableMAXKIT_DETAIL = new MAXKIT_DETAILDataTable();
     base.Tables.Add(this.tableMAXKIT_DETAIL);
     this.tableUDF_DET = new UDF_DETDataTable();
     base.Tables.Add(this.tableUDF_DET);
     this.tableUDF_DETAIL = new UDF_DETAILDataTable();
     base.Tables.Add(this.tableUDF_DETAIL);
     this.tableHP_PN_COMPONENTS = new HP_PN_COMPONENTSDataTable();
     base.Tables.Add(this.tableHP_PN_COMPONENTS);
     this.tableBOX = new BOXDataTable();
     base.Tables.Add(this.tableBOX);
     this.tableSERIAL_NUM = new SERIAL_NUMDataTable();
     base.Tables.Add(this.tableSERIAL_NUM);
     System.Data.ForeignKeyConstraint fkc;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_EXPORT_NOTES_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableEXPORT_NOTES_HEAD.PACK_ID_IdColumn});
     this.tableEXPORT_NOTES_HEAD.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_SHIPPING_INSTR_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableSHIPPING_INSTR_HEAD.PACK_ID_IdColumn});
     this.tableSHIPPING_INSTR_HEAD.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_PICKING_INSTR_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tablePICKING_INSTR_HEAD.PACK_ID_IdColumn});
     this.tablePICKING_INSTR_HEAD.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_DELIVERY_INSTR_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableDELIVERY_INSTR_HEAD.PACK_ID_IdColumn});
     this.tableDELIVERY_INSTR_HEAD.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_SPECIAL_INSTR_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableSPECIAL_INSTR_HEAD.PACK_ID_IdColumn});
     this.tableSPECIAL_INSTR_HEAD.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_CUSTOMER_INSTR_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableCUSTOMER_INSTR_HEAD.PACK_ID_IdColumn});
     this.tableCUSTOMER_INSTR_HEAD.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_LABEL_INSTR_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableLABEL_INSTR_HEAD.PACK_ID_IdColumn});
     this.tableLABEL_INSTR_HEAD.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_CARRIER_INST_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableCARRIER_INST_HEAD.PACK_ID_IdColumn});
     this.tableCARRIER_INST_HEAD.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_INVOICE_UDF_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableINVOICE_UDF_HEAD.PACK_ID_IdColumn});
     this.tableINVOICE_UDF_HEAD.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_UDF_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableUDF_HEAD.PACK_ID_IdColumn});
     this.tableUDF_HEAD.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_UDF_HEADER", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableUDF_HEADER.PACK_ID_IdColumn});
     this.tableUDF_HEADER.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_HANDLING_INSTR_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableHANDLING_INSTR_HEAD.PACK_ID_IdColumn});
     this.tableHANDLING_INSTR_HEAD.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_PACK_ID_LINE_ITEM", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_IdColumn});
     this.tablePACK_ID_LINE_ITEM.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_LINE_ITEM_EXPORT_NOTES_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableEXPORT_NOTES_DETAIL.PACK_ID_LINE_ITEM_IdColumn});
     this.tableEXPORT_NOTES_DETAIL.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_LINE_ITEM_SHIPPING_INSTR_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableSHIPPING_INSTR_DETAIL.PACK_ID_LINE_ITEM_IdColumn});
     this.tableSHIPPING_INSTR_DETAIL.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_LINE_ITEM_PICKING_INSTR_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tablePICKING_INSTR_DETAIL.PACK_ID_LINE_ITEM_IdColumn});
     this.tablePICKING_INSTR_DETAIL.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_LINE_ITEM_DELIVERY_INSTR_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableDELIVERY_INSTR_DETAIL.PACK_ID_LINE_ITEM_IdColumn});
     this.tableDELIVERY_INSTR_DETAIL.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_LINE_ITEM_SPECIAL_INSTR_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableSPECIAL_INSTR_DETAIL.PACK_ID_LINE_ITEM_IdColumn});
     this.tableSPECIAL_INSTR_DETAIL.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_LINE_ITEM_CUSTOMER_INSTR_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableCUSTOMER_INSTR_DETAIL.PACK_ID_LINE_ITEM_IdColumn});
     this.tableCUSTOMER_INSTR_DETAIL.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_LINE_ITEM_HANDLING_INSTR_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableHANDLING_INSTR_DETAIL.PACK_ID_LINE_ITEM_IdColumn});
     this.tableHANDLING_INSTR_DETAIL.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_LINE_ITEM_UID_INSTR_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableUID_INSTR_DETAIL.PACK_ID_LINE_ITEM_IdColumn});
     this.tableUID_INSTR_DETAIL.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_LINE_ITEM_CONFIG_INSTR_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableCONFIG_INSTR_DETAIL.PACK_ID_LINE_ITEM_IdColumn});
     this.tableCONFIG_INSTR_DETAIL.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_LINE_ITEM_MAXKIT_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableMAXKIT_DETAIL.PACK_ID_LINE_ITEM_IdColumn});
     this.tableMAXKIT_DETAIL.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_LINE_ITEM_UDF_DET", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableUDF_DET.PACK_ID_LINE_ITEM_IdColumn});
     this.tableUDF_DET.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_LINE_ITEM_UDF_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableUDF_DETAIL.PACK_ID_LINE_ITEM_IdColumn});
     this.tableUDF_DETAIL.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_LINE_ITEM_HP_PN_COMPONENTS", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableHP_PN_COMPONENTS.PACK_ID_LINE_ITEM_IdColumn});
     this.tableHP_PN_COMPONENTS.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("PACK_ID_LINE_ITEM_BOX", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableBOX.PACK_ID_LINE_ITEM_IdColumn});
     this.tableBOX.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     fkc = new System.Data.ForeignKeyConstraint("BOX_SERIAL_NUM", new System.Data.DataColumn[] {
                 this.tableBOX.BOX_Id_0Column}, new System.Data.DataColumn[] {
                 this.tableSERIAL_NUM.BOX_Id_0Column});
     this.tableSERIAL_NUM.Constraints.Add(fkc);
     fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = System.Data.Rule.Cascade;
     fkc.UpdateRule = System.Data.Rule.Cascade;
     this.relationPACK_ID_EXPORT_NOTES_HEAD = new System.Data.DataRelation("PACK_ID_EXPORT_NOTES_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableEXPORT_NOTES_HEAD.PACK_ID_IdColumn}, false);
     this.relationPACK_ID_EXPORT_NOTES_HEAD.Nested = true;
     this.Relations.Add(this.relationPACK_ID_EXPORT_NOTES_HEAD);
     this.relationPACK_ID_SHIPPING_INSTR_HEAD = new System.Data.DataRelation("PACK_ID_SHIPPING_INSTR_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableSHIPPING_INSTR_HEAD.PACK_ID_IdColumn}, false);
     this.relationPACK_ID_SHIPPING_INSTR_HEAD.Nested = true;
     this.Relations.Add(this.relationPACK_ID_SHIPPING_INSTR_HEAD);
     this.relationPACK_ID_PICKING_INSTR_HEAD = new System.Data.DataRelation("PACK_ID_PICKING_INSTR_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tablePICKING_INSTR_HEAD.PACK_ID_IdColumn}, false);
     this.relationPACK_ID_PICKING_INSTR_HEAD.Nested = true;
     this.Relations.Add(this.relationPACK_ID_PICKING_INSTR_HEAD);
     this.relationPACK_ID_DELIVERY_INSTR_HEAD = new System.Data.DataRelation("PACK_ID_DELIVERY_INSTR_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableDELIVERY_INSTR_HEAD.PACK_ID_IdColumn}, false);
     this.relationPACK_ID_DELIVERY_INSTR_HEAD.Nested = true;
     this.Relations.Add(this.relationPACK_ID_DELIVERY_INSTR_HEAD);
     this.relationPACK_ID_SPECIAL_INSTR_HEAD = new System.Data.DataRelation("PACK_ID_SPECIAL_INSTR_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableSPECIAL_INSTR_HEAD.PACK_ID_IdColumn}, false);
     this.relationPACK_ID_SPECIAL_INSTR_HEAD.Nested = true;
     this.Relations.Add(this.relationPACK_ID_SPECIAL_INSTR_HEAD);
     this.relationPACK_ID_CUSTOMER_INSTR_HEAD = new System.Data.DataRelation("PACK_ID_CUSTOMER_INSTR_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableCUSTOMER_INSTR_HEAD.PACK_ID_IdColumn}, false);
     this.relationPACK_ID_CUSTOMER_INSTR_HEAD.Nested = true;
     this.Relations.Add(this.relationPACK_ID_CUSTOMER_INSTR_HEAD);
     this.relationPACK_ID_LABEL_INSTR_HEAD = new System.Data.DataRelation("PACK_ID_LABEL_INSTR_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableLABEL_INSTR_HEAD.PACK_ID_IdColumn}, false);
     this.relationPACK_ID_LABEL_INSTR_HEAD.Nested = true;
     this.Relations.Add(this.relationPACK_ID_LABEL_INSTR_HEAD);
     this.relationPACK_ID_CARRIER_INST_HEAD = new System.Data.DataRelation("PACK_ID_CARRIER_INST_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableCARRIER_INST_HEAD.PACK_ID_IdColumn}, false);
     this.relationPACK_ID_CARRIER_INST_HEAD.Nested = true;
     this.Relations.Add(this.relationPACK_ID_CARRIER_INST_HEAD);
     this.relationPACK_ID_INVOICE_UDF_HEAD = new System.Data.DataRelation("PACK_ID_INVOICE_UDF_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableINVOICE_UDF_HEAD.PACK_ID_IdColumn}, false);
     this.relationPACK_ID_INVOICE_UDF_HEAD.Nested = true;
     this.Relations.Add(this.relationPACK_ID_INVOICE_UDF_HEAD);
     this.relationPACK_ID_UDF_HEAD = new System.Data.DataRelation("PACK_ID_UDF_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableUDF_HEAD.PACK_ID_IdColumn}, false);
     this.relationPACK_ID_UDF_HEAD.Nested = true;
     this.Relations.Add(this.relationPACK_ID_UDF_HEAD);
     this.relationPACK_ID_UDF_HEADER = new System.Data.DataRelation("PACK_ID_UDF_HEADER", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableUDF_HEADER.PACK_ID_IdColumn}, false);
     this.relationPACK_ID_UDF_HEADER.Nested = true;
     this.Relations.Add(this.relationPACK_ID_UDF_HEADER);
     this.relationPACK_ID_HANDLING_INSTR_HEAD = new System.Data.DataRelation("PACK_ID_HANDLING_INSTR_HEAD", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tableHANDLING_INSTR_HEAD.PACK_ID_IdColumn}, false);
     this.relationPACK_ID_HANDLING_INSTR_HEAD.Nested = true;
     this.Relations.Add(this.relationPACK_ID_HANDLING_INSTR_HEAD);
     this.relationPACK_ID_PACK_ID_LINE_ITEM = new System.Data.DataRelation("PACK_ID_PACK_ID_LINE_ITEM", new System.Data.DataColumn[] {
                 this.tablePACK_ID.PACK_ID_IdColumn}, new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_IdColumn}, false);
     this.relationPACK_ID_PACK_ID_LINE_ITEM.Nested = true;
     this.Relations.Add(this.relationPACK_ID_PACK_ID_LINE_ITEM);
     this.relationPACK_ID_LINE_ITEM_EXPORT_NOTES_DETAIL = new System.Data.DataRelation("PACK_ID_LINE_ITEM_EXPORT_NOTES_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableEXPORT_NOTES_DETAIL.PACK_ID_LINE_ITEM_IdColumn}, false);
     this.relationPACK_ID_LINE_ITEM_EXPORT_NOTES_DETAIL.Nested = true;
     this.Relations.Add(this.relationPACK_ID_LINE_ITEM_EXPORT_NOTES_DETAIL);
     this.relationPACK_ID_LINE_ITEM_SHIPPING_INSTR_DETAIL = new System.Data.DataRelation("PACK_ID_LINE_ITEM_SHIPPING_INSTR_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableSHIPPING_INSTR_DETAIL.PACK_ID_LINE_ITEM_IdColumn}, false);
     this.relationPACK_ID_LINE_ITEM_SHIPPING_INSTR_DETAIL.Nested = true;
     this.Relations.Add(this.relationPACK_ID_LINE_ITEM_SHIPPING_INSTR_DETAIL);
     this.relationPACK_ID_LINE_ITEM_PICKING_INSTR_DETAIL = new System.Data.DataRelation("PACK_ID_LINE_ITEM_PICKING_INSTR_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tablePICKING_INSTR_DETAIL.PACK_ID_LINE_ITEM_IdColumn}, false);
     this.relationPACK_ID_LINE_ITEM_PICKING_INSTR_DETAIL.Nested = true;
     this.Relations.Add(this.relationPACK_ID_LINE_ITEM_PICKING_INSTR_DETAIL);
     this.relationPACK_ID_LINE_ITEM_DELIVERY_INSTR_DETAIL = new System.Data.DataRelation("PACK_ID_LINE_ITEM_DELIVERY_INSTR_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableDELIVERY_INSTR_DETAIL.PACK_ID_LINE_ITEM_IdColumn}, false);
     this.relationPACK_ID_LINE_ITEM_DELIVERY_INSTR_DETAIL.Nested = true;
     this.Relations.Add(this.relationPACK_ID_LINE_ITEM_DELIVERY_INSTR_DETAIL);
     this.relationPACK_ID_LINE_ITEM_SPECIAL_INSTR_DETAIL = new System.Data.DataRelation("PACK_ID_LINE_ITEM_SPECIAL_INSTR_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableSPECIAL_INSTR_DETAIL.PACK_ID_LINE_ITEM_IdColumn}, false);
     this.relationPACK_ID_LINE_ITEM_SPECIAL_INSTR_DETAIL.Nested = true;
     this.Relations.Add(this.relationPACK_ID_LINE_ITEM_SPECIAL_INSTR_DETAIL);
     this.relationPACK_ID_LINE_ITEM_CUSTOMER_INSTR_DETAIL = new System.Data.DataRelation("PACK_ID_LINE_ITEM_CUSTOMER_INSTR_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableCUSTOMER_INSTR_DETAIL.PACK_ID_LINE_ITEM_IdColumn}, false);
     this.relationPACK_ID_LINE_ITEM_CUSTOMER_INSTR_DETAIL.Nested = true;
     this.Relations.Add(this.relationPACK_ID_LINE_ITEM_CUSTOMER_INSTR_DETAIL);
     this.relationPACK_ID_LINE_ITEM_HANDLING_INSTR_DETAIL = new System.Data.DataRelation("PACK_ID_LINE_ITEM_HANDLING_INSTR_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableHANDLING_INSTR_DETAIL.PACK_ID_LINE_ITEM_IdColumn}, false);
     this.relationPACK_ID_LINE_ITEM_HANDLING_INSTR_DETAIL.Nested = true;
     this.Relations.Add(this.relationPACK_ID_LINE_ITEM_HANDLING_INSTR_DETAIL);
     this.relationPACK_ID_LINE_ITEM_UID_INSTR_DETAIL = new System.Data.DataRelation("PACK_ID_LINE_ITEM_UID_INSTR_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableUID_INSTR_DETAIL.PACK_ID_LINE_ITEM_IdColumn}, false);
     this.relationPACK_ID_LINE_ITEM_UID_INSTR_DETAIL.Nested = true;
     this.Relations.Add(this.relationPACK_ID_LINE_ITEM_UID_INSTR_DETAIL);
     this.relationPACK_ID_LINE_ITEM_CONFIG_INSTR_DETAIL = new System.Data.DataRelation("PACK_ID_LINE_ITEM_CONFIG_INSTR_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableCONFIG_INSTR_DETAIL.PACK_ID_LINE_ITEM_IdColumn}, false);
     this.relationPACK_ID_LINE_ITEM_CONFIG_INSTR_DETAIL.Nested = true;
     this.Relations.Add(this.relationPACK_ID_LINE_ITEM_CONFIG_INSTR_DETAIL);
     this.relationPACK_ID_LINE_ITEM_MAXKIT_DETAIL = new System.Data.DataRelation("PACK_ID_LINE_ITEM_MAXKIT_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableMAXKIT_DETAIL.PACK_ID_LINE_ITEM_IdColumn}, false);
     this.relationPACK_ID_LINE_ITEM_MAXKIT_DETAIL.Nested = true;
     this.Relations.Add(this.relationPACK_ID_LINE_ITEM_MAXKIT_DETAIL);
     this.relationPACK_ID_LINE_ITEM_UDF_DET = new System.Data.DataRelation("PACK_ID_LINE_ITEM_UDF_DET", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableUDF_DET.PACK_ID_LINE_ITEM_IdColumn}, false);
     this.relationPACK_ID_LINE_ITEM_UDF_DET.Nested = true;
     this.Relations.Add(this.relationPACK_ID_LINE_ITEM_UDF_DET);
     this.relationPACK_ID_LINE_ITEM_UDF_DETAIL = new System.Data.DataRelation("PACK_ID_LINE_ITEM_UDF_DETAIL", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableUDF_DETAIL.PACK_ID_LINE_ITEM_IdColumn}, false);
     this.relationPACK_ID_LINE_ITEM_UDF_DETAIL.Nested = true;
     this.Relations.Add(this.relationPACK_ID_LINE_ITEM_UDF_DETAIL);
     this.relationPACK_ID_LINE_ITEM_HP_PN_COMPONENTS = new System.Data.DataRelation("PACK_ID_LINE_ITEM_HP_PN_COMPONENTS", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableHP_PN_COMPONENTS.PACK_ID_LINE_ITEM_IdColumn}, false);
     this.relationPACK_ID_LINE_ITEM_HP_PN_COMPONENTS.Nested = true;
     this.Relations.Add(this.relationPACK_ID_LINE_ITEM_HP_PN_COMPONENTS);
     this.relationPACK_ID_LINE_ITEM_BOX = new System.Data.DataRelation("PACK_ID_LINE_ITEM_BOX", new System.Data.DataColumn[] {
                 this.tablePACK_ID_LINE_ITEM.PACK_ID_LINE_ITEM_IdColumn}, new System.Data.DataColumn[] {
                 this.tableBOX.PACK_ID_LINE_ITEM_IdColumn}, false);
     this.relationPACK_ID_LINE_ITEM_BOX.Nested = true;
     this.Relations.Add(this.relationPACK_ID_LINE_ITEM_BOX);
     this.relationBOX_SERIAL_NUM = new System.Data.DataRelation("BOX_SERIAL_NUM", new System.Data.DataColumn[] {
                 this.tableBOX.BOX_Id_0Column}, new System.Data.DataColumn[] {
                 this.tableSERIAL_NUM.BOX_Id_0Column}, false);
     this.relationBOX_SERIAL_NUM.Nested = true;
     this.Relations.Add(this.relationBOX_SERIAL_NUM);
 }
 internal void InitVars(bool initTable) {
     this.tablePACK_ID = ((PACK_IDDataTable)(base.Tables["PACK_ID"]));
     if ((initTable == true)) {
         if ((this.tablePACK_ID != null)) {
             this.tablePACK_ID.InitVars();
         }
     }
     this.tableEXPORT_NOTES_HEAD = ((EXPORT_NOTES_HEADDataTable)(base.Tables["EXPORT_NOTES_HEAD"]));
     if ((initTable == true)) {
         if ((this.tableEXPORT_NOTES_HEAD != null)) {
             this.tableEXPORT_NOTES_HEAD.InitVars();
         }
     }
     this.tableSHIPPING_INSTR_HEAD = ((SHIPPING_INSTR_HEADDataTable)(base.Tables["SHIPPING_INSTR_HEAD"]));
     if ((initTable == true)) {
         if ((this.tableSHIPPING_INSTR_HEAD != null)) {
             this.tableSHIPPING_INSTR_HEAD.InitVars();
         }
     }
     this.tablePICKING_INSTR_HEAD = ((PICKING_INSTR_HEADDataTable)(base.Tables["PICKING_INSTR_HEAD"]));
     if ((initTable == true)) {
         if ((this.tablePICKING_INSTR_HEAD != null)) {
             this.tablePICKING_INSTR_HEAD.InitVars();
         }
     }
     this.tableDELIVERY_INSTR_HEAD = ((DELIVERY_INSTR_HEADDataTable)(base.Tables["DELIVERY_INSTR_HEAD"]));
     if ((initTable == true)) {
         if ((this.tableDELIVERY_INSTR_HEAD != null)) {
             this.tableDELIVERY_INSTR_HEAD.InitVars();
         }
     }
     this.tableSPECIAL_INSTR_HEAD = ((SPECIAL_INSTR_HEADDataTable)(base.Tables["SPECIAL_INSTR_HEAD"]));
     if ((initTable == true)) {
         if ((this.tableSPECIAL_INSTR_HEAD != null)) {
             this.tableSPECIAL_INSTR_HEAD.InitVars();
         }
     }
     this.tableCUSTOMER_INSTR_HEAD = ((CUSTOMER_INSTR_HEADDataTable)(base.Tables["CUSTOMER_INSTR_HEAD"]));
     if ((initTable == true)) {
         if ((this.tableCUSTOMER_INSTR_HEAD != null)) {
             this.tableCUSTOMER_INSTR_HEAD.InitVars();
         }
     }
     this.tableLABEL_INSTR_HEAD = ((LABEL_INSTR_HEADDataTable)(base.Tables["LABEL_INSTR_HEAD"]));
     if ((initTable == true)) {
         if ((this.tableLABEL_INSTR_HEAD != null)) {
             this.tableLABEL_INSTR_HEAD.InitVars();
         }
     }
     this.tableCARRIER_INST_HEAD = ((CARRIER_INST_HEADDataTable)(base.Tables["CARRIER_INST_HEAD"]));
     if ((initTable == true)) {
         if ((this.tableCARRIER_INST_HEAD != null)) {
             this.tableCARRIER_INST_HEAD.InitVars();
         }
     }
     this.tableINVOICE_UDF_HEAD = ((INVOICE_UDF_HEADDataTable)(base.Tables["INVOICE_UDF_HEAD"]));
     if ((initTable == true)) {
         if ((this.tableINVOICE_UDF_HEAD != null)) {
             this.tableINVOICE_UDF_HEAD.InitVars();
         }
     }
     this.tableUDF_HEAD = ((UDF_HEADDataTable)(base.Tables["UDF_HEAD"]));
     if ((initTable == true)) {
         if ((this.tableUDF_HEAD != null)) {
             this.tableUDF_HEAD.InitVars();
         }
     }
     this.tableUDF_HEADER = ((UDF_HEADERDataTable)(base.Tables["UDF_HEADER"]));
     if ((initTable == true)) {
         if ((this.tableUDF_HEADER != null)) {
             this.tableUDF_HEADER.InitVars();
         }
     }
     this.tableHANDLING_INSTR_HEAD = ((HANDLING_INSTR_HEADDataTable)(base.Tables["HANDLING_INSTR_HEAD"]));
     if ((initTable == true)) {
         if ((this.tableHANDLING_INSTR_HEAD != null)) {
             this.tableHANDLING_INSTR_HEAD.InitVars();
         }
     }
     this.tablePACK_ID_LINE_ITEM = ((PACK_ID_LINE_ITEMDataTable)(base.Tables["PACK_ID_LINE_ITEM"]));
     if ((initTable == true)) {
         if ((this.tablePACK_ID_LINE_ITEM != null)) {
             this.tablePACK_ID_LINE_ITEM.InitVars();
         }
     }
     this.tableEXPORT_NOTES_DETAIL = ((EXPORT_NOTES_DETAILDataTable)(base.Tables["EXPORT_NOTES_DETAIL"]));
     if ((initTable == true)) {
         if ((this.tableEXPORT_NOTES_DETAIL != null)) {
             this.tableEXPORT_NOTES_DETAIL.InitVars();
         }
     }
     this.tableSHIPPING_INSTR_DETAIL = ((SHIPPING_INSTR_DETAILDataTable)(base.Tables["SHIPPING_INSTR_DETAIL"]));
     if ((initTable == true)) {
         if ((this.tableSHIPPING_INSTR_DETAIL != null)) {
             this.tableSHIPPING_INSTR_DETAIL.InitVars();
         }
     }
     this.tablePICKING_INSTR_DETAIL = ((PICKING_INSTR_DETAILDataTable)(base.Tables["PICKING_INSTR_DETAIL"]));
     if ((initTable == true)) {
         if ((this.tablePICKING_INSTR_DETAIL != null)) {
             this.tablePICKING_INSTR_DETAIL.InitVars();
         }
     }
     this.tableDELIVERY_INSTR_DETAIL = ((DELIVERY_INSTR_DETAILDataTable)(base.Tables["DELIVERY_INSTR_DETAIL"]));
     if ((initTable == true)) {
         if ((this.tableDELIVERY_INSTR_DETAIL != null)) {
             this.tableDELIVERY_INSTR_DETAIL.InitVars();
         }
     }
     this.tableSPECIAL_INSTR_DETAIL = ((SPECIAL_INSTR_DETAILDataTable)(base.Tables["SPECIAL_INSTR_DETAIL"]));
     if ((initTable == true)) {
         if ((this.tableSPECIAL_INSTR_DETAIL != null)) {
             this.tableSPECIAL_INSTR_DETAIL.InitVars();
         }
     }
     this.tableCUSTOMER_INSTR_DETAIL = ((CUSTOMER_INSTR_DETAILDataTable)(base.Tables["CUSTOMER_INSTR_DETAIL"]));
     if ((initTable == true)) {
         if ((this.tableCUSTOMER_INSTR_DETAIL != null)) {
             this.tableCUSTOMER_INSTR_DETAIL.InitVars();
         }
     }
     this.tableHANDLING_INSTR_DETAIL = ((HANDLING_INSTR_DETAILDataTable)(base.Tables["HANDLING_INSTR_DETAIL"]));
     if ((initTable == true)) {
         if ((this.tableHANDLING_INSTR_DETAIL != null)) {
             this.tableHANDLING_INSTR_DETAIL.InitVars();
         }
     }
     this.tableUID_INSTR_DETAIL = ((UID_INSTR_DETAILDataTable)(base.Tables["UID_INSTR_DETAIL"]));
     if ((initTable == true)) {
         if ((this.tableUID_INSTR_DETAIL != null)) {
             this.tableUID_INSTR_DETAIL.InitVars();
         }
     }
     this.tableCONFIG_INSTR_DETAIL = ((CONFIG_INSTR_DETAILDataTable)(base.Tables["CONFIG_INSTR_DETAIL"]));
     if ((initTable == true)) {
         if ((this.tableCONFIG_INSTR_DETAIL != null)) {
             this.tableCONFIG_INSTR_DETAIL.InitVars();
         }
     }
     this.tableMAXKIT_DETAIL = ((MAXKIT_DETAILDataTable)(base.Tables["MAXKIT_DETAIL"]));
     if ((initTable == true)) {
         if ((this.tableMAXKIT_DETAIL != null)) {
             this.tableMAXKIT_DETAIL.InitVars();
         }
     }
     this.tableUDF_DET = ((UDF_DETDataTable)(base.Tables["UDF_DET"]));
     if ((initTable == true)) {
         if ((this.tableUDF_DET != null)) {
             this.tableUDF_DET.InitVars();
         }
     }
     this.tableUDF_DETAIL = ((UDF_DETAILDataTable)(base.Tables["UDF_DETAIL"]));
     if ((initTable == true)) {
         if ((this.tableUDF_DETAIL != null)) {
             this.tableUDF_DETAIL.InitVars();
         }
     }
     this.tableHP_PN_COMPONENTS = ((HP_PN_COMPONENTSDataTable)(base.Tables["HP_PN_COMPONENTS"]));
     if ((initTable == true)) {
         if ((this.tableHP_PN_COMPONENTS != null)) {
             this.tableHP_PN_COMPONENTS.InitVars();
         }
     }
     this.tableBOX = ((BOXDataTable)(base.Tables["BOX"]));
     if ((initTable == true)) {
         if ((this.tableBOX != null)) {
             this.tableBOX.InitVars();
         }
     }
     this.tableSERIAL_NUM = ((SERIAL_NUMDataTable)(base.Tables["SERIAL_NUM"]));
     if ((initTable == true)) {
         if ((this.tableSERIAL_NUM != null)) {
             this.tableSERIAL_NUM.InitVars();
         }
     }
     this.relationPACK_ID_EXPORT_NOTES_HEAD = this.Relations["PACK_ID_EXPORT_NOTES_HEAD"];
     this.relationPACK_ID_SHIPPING_INSTR_HEAD = this.Relations["PACK_ID_SHIPPING_INSTR_HEAD"];
     this.relationPACK_ID_PICKING_INSTR_HEAD = this.Relations["PACK_ID_PICKING_INSTR_HEAD"];
     this.relationPACK_ID_DELIVERY_INSTR_HEAD = this.Relations["PACK_ID_DELIVERY_INSTR_HEAD"];
     this.relationPACK_ID_SPECIAL_INSTR_HEAD = this.Relations["PACK_ID_SPECIAL_INSTR_HEAD"];
     this.relationPACK_ID_CUSTOMER_INSTR_HEAD = this.Relations["PACK_ID_CUSTOMER_INSTR_HEAD"];
     this.relationPACK_ID_LABEL_INSTR_HEAD = this.Relations["PACK_ID_LABEL_INSTR_HEAD"];
     this.relationPACK_ID_CARRIER_INST_HEAD = this.Relations["PACK_ID_CARRIER_INST_HEAD"];
     this.relationPACK_ID_INVOICE_UDF_HEAD = this.Relations["PACK_ID_INVOICE_UDF_HEAD"];
     this.relationPACK_ID_UDF_HEAD = this.Relations["PACK_ID_UDF_HEAD"];
     this.relationPACK_ID_UDF_HEADER = this.Relations["PACK_ID_UDF_HEADER"];
     this.relationPACK_ID_HANDLING_INSTR_HEAD = this.Relations["PACK_ID_HANDLING_INSTR_HEAD"];
     this.relationPACK_ID_PACK_ID_LINE_ITEM = this.Relations["PACK_ID_PACK_ID_LINE_ITEM"];
     this.relationPACK_ID_LINE_ITEM_EXPORT_NOTES_DETAIL = this.Relations["PACK_ID_LINE_ITEM_EXPORT_NOTES_DETAIL"];
     this.relationPACK_ID_LINE_ITEM_SHIPPING_INSTR_DETAIL = this.Relations["PACK_ID_LINE_ITEM_SHIPPING_INSTR_DETAIL"];
     this.relationPACK_ID_LINE_ITEM_PICKING_INSTR_DETAIL = this.Relations["PACK_ID_LINE_ITEM_PICKING_INSTR_DETAIL"];
     this.relationPACK_ID_LINE_ITEM_DELIVERY_INSTR_DETAIL = this.Relations["PACK_ID_LINE_ITEM_DELIVERY_INSTR_DETAIL"];
     this.relationPACK_ID_LINE_ITEM_SPECIAL_INSTR_DETAIL = this.Relations["PACK_ID_LINE_ITEM_SPECIAL_INSTR_DETAIL"];
     this.relationPACK_ID_LINE_ITEM_CUSTOMER_INSTR_DETAIL = this.Relations["PACK_ID_LINE_ITEM_CUSTOMER_INSTR_DETAIL"];
     this.relationPACK_ID_LINE_ITEM_HANDLING_INSTR_DETAIL = this.Relations["PACK_ID_LINE_ITEM_HANDLING_INSTR_DETAIL"];
     this.relationPACK_ID_LINE_ITEM_UID_INSTR_DETAIL = this.Relations["PACK_ID_LINE_ITEM_UID_INSTR_DETAIL"];
     this.relationPACK_ID_LINE_ITEM_CONFIG_INSTR_DETAIL = this.Relations["PACK_ID_LINE_ITEM_CONFIG_INSTR_DETAIL"];
     this.relationPACK_ID_LINE_ITEM_MAXKIT_DETAIL = this.Relations["PACK_ID_LINE_ITEM_MAXKIT_DETAIL"];
     this.relationPACK_ID_LINE_ITEM_UDF_DET = this.Relations["PACK_ID_LINE_ITEM_UDF_DET"];
     this.relationPACK_ID_LINE_ITEM_UDF_DETAIL = this.Relations["PACK_ID_LINE_ITEM_UDF_DETAIL"];
     this.relationPACK_ID_LINE_ITEM_HP_PN_COMPONENTS = this.Relations["PACK_ID_LINE_ITEM_HP_PN_COMPONENTS"];
     this.relationPACK_ID_LINE_ITEM_BOX = this.Relations["PACK_ID_LINE_ITEM_BOX"];
     this.relationBOX_SERIAL_NUM = this.Relations["BOX_SERIAL_NUM"];
 }