예제 #1
0
        public App()
        {
            InitializeComponent();

            FuncionariosManager = new FuncionarioManager(new RestService());
            MainPage            = new NavigationPage(new MainPage());
        }
        public void UpdateFuncionario(string cpf, string nome, string cargo, string dataContratacao, decimal hrVoo)
        {
            FuncionarioManager manager = new FuncionarioManager();

            manager.UpdateFuncionario(cpf, nome, cargo, dataContratacao, hrVoo);
        }
        public void DeleteFuncionario(string cpf)
        {
            FuncionarioManager manager = new FuncionarioManager();

            manager.DeleteFuncionario(cpf);
        }
        public List <Funcionario> GetFuncionarios()
        {
            FuncionarioManager manager = new FuncionarioManager();

            return(manager.GetList());
        }
예제 #5
0
        private async Task <IEntityManager> GetManager(string tela)
        {
            IEntityManager manager = null;

            try
            {
                switch (tela)
                {
                case ServerCommands.UnidadeMedida:
                    manager = new UnidadeMedidaManager();
                    break;

                case ServerCommands.TipoServico:
                    manager = new TipoServicoManager();
                    break;

                case ServerCommands.TipoOS:
                    manager = new TipoOSManager();
                    break;

                case ServerCommands.CondicaoPagamento:
                    manager = new CondicaoPagamentoManager();
                    break;

                case ServerCommands.CentroCustoSintetico:
                    manager = new CentroCustoSinteticoManager();
                    break;

                case ServerCommands.Servico:
                    manager = new ServicoManager();
                    break;

                case ServerCommands.TabelaCusto:
                    manager = new TabelaCustoManager();
                    break;

                case ServerCommands.Funcionario:
                    manager = new FuncionarioManager();
                    break;

                case ServerCommands.Fornecedor:
                    manager = new FornecedorManager();
                    break;

                case ServerCommands.Cliente:
                    manager = new ClienteManager();
                    break;

                case ServerCommands.Estoque:
                    manager = new EstoqueManager();
                    break;

                case ServerCommands.TipoEntrada:
                    manager = new TipoEntradaManager();
                    break;

                case ServerCommands.FuncionarioEstoque:
                    manager = new FuncionarioEstoqueManager();
                    break;

                case ServerCommands.Planta:
                    manager = new PlantaManager();
                    break;

                case ServerCommands.CompraManual:
                    manager = new CompraManualManager();
                    break;

                case ServerCommands.MovimentoEstoque:
                    manager = new MovimentoEstoqueManager();
                    break;

                case ServerCommands.UserPlanta:
                    manager = new UserPlantaManager();
                    break;

                default:
                    manager = null;
                    break;
                }
            }
            catch (Exception e)
            {
                ConsoleEx.WriteError(e);
            }
            return(manager);
        }