Examples of save()


Examples of com.zesped.model.Employee.save()

      oSes.commit();
      Employee oEmp = new Employee(oSes, oTxp.employees(oSes));
      oEmp.setActive(true);
      oEmp.setUuid(oUsr.getNickName());
      oEmp.setName(oUsr.getFirstName()+" "+oUsr.getLastName());
      oEmp.save(oSes);
      oSes.commit();
      oSes.disconnect();
      oSes.close();
      oSes=null;
    } catch (Exception xcpt) {
View Full Code Here

Examples of com.zesped.model.Invoice.save()

            invc.remove("month");
            invc.remove("invoice_date");
          }
          if (getDueDay()>0 && getDueMonth()>0 && getDueYear()>0)
            invc.setDueDate(new Date(getDueYear()-1900, getDueMonth()-1, getDueDay()));
          invc.save(getSession(), getSessionAttribute("user_uuid"), getProcessed(), getApproved(), getMistakes());
          BigDecimal total = invc.computeTotal();
          if (getTotalAmount().subtract(total).abs().floatValue()>0.04f) {
            Log.out.warn("Invoice "+invc.id()+" mismatch between supplied ("+getTotalAmount().toString()+") and computed ("+total.toString()+") total amounts");
            DAO.log(getSession(), invc.getDocument(), Invoice.class, "AMOUNT MISMATCH", Level.WARNING, "mismatch between supplied ("+getTotalAmount().toString()+") and computed ("+total.toString()+") total amounts");
          }
View Full Code Here

Examples of com.zesped.model.Order.save()

        Dms oDms = oSes.getDms();
        CustomerAccount cacc = new CustomerAccount(oDms, getSessionAttribute("customer_account_docid"));
        order = cacc.createOrder(oSes);
        order.put("user_id", getSessionAttribute("user_docid"));
        order.put("credits_bought", selectedProduct.getCredits());
        order.save(oSes);

        Log.out.info("Created order "+order.getString("order_id")+" for customer "+getSessionAttribute("customer_acount"));
       
        OrderLine line = order.addLine(oSes, selectedProduct);
View Full Code Here

Examples of com.zesped.model.TaxPayer.save()

    try {
      connect();
      TaxPayer taxpr = new TaxPayer(getSession().getDms(), txpr);
      taxpr.refreshCounters(getSession());
      taxpr.save(getSession());
      bizname = taxpr.getBusinessName();
      pending = taxpr.getPendingTicketsCount();
      processed = taxpr.getProcessedTicketsCount();
      settled = taxpr.getSettledTicketsCount();
      total = taxpr.getTotalTicketsCount();
View Full Code Here

Examples of com.zesped.model.Ticket.save()

      if (getBillNoteId()!=null) {
        if (!getBillNoteId().equals(tckt.billNote(getSession()).id())) {
          tckt.changeBillNote(getSession(), getBillNoteId());
        }
      }
      tckt.save(getSession(), getSessionAttribute("user_uuid"), getProcessed(), false);
      disconnect();
      return new RedirectResolution(ListNewBillNotes.class);
      } catch (StorageException e) {
      setParam("id", getId());
        Log.out.error("EditBillNote.save() "+e.getClass().getName()+" "+e.getMessage());
View Full Code Here

Examples of com.zesped.model.User.save()

          setSessionAttribute("password", sNewPassword1);
        }
        oUsr.setFirstName(sFirstName);
        oUsr.setLastName(sLastName);
        oUsr.setEmail(sEmail);
        oUsr.save(getSession());         
        setSessionAttribute("fullname", oUsr.getFirstName()+" "+oUsr.getLastName());
        disconnect();
        addDataLine("id",oUsr.id());
      } catch (RecentlyUsedPasswordException rupe) {
        addError("password", new LocalizableError("com.zesped.action.SaveConfig.recentlyUsedPassword"));
View Full Code Here

Examples of commonj.sdo.helper.XMLHelper.save()

    DataObject lastNameProperty = customerType.createDataObject("property");
    lastNameProperty.set("name", "lastName");
    lastNameProperty.set("type", stringType);

    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    xmlHelper.save(customerType, "commonj.sdo", "type", baos);
   
    ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
    XMLDocument xdoc = xmlHelper.load(bais);

    customerType = xdoc.getRootObject();
View Full Code Here

Examples of csa.jportal.ai.enhancedAI.EAIConfigurationDataPool.save()

            if (eaiConfig != null)
            {
                eaiConfig.mName = mAIPlayerData.mName;
                EAIConfigurationDataPool pool = new EAIConfigurationDataPool();
                pool.put(eaiConfig);
                pool.save();
            }
        }

        mAIPlayerDataPool.put(mAIPlayerData);
        mAIPlayerDataPool.save();
View Full Code Here

Examples of csa.jportal.ai.enhancedAI.enhancedHints.AIEnhancedCardHints.save()

if (error) System.out.println("Error at: "+oHint.mData.getHintVarName());
            }
          
           

            mNHints.save();
            if (ok)
                card.setAIOk("COK");
            else
                card.setAIOk("COFF");
            card.save();
View Full Code Here

Examples of csa.jportal.ai.helper.KeyTypeValueDataPool.save()

        }
        data.mClass="AIData";
        data.mName=getNamedName();
        KeyTypeValueDataPool pool = new KeyTypeValueDataPool("scripts"+File.separator+"namedAI"+File.separator+ getNamedName()+"Data.xml");
        pool.put(data);
        pool.save();
    }

    public void loadVars()
    {
        KeyTypeValueDataPool pool = new KeyTypeValueDataPool("scripts"+File.separator+"namedAI"+File.separator+ getNamedName()+"Data.xml");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.