{"action":"created","issue":{"url":"https://api.github.com/repos/semantic-machines/veda/issues/263","repository_url":"https://api.github.com/repos/semantic-machines/veda","labels_url":"https://api.github.com/repos/semantic-machines/veda/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/semantic-machines/veda/issues/263/comments","events_url":"https://api.github.com/repos/semantic-machines/veda/issues/263/events","html_url":"https://github.com/semantic-machines/veda/issues/263","id":197857578,"number":263,"title":"Автоматическое заполнение поля v-s:responsibleDepartment в Заявке","user":{"login":"lexiqq","id":9006037,"avatar_url":"https://avatars.githubusercontent.com/u/9006037?v=3","gravatar_id":"","url":"https://api.github.com/users/lexiqq","html_url":"https://github.com/lexiqq","followers_url":"https://api.github.com/users/lexiqq/followers","following_url":"https://api.github.com/users/lexiqq/following{/other_user}","gists_url":"https://api.github.com/users/lexiqq/gists{/gist_id}","starred_url":"https://api.github.com/users/lexiqq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexiqq/subscriptions","organizations_url":"https://api.github.com/users/lexiqq/orgs","repos_url":"https://api.github.com/users/lexiqq/repos","events_url":"https://api.github.com/users/lexiqq/events{/privacy}","received_events_url":"https://api.github.com/users/lexiqq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"GilyazoMV","id":22593314,"avatar_url":"https://avatars.githubusercontent.com/u/22593314?v=3","gravatar_id":"","url":"https://api.github.com/users/GilyazoMV","html_url":"https://github.com/GilyazoMV","followers_url":"https://api.github.com/users/GilyazoMV/followers","following_url":"https://api.github.com/users/GilyazoMV/following{/other_user}","gists_url":"https://api.github.com/users/GilyazoMV/gists{/gist_id}","starred_url":"https://api.github.com/users/GilyazoMV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GilyazoMV/subscriptions","organizations_url":"https://api.github.com/users/GilyazoMV/orgs","repos_url":"https://api.github.com/users/GilyazoMV/repos","events_url":"https://api.github.com/users/GilyazoMV/events{/privacy}","received_events_url":"https://api.github.com/users/GilyazoMV/received_events","type":"User","site_admin":false},"assignees":[{"login":"GilyazoMV","id":22593314,"avatar_url":"https://avatars.githubusercontent.com/u/22593314?v=3","gravatar_id":"","url":"https://api.github.com/users/GilyazoMV","html_url":"https://github.com/GilyazoMV","followers_url":"https://api.github.com/users/GilyazoMV/followers","following_url":"https://api.github.com/users/GilyazoMV/following{/other_user}","gists_url":"https://api.github.com/users/GilyazoMV/gists{/gist_id}","starred_url":"https://api.github.com/users/GilyazoMV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GilyazoMV/subscriptions","organizations_url":"https://api.github.com/users/GilyazoMV/orgs","repos_url":"https://api.github.com/users/GilyazoMV/repos","events_url":"https://api.github.com/users/GilyazoMV/events{/privacy}","received_events_url":"https://api.github.com/users/GilyazoMV/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-12-28T13:59:40Z","updated_at":"2016-12-29T09:03:35Z","closed_at":null,"body":"в Заявке на контракт поле v-s:responsibleDepartment перенести в конец карточки, \r\nсделать read-only и написать скрипт, который автоматически будет его заполнять, согласно алгоритму:\r\n\r\n1.\tЕсли v-s:hasContractObject = d:379cc929f78f4a4e84f36a9f3830d846 \r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:379cc929f78f4a4e84f36a9f3830d846\r\n\tто v-s:responsibleDepartment = d:mondi_department_50003330 (Сл. закупки и продажи лесопродукции УЛО)\r\n\r\n2.\tЕсли v-s:hasContractObject = d:5af63e5bbeb54c4a86c2bc72fb4208a5 (целлюлоза)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:5af63e5bbeb54c4a86c2bc72fb4208a5\r\n\t\tИЛИ v-s:hasContractObject = d:3e77773be122494085d07da25fe20076 (Бумага на втор)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:3e77773be122494085d07da25fe20076\r\n\t\tИЛИ v-s:hasContractObject = d:d8cf8f89a0694bf9b462deb1bc6d09ab (технологич химикаты)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] =  d:d8cf8f89a0694bf9b462deb1bc6d09ab\r\n\t\tИЛИ v-s:hasContractObject = d:f1bba7b333d14ea582942f7d1e1c97c5 (Вспомогательные вещества)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] =  d:f1bba7b333d14ea582942f7d1e1c97c5\r\n\t\tИЛИ v-s:hasContractObject =  d:61c11dd2137e4916a94eab49ac88565b (Крахмал)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] =   d:61c11dd2137e4916a94eab49ac88565b\r\n\t\tИЛИ v-s:hasContractObject =  d:d63df9806ea84691a4587f65cc73a65b (Наполнитель)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] =   d:d63df9806ea84691a4587f65cc73a65b\r\n\t\tИЛИ v-s:hasContractObject =  d:1b89d9d556804828818399207ddf1114 (Пигменты покровные)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] =   d:1b89d9d556804828818399207ddf1114\r\n\tто v-s:responsibleDepartment = d:mondi_department_50003710 (Отдел закупки осн.производствен.матер.УЗ)\r\n\r\n3. \tЕсли v-s:hasContractObject = d:43e7ae6b17d34fcd9e58613be049df91 (Вода)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:43e7ae6b17d34fcd9e58613be049df91\r\n   \t\tИЛИ v-s:hasContractObject = d:e0de239b29c34ec3afaf25b0554893cb (Энергия)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:e0de239b29c34ec3afaf25b0554893cb\r\n   \t\tИЛИ v-s:hasContractObject = d:dd56fab4a4f444cd925ee1c99c2fb8ac (Топливо)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:dd56fab4a4f444cd925ee1c99c2fb8ac\r\n\tто v-s:responsibleDepartment = d:mondi_department_50003710 (Отдел закупки осн.производствен.матер.УЗ)\r\n\r\n4. \tЕсли v-s:hasContractObject = d:a6f80eb26bbb4ffcb56691ac5ba511da ()\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:a6f80eb26bbb4ffcb56691ac5ba511da\r\n\t\tИЛИ v-s:hasContractObject = \td:b98840ca4b8f47c2b32a12cc01906208 (краски)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = \td:b98840ca4b8f47c2b32a12cc01906208\r\n\t\tИЛИ v-s:hasContractObject = d:89e8c38865c54b4eaffc5df506fca683 (краски 2)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:89e8c38865c54b4eaffc5df506fca683\r\n\t\tИЛИ v-s:hasContractObject = d:ed715abf1d80407588efa47ba3c75179 (краски 3)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:ed715abf1d80407588efa47ba3c75179\r\n\t\tИЛИ v-s:hasContractObject = d:be0101cddba94f7aaa060aaa058e8a4e (материалы для печати)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:be0101cddba94f7aaa060aaa058e8a4e\r\n\t\tИЛИ v-s:hasContractObject = d:dbf8b6d152f04d20bd1dcae8e163db51 (Печатные химикаты )\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:dbf8b6d152f04d20bd1dcae8e163db51\r\n\t\tИЛИ v-s:hasContractObject = d:51abdbbe8ac94556b4e0455e2374a816 (полипропилен)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:51abdbbe8ac94556b4e0455e2374a816\r\n\t\tИЛИ v-s:hasContractObject = d:a8f18e17ce7647788e8b27e712c5ee39 (силиконы)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:a8f18e17ce7647788e8b27e712c5ee39\r\n\t\tИЛИ v-s:hasContractObject = d:7230749746e943fdb610626e763742fb (Standard PE)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:7230749746e943fdb610626e763742fb\r\n\t\tИЛИ v-s:hasContractObject = d:0ff1b5be8bd849f08ca2bf4ed53b7a16 (клеи)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:0ff1b5be8bd849f08ca2bf4ed53b7a16\r\n\tто v-s:responsibleDepartment = d:mondi_department_50003676 (ГрЗакупки Упаков Матер и Тр Усл ОЗВМУ УЗ)\r\n\r\n5. \tЕсли v-s:hasContractObject = d:c7613d1b104d4ffa86a14ee795cdd792 (Материалы горюче-смазочные)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:c7613d1b104d4ffa86a14ee795cdd792\r\n\t\tИЛИ v-s:hasContractObject = d:987c0881a6464112b1a25c25b4b3b67e (Электрика, электроника)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:987c0881a6464112b1a25c25b4b3b67e\r\n\t\tИЛИ v-s:hasContractObject = \td:e04858bc7da54cc9a6b7d44f8ce76731 (Механика)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:e04858bc7da54cc9a6b7d44f8ce76731\r\n\t\tИЛИ v-s:hasContractObject = \td:ca2c0746e181466da8999722c98d4c0f (Материалы строительные)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:ca2c0746e181466da8999722c98d4c0f\r\n\tто v-s:responsibleDepartment = d:mondi_department_50003429 (Гр.зак.оборуд.зап.частей, матер.ОТЗ УЗ)\r\n\r\n6. \tЕсли v-s:hasContractObject =  d:916b0a3222d144128b3bfc05a690ccd0 (Расходные материалы)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:916b0a3222d144128b3bfc05a690ccd0\r\n\tто v-s:responsibleDepartment = d:mondi_department_50003136 (Отдел технических закупок УЗ)\r\n\r\n7. \tЕсли v-s:hasContractObject =  \td:6aa0a08ef0fc4aeca55e3f283dc2a9fd (Технические услуги)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:6aa0a08ef0fc4aeca55e3f283dc2a9fd\r\n\tто v-s:responsibleDepartment = d:mondi_department_50003430 (Гр.закупки услуг ОТЗ УЗ)\r\n\r\n8. \tЕсли v-s:hasContractObject =  \td:b3e9e60c3ecb4ca98ab31179d162815f (Косвенные расходы)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:b3e9e60c3ecb4ca98ab31179d162815f\r\n\tто v-s:responsibleDepartment = d:mondi_department_50003675 (ГрЗакупВспомЛесотранспУслугМатер ОЗВМ УЗ)\r\n\r\n9. \tЕсли v-s:hasContractObject = d:0c350969f2b8449c93594ee767cb27ef  (Транспорт)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:0c350969f2b8449c93594ee767cb27ef \r\n\tто v-s:responsibleDepartment = d:mondi_department_50003589 (Отдел закупки вспом.матер. и услуг УЗ)\r\n\r\n10. \tЕсли v-s:hasContractObject = d:0c2031235b5248819f19dbd1cdebb307\t(CAPEX)\r\n\t\tИЛИ  [v-s:hasContractObject].[v-s:hasParentLink] = d:0c2031235b5248819f19dbd1cdebb307\t\r\n\tто v-s:responsibleDepartment = d:mondi_department_50003579 (Группа по капитальным вложениям ОТЗ УЗ)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/semantic-machines/veda/issues/comments/269600691","html_url":"https://github.com/semantic-machines/veda/issues/263#issuecomment-269600691","issue_url":"https://api.github.com/repos/semantic-machines/veda/issues/263","id":269600691,"user":{"login":"lexiqq","id":9006037,"avatar_url":"https://avatars.githubusercontent.com/u/9006037?v=3","gravatar_id":"","url":"https://api.github.com/users/lexiqq","html_url":"https://github.com/lexiqq","followers_url":"https://api.github.com/users/lexiqq/followers","following_url":"https://api.github.com/users/lexiqq/following{/other_user}","gists_url":"https://api.github.com/users/lexiqq/gists{/gist_id}","starred_url":"https://api.github.com/users/lexiqq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexiqq/subscriptions","organizations_url":"https://api.github.com/users/lexiqq/orgs","repos_url":"https://api.github.com/users/lexiqq/repos","events_url":"https://api.github.com/users/lexiqq/events{/privacy}","received_events_url":"https://api.github.com/users/lexiqq/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T09:03:34Z","updated_at":"2016-12-29T09:03:34Z","body":"Если поле v-s:hasBudgetCategory = 'd:add478ffd-4996-ca11-8d8c-51bf810357c7' (CAPEX), \r\nто перечисленные поля отображаются, ИНАЧЕ скрываются.\r\nv-s:hasSector, mnd-s:contractRequestEquipmentDescription, mnd-s:contractRequestMaterialsDescription, mnd-s:contractRequestServicesDescription.\r\nМожно объединить эти поля в какой-то общий div"}}
{"actor":{"display_login":"lexiqq"}}