Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Person view #13

Open
4 tasks
mkozhukharenko opened this issue Mar 22, 2016 · 0 comments
Open
4 tasks

Person view #13

mkozhukharenko opened this issue Mar 22, 2016 · 0 comments

Comments

@mkozhukharenko
Copy link
Owner

One person view

Персона ­ це особова картка вступника, в якій міститься вся інформація про дану особу.

  • Fetch data: create actions and reducer
  • Decode it using data from dictionary
  • Create route person/{id}
  • Create container (connect is with store) and dump component for rendering decoded person

Fetch data

API GET /persons/{id}

response example:

{
  "id": 7,
  "crtUser": "admin",
  "crtUserGroup": "developers",
  "createDate": "2015-06-18",
  "updateDate": "2015-06-18",
  "personTypeId": 1,
  "genderTypeId": 1,
  "marriedTypeId": 2,
  "citizenCountryId": 1,
  "name": "Іван Урсул",
  "firstName": "Іван",
  "fatherName": "Зіновійович",
  "surname": "Урсул",
  "photo": "/",
  "docSeries": "КС",
  "docNum": "34654654",
  "identifier": "81135",
  "resident": 0,
  "birthPlace": "3928",
  "begDate": "1992-04-30",
  "isMilitary": 0,
  "isHostel": 0,
  "uri": "/persons/7"
}

Decode data

  • personTypeId - use dictionary api:/persons/types
  • genderTypeId - use dictionary /api/marriedtypes
  • marriedTypeId - use dictionary /api/adminunits
  • resident - 1-yes, 0-no
  • isMilitary- 1-yes, 0-no
  • isHotel- 1-yes, 0-no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant