# Itop круговорот техники ( пользователь \<--\> Склад \<--\> Ремонт )

**URL:** <https://community.itop-itsm.ru/t/itop-krugovorot-tehniki-polzovatel-sklad-remont/776>\
**Category:** Кастомизация\
**Created:** [11.Август.2017 13:57:41 UTC](https://community.itop-itsm.ru/t/itop-krugovorot-tehniki-polzovatel-sklad-remont/776 "2017-08-11T13:57:41Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ITOP\_sufferer](https://community.itop-itsm.ru/user_avatar/community.itop-itsm.ru/itop_sufferer/32/216_2.png) [@ITOP\_sufferer](https://community.itop-itsm.ru/u/ITOP_sufferer)\
**Post date:** [11.Август.2017 13:57:42 UTC](https://community.itop-itsm.ru/t/itop-krugovorot-tehniki-polzovatel-sklad-remont/776/1 "2017-08-11T13:57:42Z")

</div>

Здравствуйте. У меня есть itop, список пользователей в itop, список техники, пока компьютеры (ocs).  
Начальник отдела поставил мне задачу написать модуль в котором

1. пользователь сможет помечать свою технику как нерабочая и нуждающиеся в ремонте, относит на склад.
2. кладовщик сидит на складе и отправляет технику в ремонт, помечает как ремонт. отдает в ремонт.
3. потом кладовщик принимает отремонтированную технику и помечает, как отремонтированная.
4. пользователь заходит в itop и видит что его техника отремонтированная.

как модифицировать личный кабинет пользователя?  
стоит ли мне создавать новые классы или модифицировать старые?  
в айтоп ничего толком не понимаю. документация скудная …

---

<div class="post-metadata">

**Author:** ![vladimir](https://community.itop-itsm.ru/user_avatar/community.itop-itsm.ru/vladimir/32/687_2.png) [@vladimir](https://community.itop-itsm.ru/u/vladimir)\
**Post date:** [28.Август.2017 17:54:41 UTC](https://community.itop-itsm.ru/t/itop-krugovorot-tehniki-polzovatel-sklad-remont/776/2 "2017-08-28T17:54:41Z")

</div>

День добрый, @ITOP_sufferer!  
Вам нужно добавить в форму тикета на клиентском портале поле “КЕ” (functionalcis\_list), а также создать расположение для ремонта (одно или несколько, если важно знать, в каком именно месте на ремонте какое оборудование находилось) и склада.

1. Тогда пользователь, заводя заявку на ремонт, выбирает свое оборудование в тикете.
2. Кладовщик получает тикет с привязанным к нему оборудованием, меняет расположение оборудования с офиса на склад, а когда приходит время отправки в ремонт, на пункт ремонта.
3. После ремонта кладовщик меняет расположение оборудования в обратную сторону и отмечает тикет выполненным.
4. Пользователь видит выполнение, забирает оборудование, проверяет его, затем закрывает тикет.

В фале /datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml лежит модель данных нового портала. Вам нужно взять оттуда **в свой модуль** только формы создания и просмотра тикета. Как создавать свои модули описано в документации и обсуждалось на этом форуме.  
[https://wiki.openitop.org/doku.php?id=2\_3\_0:customization:datamodel#extension\_modules](https://wiki.openitop.org/doku.php?id=2_3_0:customization:datamodel#extension_modules)

---

<div class="post-metadata">

**Author:** ![ITOP\_sufferer](https://community.itop-itsm.ru/user_avatar/community.itop-itsm.ru/itop_sufferer/32/216_2.png) [@ITOP\_sufferer](https://community.itop-itsm.ru/u/ITOP_sufferer)\
**Post date:** [29.Август.2017 08:33:28 UTC](https://community.itop-itsm.ru/t/itop-krugovorot-tehniki-polzovatel-sklad-remont/776/3 "2017-08-29T08:33:28Z")

</div>

Как изменить уже установленный модуль (чтобы в заявке прикреплять технику)?

Что вы имеете в виду под свой модуль?

---

<div class="post-metadata">

**Author:** ![ITOP\_sufferer](https://community.itop-itsm.ru/user_avatar/community.itop-itsm.ru/itop_sufferer/32/216_2.png) [@ITOP\_sufferer](https://community.itop-itsm.ru/u/ITOP_sufferer)\
**Post date:** [31.Август.2017 11:22:05 UTC](https://community.itop-itsm.ru/t/itop-krugovorot-tehniki-polzovatel-sklad-remont/776/4 "2017-08-31T11:22:05Z")

</div>

![KE](https://community.itop-itsm.ru/uploads/default/original/1X/06e861cc6f197dd3689cd71a655e4629ab7829bb.png)  
Добавил

```
							<div class="form_field" data-field-id="functionalcis_list">
						</div>
```

---

<div class="post-metadata">

**Author:** ![ITOP\_sufferer](https://community.itop-itsm.ru/user_avatar/community.itop-itsm.ru/itop_sufferer/32/216_2.png) [@ITOP\_sufferer](https://community.itop-itsm.ru/u/ITOP_sufferer)\
**Post date:** [31.Август.2017 11:25:13 UTC](https://community.itop-itsm.ru/t/itop-krugovorot-tehniki-polzovatel-sklad-remont/776/5 "2017-08-31T11:25:13Z")

</div>

1. прописал поле 

2. скомпилил толкитом
3. появилось поле ке 1, как раз то что нужно, BUT it does not work , нажимаю плюсик , появляется окно 3 и крутится крутится… что делать не знаю , помогите пожалуйста.😕

---

<div class="post-metadata">

**Author:** ![vladimir](https://community.itop-itsm.ru/user_avatar/community.itop-itsm.ru/vladimir/32/687_2.png) [@vladimir](https://community.itop-itsm.ru/u/vladimir)\
**Post date:** [31.Август.2017 12:40:23 UTC](https://community.itop-itsm.ru/t/itop-krugovorot-tehniki-polzovatel-sklad-remont/776/6 "2017-08-31T12:40:23Z")

</div>

@ITOP_sufferer, со своим модулем разобрались?

---

<div class="post-metadata">

**Author:** ![ITOP\_sufferer](https://community.itop-itsm.ru/user_avatar/community.itop-itsm.ru/itop_sufferer/32/216_2.png) [@ITOP\_sufferer](https://community.itop-itsm.ru/u/ITOP_sufferer)\
**Post date:** [31.Август.2017 12:45:02 UTC](https://community.itop-itsm.ru/t/itop-krugovorot-tehniki-polzovatel-sklad-remont/776/7 "2017-08-31T12:45:02Z")

</div>

нет, у меня появилось поле КЕ, и не окрывается список техники…

---

<div class="post-metadata">

**Author:** ![vladimir](https://community.itop-itsm.ru/user_avatar/community.itop-itsm.ru/vladimir/32/687_2.png) [@vladimir](https://community.itop-itsm.ru/u/vladimir)\
**Post date:** [31.Август.2017 12:46:05 UTC](https://community.itop-itsm.ru/t/itop-krugovorot-tehniki-polzovatel-sklad-remont/776/8 "2017-08-31T12:46:05Z")

</div>

Как тогда оно появилось, если со своим модулем вы не разобрались?

---

<div class="post-metadata">

**Author:** ![ITOP\_sufferer](https://community.itop-itsm.ru/user_avatar/community.itop-itsm.ru/itop_sufferer/32/216_2.png) [@ITOP\_sufferer](https://community.itop-itsm.ru/u/ITOP_sufferer)\
**Post date:** [31.Август.2017 12:47:41 UTC](https://community.itop-itsm.ru/t/itop-krugovorot-tehniki-polzovatel-sklad-remont/776/9 "2017-08-31T12:47:41Z")

</div>

я не делал новый модуль, отредактировал файл  
/var/www/html/itop/datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml.  
добавил строчку `<div class="form_field" data-field-id="functionalcis_list"></div>`

скомпилил толкитом...

---

<div class="post-metadata">

**Author:** ![vladimir](https://community.itop-itsm.ru/user_avatar/community.itop-itsm.ru/vladimir/32/687_2.png) [@vladimir](https://community.itop-itsm.ru/u/vladimir)\
**Post date:** [31.Август.2017 13:00:20 UTC](https://community.itop-itsm.ru/t/itop-krugovorot-tehniki-polzovatel-sklad-remont/776/10 "2017-08-31T13:00:20Z")

</div>

Плохая практика. Посмотрите этот ман на предмет создания отдельного модуля для своих кастомизаций: [https://wiki.openitop.org/doku.php?id=2\_3\_0:customization:add-attribute-sample](https://wiki.openitop.org/doku.php?id=2_3_0:customization:add-attribute-sample).  
После первоначальной установки пустого модуля через Setup можно править xml-модель и компилить тулкитом.
