Ejemplo n.º 1
0
 /**
  * @param Req
  * @param out
  * @throws Exception
  */
 @Override
 protected void ProcessPage(HttpServletRequest Req, PrintWriter out) throws Exception {
   if (!Reading(Req)) {
     FCheckIn f = new FCheckIn(Req, FCheckIn.ADDMOD, null, getUrlServlet());
     out.println(f.ToHtml(Req.getSession()));
     return;
   } else {
     try {
       CheckIn(Req);
       GenListForm(Req, out, LAST_FORM, null, null);
       //    FListDocs fm=new FListDocs(Req, getActFolderId(Req));
       //    out.println(fm.ToHtml(Req.getSession()));
     } catch (PDException ex) {
       ShowMessage(Req, out, SParent.TT(Req, ex.getLocalizedMessage()));
     }
   }
 }
Ejemplo n.º 2
0
 /**
  * @param Req
  * @param out
  * @throws Exception
  */
 @Override
 protected void ProcessPage(HttpServletRequest Req, PrintWriter out) throws Exception {
   if (!Reading(Req)) {
     DriverGeneric PDSession = SParent.getSessOPD(Req);
     PDDocs F = new PDDocs(PDSession);
     F.LoadFull(getActDocId(Req));
     Record Rec = F.getRecSum();
     FMantDocAdv f = new FMantDocAdv(Req, FMantDocAdv.EDIMOD, Rec, getUrlServlet());
     out.println(f.ToHtml(Req.getSession()));
     return;
   } else {
     try {
       ModDoc(Req);
       GenListForm(Req, out, LAST_FORM, null, null);
       //    FListDocs fm=new FListDocs(Req, getActFolderId(Req));
       //    out.println(fm.ToHtml(Req.getSession()));
     } catch (PDException ex) {
       ShowMessage(Req, out, SParent.TT(Req, ex.getLocalizedMessage()));
     }
   }
 }