示例#1
0
 /**
  *
  * @static
  * @param ClaimReportFile claimReportFile
  * @param array $fields
  */
 public static function populate($claimReportFile, $fields)
 {
     parent::populate($claimReportFile, $fields);
     if (!$claimReportFile instanceof ClaimReportFile) {
         static::throwException("El objecto no es un ClaimReportFile");
     }
     if (isset($fields['id_warehouse_entrance_file'])) {
         $claimReportFile->setIdWarehouseEntranceFile($fields['id_warehouse_entrance_file']);
     }
     if (isset($fields['id_warehouse_entrance_claim_report'])) {
         $claimReportFile->setIdWarehouseEntranceClaimReport($fields['id_warehouse_entrance_claim_report']);
     }
     if (isset($fields['id_file'])) {
         $claimReportFile->setIdFile($fields['id_file']);
     }
     if (isset($fields['document_type'])) {
         $claimReportFile->setDocumentType($fields['document_type']);
     }
 }
 /**
  *
  * @static
  * @param ProductPrintingAreaFile productPrintingAreaFile
  * @param array $fields
  */
 public static function populate($productPrintingAreaFile, $fields)
 {
     parent::populate($productPrintingAreaFile, $fields);
     if (!$productPrintingAreaFile instanceof ProductPrintingAreaFile) {
         static::throwException("El objecto no es un ProductPrintingAreaFile");
     }
     if (isset($fields['id_product_printing_area_file'])) {
         $productPrintingAreaFile->setIdProductPrintingAreaFile($fields['id_product_printing_area_file']);
     }
     if (isset($fields['id_product_printing_area'])) {
         $productPrintingAreaFile->setIdProductPrintingArea($fields['id_product_printing_area']);
     }
     if (isset($fields['id_file'])) {
         $productPrintingAreaFile->setIdFile($fields['id_file']);
     }
     if (isset($fields['document_type'])) {
         $productPrintingAreaFile->setDocumentType($fields['document_type']);
     }
 }
示例#3
0
 /**
  *
  * @static
  * @param BookingFile bookingFile
  * @param array $fields
  */
 public static function populate($bookingFile, $fields)
 {
     parent::populate($bookingFile, $fields);
     if (!$bookingFile instanceof BookingFile) {
         static::throwException("El objecto no es un BookingFile");
     }
     if (isset($fields['id_booking_file'])) {
         $bookingFile->setIdBookingFile($fields['id_booking_file']);
     }
     if (isset($fields['id_booking'])) {
         $bookingFile->setIdBooking($fields['id_booking']);
     }
     if (isset($fields['id_file'])) {
         $bookingFile->setIdFile($fields['id_file']);
     }
     if (isset($fields['document_type'])) {
         $bookingFile->setDocumentType($fields['document_type']);
     }
 }
示例#4
0
 /**
  *
  * @static
  * @param InspectionFile inspectionFile
  * @param array $fields
  */
 public static function populate($inspectionFile, $fields)
 {
     parent::populate($inspectionFile, $fields);
     if (!$inspectionFile instanceof InspectionFile) {
         static::throwException("El objecto no es un InspectionFile");
     }
     if (isset($fields['id_inspection_file'])) {
         $inspectionFile->setIdInspectionFile($fields['id_inspection_file']);
     }
     if (isset($fields['id_inspection'])) {
         $inspectionFile->setIdInspection($fields['id_inspection']);
     }
     if (isset($fields['id_file'])) {
         $inspectionFile->setIdFile($fields['id_file']);
     }
     if (isset($fields['document_type'])) {
         $inspectionFile->setDocumentType($fields['document_type']);
     }
 }
 /**
  *
  * @static
  * @param PurchaseOrderFile purchaseOrderFile
  * @param array $fields
  */
 public static function populate($purchaseOrderFile, $fields)
 {
     parent::populate($purchaseOrderFile, $fields);
     if (!$purchaseOrderFile instanceof PurchaseOrderFile) {
         static::throwException("El objecto no es un PurchaseOrderFile");
     }
     if (isset($fields['id_purchase_order_file'])) {
         $purchaseOrderFile->setIdPurchaseOrderFile($fields['id_purchase_order_file']);
     }
     if (isset($fields['id_purchase_order'])) {
         $purchaseOrderFile->setIdPurchaseOrder($fields['id_purchase_order']);
     }
     if (isset($fields['id_file'])) {
         $purchaseOrderFile->setIdFile($fields['id_file']);
     }
     if (isset($fields['document_type'])) {
         $purchaseOrderFile->setDocumentType($fields['document_type']);
     }
 }
示例#6
0
 /**
  *
  * @static
  * @param FolioImportFile folioImportFile
  * @param array $fields
  */
 public static function populate($folioImportFile, $fields)
 {
     parent::populate($folioImportFile, $fields);
     if (!$folioImportFile instanceof FolioImportFile) {
         static::throwException("El objecto no es un FolioImportFile");
     }
     if (isset($fields['id_folio_import_file'])) {
         $folioImportFile->setIdFolioImportFile($fields['id_folio_import_file']);
     }
     if (isset($fields['id_file'])) {
         $folioImportFile->setIdFile($fields['id_file']);
     }
     if (isset($fields['id_folio_import'])) {
         $folioImportFile->setIdFolioImport($fields['id_folio_import']);
     }
     if (isset($fields['document_type'])) {
         $folioImportFile->setDocumentType($fields['document_type']);
     }
 }
示例#7
0
 /**
  *
  * @static
  * @param SupplierFile supplierFile
  * @param array $fields
  */
 public static function populate($supplierFile, $fields)
 {
     parent::populate($supplierFile, $fields);
     if (!$supplierFile instanceof SupplierFile) {
         static::throwException("El objecto no es un SupplierFile");
     }
     if (isset($fields['id_supplier_file'])) {
         $supplierFile->setIdSupplierFile($fields['id_supplier_file']);
     }
     if (isset($fields['id_file'])) {
         $supplierFile->setIdFile($fields['id_file']);
     }
     if (isset($fields['id_supplier'])) {
         $supplierFile->setIdSupplier($fields['id_supplier']);
     }
     if (isset($fields['document_type'])) {
         $supplierFile->setDocumentType($fields['document_type']);
     }
 }