DIGIT mGramSeva
PlatformDomainsAcademyDesign SystemFeedback
v1.2
v1.2
  • Introducing mGramSeva
    • Platform
      • Release Notes
        • Web Caching
        • Service Build Updates
        • MDMS Configuration & Migration Updates
        • Test Cases
        • Release Checklist
        • Implementation Checklist
      • Technology
      • Architecture
      • Demo video
      • Configure mGramSeva
        • Vendor Registry Service
        • User Events Service
        • eChallans Service
        • Water Calculator Service
        • Property Services
        • Billing Service
        • Apportion Service
      • Technical User Docs
        • Application Structure
        • Firebase Analytics Integration
        • Integration Testing
        • Integration Testing With Github Actions
        • Backend Services
          • mGramSeva - Water Services
          • mGramSeva - Water Service Calculator
          • mGramSeva e-Challan Service
          • mGramSeva - User Service
          • mGramSeva - Billing Service
          • mGramSeva - User OTP
          • iFix Adapter Integration Service
          • mGramSeva - Rollout Dashboard
          • mGramSeva Scheduler
          • mGramSeva- Services Re-Indexing
          • mGramSeva Dashboard
          • Events Push To IFIX Adapter
        • Tech User Manual
          • Language Selection
          • Login
          • Change Password
          • Edit Profile
          • Home Page
          • Forgot Password
          • Update Password FTL
          • Generate Bill
          • Search Connection
          • Consumer Details
            • Create Consumer
            • Update Consumer
          • Expenses
            • Add Expenses
            • Search Expense Bills
            • Modify Expenses
          • Dashboards
            • Monthly Dashboard
            • Collections Dashboard
            • Expenditure Dashboard
          • Collect Payment
          • Consumer Feedback
          • Household Register
          • Bluetooth Thermal Printer Integration
        • Application Permissions & Dependencies
        • mGramSeva UI
          • UI Mockups
          • mGramSeva UI
            • mGramSeva - Advance Changes
            • mGramSeva Penalty Changes
      • Installation
      • Configuration
    • Enablement toolkits
      • AWS Installation
        • Setup AWS Account
        • Certificate Purchase
        • Setup Git Repository
        • Domain Name Configuration
        • Create Git Account In The Client Name
      • Setting up Services
        • Getting Started With DIGIT
        • Creating Users
        • Loading Employees For mGramSeva
        • Loading Consumers For mGramSeva
        • Localisation Module
        • Updating Master Rate for Mgramseva
        • Create Consumer API
        • Create User API
        • SMS Template
        • mGramSeva MDMS
        • Create New Tenant
        • Workflow
    • Product Docs
      • Functional Docs
        • Login & Forgot Password
        • User Roles & Home Screen
        • Create Consumer
        • Search Consumer
        • Edit Consumer
        • View Consumer
        • Billing - Bulk Demand Generation
        • Billing - Metered Connection
        • Revenue Collection - Offline
        • Expenditure - Add Expense
        • Expenditure - Modify Expense
        • User Onboarding - Bulk Upload
        • User Onboarding/Walkthrough
        • Feedback - Post Payment
        • SMS Notifications
        • Home Page Notifications
        • Edit User Profile
        • Bill and Receipt PDF
        • Update Expense Search
        • Bulk Demand Generation For Non-Metered Connection
        • Demand/Bill Generation For Metered Connection
        • Household Register
        • Tabular Dashboard - Expense
        • Tabular Dashboard - Collection
        • Download Bills & Receipt
        • App Force Update
        • HRMS
        • Advance Changes
      • User Docs
        • User Manual
  • 🚻Community
    • Roadmap
    • Source Code
    • Discussion
    • Events
    • Training & Certification
Powered by GitBook

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.

On this page
  1. Introducing mGramSeva
  2. Product Docs
  3. Functional Docs

HRMS

PreviousApp Force UpdateNextAdvance Changes

Last updated 1 year ago

Backend Code Git Repo

Connect to your GitHub account and navigate to the config /persister repo: DevOps repo: Connect your Github account

There is the concept of hierarchy in mGramSeva : 1. State-level user → one who can create a Division user 2. Div level user → one who can create the employees like Sarpanch for mgramseva List of changes done in the user service and HRMS service to adapt HRMS in mGramSeva:

  1. Modified the search API of user service to do role based search of users based on the tenants it is mapped to and show the list in all cities where it is mapped to. State-level users can search for division users. Division users are created and mapped to pb as the base tenants and roles HRMS_ADMIN, and DIV_ADMIN to the concerned cities. Division users can search users based on roles like - SYSTEM,+GP_ADMIN,+COLLECTION_OPERATOR,+PROFILE_UPDATE,+DASHBOAD_VIEWER within the GPWSC it is currently logged into.

  2. Modified the count API to search for users based on the role and the mapped tenant.

  3. MDMS changes:

Note: Division users are mapped to PB as BASE TENANT. GP_ADMIN and other users are mapped to one city as BASE TENANT from where the user is created. BASE TENANT cannot be removed from the user. To modify the Base tenant, deactivate that user and create a new user.

APIs

Count API 1. Count Normal Employee API

curl --location 'http://localhost:8080/egov-hrms/employees/v1/_count?tenantId=pb.baruwal&_=1697534837504&roles=SYSTEM%2C%20GP_ADMIN%2C%20COLLECTION_OPERATOR%2C%20PROFILE_UPDATE%2C%20DASHBOAD_VIEWER&isStateLevelSearch=true' \
--header 'Accept: application/json, text/plain, */*' \
--header 'Accept-Language: en-US,en;q=0.9' \
--header 'Connection: keep-alive' \
--header 'Content-Type: application/json;charset=UTF-8' \
--header 'Origin: http://localhost:3000' \
--header 'Referer: http://localhost:3000/mgramseva-web/employee' \
--header 'Sec-Fetch-Dest: empty' \
--header 'Sec-Fetch-Mode: cors' \
--header 'Sec-Fetch-Site: same-origin' \
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36' \
--header 'sec-ch-ua: "Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117"' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'sec-ch-ua-platform: "Windows"' \
--data '{
    "RequestInfo": {
        "apiId": "Rainmaker",
        "authToken": "28ee5e63-8150-48cf-a0b2-26212a450d18",
        "userInfo": {
            "id": 878469,
            "uuid": "b5bcbe8d-5410-4548-8b94-ee638d409f63",
            "userName": "9502410535",
            "name": "Rakesh",
            "mobileNumber": "9502410535",
            "emailId": null,
            "locale": null,
            "type": "EMPLOYEE",
            "roles": [
                {
                    "name": "HRMS_ADMIN",
                    "code": "HRMS_ADMIN",
                    "tenantId": "pb.baruwal"
                },
                {
                    "name": "DIVISION ADMIN",
                    "code": "DIV_ADMIN",
                    "tenantId": "pb.baruwal"
                },
                {
                    "name": "Employee",
                    "code": "EMPLOYEE",
                    "tenantId": "pb.baruwal"
                }
            ],
            "active": true,
            "tenantId": "pb.baruwal",
            "permanentCity": null
        },
        "msgId": "1697534837504|en_IN",
        "plainAccessRequest": {}
    }
}'

  1. Count Division User

curl --location 'http://localhost:8080/egov-hrms/employees/v1/_count?tenantId=pb&_=1697534837504&roles=DIV_ADMIN%2CHRMS_ADMIN&isStateLevelSearch=true' \
--header 'Accept: application/json, text/plain, */*' \
--header 'Accept-Language: en-US,en;q=0.9' \
--header 'Connection: keep-alive' \
--header 'Content-Type: application/json;charset=UTF-8' \
--header 'Origin: http://localhost:3000' \
--header 'Referer: http://localhost:3000/mgramseva-web/employee' \
--header 'Sec-Fetch-Dest: empty' \
--header 'Sec-Fetch-Mode: cors' \
--header 'Sec-Fetch-Site: same-origin' \
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36' \
--header 'sec-ch-ua: "Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117"' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'sec-ch-ua-platform: "Windows"' \
--data '{
    "RequestInfo": {
        "apiId": "Rainmaker",
        "authToken": "28ee5e63-8150-48cf-a0b2-26212a450d18",
        "userInfo": {
            "id": 878469,
            "uuid": "b5bcbe8d-5410-4548-8b94-ee638d409f63",
            "userName": "9502410535",
            "name": "Rakesh",
            "mobileNumber": "9502410535",
            "emailId": null,
            "locale": null,
            "type": "EMPLOYEE",
            "roles": [
                {
                    "name": "HRMS_ADMIN",
                    "code": "HRMS_ADMIN",
                    "tenantId": "pb.baruwal"
                },
                {
                    "name": "DIVISION ADMIN",
                    "code": "DIV_ADMIN",
                    "tenantId": "pb.baruwal"
                },
                {
                    "name": "Employee",
                    "code": "EMPLOYEE",
                    "tenantId": "pb.baruwal"
                }
            ],
            "active": true,
            "tenantId": "pb.baruwal",
            "permanentCity": null
        },
        "msgId": "1697534837504|en_IN",
        "plainAccessRequest": {}
    }
}'

Search APIs

  1. Search Normal Employee

