Esempio n. 1
0
        protected override void OnInitialized()
        {
            employee = EmployeeCRUD.FetchSingleEmployee(this.EmployeeId);

            string strTableName = nameof(employee.City);

            DropDownValues = EmployeeCRUD.FetchDropDownList(strTableName);
        }
Esempio n. 2
0
        //private async Task LoadStateAsync()
        //{
        //	employee = await this.localBrowserStorage.GetAsync<EmployeeInformation>("EmployeeData");
        //}

        protected void CreateNewEmployee()
        {
            EmployeeCRUD.CreateEmployee(employee);

            //this.localBrowserStorage.SetAsync("EmployeeData", employee);

            this.NavigationManager.NavigateTo("listemployees");
        }
Esempio n. 3
0
        protected async Task Delete()
        {
            var bConfirm = await this.IJSRuntime.InvokeAsync <bool>("DeleteConfirmation");

            if (bConfirm)
            {
                EmployeeCRUD.DeleteEmployee(strEmployeeID);
                this.NavigationManager.NavigateTo("listemployees");
            }
        }
Esempio n. 4
0
 protected void UpdateEmployee()
 {
     EmployeeCRUD.EditEmployee(strEmployeeId, employee);
     this.NavigationManager.NavigateTo("listemployees");
 }
Esempio n. 5
0
 protected override void OnInitialized()
 {
     employee = EmployeeCRUD.FetchSingleEmployee(this.EmployeeId);
 }
Esempio n. 6
0
        protected override void OnInitialized()
        {
            const string strTableName = nameof(employee.City);

            DropDownValues = EmployeeCRUD.FetchDropDownList(strTableName);
        }
Esempio n. 7
0
 protected override void OnInitialized()
 {
     lstEmployees = EmployeeCRUD.FetchEmployees();
 }