Esempio n. 1
0
  private void TINH_CHI_PHI_DL() {
    Obj_Chiettinh CT = Obj_Chiettinh.TINH_CHI_PHI_DL(list_vattu_chitiet, Variables.HSCT_CHON);
    if (CT != null) {
      try {
        tv_TIEN_VAT_LIEU.setText(Thtcovert.int_format_tien((int) CT.getTIEN_VL_KH()) + " VND");
        tv_TIEN_NHAN_CONG.setText(Thtcovert.int_format_tien((int) CT.getTIEN_NC_KH()) + " VND");
        tv_TIEN_VAN_CHUYEN.setText(Thtcovert.int_format_tien((int) CT.getTIEN_VC_KH()) + " VND");
        tv_TIEN_THI_CONG.setText(Thtcovert.int_format_tien((int) CT.getTIEN_M_KH()) + " VND");

        tv_T.setText(Thtcovert.int_format_tien((int) CT.getT()) + " VND");
        // tv_TT.setText(String.valueOf(" " + String.format("%,d", TT) + " VND"));
        tv_TT.setText("-");
        tv_C.setText(Thtcovert.int_format_tien((int) CT.getC()) + " VND");
        // tv_TL.setText(String.valueOf(" " + String.format("%,d", TL) + " VND"));
        tv_TL.setText("-");
        // tv_K.setText(String.valueOf(" " + String.format("%,d", K) + " VND"));
        tv_K.setText("-");
        tv_Gtt.setText(Thtcovert.int_format_tien((int) CT.getG()) + " VND");
        // tv_VAT.setText(String.valueOf(" " + String.format("%,d", VAT) + " VND"));
        tv_VAT.setText("-");
        // tv_G.setText(String.valueOf(" " + String.format("%,d", G) + " VND"));
        tv_G.setText("-");
      } catch (Exception e) {

      }
    }
  }
Esempio n. 2
0
  private void TINH_CHI_PHI_KH() {
    Obj_Chiettinh CT = null;
    try {
      if (Variables.HSCT_CHON.MA_DVIQLY.startsWith("PB16")) {
        CT = Obj_Chiettinh.TINH_CHI_PHI_KH_TV(list_vattu_chitiet, Variables.HSCT_CHON);
      } else {
        CT = Obj_Chiettinh.TINH_CHI_PHI_KH(list_vattu_chitiet, Variables.HSCT_CHON);
      }
    } catch (Exception e) {

    }

    if (CT != null) {
      try {
        tv_TIEN_VAT_LIEU_KH.setText(Thtcovert.int_format_tien((int) CT.getTIEN_VL_KH()) + " VND");
        tv_TIEN_NHAN_CONG_KH.setText(Thtcovert.int_format_tien((int) CT.getTIEN_NC_KH()) + " VND");
        tv_TIEN_VAN_CHUYEN_KH.setText(Thtcovert.int_format_tien((int) CT.getTIEN_VC_KH()) + " VND");
        tv_TIEN_THI_CONG_KH.setText(Thtcovert.int_format_tien((int) CT.getTIEN_M_KH()) + " VND");

        tv_T_KH.setText(Thtcovert.int_format_tien((int) CT.getT()) + " VND");
        tv_TT_KH.setText(Thtcovert.int_format_tien((int) CT.getTT()) + " VND");
        tv_C_KH.setText(Thtcovert.int_format_tien((int) CT.getC()) + " VND");
        tv_TL_KH.setText(Thtcovert.int_format_tien((int) CT.getTL()) + " VND");
        tv_K_KH.setText(Thtcovert.int_format_tien((int) CT.getK()) + " VND");
        tv_Gtt_KH.setText(Thtcovert.int_format_tien((int) CT.getGtt()) + " VND");
        tv_VAT_KH.setText(Thtcovert.int_format_tien((int) CT.getVAT()) + " VND");
        tv_G_KH.setText(Thtcovert.int_format_tien((int) CT.getG()) + " VND");
      } catch (Exception e) {

      }
    }
  }