Package pojos

Examples of pojos.UrunSatis


    }
  }

  protected void cTableSatisListesiAdetClicked(TableModelEvent evt) {
    if (evt.getType() == TableModelEvent.UPDATE) {
      UrunSatis guncelUrunSatis = (UrunSatis) cTableSatisListesi
          .getEditedObject(evt);
      if (guncelUrunSatis == null)
        return;
      urunSatisSonAdet = guncelUrunSatis.getAdet();
      urunStok = (UrunStok) HibernateManager.getInstance()
          .getObjectWithUniqueColumn(UrunStok.class, "barkod",
              guncelUrunSatis.getBarkod());
      if ((urunSatisSonAdet - urunSatisIlkAdet) > urunStok.getAdet()) {
        AutoClosingMessageDialog.showAutoClosingMessageDialog(
            "Sistemde yeteri kadar ürün bulunmamaktadır.", 2);
        guncelUrunSatis.setAdet((int) cTableSatisListesi
            .getLastEditedValue());
        return;
      } else {
        urunStok.setAdet(urunStok.getAdet()
            - (urunSatisSonAdet - urunSatisIlkAdet));
View Full Code Here


  private static void addBekleyenSatisStok(BekleyenSatis bekleyenSatisControl) {
    List<UrunSatis> bekleyenSatisUrunListesi = (List<UrunSatis>) HibernateManager
        .getInstance().getEntitysList(bekleyenSatisControl,
            "satisListesi");
    for (int i = 0; i < bekleyenSatisUrunListesi.size(); i++) {
      UrunSatis us = bekleyenSatisUrunListesi.get(i);
      UrunStok urunS = (UrunStok) HibernateManager.getInstance()
          .getObjectWithUniqueColumn(UrunStok.class, "barkod",
              us.getBarkod());
      if (urunS == null) {
        urunS = new UrunStok(us);
        HibernateManager.getInstance().save(urunS);
      } else {
        urunS.setAdet(urunS.getAdet() + us.getAdet());
        HibernateManager.getInstance().update(urunS);
      }
    }
  }
View Full Code Here

        .getObjectWithUniqueColumn(UrunStok.class, "barkod",
            Long.parseLong(urunBarkod));
    if (urun != null) {
      if (urun.getAdet() >= urunAdet) {
        if (urunSatisControl(urun)) {
          urunSatis = new UrunSatis(urun, urunAdet);
          urunSatis.isVade(vadeFark);
          urunSatis.getTutar();
          urunSatis.getVadesizKDVTutar();
          urunSatis.getVadeliKDVTutar();
          urunSatisListesi.add(urunSatis);
View Full Code Here

    return pesinToplam;
  }

  protected UrunSatis findUrunSatis(UrunStok urun) {
    UrunSatis us = new UrunSatis();
    for (int i = 0; i < urunSatisListesi.size(); i++) {
      if (String.valueOf(urun.getBarkod()).equals(
          String.valueOf(urunSatisListesi.get(i).getBarkod()))) {
        us = urunSatisListesi.get(i);
        break;
View Full Code Here

    getChangeValue(iadePara);
    addUrunStok(urunSatisBilgi);
    if (urunSatisBilgi.getAdet() > 1) {
      urunSatisBilgi.setAdet(urunSatisBilgi.getAdet() - 1);
      check = HibernateManager.getInstance().update(urunSatisBilgi);
      UrunSatis urunSatis = new UrunSatis();
      urunSatis = urunSatisBilgi;
      urunSatis.setAdet(1);
      urunSatis.setSatisDurum(IADE_SATIS);
      HibernateManager.getInstance().save(urunSatis);
      HibernateManager.getInstance().saveEntityObject(satisBilgi,
          "satisListesi", urunSatis);
    } else {
      urunSatisBilgi.setSatisDurum(IADE_SATIS);
View Full Code Here

    double urunSatisPesinFiyati = 0;
    double urunSatisTaksitliFiyati = 0;
    int urunSatisAdet = 0;

    for (int i = 0; i < urunSatisSize; i++) {
      UrunSatis us = urunSatisListesi.get(i);
      urunSatisPesinFiyati = urunSatisPesinFiyati
          + (us.getPesinSatisFiyati() * us.getAdet());
      urunSatisTaksitliFiyati = urunSatisTaksitliFiyati
          + (us.getTaksitliSatisFiyati() * us.getAdet());
      urunSatisAdet = urunSatisAdet + us.getAdet();
    }

    BigDecimal urunSatisPesinFiyatiBG = new BigDecimal(urunSatisPesinFiyati);
    String dividedPriceSatisPesin = Utils.DECIMAL_FORMAT
        .format(urunSatisPesinFiyatiBG);
View Full Code Here

    return list;
  }

  protected void urunIadeMethod() {
    urunSatis = new UrunSatis(usk, usk.getAdet());
    urunSatis.setSatisId(usk.getSatisId());
    urunSatis.setYapilanSatis(true);
    YapilanSatis st = (YapilanSatis) HibernateManager.getInstance()
        .getObjectWithUniqueColumn(YapilanSatis.class, "id",
            usk.getSatisId());
View Full Code Here

TOP

Related Classes of pojos.UrunSatis

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.