Ejemplo n.º 1
0
 /**
  * build fromArray
  * @param Query $query
  * @param array $fields
  * @param string $prefix
  */
 public static function build(Query $query, $fields, $prefix = 'BookingFile')
 {
     parent::build($query, $fields);
     $criteria = $query->where();
     $criteria->prefix($prefix);
     if (isset($fields['id_booking_file']) && !empty($fields['id_booking_file'])) {
         $criteria->add(BookingFile::ID_BOOKING_FILE, $fields['id_booking_file']);
     }
     if (isset($fields['id_booking']) && !empty($fields['id_booking'])) {
         $criteria->add(BookingFile::ID_BOOKING, $fields['id_booking']);
     }
     if (isset($fields['id_file']) && !empty($fields['id_file'])) {
         $criteria->add(BookingFile::ID_FILE, $fields['id_file']);
     }
     if (isset($fields['document_type']) && !empty($fields['document_type'])) {
         $criteria->add(BookingFile::DOCUMENT_TYPE, $fields['document_type']);
     }
     $criteria->endPrefix();
 }
Ejemplo n.º 2
0
 /**
  * build fromArray
  * @param Query $query
  * @param array $fields
  * @param string $prefix
  */
 public static function build(Query $query, $fields, $prefix = 'WarehouseEntranceFile')
 {
     parent::build($query, $fields);
     $criteria = $query->where();
     $criteria->prefix($prefix);
     if (isset($fields['id_warehouse_entrance_file']) && !empty($fields['id_warehouse_entrance_file'])) {
         $criteria->add(WarehouseEntranceFile::ID_WAREHOUSE_ENTRANCE_FILE, $fields['id_warehouse_entrance_file']);
     }
     if (isset($fields['id_warehouse_entrance']) && !empty($fields['id_warehouse_entrance'])) {
         $criteria->add(WarehouseEntranceFile::ID_WAREHOUSE_ENTRANCE, $fields['id_warehouse_entrance']);
     }
     if (isset($fields['id_file']) && !empty($fields['id_file'])) {
         $criteria->add(WarehouseEntranceFile::ID_FILE, $fields['id_file']);
     }
     if (isset($fields['document_type']) && !empty($fields['document_type'])) {
         $criteria->add(WarehouseEntranceFile::DOCUMENT_TYPE, $fields['document_type']);
     }
     $criteria->endPrefix();
 }
Ejemplo n.º 3
0
 /**
  * build fromArray
  * @param Query $query
  * @param array $fields
  * @param string $prefix
  */
 public static function build(Query $query, $fields, $prefix = 'PurchaseOrderFile')
 {
     parent::build($query, $fields);
     $criteria = $query->where();
     $criteria->prefix($prefix);
     if (isset($fields['id_purchase_order_file']) && !empty($fields['id_purchase_order_file'])) {
         $criteria->add(PurchaseOrderFile::ID_PURCHASE_ORDER_FILE, $fields['id_purchase_order_file']);
     }
     if (isset($fields['id_purchase_order']) && !empty($fields['id_purchase_order'])) {
         $criteria->add(PurchaseOrderFile::ID_PURCHASE_ORDER, $fields['id_purchase_order']);
     }
     if (isset($fields['id_file']) && !empty($fields['id_file'])) {
         $criteria->add(PurchaseOrderFile::ID_FILE, $fields['id_file']);
     }
     if (isset($fields['document_type']) && !empty($fields['document_type'])) {
         $criteria->add(PurchaseOrderFile::DOCUMENT_TYPE, $fields['document_type']);
     }
     $criteria->endPrefix();
 }
