Пример #1
0
  private void insertFaltaInjustificada(String horaini, String horafin) {
    txtCodAtend.setVlrInteger(daoatend.getAtendente(txtMatempr.getVlrInteger()));

    try {
      if (daoatend.getPrefs()[PREFS.CODMODELFI.ordinal()] != null) {
        daoatend.insertFaltaInjustificada(
            Aplicativo.iCodEmp,
            ListaCampos.getMasterFilial("ATATENDIMENTO"),
            txtDtFalta.getVlrDate(),
            txtDtFalta.getVlrDate(),
            horaini,
            horafin,
            Aplicativo.iCodEmp,
            ListaCampos.getMasterFilial("ATATENDENTE"),
            txtCodAtend.getVlrInteger(),
            Aplicativo.iCodEmp,
            ListaCampos.getMasterFilial("SGUSUARIO"),
            Aplicativo.getUsuario().getIdusu());
      }
    } catch (Exception e) {
      Funcoes.mensagemErro(
          this,
          "Erro inserindo lançamento automatizado de Falta injustificada !\n" + e.getMessage());
      e.printStackTrace();
    }
  }