Example #1
0
        /// <summary>
        ///   Carga los patrones
        /// </summary>
        /// <history>
        ///   [vku] 13/Jun/2016 Created
        /// </history>
        protected async void LoadPersonelBoss()
        {
            try
            {
                List <PersonnelShort> lstPersonelBoss = await BRPersonnel.GetPersonnelByRole("BOSS");

                cboocBoss.ItemsSource = lstPersonelBoss;
            }
            catch (Exception ex)
            {
                UIHelper.ShowMessage(ex);
            }
        }
        /// <summary>
        /// Carga el combobox de Prs
        /// </summary>
        /// <history>
        /// [emoguel] created 05/05/2016
        /// </history>
        private async void LoadPrs()
        {
            try
            {
                List <PersonnelShort> lstPrs = await BRPersonnel.GetPersonnelByRole("PR");

                cmbPersonnel.ItemsSource = lstPrs;
            }
            catch (Exception ex)
            {
                UIHelper.ShowMessage(ex);
            }
        }
Example #3
0
        /// <summary>
        ///   Carga los administradores
        /// </summary>
        /// <history>
        ///   [vku] 13/Jun/2016 Created
        /// </history>
        protected async void LoadPersonelAdmin()
        {
            try
            {
                List <PersonnelShort> lstPersonelAdmin = await BRPersonnel.GetPersonnelByRole("ADMIN");

                cboocAdminUser.ItemsSource = lstPersonelAdmin;
            }
            catch (Exception ex)
            {
                UIHelper.ShowMessage(ex);
            }
        }