예제 #1
0
  public void beforePost(PostEvent bevt) {

    if (bevt.getListaCampos() == lcCampos) {

      LCS_STATUS = lcCampos.getStatus();
    }
  }
예제 #2
0
 public void afterPost(PostEvent pevt) {
   if (pevt.getListaCampos() == lcCampos) {
     if (LCS_STATUS == ListaCampos.LCS_INSERT) {
       if ("J".equals(rgTipoFalta.getVlrString())) {
         insertFaltaJustificada(txtHIniFalta.getVlrString(), txtHIniIntFalta.getVlrString());
         if ("I".equals(rgPeriodo.getVlrString())) {
           insertFaltaJustificada(txtHFinIntFalta.getVlrString(), txtHFinFalta.getVlrString());
         }
       } else if ("I".equals(rgTipoFalta.getVlrString())) {
         insertFaltaInjustificada(txtHIniFalta.getVlrString(), txtHIniIntFalta.getVlrString());
         if ("I".equals(rgPeriodo.getVlrString())) {
           insertFaltaInjustificada(txtHFinIntFalta.getVlrString(), txtHFinFalta.getVlrString());
         }
       }
     }
   }
 }