Пример #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()));
     }
   }
 }
Пример #2
0
 private void ButtonAceptActionPerformed(
     java.awt.event.ActionEvent evt) // GEN-FIRST:event_ButtonAceptActionPerformed
     { // GEN-HEADEREND:event_ButtonAceptActionPerformed
   try {
     Attribute Attr;
     if (ModeGrp) {
       Attr = Perm.getAttr(PDACL.fGROUPNAME);
     } else {
       Attr = Perm.getAttr(PDACL.fUSERNAME);
     }
     Attr.setValue(UserComboBox.getSelectedItem());
     Attr = Perm.getAttr(PDACL.fPERMISION);
     Attr.setValue(PermisionComboBox.getSelectedIndex() + 1);
     Cancel = false;
     this.dispose();
   } catch (PDException ex) {
     MainWin.Message(MainWin.DrvTT(ex.getLocalizedMessage()));
   }
 } // GEN-LAST:event_ButtonAceptActionPerformed
Пример #3
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()));
     }
   }
 }