DataMobile

templates

Тип метода

GET

Назначение

Загрузка шаблонов документов

Где используется

В операции "Загрузка данных"

Запрос

Параметры

Наименование Тип Описание
username string Имя пользователя
device_id string Идентификатор устройства

Пример запроса

http://192.168.1.1/DM/hs/DataMobileExch/api/templates?username=Администратор&device_id=1

Ответ

Тело

Наименование Тип Описание
template *обязательное object array Массив объектов шаблона документа

Пример ответа

[
    {
        "id": 1,
      "is_deleted": false,
      "name": "Заказ клиента",
    "roles": [
      "1",
      "2"
     ],
      "is_multi_sn_logic": false,
      "is_allow_create_on_device": true,
      "is_load_arts_with_doc": false,
      "is_load_rows_on_open_doc": false,
      "pack_list_generate_mode": 0,
      "is_use_barcode_templates": false,
      "is_use_select_log_as_insert_task": false,
      "unload_incorrect_doc_action": 0,
      "unload_incorrect_doc_option": 0,
      "is_scan_art_again": false,
      "is_use_all_barcodes": true,
      "is_unload_completed_child_doc": false,
      "is_unload_completed_doc": false,
      "required_pack_qty": 0,
      "is_use_second_warehouse": false,
      "is_disable_manual_change_client": false,
      "is_disable_manual_change_warehouse": false,
      "dest_template_id": null,
      "is_notify_getting_doc": false,
      "is_manual_apply_cell": false,
      "is_manual_apply_art": false,
      "is_use_additional_forms": false,
      "is_group_selection_forms": false,
      "is_update_forms_from_server": false,
      "is_can_skip_pack": false,
      "is_get_sn_list_from_server": false,
      "is_delete_left_task_qty": false,
      "new_art_action": 2,
      "is_multi_doc": false,
      "is_from_select_to_insert_art_by_art": false,
      "unique_barcode_mode": 0,
      "multi_doc_timeout": 0,
      "is_play_multi_doc_sound": false,
      "online_arts_catalog": 0,
      "create_mode": 0,
      "is_warehouse_required": false,
      "is_client_required": false,
      "is_check_unit_task": false,
      "is_check_remaining_expiration_date": false,
      "is_load_doc_logs": false,
      "selective_check_pack_mode": 0,
        "select": {
            "is_use_operation": true,
            "art_scan_action": 2,
            "task_exceed_action": 0,
            "limit_exceed_action": 0,
            "use_cell_mode": 0,
            "use_sn_mode": 0,
            "use_pack_mode": 0,
            "is_check_cell_by_task": false,
            "is_check_sn_by_task": false,
            "is_manual_quantity": true,
            "is_enter_to_commit": true,
            "is_send_row_to_server": true,
            "print_label_mode": 0,
            "enter_cell_type": 0,
            "is_get_cells_from_server": false,
            "is_use_unique_sn": false,
            "is_use_photo_fixation": false,
            "use_tare_mode": 0,
            "is_handle_whole_tare": false,
            "is_handle_whole_cell": false,
            "is_require_enter_sn": false,
            "sn_data_type": 0,
          "is_verify_row_on_server": false,
        "row_task_replace_mode": 0,
        "use_kit_mode": 0
        },
        "insert": {
            "is_use_operation": false,
            "art_scan_action": 0,
            "task_exceed_action": 0,
            "limit_exceed_action": 0,
            "use_cell_mode": 0,
            "use_sn_mode": 0,
            "use_pack_mode": 0,
            "is_check_cell_by_task": false,
            "is_check_sn_by_task": false,
            "is_manual_quantity": false,
            "is_enter_to_commit": false,
            "is_send_row_to_server": false,
            "print_label_mode": 0,
            "enter_cell_type": 0,
            "is_get_cells_from_server": false,
            "is_use_unique_sn": false,
            "is_use_photo_fixation": false,
            "use_tare_mode": 0,
            "is_handle_whole_tare": false,
            "is_handle_whole_cell": false,
            "is_require_enter_sn": false,
            "sn_data_type": 0,
          "is_verify_row_on_server": false,
        "row_task_replace_mode": 0,
        "use_kit_mode": 0
        },
        "egais": {
            "is_egais_doc": false,
            "enter_data_matrix_mode": 0,
            "is_use_bottling_date": false,
            "is_compare": false,
            "enter_pdf417_barcode_mode": 0,
            "is_check_mark_on_server": false,
            "version": 0,
            "is_use_blank_a": false,
            "is_use_blank_b": false,
            "is_get_bottling_date_from_server": false
        },
        "marking": {
            "is_marking_doc": false,
            "check_task_mode": 0,
            "is_ean_equals_gtin": false,
            "ean_scan_type": 0,
            "is_search_by_km": false,
            "is_only_mark_art": false,
            "without_km_enter_type": 0,
            "check_km_owner_action": 0,
            "check_km_status_action": 0,
            "sn_source": 0,
            "check_ki_source": 0,
            "need_confirm_km": false,
            "allowed_statuses": [
                        0,
                        1,
                        2,
                        6
            ]
         }
      },

Полезные статьи

template

Оценить статью