Ejemplo n.º 4
0
 /**
  * build fromArray
  * @param Query $query
  * @param array $fields
  * @param string $prefix
  */
 public static function build(Query $query, $fields, $prefix = 'SupplierFile')
 {
     parent::build($query, $fields);
     $criteria = $query->where();
     $criteria->prefix($prefix);
     if (isset($fields['id_supplier_file']) && !empty($fields['id_supplier_file'])) {
         $criteria->add(SupplierFile::ID_SUPPLIER_FILE, $fields['id_supplier_file']);
     }
     if (isset($fields['id_file']) && !empty($fields['id_file'])) {
         $criteria->add(SupplierFile::ID_FILE, $fields['id_file']);
     }
     if (isset($fields['id_supplier']) && !empty($fields['id_supplier'])) {
         $criteria->add(SupplierFile::ID_SUPPLIER, $fields['id_supplier']);
     }
     if (isset($fields['document_type']) && !empty($fields['document_type'])) {
         $criteria->add(SupplierFile::DOCUMENT_TYPE, $fields['document_type']);
     }
     $criteria->endPrefix();
 }
Ejemplo n.º 5
0
 /**
  * build fromArray
  * @param Query $query
  * @param array $fields
  * @param string $prefix
  */
 public static function build(Query $query, $fields, $prefix = 'FolioImportFile')
 {
     parent::build($query, $fields);
     $criteria = $query->where();
     $criteria->prefix($prefix);
     if (isset($fields['id_folio_import_file']) && !empty($fields['id_folio_import_file'])) {
         $criteria->add(FolioImportFile::ID_FOLIO_IMPORT_FILE, $fields['id_folio_import_file']);
     }
     if (isset($fields['id_file']) && !empty($fields['id_file'])) {
         $criteria->add(FolioImportFile::ID_FILE, $fields['id_file']);
     }
     if (isset($fields['id_folio_import']) && !empty($fields['id_folio_import'])) {
         $criteria->add(FolioImportFile::ID_FOLIO_IMPORT, $fields['id_folio_import']);
     }
     if (isset($fields['document_type']) && !empty($fields['document_type'])) {
         $criteria->add(FolioImportFile::DOCUMENT_TYPE, $fields['document_type']);
     }
     $criteria->endPrefix();
 }
Ejemplo n.º 6
0
 /**
  * build fromArray
  * @param Query $query
  * @param array $fields
  * @param string $prefix
  */
 public static function build(Query $query, $fields, $prefix = 'InspectionFile')
 {
     parent::build($query, $fields);
     $criteria = $query->where();
     $criteria->prefix($prefix);
     if (isset($fields['id_inspection_file']) && !empty($fields['id_inspection_file'])) {
         $criteria->add(InspectionFile::ID_INSPECTION_FILE, $fields['id_inspection_file']);
     }
     if (isset($fields['id_inspection']) && !empty($fields['id_inspection'])) {
         $criteria->add(InspectionFile::ID_INSPECTION, $fields['id_inspection']);
     }
     if (isset($fields['id_file']) && !empty($fields['id_file'])) {
         $criteria->add(InspectionFile::ID_FILE, $fields['id_file']);
     }
     if (isset($fields['document_type']) && !empty($fields['document_type'])) {
         $criteria->add(InspectionFile::DOCUMENT_TYPE, $fields['document_type']);
     }
     $criteria->endPrefix();
 }
 /**
  * build fromArray
  * @param Query $query
  * @param array $fields
  * @param string $prefix
  */
 public static function build(Query $query, $fields, $prefix = 'ProductPrintingAreaFile')
 {
     parent::build($query, $fields);
     $criteria = $query->where();
     $criteria->prefix($prefix);
     if (isset($fields['id_product_printing_area_file']) && !empty($fields['id_product_printing_area_file'])) {
         $criteria->add(ProductPrintingAreaFile::ID_PRODUCT_PRINTING_AREA_FILE, $fields['id_product_printing_area_file']);
     }
     if (isset($fields['id_product_printing_area']) && !empty($fields['id_product_printing_area'])) {
         $criteria->add(ProductPrintingAreaFile::ID_PRODUCT_PRINTING_AREA, $fields['id_product_printing_area']);
     }
     if (isset($fields['id_file']) && !empty($fields['id_file'])) {
         $criteria->add(ProductPrintingAreaFile::ID_FILE, $fields['id_file']);
     }
     if (isset($fields['document_type']) && !empty($fields['document_type'])) {
         $criteria->add(ProductPrintingAreaFile::DOCUMENT_TYPE, $fields['document_type']);
     }
     $criteria->endPrefix();
 }