Advertisement
Guest User

position-job-container.component.ts

a guest
May 3rd, 2018
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.84 KB | None | 0 0
  1. import {Component, OnInit} from '@angular/core';
  2. import {Router} from '@angular/router';
  3.  
  4. import {PaginationArgs} from 'AppSharedModels';
  5. import {ToastService, UtilsService} from 'AppSharedServices';
  6. import {AbstractGenericSinglePageContainer} from 'AppSharedUtils';
  7. import {SmartJobPosition} from '../../models/position-job.model';
  8. import {PositionJobService} from '../../services/position-job.service';
  9.  
  10. @Component({
  11. selector: 'acc-position-job-container',
  12. templateUrl: './position-job-container.component.html',
  13. styleUrls: ['./position-job-container.component.scss']
  14. })
  15. export class PositionJobContainerComponent
  16. extends AbstractGenericSinglePageContainer<SmartJobPosition, PositionJobService>
  17. implements OnInit {
  18.  
  19. private msgs: any[];
  20. private dataRadar: any[] = [];
  21. private test : any[];
  22. private cards: any[] = [{
  23. "position": {
  24. "id": "5a6b330711799e0008e52b1c",
  25. "code": "01",
  26. "label": "Ingénieur R&D"
  27. },
  28. "employees": [{
  29. "id": "5a6b355b11799e0008e52b23",
  30. "firstName": "Amine",
  31. "lastName": "Mohamed",
  32. "employeeType": {
  33. "id": null,
  34. "employeeType": "EMPT_IN",
  35. "typeEffectiveDate": "2014-01-01"
  36. },
  37. "registrationNumber": "01",
  38. "affectation": {
  39. "id": null,
  40. "affectationEffectiveDate": "2018-01-04",
  41. "affectationEndDate": null,
  42. "affectedOrganizationalEntity": {
  43. "id": "5a6b329f11799e0008e52b18",
  44. "code": "EO05",
  45. "label": "R&D"
  46. },
  47. "affectedJob": {
  48. "id": "5a6b327011799e0008e52b16",
  49. "code": "01",
  50. "label": "Ingénieur"
  51. },
  52. "affectedPosition": {
  53. "id": "5a6b330711799e0008e52b1c",
  54. "code": "01",
  55. "label": "Ingénieur R&D"
  56. }
  57. },
  58. "hiringExit": {
  59. "hiringEffectiveDate": "2017-02-04"
  60. },
  61. "contract": {
  62. "contractType": "CRT_CDI"
  63. },
  64. "profilePicture": "5b5d2067-aed1-4473-8b39-ab52be70c159",
  65. "userAccount": "BL_TRUE",
  66. "status": {
  67. "id": null,
  68. "statusEffectiveDate": "2017-02-04",
  69. "effectiveStatus": "STA_ACT"
  70. },
  71. "email": "kawther.guesmi@advyteam.com",
  72. "seniorityCompanyPeriod": "P1Y2M15D",
  73. "lastHiringDate": "2017-02-04"
  74. }, {
  75. "id": "5a6b359f11799e0008e52b24",
  76. "firstName": "Asma",
  77. "lastName": "Jlassi",
  78. "employeeType": {
  79. "id": null,
  80. "employeeType": "EMPT_IN",
  81. "typeEffectiveDate": "2017-01-01"
  82. },
  83. "registrationNumber": "02",
  84. "affectation": {
  85. "id": null,
  86. "affectationEffectiveDate": "2017-01-01",
  87. "affectationEndDate": null,
  88. "affectedOrganizationalEntity": {
  89. "id": "5a6b329f11799e0008e52b18",
  90. "code": "EO05",
  91. "label": "R&D"
  92. },
  93. "affectedJob": {
  94. "id": "5a6b327011799e0008e52b16",
  95. "code": "01",
  96. "label": "Ingénieur"
  97. },
  98. "affectedPosition": {
  99. "id": "5a6b330711799e0008e52b1c",
  100. "code": "01",
  101. "label": "Ingénieur R&D"
  102. }
  103. },
  104. "hiringExit": {
  105. "hiringEffectiveDate": "2000-12-12"
  106. },
  107. "contract": {
  108. "contractType": "CRT_CDD"
  109. },
  110. "profilePicture": "",
  111. "userAccount": "BL_FALSE",
  112. "status": {
  113. "id": null,
  114. "statusEffectiveDate": "2000-12-12",
  115. "effectiveStatus": "STA_ACT"
  116. },
  117. "email": "",
  118. "seniorityCompanyPeriod": "P16Y3M10D",
  119. "lastHiringDate": "2000-12-12"
  120. }, {
  121. "id": "5a6b36ee11799e0008e52b26",
  122. "firstName": "Yassine",
  123. "lastName": "MSAKNI",
  124. "employeeType": {
  125. "id": null,
  126. "employeeType": "EMPT_IN",
  127. "typeEffectiveDate": "2016-06-01"
  128. },
  129. "registrationNumber": "09",
  130. "affectation": {
  131. "id": null,
  132. "affectationEffectiveDate": "2018-02-10",
  133. "affectationEndDate": null,
  134. "affectedOrganizationalEntity": {
  135. "id": "5a6b329f11799e0008e52b18",
  136. "code": "EO05",
  137. "label": "R&D"
  138. },
  139. "affectedJob": {
  140. "id": "5a6b327011799e0008e52b16",
  141. "code": "01",
  142. "label": "Ingénieur"
  143. },
  144. "affectedPosition": {
  145. "id": "5a6b330711799e0008e52b1c",
  146. "code": "01",
  147. "label": "Ingénieur R&D"
  148. }
  149. },
  150. "hiringExit": {
  151. "hiringEffectiveDate": "2030-03-02"
  152. },
  153. "contract": {
  154. "contractType": "CRT_CDI"
  155. },
  156. "profilePicture": "336d7080-ba06-4c02-b0fb-beee76449af2",
  157. "userAccount": "BL_TRUE",
  158. "status": {
  159. "id": null,
  160. "statusEffectiveDate": "2030-03-02",
  161. "effectiveStatus": "STA_NACT"
  162. },
  163. "email": "kawthar.guesmi@advyteam.com",
  164. "seniorityCompanyPeriod": "P-11Y-10M-13D",
  165. "lastHiringDate": "2030-03-02"
  166. }, {
  167. "id": "5a6f22b72fbaa80007ed076b",
  168. "firstName": "segni",
  169. "lastName": "hajer",
  170. "employeeType": {
  171. "id": null,
  172. "employeeType": "EMPT_IN",
  173. "typeEffectiveDate": "2018-01-01"
  174. },
  175. "registrationNumber": "tes4",
  176. "affectation": {
  177. "id": null,
  178. "affectationEffectiveDate": "2018-01-01",
  179. "affectationEndDate": null,
  180. "affectedOrganizationalEntity": {
  181. "id": "5a6b329f11799e0008e52b18",
  182. "code": "EO05",
  183. "label": "R&D"
  184. },
  185. "affectedJob": {
  186. "id": "5a6b327011799e0008e52b16",
  187. "code": "01",
  188. "label": "Ingénieur"
  189. },
  190. "affectedPosition": {
  191. "id": "5a6b330711799e0008e52b1c",
  192. "code": "01",
  193. "label": "Ingénieur R&D"
  194. }
  195. },
  196. "hiringExit": {
  197. "hiringEffectiveDate": "2018-01-01"
  198. },
  199. "contract": {
  200. "contractType": "CRT_CDD"
  201. },
  202. "profilePicture": "96560d2e-9097-4ee0-80fa-53fc45cd7d5b",
  203. "userAccount": "BL_TRUE",
  204. "status": {
  205. "id": null,
  206. "statusEffectiveDate": "2018-01-01",
  207. "effectiveStatus": "STA_ACT"
  208. },
  209. "email": "ilyes.ghomri@advyteam.com",
  210. "seniorityCompanyPeriod": "P3M18D",
  211. "lastHiringDate": "2018-01-01"
  212. }, {
  213. "id": "5a7096c911799e000934e181",
  214. "firstName": "ameni",
  215. "lastName": "jmaiel",
  216. "employeeType": {
  217. "id": null,
  218. "employeeType": "EMPT_IN",
  219. "typeEffectiveDate": "2018-01-02"
  220. },
  221. "registrationNumber": "0147",
  222. "affectation": {
  223. "id": null,
  224. "affectationEffectiveDate": "2018-01-02",
  225. "affectationEndDate": null,
  226. "affectedOrganizationalEntity": {
  227. "id": "5a6b329f11799e0008e52b18",
  228. "code": "EO05",
  229. "label": "R&D"
  230. },
  231. "affectedJob": {
  232. "id": "5a6b327011799e0008e52b16",
  233. "code": "01",
  234. "label": "Ingénieur"
  235. },
  236. "affectedPosition": {
  237. "id": "5a6b330711799e0008e52b1c",
  238. "code": "01",
  239. "label": "Ingénieur R&D"
  240. }
  241. },
  242. "hiringExit": {
  243. "hiringEffectiveDate": "2018-02-13"
  244. },
  245. "contract": {
  246. "contractType": "CRT_SIVP"
  247. },
  248. "profilePicture": "f22e2d4c-6dc5-4591-bee9-8bac30a459fa",
  249. "userAccount": "BL_TRUE",
  250. "status": {
  251. "id": null,
  252. "statusEffectiveDate": "2018-02-13",
  253. "effectiveStatus": "STA_ACT"
  254. },
  255. "email": "ameni.jmaiel@advyteam.com",
  256. "seniorityCompanyPeriod": "P2M6D",
  257. "lastHiringDate": "2018-02-13"
  258. }, {
  259. "id": "5a71c8a6e5cf3e0008ebd6ab",
  260. "firstName": "dateTest",
  261. "lastName": "dateTest",
  262. "employeeType": {
  263. "id": null,
  264. "employeeType": "EMPT_EX",
  265. "typeEffectiveDate": "2018-01-02"
  266. },
  267. "registrationNumber": "aaaaaaaa",
  268. "affectation": {
  269. "id": null,
  270. "affectationEffectiveDate": "2018-01-02",
  271. "affectationEndDate": null,
  272. "affectedOrganizationalEntity": {
  273. "id": "5a6b329f11799e0008e52b18",
  274. "code": "EO05",
  275. "label": "R&D"
  276. },
  277. "affectedJob": {
  278. "id": "5a6b327011799e0008e52b16",
  279. "code": "01",
  280. "label": "Ingénieur"
  281. },
  282. "affectedPosition": {
  283. "id": "5a6b330711799e0008e52b1c",
  284. "code": "01",
  285. "label": "Ingénieur R&D"
  286. }
  287. },
  288. "hiringExit": {
  289. "hiringEffectiveDate": "2018-01-02"
  290. },
  291. "contract": {
  292. "contractType": "CRT_CDD"
  293. },
  294. "profilePicture": null,
  295. "userAccount": "BL_FALSE",
  296. "status": {
  297. "id": null,
  298. "statusEffectiveDate": "2018-01-02",
  299. "effectiveStatus": "STA_ACT"
  300. },
  301. "email": null,
  302. "seniorityCompanyPeriod": "P3M17D",
  303. "lastHiringDate": "2018-01-02"
  304. }, {
  305. "id": "5a734580f2a99e000894436b",
  306. "firstName": "2",
  307. "lastName": "2",
  308. "employeeType": {
  309. "id": null,
  310. "employeeType": "EMPT_IN",
  311. "typeEffectiveDate": "2018-02-01"
  312. },
  313. "registrationNumber": "26",
  314. "affectation": {
  315. "id": null,
  316. "affectationEffectiveDate": "2018-02-01",
  317. "affectationEndDate": null,
  318. "affectedOrganizationalEntity": {
  319. "id": "5a6b329f11799e0008e52b18",
  320. "code": "EO05",
  321. "label": "R&D"
  322. },
  323. "affectedJob": {
  324. "id": "5a6b327011799e0008e52b16",
  325. "code": "01",
  326. "label": "Ingénieur"
  327. },
  328. "affectedPosition": {
  329. "id": "5a6b330711799e0008e52b1c",
  330. "code": "01",
  331. "label": "Ingénieur R&D"
  332. }
  333. },
  334. "hiringExit": {
  335. "hiringEffectiveDate": "2018-02-01"
  336. },
  337. "contract": {
  338. "contractType": "CRT_CDD"
  339. },
  340. "profilePicture": null,
  341. "userAccount": "BL_FALSE",
  342. "status": {
  343. "id": null,
  344. "statusEffectiveDate": "2018-02-01",
  345. "effectiveStatus": "STA_ACT"
  346. },
  347. "email": null,
  348. "seniorityCompanyPeriod": "P2M18D",
  349. "lastHiringDate": "2018-02-01"
  350. }, {
  351. "id": "5a74299af2a99e0008944396",
  352. "firstName": "vvv",
  353. "lastName": "vvvvvvv",
  354. "employeeType": {
  355. "id": null,
  356. "employeeType": "EMPT_EX",
  357. "typeEffectiveDate": "2018-02-01"
  358. },
  359. "registrationNumber": "cc",
  360. "affectation": {
  361. "id": null,
  362. "affectationEffectiveDate": "2018-02-01",
  363. "affectationEndDate": null,
  364. "affectedOrganizationalEntity": {
  365. "id": "5a6b329f11799e0008e52b18",
  366. "code": "EO05",
  367. "label": "R&D"
  368. },
  369. "affectedJob": {
  370. "id": "5a6b327011799e0008e52b16",
  371. "code": "01",
  372. "label": "Ingénieur"
  373. },
  374. "affectedPosition": {
  375. "id": "5a6b330711799e0008e52b1c",
  376. "code": "01",
  377. "label": "Ingénieur R&D"
  378. }
  379. },
  380. "hiringExit": {
  381. "hiringEffectiveDate": "2018-02-01"
  382. },
  383. "contract": {
  384. "contractType": "CRT_CDI"
  385. },
  386. "profilePicture": null,
  387. "userAccount": "BL_FALSE",
  388. "status": {
  389. "id": null,
  390. "statusEffectiveDate": "2018-02-01",
  391. "effectiveStatus": "STA_ACT"
  392. },
  393. "email": null,
  394. "seniorityCompanyPeriod": "P2M18D",
  395. "lastHiringDate": "2018-02-01"
  396. }, {
  397. "id": "5a742bacf2a99e0008944398",
  398. "firstName": "testMail",
  399. "lastName": "testMail",
  400. "employeeType": {
  401. "id": null,
  402. "employeeType": "EMPT_EX",
  403. "typeEffectiveDate": "2018-02-01"
  404. },
  405. "registrationNumber": "11",
  406. "affectation": {
  407. "id": null,
  408. "affectationEffectiveDate": "2018-02-01",
  409. "affectationEndDate": null,
  410. "affectedOrganizationalEntity": {
  411. "id": "5a6b329f11799e0008e52b18",
  412. "code": "EO05",
  413. "label": "R&D"
  414. },
  415. "affectedJob": {
  416. "id": "5a6b327011799e0008e52b16",
  417. "code": "01",
  418. "label": "Ingénieur"
  419. },
  420. "affectedPosition": {
  421. "id": "5a6b330711799e0008e52b1c",
  422. "code": "01",
  423. "label": "Ingénieur R&D"
  424. }
  425. },
  426. "hiringExit": {
  427. "hiringEffectiveDate": "2018-02-01"
  428. },
  429. "contract": {
  430. "contractType": "CRT_CDD"
  431. },
  432. "profilePicture": "",
  433. "userAccount": "BL_TRUE",
  434. "status": {
  435. "id": null,
  436. "statusEffectiveDate": "2018-02-01",
  437. "effectiveStatus": "STA_ACT"
  438. },
  439. "email": "wajdi.dhaouadi@advyteam.com",
  440. "seniorityCompanyPeriod": "P2M18D",
  441. "lastHiringDate": "2018-02-01"
  442. }, {
  443. "id": "5a7b02d80f235f0008f37713",
  444. "firstName": "p",
  445. "lastName": "p",
  446. "employeeType": {
  447. "id": null,
  448. "employeeType": "EMPT_IN",
  449. "typeEffectiveDate": "2018-02-02"
  450. },
  451. "registrationNumber": "4",
  452. "affectation": {
  453. "id": null,
  454. "affectationEffectiveDate": "2018-02-02",
  455. "affectationEndDate": null,
  456. "affectedOrganizationalEntity": {
  457. "id": "5a6b329f11799e0008e52b18",
  458. "code": "EO05",
  459. "label": "R&D"
  460. },
  461. "affectedJob": {
  462. "id": "5a6b327011799e0008e52b16",
  463. "code": "01",
  464. "label": "Ingénieur"
  465. },
  466. "affectedPosition": {
  467. "id": "5a6b330711799e0008e52b1c",
  468. "code": "01",
  469. "label": "Ingénieur R&D"
  470. }
  471. },
  472. "hiringExit": {
  473. "hiringEffectiveDate": "2018-02-02"
  474. },
  475. "contract": {
  476. "contractType": "CRT_CDD"
  477. },
  478. "profilePicture": null,
  479. "userAccount": "BL_FALSE",
  480. "status": {
  481. "id": null,
  482. "statusEffectiveDate": "2018-02-02",
  483. "effectiveStatus": "STA_ACT"
  484. },
  485. "email": null,
  486. "seniorityCompanyPeriod": "P2M17D",
  487. "lastHiringDate": "2018-02-02"
  488. }],
  489. "radarDTOS": [{
  490. "codeClassification": "CLAS_JAV",
  491. "labelClassification": "Java",
  492. "labelsOfSkills": ["ajax", "java8", "javascript"],
  493. "labelsOfLevels": ["Beginner", "Intermidiate", "Advanced"],
  494. "data": [1, 2, 2]
  495. }, {
  496. "codeClassification": "CLAS_ANG",
  497. "labelClassification": "AngularJs",
  498. "labelsOfSkills": ["angular 2"],
  499. "labelsOfLevels": ["label3"],
  500. "data": [3]
  501. }]
  502. }, {
  503. "position": {
  504. "id": "5a6b34d311799e0008e52b22",
  505. "code": "04",
  506. "label": "Ingénieur Test & Validation"
  507. },
  508. "employees": [{
  509. "id": "5a6b366511799e0008e52b25",
  510. "firstName": "Wajdi2",
  511. "lastName": "DHAOUADI",
  512. "employeeType": {
  513. "id": null,
  514. "employeeType": "EMPT_IN",
  515. "typeEffectiveDate": "2014-03-03"
  516. },
  517. "registrationNumber": "03",
  518. "affectation": {
  519. "id": null,
  520. "affectationEffectiveDate": "2018-02-16",
  521. "affectationEndDate": null,
  522. "affectedOrganizationalEntity": {
  523. "id": "5a6b339d11799e0008e52b1d",
  524. "code": "EO10",
  525. "label": "Qualité"
  526. },
  527. "affectedJob": {
  528. "id": "5a6b327011799e0008e52b16",
  529. "code": "01",
  530. "label": "Ingénieur"
  531. },
  532. "affectedPosition": {
  533. "id": "5a6b34d311799e0008e52b22",
  534. "code": "04",
  535. "label": "Ingénieur Test & Validation"
  536. }
  537. },
  538. "hiringExit": {
  539. "hiringEffectiveDate": "2017-01-01"
  540. },
  541. "contract": {
  542. "contractType": "CRT_CDD"
  543. },
  544. "profilePicture": "c52c4ecf-484d-4616-9bbe-78a71882aace",
  545. "userAccount": "BL_TRUE",
  546. "status": {
  547. "id": null,
  548. "statusEffectiveDate": "2017-01-01",
  549. "effectiveStatus": "STA_ACT"
  550. },
  551. "email": "asma.jlassi@advyteam.com",
  552. "seniorityCompanyPeriod": "P1Y3M18D",
  553. "lastHiringDate": "2017-01-01"
  554. }, {
  555. "id": "5a702b7e11799e0008cbc71c",
  556. "firstName": "aa",
  557. "lastName": "aa",
  558. "employeeType": {
  559. "id": null,
  560. "employeeType": "EMPT_IN",
  561. "typeEffectiveDate": "2015-01-01"
  562. },
  563. "registrationNumber": "1212",
  564. "affectation": {
  565. "id": null,
  566. "affectationEffectiveDate": "2015-01-01",
  567. "affectationEndDate": null,
  568. "affectedOrganizationalEntity": {
  569. "id": "5a6b339d11799e0008e52b1d",
  570. "code": "EO10",
  571. "label": "Qualité"
  572. },
  573. "affectedJob": {
  574. "id": "5a6b327011799e0008e52b16",
  575. "code": "01",
  576. "label": "Ingénieur"
  577. },
  578. "affectedPosition": {
  579. "id": "5a6b34d311799e0008e52b22",
  580. "code": "04",
  581. "label": "Ingénieur Test & Validation"
  582. }
  583. },
  584. "hiringExit": {
  585. "hiringEffectiveDate": "2015-01-01"
  586. },
  587. "contract": {
  588. "contractType": "CRT_CDD"
  589. },
  590. "profilePicture": "97b88253-c455-4c4b-9cba-a253fc0d21c1",
  591. "userAccount": "BL_FALSE",
  592. "status": {
  593. "id": null,
  594. "statusEffectiveDate": "2018-01-29",
  595. "effectiveStatus": "STA_NACT"
  596. },
  597. "email": "",
  598. "seniorityCompanyPeriod": "P3Y28D",
  599. "lastHiringDate": "2015-01-01"
  600. }, {
  601. "id": "5a707dcb11799e000934e180",
  602. "firstName": "segni",
  603. "lastName": "Hajer",
  604. "employeeType": {
  605. "id": null,
  606. "employeeType": "EMPT_IN",
  607. "typeEffectiveDate": "2013-02-02"
  608. },
  609. "registrationNumber": "r5",
  610. "affectation": {
  611. "id": null,
  612. "affectationEffectiveDate": "2013-02-02",
  613. "affectationEndDate": null,
  614. "affectedOrganizationalEntity": {
  615. "id": "5a6b339d11799e0008e52b1d",
  616. "code": "EO10",
  617. "label": "Qualité"
  618. },
  619. "affectedJob": {
  620. "id": "5a6b327011799e0008e52b16",
  621. "code": "01",
  622. "label": "Ingénieur"
  623. },
  624. "affectedPosition": {
  625. "id": "5a6b34d311799e0008e52b22",
  626. "code": "04",
  627. "label": "Ingénieur Test & Validation"
  628. }
  629. },
  630. "hiringExit": {
  631. "hiringEffectiveDate": "2013-02-02"
  632. },
  633. "contract": {
  634. "contractType": "CRT_CDD"
  635. },
  636. "profilePicture": "25309438-d972-4ff7-b48a-a10ee79ed93e",
  637. "userAccount": "BL_FALSE",
  638. "status": {
  639. "id": null,
  640. "statusEffectiveDate": "2013-02-02",
  641. "effectiveStatus": "STA_ACT"
  642. },
  643. "email": "",
  644. "seniorityCompanyPeriod": "P5Y2M17D",
  645. "lastHiringDate": "2013-02-02"
  646. }, {
  647. "id": "5a7429f3f2a99e0008944397",
  648. "firstName": "VVCC",
  649. "lastName": "NNN",
  650. "employeeType": {
  651. "id": null,
  652. "employeeType": "EMPT_IN",
  653. "typeEffectiveDate": "2018-02-01"
  654. },
  655. "registrationNumber": "XX",
  656. "affectation": {
  657. "id": null,
  658. "affectationEffectiveDate": "2018-02-01",
  659. "affectationEndDate": null,
  660. "affectedOrganizationalEntity": {
  661. "id": "5a6b339d11799e0008e52b1d",
  662. "code": "EO10",
  663. "label": "Qualité"
  664. },
  665. "affectedJob": {
  666. "id": "5a6b327011799e0008e52b16",
  667. "code": "01",
  668. "label": "Ingénieur"
  669. },
  670. "affectedPosition": {
  671. "id": "5a6b34d311799e0008e52b22",
  672. "code": "04",
  673. "label": "Ingénieur Test & Validation"
  674. }
  675. },
  676. "hiringExit": {
  677. "hiringEffectiveDate": "2018-02-01"
  678. },
  679. "contract": {
  680. "contractType": "CRT_CDD"
  681. },
  682. "profilePicture": null,
  683. "userAccount": "BL_FALSE",
  684. "status": {
  685. "id": null,
  686. "statusEffectiveDate": "2018-02-01",
  687. "effectiveStatus": "STA_ACT"
  688. },
  689. "email": null,
  690. "seniorityCompanyPeriod": "P2M18D",
  691. "lastHiringDate": "2018-02-01"
  692. }],
  693. "radarDTOS": [{
  694. "codeClassification": "CLAS_CON",
  695. "labelClassification": "Conception",
  696. "labelsOfSkills": ["conception"],
  697. "labelsOfLevels": ["Débutant"],
  698. "data": [1]
  699. }, {
  700. "codeClassification": "CLAS_ANG",
  701. "labelClassification": "AngularJs",
  702. "labelsOfSkills": ["angular 2"],
  703. "labelsOfLevels": ["label2"],
  704. "data": [2]
  705. }]
  706. }];
  707.  
  708. private option: string = 'position';
  709. private paginationArgs: PaginationArgs = {
  710. pageNumber: 0,
  711. pageSize: 4,
  712. sorts: null
  713. };
  714. // private model: any[];
  715.  
  716. private analyseGraph: boolean = false;
  717. private employees: any[] = [];
  718. private analyses: boolean = false;
  719. private fiches: boolean = true;
  720. private hraction: boolean = false;
  721. private t: string = 'e';
  722. public postes: string[] = ['Agent Commercial', 'Ingénieur développement ',
  723. 'Avant vente', 'Tech Leader', 'Consultant', 'Ingénieur R&D ', 'Ingénieur testing', 'Manager Qualité']
  724. // team
  725. private collaborators: any[] = [
  726. {
  727. 'id': 1,
  728. 'firstname': 'Marvell',
  729. 'lastname': 'Nkouka',
  730. 'poste': 'Développeur Web',
  731. 'img': '02.jpg',
  732. 'competence': [1, 3, 4]
  733. },
  734. {
  735. 'id': 2,
  736. 'firstname': 'Alban',
  737. 'lastname': 'Bita',
  738. 'poste': 'Consultant',
  739. 'img': '03.jpg',
  740. 'competence': [1, 3, 2]
  741. },
  742. {
  743. 'id': 3,
  744. 'firstname': 'Bertrand',
  745. 'lastname': 'Menier',
  746. 'poste': 'Commercial',
  747. 'img': '04.jpg',
  748. 'competence': [3, 1, 4]
  749. },
  750. {
  751. 'id': 4,
  752. 'firstname': 'Riley',
  753. 'lastname': 'Bray',
  754. 'poste': 'Développeur Mobile',
  755. 'img': '10.jpg',
  756. 'competence': [5, 2, 4]
  757. },
  758. {
  759. 'id': 5,
  760. 'firstname': 'Omar',
  761. 'lastname': 'Ouelhezi',
  762. 'poste': 'Désigner',
  763. 'img': '13.jpg',
  764. 'competence': [1, 1, 2]
  765. },
  766. {
  767. 'id': 6,
  768. 'firstname': 'Andrew',
  769. 'lastname': 'Mike',
  770. 'poste': 'Commercial',
  771. 'img': '11.jpg',
  772. 'competence': [4, 5, 4]
  773. },
  774. {
  775. 'id': 7,
  776. 'firstname': 'Danièle',
  777. 'lastname': ' Mabondzot',
  778. 'poste': 'Ingénieur avant vente',
  779. 'img': '09.jpg',
  780. 'competence': [1, 2, 1]
  781. },
  782. {
  783. 'id': 8,
  784. 'firstname': 'Frederic',
  785. 'lastname': 'Note',
  786. 'poste': 'Consultant RH',
  787. 'img': '04.jpg',
  788. 'competence': [5, 3, 4]
  789. }
  790. ];
  791.  
  792. private competences: any[] = [
  793. {
  794. 'name': 'Java',
  795. 'val': 2
  796. },
  797. {
  798. 'name': 'AngularJS',
  799. 'val': 4
  800. },
  801.  
  802. {
  803. 'name': 'HTML/CSS',
  804. 'val': 5
  805. }
  806.  
  807. ];
  808.  
  809. private easyPiePercent1: number = 65;
  810.  
  811. private pieOptions1: any = {
  812. animate: {
  813. duration: 2000,
  814. enabled: true
  815. },
  816. barColor: '#23b7e5',
  817. trackColor: '#F5F5F5',
  818. scaleColor: false,
  819. lineWidth: 5,
  820. lineCap: 'round',
  821. size: 170
  822. };
  823.  
  824. // BAR
  825. // -----------------------------------
  826. private barData: any = [
  827. {
  828. label: 'Compétences',
  829. color: '#23b7e5',
  830. data: [
  831. [10, 16],
  832. [20, 40],
  833. [30, 55],
  834. [40, 38],
  835. [50, 77],
  836. [60, 30],
  837. [70, 33],
  838. [80, 54],
  839. [90, 37],
  840. [100, 11]
  841. ]
  842. }];
  843. private barOptions: any = {
  844. series: {
  845. bars: {
  846. align: 'center',
  847. lineWidth: 0,
  848. show: true,
  849. barWidth: 2.7,
  850. fill: 0.9
  851. }
  852. },
  853. grid: {
  854. borderColor: '#eee',
  855. borderWidth: 1,
  856. hoverable: true,
  857. backgroundColor: '#fcfcfc'
  858. },
  859. tooltip: true,
  860. tooltipOpts: {
  861. content: function (label, x, y) {
  862. return x + ' : ' + y;
  863. }
  864. },
  865. xaxis: {
  866. tickColor: '#fcfcfc',
  867. tickFormatter: function (v) {
  868. return v + '%';
  869. }
  870. },
  871. yaxis: {
  872. tickColor: '#eee',
  873. tickFormatter: function (v) {
  874. return v + '%';
  875. }
  876. },
  877. shadowSize: 0
  878. };
  879.  
  880. constructor(
  881. router: Router,
  882. private tt: ToastService,
  883. toastService: ToastService,
  884. private utilsService: UtilsService,
  885. private positionJobService: PositionJobService
  886. ) {
  887. super(router, positionJobService, toastService);
  888. }
  889.  
  890. public ngOnInit(): void {
  891. console.log('container');
  892. this.positionJobService
  893. .getCardsSkillsOfPosition(["01", "04"], ["code01", "code02", "code03", "code05", "code06"])
  894. .subscribe(value => {
  895. this.test = value['content'];
  896. this.cards = value['content'];
  897.  
  898. console.log(this.test);
  899. })
  900. }
  901.  
  902. protected initializeData() {
  903. console.log('initializeData');
  904. }
  905.  
  906. private optionSelected(event: any): void {
  907. this.option = event;
  908. }
  909.  
  910. public loadMore() {
  911. this.paginationArgs.pageNumber++;
  912. this.cards = this.cards.slice(0);
  913. console.log('loadMore' + this.cards);
  914. // this.scrollPlanningEvent.emit();
  915. }
  916. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement