Example #1
0
        public async void OnDialogOpened(IDialogParameters parameters)
        {
            Employee = parameters.GetValue <JoppdEmployeeModel>("employee");

            var emp = await _employeeEndpoint.GetByOib(Employee.Oib);

            FullName = "Podaci zaposlenika: " + emp.Ime + " " + emp.Prezime;

            var city = await _cityEndpoint.GetByName(emp.Mjesto);

            Employee.SifraPrebivalista = city.Sifra;
        }
Example #2
0
        public async void OnDialogOpened(IDialogParameters parameters)
        {
            Payroll  = parameters.GetValue <PayrollModel>("payroll");
            Employee = parameters.GetValue <EmployeeModel>("employee");
            if (Payroll != null)
            {
                GetPayrollFromDatabase(Payroll.Oib);
            }
            else
            {
                Payroll = new PayrollModel();
            }

            City = await _cityEndpoint.GetByName(Employee.Mjesto);
        }