Documentos de Académico
Documentos de Profesional
Documentos de Cultura
getSelectedIndex()
>= 1 && opcion_Producto3.getSelectedIndex() >= 1 &&
opcion_Producto4.getSelectedIndex() >= 1
&& opcion_Producto5.getSelectedIndex() >= 1 &&
opcion_Producto6.getSelectedIndex() >= 1 && opcion_Producto7.getSelectedIndex() >=
1 && opcion_Producto8.getSelectedIndex() >= 1) {
mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");
mostrar_Producto2.setText("LAPTOP ASUS - G512LIHN054T-GAMING");
mostrar_Producto3.setText("MACBOOK AIR");
mostrar_Producto4.setText("HUAWEI MATEBOOK D14");
mostrar_Producto5.setText("LAPTOP ACER NITRO 5");
mostrar_Producto6.setText("HP PAVILION GAMING 16-A0001LA");
mostrar_Producto7.setText("LAPTOP HP ENVY 15-DR1001LA");
mostrar_Producto8.setText("HUAWEI MATEBOOK 13");
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op2);
mostrar_Cantidad3.setText("" + op3);
mostrar_Cantidad4.setText("" + op4);
mostrar_Cantidad5.setText("" + op5);
mostrar_Cantidad6.setText("" + op6);
mostrar_Cantidad7.setText("" + op7);
mostrar_Cantidad8.setText("" + op8);
mostrar_Total1.setText("$" + String.format("%.2f", resultp1));
mostrar_Total2.setText("$" + String.format("%.2f", resultp2));
mostrar_Total3.setText("$" + String.format("%.2f", resultp3));
mostrar_Total4.setText("$" + String.format("%.2f", resultp4));
mostrar_Total5.setText("$" + String.format("%.2f", resultp5));
mostrar_Total6.setText("$" + String.format("%.2f", resultp6));
mostrar_Total7.setText("$" + String.format("%.2f", resultp7));
mostrar_Total8.setText("$" + String.format("%.2f", resultp8));
} else {
if (opcion_Producto1.getSelectedIndex() >= 1 &&
opcion_Producto2.getSelectedIndex() >= 1 && opcion_Producto3.getSelectedIndex() >=
1 && opcion_Producto4.getSelectedIndex() >= 1
&& opcion_Producto5.getSelectedIndex() >= 1 &&
opcion_Producto6.getSelectedIndex() >= 1 && opcion_Producto7.getSelectedIndex() >=
1) {
mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");
mostrar_Producto2.setText("LAPTOP ASUS - G512LIHN054T-GAMING");
mostrar_Producto3.setText("MACBOOK AIR");
mostrar_Producto4.setText("HUAWEI MATEBOOK D14");
mostrar_Producto5.setText("LAPTOP ACER NITRO 5");
mostrar_Producto6.setText("HP PAVILION GAMING 16-A0001LA");
mostrar_Producto7.setText("LAPTOP HP ENVY 15-DR1001LA");
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op2);
mostrar_Cantidad3.setText("" + op3);
mostrar_Cantidad4.setText("" + op4);
mostrar_Cantidad5.setText("" + op5);
mostrar_Cantidad6.setText("" + op6);
mostrar_Cantidad7.setText("" + op7);
mostrar_Total1.setText("$" + String.format("%.2f", resultp1));
mostrar_Total2.setText("$" + String.format("%.2f", resultp2));
mostrar_Total3.setText("$" + String.format("%.2f", resultp3));
mostrar_Total4.setText("$" + String.format("%.2f", resultp4));
mostrar_Total5.setText("$" + String.format("%.2f", resultp5));
mostrar_Total6.setText("$" + String.format("%.2f", resultp6));
mostrar_Total7.setText("$" + String.format("%.2f", resultp7));
} else {
if (opcion_Producto1.getSelectedIndex() >= 1 &&
opcion_Producto2.getSelectedIndex() >= 1 && opcion_Producto3.getSelectedIndex() >=
1 && opcion_Producto4.getSelectedIndex() >= 1
&& opcion_Producto5.getSelectedIndex() >= 1 &&
opcion_Producto6.getSelectedIndex() >= 1) {
mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");
mostrar_Producto2.setText("LAPTOP ASUS - G512LIHN054T-GAMING");
mostrar_Producto3.setText("MACBOOK AIR");
mostrar_Producto4.setText("HUAWEI MATEBOOK D14");
mostrar_Producto5.setText("LAPTOP ACER NITRO 5");
mostrar_Producto6.setText("HP PAVILION GAMING 16-A0001LA");
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op2);
mostrar_Cantidad3.setText("" + op3);
mostrar_Cantidad4.setText("" + op4);
mostrar_Cantidad5.setText("" + op5);
mostrar_Cantidad6.setText("" + op6);
mostrar_Total1.setText("$" + String.format("%.2f", resultp1));
mostrar_Total2.setText("$" + String.format("%.2f", resultp2));
mostrar_Total3.setText("$" + String.format("%.2f", resultp3));
mostrar_Total4.setText("$" + String.format("%.2f", resultp4));
mostrar_Total5.setText("$" + String.format("%.2f", resultp5));
mostrar_Total6.setText("$" + String.format("%.2f", resultp6));
} else {
if (opcion_Producto1.getSelectedIndex() >= 1 &&
opcion_Producto2.getSelectedIndex() >= 1 && opcion_Producto3.getSelectedIndex() >=
1 && opcion_Producto4.getSelectedIndex() >= 1
&& opcion_Producto5.getSelectedIndex() >= 1) {
mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");
mostrar_Producto2.setText("LAPTOP ASUS - G512LIHN054T-
GAMING");
mostrar_Producto3.setText("MACBOOK AIR");
mostrar_Producto4.setText("HUAWEI MATEBOOK D14");
mostrar_Producto5.setText("LAPTOP ACER NITRO 5");
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op2);
mostrar_Cantidad3.setText("" + op3);
mostrar_Cantidad4.setText("" + op4);
mostrar_Cantidad5.setText("" + op5);
mostrar_Total1.setText("$" + String.format("%.2f",
resultp1));
mostrar_Total2.setText("$" + String.format("%.2f",
resultp2));
mostrar_Total3.setText("$" + String.format("%.2f",
resultp3));
mostrar_Total4.setText("$" + String.format("%.2f",
resultp4));
mostrar_Total5.setText("$" + String.format("%.2f",
resultp5));
} else {
if (opcion_Producto1.getSelectedIndex() >= 1 &&
opcion_Producto2.getSelectedIndex() >= 1 && opcion_Producto3.getSelectedIndex() >=
1 && opcion_Producto4.getSelectedIndex() >= 1) {
mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");
mostrar_Producto2.setText("LAPTOP ASUS - G512LIHN054T-
GAMING");
mostrar_Producto3.setText("MACBOOK AIR");
mostrar_Producto4.setText("HUAWEI MATEBOOK D14");
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op2);
mostrar_Cantidad3.setText("" + op3);
mostrar_Cantidad4.setText("" + op4);
mostrar_Total1.setText("$" + String.format("%.2f",
resultp1));
mostrar_Total2.setText("$" + String.format("%.2f",
resultp2));
mostrar_Total3.setText("$" + String.format("%.2f",
resultp3));
mostrar_Total4.setText("$" + String.format("%.2f",
resultp4));
} else {
if (opcion_Producto1.getSelectedIndex() >= 1 &&
opcion_Producto2.getSelectedIndex() >= 1 && opcion_Producto3.getSelectedIndex() >=
1) {
mostrar_Producto1.setText("HP LAPTOP - 15-
GW0012LA");
mostrar_Producto2.setText("LAPTOP ASUS -
G512LIHN054T-GAMING");
mostrar_Producto3.setText("MACBOOK AIR");
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op2);
mostrar_Cantidad3.setText("" + op3);
mostrar_Total1.setText("$" + String.format("%.2f",
resultp1));
mostrar_Total2.setText("$" + String.format("%.2f",
resultp2));
mostrar_Total3.setText("$" + String.format("%.2f",
resultp3));
} else {// CONDICION DE 8-7-6
if (opcion_Producto8.getSelectedIndex() >= 1 &&
opcion_Producto7.getSelectedIndex() >= 1 && opcion_Producto6.getSelectedIndex() >=
1) {
mostrar_Producto1.setText("HP PAVILION GAMING
16-A0001LA");
mostrar_Producto2.setText("LAPTOP HP ENVY 15-
DR1001LA");
mostrar_Producto3.setText("HUAWEI MATEBOOK
13");
mostrar_Cantidad1.setText("" + op6);
mostrar_Cantidad2.setText("" + op7);
mostrar_Cantidad3.setText("" + op8);
mostrar_Total1.setText("$" +
String.format("%.2f", resultp6));
mostrar_Total2.setText("$" +
String.format("%.2f", resultp7));
mostrar_Total3.setText("$" +
String.format("%.2f", resultp8));
} else {// CONDICION DE 8-7-5
if (opcion_Producto8.getSelectedIndex() >= 1 &&
opcion_Producto7.getSelectedIndex() >= 1 && opcion_Producto5.getSelectedIndex() >=
1) {
mostrar_Producto1.setText("LAPTOP ACER
NITRO 5");
mostrar_Producto2.setText("LAPTOP HP ENVY
15-DR1001LA");
mostrar_Producto3.setText("HUAWEI MATEBOOK
13");
mostrar_Cantidad1.setText("" + op5);
mostrar_Cantidad2.setText("" + op7);
mostrar_Cantidad3.setText("" + op8);
mostrar_Total1.setText("$" +
String.format("%.2f", resultp5));
mostrar_Total2.setText("$" +
String.format("%.2f", resultp7));
mostrar_Total3.setText("$" +
String.format("%.2f", resultp8));
} else {// CONDICION DE 8-7-4
if (opcion_Producto8.getSelectedIndex() >=
1 && opcion_Producto7.getSelectedIndex() >= 1 &&
opcion_Producto4.getSelectedIndex() >= 1) {
mostrar_Producto1.setText("HUAWEI
MATEBOOK D14");
mostrar_Producto2.setText("LAPTOP HP
ENVY 15-DR1001LA");
mostrar_Producto3.setText("HUAWEI
MATEBOOK 13");
mostrar_Cantidad1.setText("" + op4);
mostrar_Cantidad2.setText("" + op7);
mostrar_Cantidad3.setText("" + op8);
mostrar_Total1.setText("$" +
String.format("%.2f", resultp4));
mostrar_Total2.setText("$" +
String.format("%.2f", resultp7));
mostrar_Total3.setText("$" +
String.format("%.2f", resultp8));
} else {// CONDICION DE 8-7-3
if (opcion_Producto8.getSelectedIndex()
>= 1 && opcion_Producto7.getSelectedIndex() >= 1 &&
opcion_Producto3.getSelectedIndex() >= 1) {
mostrar_Producto1.setText("MACBOOK
AIR");
mostrar_Producto2.setText("LAPTOP
HP ENVY 15-DR1001LA");
mostrar_Producto3.setText("HUAWEI
MATEBOOK 13");
mostrar_Cantidad1.setText("" +
op3);
mostrar_Cantidad2.setText("" +
op7);
mostrar_Cantidad3.setText("" +
op8);
mostrar_Total1.setText("$" +
String.format("%.2f", resultp3));
mostrar_Total2.setText("$" +
String.format("%.2f", resultp7));
mostrar_Total3.setText("$" +
String.format("%.2f", resultp8));
} else {// CONDICION DE 8-7-2
if
(opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto7.getSelectedIndex() >=
1 && opcion_Producto2.getSelectedIndex() >= 1) {
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op7);
mostrar_Cantidad3.setText("" + op8);
mostrar_Total1.setText("$"
+ String.format("%.2f", resultp1));
mostrar_Total2.setText("$"
+ String.format("%.2f", resultp7));
mostrar_Total3.setText("$"
+ String.format("%.2f", resultp8));
} else {// CONDICION DE 8-6-5
if
(opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto6.getSelectedIndex() >=
1 && opcion_Producto5.getSelectedIndex() >= 1) {
mostrar_Cantidad1.setText("" + op5);
mostrar_Cantidad2.setText("" + op6);
mostrar_Cantidad3.setText("" + op8);
mostrar_Cantidad1.setText("" + op4);
mostrar_Cantidad2.setText("" + op6);
mostrar_Cantidad3.setText("" + op8);
mostrar_Producto1.setText("MACBOOK AIR");
mostrar_Cantidad1.setText("" + op3);
mostrar_Cantidad2.setText("" + op6);
mostrar_Cantidad3.setText("" + op8);
mostrar_Cantidad1.setText("" + op2);
mostrar_Cantidad2.setText("" + op6);
mostrar_Cantidad3.setText("" + op8);
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op6);
mostrar_Cantidad3.setText("" + op8);
mostrar_Cantidad1.setText("" + op4);
mostrar_Cantidad2.setText("" + op5);
mostrar_Cantidad3.setText("" + op8);
mostrar_Producto2.setText("MACBOOK AIR");
mostrar_Cantidad1.setText("" + op3);
mostrar_Cantidad2.setText("" + op5);
mostrar_Cantidad3.setText("" + op8);
mostrar_Cantidad1.setText("" + op2);
mostrar_Cantidad2.setText("" + op5);
mostrar_Cantidad3.setText("" + op8);
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op5);
mostrar_Cantidad3.setText("" + op8);
mostrar_Producto1.setText("MACBOOK AIR");
mostrar_Cantidad1.setText("" + op3);
mostrar_Cantidad2.setText("" + op4);
mostrar_Cantidad3.setText("" + op8);
mostrar_Cantidad1.setText("" + op2);
mostrar_Cantidad2.setText("" + op4);
mostrar_Cantidad3.setText("" + op8);
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op4);
mostrar_Cantidad3.setText("" + op8);
mostrar_Producto2.setText("MACBOOK AIR");
mostrar_Cantidad1.setText("" + op2);
mostrar_Cantidad2.setText("" + op3);
mostrar_Cantidad3.setText("" + op8);
mostrar_Producto2.setText("MACBOOK AIR");
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op3);
mostrar_Cantidad3.setText("" + op8);
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op2);
mostrar_Cantidad3.setText("" + op8);
mostrar_Cantidad1.setText("" + op5);
mostrar_Cantidad2.setText("" + op6);
mostrar_Cantidad3.setText("" + op7);
mostrar_Cantidad2.setText("" + op6);
mostrar_Cantidad3.setText("" + op7);
mostrar_Producto1.setText("MACBOOK AIR");
mostrar_Cantidad1.setText("" + op3);
mostrar_Cantidad2.setText("" + op6);
mostrar_Cantidad3.setText("" + op7);
mostrar_Cantidad1.setText("" + op2);
mostrar_Cantidad2.setText("" + op6);
mostrar_Cantidad3.setText("" + op7);
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op6);
mostrar_Cantidad3.setText("" + op7);
mostrar_Cantidad1.setText("" + op4);
mostrar_Cantidad2.setText("" + op5);
mostrar_Cantidad3.setText("" + op7);
mostrar_Producto1.setText("MACBOOK AIR");
mostrar_Cantidad1.setText("" + op3);
mostrar_Cantidad2.setText("" + op5);
mostrar_Cantidad3.setText("" + op7);
mostrar_Cantidad1.setText("" + op2);
mostrar_Cantidad2.setText("" + op5);
mostrar_Cantidad3.setText("" + op7);
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op5);
mostrar_Cantidad3.setText("" + op7);
mostrar_Cantidad1.setText("" + op3);
mostrar_Cantidad2.setText("" + op4);
mostrar_Cantidad3.setText("" + op7);
mostrar_Cantidad1.setText("" + op7);
mostrar_Cantidad2.setText("" + op8);
mostrar_Cantidad1.setText("" + op6);
mostrar_Cantidad2.setText("" + op8);
mostrar_Cantidad1.setText("" + op5);
mostrar_Cantidad2.setText("" + op8);
mostrar_Cantidad1.setText("" + op4);
mostrar_Cantidad2.setText("" + op8);
mostrar_Producto1.setText("MACBOOK AIR");
mostrar_Cantidad1.setText("" + op3);
mostrar_Cantidad2.setText("" + op8);
mostrar_Cantidad1.setText("" + op2);
mostrar_Cantidad2.setText("" + op8);
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op8);
mostrar_Cantidad1.setText("" + op6);
mostrar_Cantidad2.setText("" + op7);
mostrar_Cantidad1.setText("" + op5);
mostrar_Cantidad2.setText("" + op7);
mostrar_Cantidad1.setText("" + op4);
mostrar_Cantidad2.setText("" + op7);
mostrar_Producto1.setText("MACBOOK AIR");
mostrar_Cantidad1.setText("" + op3);
mostrar_Cantidad2.setText("" + op7);
mostrar_Cantidad1.setText("" + op2);
mostrar_Cantidad2.setText("" + op7);
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op7);
mostrar_Total1.setText("$" + String.format("%.2f", resultp1));
mostrar_Cantidad1.setText("" + op5);
mostrar_Cantidad2.setText("" + op6);
mostrar_Cantidad1.setText("" + op4);
mostrar_Cantidad2.setText("" + op6);
mostrar_Producto1.setText("MACBOOK AIR");
mostrar_Cantidad1.setText("" + op3);
mostrar_Cantidad2.setText("" + op6);
mostrar_Cantidad1.setText("" + op2);
mostrar_Cantidad2.setText("" + op6);
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op6);
mostrar_Cantidad1.setText("" + op4);
mostrar_Cantidad2.setText("" + op5);
mostrar_Producto1.setText("MACBOOK AIR");
mostrar_Cantidad1.setText("" + op3);
mostrar_Cantidad2.setText("" + op5);
mostrar_Total1.setText("$" + String.format("%.2f", resultp3));
mostrar_Cantidad1.setText("" + op2);
mostrar_Cantidad2.setText("" + op5);
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op5);
mostrar_Producto1.setText("MACBOOK AIR");
mostrar_Cantidad1.setText("" + op3);
mostrar_Cantidad2.setText("" + op4);
mostrar_Cantidad1.setText("" + op2);
mostrar_Cantidad2.setText("" + op4);
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op4);
mostrar_Producto2.setText("MACBOOK AIR");
mostrar_Cantidad1.setText("" + op2);
mostrar_Cantidad2.setText("" + op3);
mostrar_Producto2.setText("MACBOOK AIR");
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op3);
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op2);
if (opcion_Producto8.getSelectedIndex() >= 1) {
mostrar_Cantidad1.setText("" + op8);
if (opcion_Producto7.getSelectedIndex() >= 1) {
mostrar_Cantidad1.setText("" + op7);
if (opcion_Producto6.getSelectedIndex() >= 1) {
mostrar_Cantidad1.setText("" + op6);
if (opcion_Producto5.getSelectedIndex() >= 1) {
if (opcion_Producto4.getSelectedIndex() >= 1) {
mostrar_Cantidad1.setText("" + op4);
if (opcion_Producto3.getSelectedIndex() >= 1) {
mostrar_Producto1.setText("MACBOOK AIR");
mostrar_Cantidad1.setText("" + op3);
if (opcion_Producto2.getSelectedIndex() >= 1) {
mostrar_Cantidad1.setText("" + op2);
if (opcion_Producto1.getSelectedIndex() >= 1) {
mostrar_Cantidad1.setText("" + op1);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}