curl --location 'http://mgramseva-uat.psegs.in/egov-hrms/employees/_search?tenantId=pb.baruwal&isStateLevelSearch=false&limit=200&offset=0&sortOrder=ASC&roles=SYSTEM%2C%2BGP_ADMIN%2C%2BCOLLECTION_OPERATOR%2C%2BPROFILE_UPDATE%2C%2BDASHBOAD_VIEWER&_=1697180313780' \
--header 'Accept: application/json, text/plain, */*' \
--header 'Accept-Language: en-US,en;q=0.9' \
--header 'Connection: keep-alive' \
--header 'Content-Type: application/json;charset=UTF-8' \
--header 'Origin: http://localhost:3000' \
--header 'Referer: http://localhost:3000/mgramseva-web/employee/hrms/inbox' \
--header 'Sec-Fetch-Dest: empty' \
--header 'Sec-Fetch-Mode: cors' \
--header 'Sec-Fetch-Site: same-origin' \
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36' \
--header 'sec-ch-ua: "Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117"' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'sec-ch-ua-platform: "Windows"' \
--data '{
    "RequestInfo": {
        "apiId": "Rainmaker",
        "authToken": "ab731e06-b758-47fb-8642-a598daf51d72",
        "userInfo": {
            "id": 4659,
            "uuid": "6736c66c-3091-45d4-9aa0-43dcffa914fc",
            "userName": "5000000001",
            "name": "DIVSION-ADMIN-TESTING",
            "mobileNumber": "5000000001",
            "emailId": null,
            "locale": null,
            "type": "EMPLOYEE",
            "roles": [
                {
                    "name": "HRMS_ADMIN",
                    "code": "HRMS_ADMIN",
                    "tenantId": "pb.lodhipur"
                },
                {
                    "name": "DIVISION ADMIN",
                    "code": "DIV_ADMIN",
                    "tenantId": "pb.lodhipur"
                }
            ],
            "active": true,
            "tenantId": "pb.massewal",
            "permanentCity": null
        },
        "msgId": "1697180313780|en_IN",
        "plainAccessRequest": {}
    }
}'


  1. Search Division User

curl --location 'http://mgramseva-uat.psegs.in/egov-hrms/employees/_search?tenantId=pb&isStateLevelSearch=true&limit=200&offset=0&sortOrder=ASC&roles=DIV_ADMIN%2CHRMS_ADMIN&_=1697180313780' \
--header 'Accept: application/json, text/plain, */*' \
--header 'Accept-Language: en-US,en;q=0.9' \
--header 'Connection: keep-alive' \
--header 'Content-Type: application/json;charset=UTF-8' \
--header 'Origin: http://localhost:3000' \
--header 'Referer: http://localhost:3000/mgramseva-web/employee/hrms/inbox' \
--header 'Sec-Fetch-Dest: empty' \
--header 'Sec-Fetch-Mode: cors' \
--header 'Sec-Fetch-Site: same-origin' \
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36' \
--header 'sec-ch-ua: "Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117"' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'sec-ch-ua-platform: "Windows"' \
--data '{
    "RequestInfo": {
        "apiId": "Rainmaker",
        "authToken": "ab731e06-b758-47fb-8642-a598daf51d72",
        "userInfo": {
            "id": 4659,
            "uuid": "6736c66c-3091-45d4-9aa0-43dcffa914fc",
            "userName": "5000000001",
            "name": "DIVSION-ADMIN-TESTING",
            "mobileNumber": "5000000001",
            "emailId": null,
            "locale": null,
            "type": "EMPLOYEE",
            "roles": [
                {
                    "name": "HRMS_ADMIN",
                    "code": "HRMS_ADMIN",
                    "tenantId": "pb.lodhipur"
                },
                {
                    "name": "DIVISION ADMIN",
                    "code": "DIV_ADMIN",
                    "tenantId": "pb.lodhipur"
                }
            ],
            "active": true,
            "tenantId": "pb.massewal",
            "permanentCity": null
        },
        "msgId": "1697180313780|en_IN",
        "plainAccessRequest": {}
    }
}'
https://github.com/egovernments/punjab-mgramseva/tree/master/business-services/egov-hrms
https://github.com/misdwss/config-mgramseva/blob/UAT/egov-persister/hrms-employee-persister.yml
https://github.com/misdwss/iFix-DevOps/tree/mgramseva/deploy-as-code/helm/charts/business-services/egov-hrms
Pfm 1419 user search by debasishchakraborty-egovt · Pull Request #610 · egovernments/punjab-mgramseva
PFM-1419 : HRMS mdms Changes by debasishchakraborty-egovt · Pull Request #312 · misdwss/mdms-mgramseva
Update master-config.json by debasishchakraborty-egovt · Pull Request #314 · misdwss/mdms-mgramseva