Package org.blueoxygen.cimande

Examples of org.blueoxygen.cimande.LogInformation


    }
   
    Currency currency;
    if(getCurrency().getId() == null || "".equalsIgnoreCase(getCurrency().getId())) {
      currency = new Currency();
      logInfo = new LogInformation();
      logInfo.setCreateBy(sessionCredentials.getCurrentUser().getId());
      logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
      msg = "Successfully Add "+getCurrency().getISOCurrencyCode();
    } else {
      currency = (Currency) manager.getById(Currency.class, getCurrency().getId());
View Full Code Here


        ) {
            JOptionPane.showMessageDialog(null, "All data cannot be empty");
        } else {
            sess.getTransaction().begin();

            LogInformation log = new LogInformation();
            if(item == null || item.getId() == null){
                log.setCreateDate(new Timestamp(System.currentTimeMillis()));
                log.setCreateBy(token.getUser().getId());
            } else {
                log = item.getLogInformation();
            }

            log.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
            log.setLastUpdateBy(token.getUser().getId());
            log.setActiveFlag(1);

            if(cmbCategory.getItemCount()==0) JOptionPane.showMessageDialog(null, "Please insert category first");
            if(cmbUom.getItemCount()==0) JOptionPane.showMessageDialog(null, "Please insert Unit Of Measurement first");

            Check check = new Check();
View Full Code Here

 
  private void save() {
        if((!txtCode.getText().equalsIgnoreCase("")) && (!txtName.getText().equalsIgnoreCase(""))) {
            sess.getTransaction().begin();

            LogInformation log = new LogInformation();
            if(warehouse == null || warehouse.getId() == null){
                log.setCreateDate(new Timestamp(System.currentTimeMillis()));
                log.setCreateBy(token.getUser().getId());
            } else {
                log = warehouse.getLogInformation();
            }

            log.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
            log.setLastUpdateBy(token.getUser().getId());
            log.setActiveFlag(1);

            warehouse.setCode(txtCode.getText());
            warehouse.setName(txtName.getText());
            warehouse.setAddress(txtAddress.getText());
            warehouse.setDescription(txtrDescription.getText());
View Full Code Here

    }
   
    Customer customer;
    if(getCustomer().getId() == null && "".equalsIgnoreCase(getCustomer().getId())){
      customer = new Customer();
      logInfo = new LogInformation();
      logInfo.setCreateBy(sessionCredentials.getCurrentUser().getId());
      logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
    } else {
      customer = (Customer) manager.getById(Customer.class, getCustomer().getId());
      logInfo = customer.getLogInformation();
View Full Code Here

    }
   
    MailTemplate mailTemplate;
    if(getMailTemplate().getId() == null || "".equalsIgnoreCase(getMailTemplate().getId())){
      mailTemplate = new MailTemplate();
      logInfo = new LogInformation();
      logInfo.setCreateBy(sessionCredentials.getCurrentUser().getId());
      logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
    } else {
      mailTemplate = (MailTemplate) manager.getById(MailTemplate.class, getMailTemplate().getId());
      logInfo = mailTemplate.getLogInformation();
View Full Code Here

    }
   
    Contact contact;
    if(getContact().getId() == null || "".equalsIgnoreCase(getContact().getId())){
      contact = new Contact();
      logInfo = new LogInformation();
      logInfo.setCreateBy(sessionCredentials.getCurrentUser().getId());
      logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
    } else {
      contact = (Contact) manager.getById(Contact.class, getContact().getId());
      logInfo = contact.getLogInformation();
View Full Code Here

      return INPUT;
    }
    DiscountBreak discountBreak;
    if(getDiscountBreak().getId() == null || "".equalsIgnoreCase(getDiscountBreak().getId())){
      discountBreak = new DiscountBreak();
      logInfo = new LogInformation();
      logInfo.setCreateBy(sessionCredentials.getCurrentUser().getId());
      logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
    } else {
      discountBreak = (DiscountBreak) manager.getById(ProductCategory.class, getDiscountBreak().getId());
      logInfo = discountBreak.getLogInformation();
View Full Code Here

    }
   
    SerialNoControl serialNoControl;
    if(getSerialNoControl().getId() == null || "".equalsIgnoreCase(getSerialNoControl().getId())){
      serialNoControl = new SerialNoControl();
      logInfo = new LogInformation();
      logInfo.setCreateBy(sessionCredentials.getCurrentUser().getId());
      logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
    } else {
      serialNoControl = (SerialNoControl) manager.getById(SerialNoControl.class, getSerialNoControl().getId());
      logInfo = new LogInformation();
    }
   
    logInfo.setActiveFlag(getActive());
    logInfo.setLastUpdateBy(sessionCredentials.getCurrentUser().getId());
    logInfo.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
View Full Code Here

    }
   
    ProductCategory productCategory;
    if(getProductCategory().getId() == null || "".equalsIgnoreCase(getProductCategory().getId())){
      productCategory = new ProductCategory();
      logInfo = new LogInformation();
      logInfo.setCreateBy(sessionCredentials.getCurrentUser().getId());
      logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
    } else {
      productCategory = (ProductCategory) manager.getById(ProductCategory.class, getProductCategory().getId());
      logInfo = productCategory.getLogInformation();
View Full Code Here

    }
   
    RevenueRecognition revenueRecognition;
    if(getRevenueRecognition().getId() == null || "".equalsIgnoreCase(getRevenueRecognition().getId())){
      revenueRecognition = new RevenueRecognition();
      logInfo = new LogInformation();
      logInfo.setCreateBy(sessionCredentials.getCurrentUser().getId());
      logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
    } else {
      revenueRecognition = (RevenueRecognition) manager.getById(RevenueRecognition.class, getRevenueRecognition().getId());
      logInfo = revenueRecognition.getLogInformation();
View Full Code Here

TOP

Related Classes of org.blueoxygen.cimande.LogInformation

Copyright © 2018 www.massapicom. 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.