Merge branch 'Lino' into Dev
This commit is contained in:
@@ -12,11 +12,8 @@ export default async function Page({
|
||||
}: {
|
||||
searchParams: { numAccount?: number };
|
||||
}) {
|
||||
|
||||
const params = await searchParams;
|
||||
const numAccount = params.numAccount
|
||||
? Number(params.numAccount)
|
||||
: null;
|
||||
const params = await searchParams;
|
||||
const numAccount = params.numAccount ? Number(params.numAccount) : null;
|
||||
|
||||
let student: any = null;
|
||||
if (numAccount) {
|
||||
@@ -28,90 +25,96 @@ export default async function Page({
|
||||
<h2 className="title">IMPRESIONES Y PLOTEO</h2>
|
||||
<SearchUser />
|
||||
|
||||
<Information
|
||||
NoCuenta={student.id_cuenta}
|
||||
Nombre={student.nombre}
|
||||
Carrera={student.id_carrera}
|
||||
Credito={student.credito}
|
||||
/>
|
||||
{student ? (
|
||||
<>
|
||||
<Information
|
||||
NoCuenta={student.id_cuenta}
|
||||
Nombre={student.nombre}
|
||||
Carrera={student.id_carrera}
|
||||
Credito={student.credito}
|
||||
/>
|
||||
|
||||
<Toggle
|
||||
defaultView="1"
|
||||
options={[
|
||||
{
|
||||
key: "1",
|
||||
label: "Recibo",
|
||||
content: <Receipt />,
|
||||
},
|
||||
{
|
||||
key: "2",
|
||||
label: "Impresiones B/N",
|
||||
content: (
|
||||
<Impressions
|
||||
costs={[{ value: 1 }, { value: 2 }]}
|
||||
numAccount={student.id_cuenta}
|
||||
/>
|
||||
),
|
||||
},
|
||||
{
|
||||
key: "3",
|
||||
label: "Impresiones color",
|
||||
content: (
|
||||
<Impressions
|
||||
costs={[
|
||||
{ value: 4 },
|
||||
{ value: 5 },
|
||||
{ value: 6 },
|
||||
{ value: 7 },
|
||||
{ value: 8 },
|
||||
{ value: 10 },
|
||||
{ value: 12 },
|
||||
{ value: 14 },
|
||||
]}
|
||||
numAccount={student.id_cuenta}
|
||||
/>
|
||||
),
|
||||
},
|
||||
{
|
||||
key: "4",
|
||||
label: "Plotter",
|
||||
content: (
|
||||
<Impressions
|
||||
costs={[
|
||||
{ value: 15 },
|
||||
{ value: 18 },
|
||||
{ value: 20 },
|
||||
{ value: 25 },
|
||||
{ value: 30 },
|
||||
{ value: 40 },
|
||||
{ value: 45 },
|
||||
{ value: 50 },
|
||||
{ value: 60 },
|
||||
{ value: 70 },
|
||||
{ value: 80 },
|
||||
{ value: 90 },
|
||||
{ value: 100 },
|
||||
{ value: 110 },
|
||||
{ value: 120 },
|
||||
{ value: 150 },
|
||||
{ value: 200 },
|
||||
]}
|
||||
numAccount={student.id_cuenta}
|
||||
/>
|
||||
),
|
||||
},
|
||||
{
|
||||
key: "5",
|
||||
label: "Escaner",
|
||||
content: (
|
||||
<Impressions
|
||||
costs={[{ value: 1 }, { value: 2 }, { value: 5 }]}
|
||||
numAccount={student.id_cuenta}
|
||||
/>
|
||||
),
|
||||
},
|
||||
]}
|
||||
/>
|
||||
<Toggle
|
||||
defaultView="1"
|
||||
options={[
|
||||
{
|
||||
key: "1",
|
||||
label: "Recibo",
|
||||
content: <Receipt />,
|
||||
},
|
||||
{
|
||||
key: "2",
|
||||
label: "Impresiones B/N",
|
||||
content: (
|
||||
<Impressions
|
||||
costs={[{ value: 1 }, { value: 2 }]}
|
||||
numAccount={student.id_cuenta}
|
||||
/>
|
||||
),
|
||||
},
|
||||
{
|
||||
key: "3",
|
||||
label: "Impresiones color",
|
||||
content: (
|
||||
<Impressions
|
||||
costs={[
|
||||
{ value: 4 },
|
||||
{ value: 5 },
|
||||
{ value: 6 },
|
||||
{ value: 7 },
|
||||
{ value: 8 },
|
||||
{ value: 10 },
|
||||
{ value: 12 },
|
||||
{ value: 14 },
|
||||
]}
|
||||
numAccount={student.id_cuenta}
|
||||
/>
|
||||
),
|
||||
},
|
||||
{
|
||||
key: "4",
|
||||
label: "Plotter",
|
||||
content: (
|
||||
<Impressions
|
||||
costs={[
|
||||
{ value: 15 },
|
||||
{ value: 18 },
|
||||
{ value: 20 },
|
||||
{ value: 25 },
|
||||
{ value: 30 },
|
||||
{ value: 40 },
|
||||
{ value: 45 },
|
||||
{ value: 50 },
|
||||
{ value: 60 },
|
||||
{ value: 70 },
|
||||
{ value: 80 },
|
||||
{ value: 90 },
|
||||
{ value: 100 },
|
||||
{ value: 110 },
|
||||
{ value: 120 },
|
||||
{ value: 150 },
|
||||
{ value: 200 },
|
||||
]}
|
||||
numAccount={student.id_cuenta}
|
||||
/>
|
||||
),
|
||||
},
|
||||
{
|
||||
key: "5",
|
||||
label: "Escaner",
|
||||
content: (
|
||||
<Impressions
|
||||
costs={[{ value: 1 }, { value: 2 }, { value: 5 }]}
|
||||
numAccount={student.id_cuenta}
|
||||
/>
|
||||
),
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</>
|
||||
) : (
|
||||
<></>
|
||||
)}
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user