Aplikasi POS Amigo, dibangun dengan JavaFX dengan Maven
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

185 lines
4.2 KiB

  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package id.amigogroup.posterminal.transaksi;
  7. import javafx.beans.property.SimpleObjectProperty;
  8. import javafx.beans.property.SimpleStringProperty;
  9. import javafx.scene.control.Button;
  10. import javafx.scene.control.ComboBox;
  11. import javafx.scene.control.TextField;
  12. /**
  13. *
  14. * @author AGNES
  15. */
  16. public class TabelBarangTunai {
  17. private SimpleStringProperty kode;
  18. private SimpleStringProperty nama;
  19. private SimpleStringProperty ukur;
  20. private SimpleStringProperty jumlah;
  21. private SimpleStringProperty harga;
  22. private SimpleStringProperty disc1;
  23. private SimpleStringProperty disc2;
  24. private SimpleObjectProperty<ComboBox> cbxPromo;
  25. private SimpleStringProperty subTotal;
  26. private SimpleObjectProperty<TextField> fldPramuniaga;
  27. public TabelBarangTunai(String kode, String nama, String ukur, String jumlah, String harga, String disc1,
  28. String disc2, ComboBox cbxPromo, String subTotal, TextField fldPramuniaga) {
  29. this.kode = new SimpleStringProperty(kode);
  30. this.nama = new SimpleStringProperty(nama);
  31. this.ukur = new SimpleStringProperty(ukur);
  32. this.jumlah = new SimpleStringProperty(jumlah);
  33. this.harga = new SimpleStringProperty(harga);
  34. this.disc1 = new SimpleStringProperty(disc1);
  35. this.disc2 = new SimpleStringProperty(disc2);
  36. this.cbxPromo = new SimpleObjectProperty<ComboBox>(cbxPromo);
  37. this.subTotal = new SimpleStringProperty(subTotal);
  38. this.fldPramuniaga = new SimpleObjectProperty<TextField>(fldPramuniaga);
  39. }
  40. /**
  41. * @return the kode
  42. */
  43. public String getKode() {
  44. return kode.get();
  45. }
  46. /**
  47. * @param kode the kode to set
  48. */
  49. public void setKode(String kode) {
  50. this.kode.set(kode);
  51. }
  52. /**
  53. * @return the tcNama
  54. */
  55. public String getNama() {
  56. return nama.get();
  57. }
  58. /**
  59. * @param nama the tcNama to set
  60. */
  61. public void setNama(String nama) {
  62. this.nama.set(nama);
  63. }
  64. /**
  65. * @return the tcUkur
  66. */
  67. public String getUkur() {
  68. return ukur.get();
  69. }
  70. /**
  71. * @param ukur the tcUkur to set
  72. */
  73. public void setUkur(String ukur) {
  74. this.ukur.set(ukur);
  75. }
  76. /**
  77. * @return the tcJumlah
  78. */
  79. public String getJumlah() {
  80. return jumlah.get();
  81. }
  82. /**
  83. * @param jumlah the tcJumlah to set
  84. */
  85. public void setJumlah(String jumlah) {
  86. this.jumlah.set(jumlah);
  87. }
  88. /**
  89. * @return the tcHarga
  90. */
  91. public String getHarga() {
  92. return harga.get();
  93. }
  94. /**
  95. * @param harga the tcHarga to set
  96. */
  97. public void setHarga(String harga) {
  98. this.harga.set(harga);
  99. }
  100. /**
  101. * @return the tcDisc1
  102. */
  103. public String getDisc1() {
  104. return disc1.get();
  105. }
  106. /**
  107. * @param disc1 the tcDisc1 to set
  108. */
  109. public void setDisc1(String disc1) {
  110. this.disc1.set(disc1);
  111. }
  112. /**
  113. * @return the tcDisc2
  114. */
  115. public String getDisc2() {
  116. return disc2.get();
  117. }
  118. /**
  119. * @param disc2 the tcDisc2 to set
  120. */
  121. public void setDisc2(String disc2) {
  122. this.disc2.set(disc2);
  123. }
  124. /**
  125. * @return the tcPromo
  126. */
  127. public ComboBox getCbxPromo() {
  128. return cbxPromo.get();
  129. }
  130. /**
  131. * @param cbxPromo the tcPromo to set
  132. */
  133. public void setCbxPromo(ComboBox cbxPromo) {
  134. this.cbxPromo.set(cbxPromo);
  135. }
  136. /**
  137. * @return the tcSubtotal
  138. */
  139. public String getSubTotal() {
  140. return subTotal.get();
  141. }
  142. /**
  143. * @param subTotal the tcSubtotal to set
  144. */
  145. public void setSubTotal(String subTotal) {
  146. this.subTotal.set(subTotal);
  147. }
  148. /**
  149. * @return the tcPramuniaga
  150. */
  151. public TextField getFldPramuniaga() {
  152. return fldPramuniaga.get();
  153. }
  154. /**
  155. * @param fldPramuniaga the tcPramuniaga to set
  156. */
  157. public void setFldPramuniaga(TextField fldPramuniaga) {
  158. this.fldPramuniaga.set(fldPramuniaga);
  159. }
  160. }