<?php $css = new CssIni("SoftConTech Compra de Mercancias"); ?> </head> <body> <?php $obVenta = new ProcesoVenta($idUser); $myPage = "CompraMercancias.php"; $css->CabeceraIni("SoftConTech Compra de Mercancias"); $DatosUsuarios = $obVenta->DevuelveValores("usuarios", "idUsuarios", $idUser); $css->CreaBotonDesplegable("Proveedor", "Crear Proveedor"); $css->CabeceraFin(); /////////////////Cuadro de dialogo de Proveedores create $css->CrearCuadroDeDialogo("Proveedor", "Crear Proveedor"); $css->CrearForm("FrmCrearCliente", $myPage, "post", "_self"); $css->CrearSelect("CmbTipoDocumento", "Oculta()"); $css->CrearOptionSelect('13', 'Cedula', 1); $css->CrearOptionSelect('31', 'NIT', 0); $css->CerrarSelect(); //$css->CrearInputText("CmbPreVentaAct","hidden","",$idPreventa,"","","","",0,0,0,0); $css->CrearInputText("TxtNIT", "number", "", "", "Identificacion", "black", "", "", 200, 30, 0, 1); $css->CrearInputText("TxtPA", "text", "", "", "Primer Apellido", "black", "onkeyup", "CreaRazonSocial()", 200, 30, 0, 0); $css->CrearInputText("TxtSA", "text", "", "", "Segundo Apellido", "black", "onkeyup", "CreaRazonSocial()", 200, 30, 0, 0); $css->CrearInputText("TxtPN", "text", "", "", "Primer Nombre", "black", "onkeyup", "CreaRazonSocial()", 200, 30, 0, 0); $css->CrearInputText("TxtON", "text", "", "", "Otros Nombres", "black", "onkeyup", "CreaRazonSocial()", 200, 30, 0, 0); $css->CrearInputText("TxtRazonSocial", "text", "", "", "Razon Social", "black", "", "", 200, 30, 0, 1); $css->CrearInputText("TxtDireccion", "text", "", "", "Direccion", "black", "", "", 200, 30, 0, 1); $css->CrearInputText("TxtTelefono", "text", "", "", "Telefono", "black", "", "", 200, 30, 0, 1); $css->CrearInputText("TxtEmail", "text", "", "", "Email", "black", "", "", 200, 30, 0, 1);
$css->CreaBotonDesplegable("CrearComprobante", "Nuevo Comprobante"); $css->CabeceraFin(); $css->CreaMenuBasico("Menu"); $css->CreaSubMenuBasico("Historial de Comprobantes", "comprobantes_contabilidad_items.php"); $css->CreaSubMenuBasico("Historial de Abonos", "abonos_libro.php"); $css->CierraMenuBasico(); ///////////////Creamos el contenedor ///// ///// $css->CrearDiv("principal", "container", "center", 1, 1); if ($ImprimeCC > 0) { $RutaPrintCot = "../tcpdf/examples/comprobantecontable.php?idComprobante={$ImprimeCC}"; $css->CrearNotificacionNaranja("Comprobante Creado, <a href='{$RutaPrintCot}' target='_blank'>Imprimir Comprobante No. {$ImprimeCC}</a>", 16); } /////////////////Cuadro de dialogo de Clientes create $css->CrearCuadroDeDialogo("CrearComprobante", "Crear un Comprobante"); $css->CrearForm2("FrmCreaPreMovimiento", $myPage, "post", "_self"); $css->CrearTabla(); $css->FilaTabla(16); $css->ColTabla("<strong>Fecha</strong>", 1); $css->ColTabla("<strong>Detalle</strong>", 1); $css->ColTabla("<strong>Crear</strong>", 1); $css->CierraFilaTabla(); $css->FilaTabla(16); print "<td>"; $css->CrearInputText("TxtFecha", "date", "", date("Y-m-d"), "Fecha", "black", "", "", 100, 30, 0, 1); print "</td>"; print "<td>"; $css->CrearTextArea("TxtConceptoComprobante", "", "", "Escriba el detalle", "black", "", "", 300, 100, 0, 1); print "</td>"; print "<td>";
///// if (!empty($idOT)) { //print("<script>alert('entra')</script>"); $DatosOT = $obVenta->DevuelveValores("ordenesdecompra", "ID", $idOT); $idCliente = $DatosOT["Tercero"]; $DatosCliente = $obVenta->DevuelveValores("proveedores", "idProveedores", $idCliente); //Creamos el formulario para agregar items al formulario $css->CrearTabla(); $css->FilaTabla(16); print "<td>"; $css->CreaBotonDesplegable("AgregarItemOC", "Agregar un Item a Esta OC"); print "</td>"; $css->CierraFilaTabla(); $css->CerrarTabla(); /////////////////Cuadro de dialogo de Clientes create $css->CrearCuadroDeDialogo("AgregarItemOC", "Agregar un Item a Esta OC"); $css->CrearForm2("FrmAgregaItemsOC", $myPage, "post", "_self"); $css->CrearInputText("TxtIdOT", "hidden", "", $idOT, "", "", "", "", "", "", "", ""); $VarSelect["Ancho"] = 200; $VarSelect["PlaceHolder"] = "Seleccione un Producto"; $css->CrearSelectChosen("CmbProducto", $VarSelect); $Consulta = $obVenta->ConsultarTabla("productosventa", ""); $css->CrearOptionSelect("NO", "SELECCIONE EL PRODUCTO A AGREGAR", 0); while ($DatosProducto = $obVenta->FetchArray($Consulta)) { $css->CrearOptionSelect($DatosProducto[0], $DatosProducto["Nombre"] . " " . $DatosProducto["Referencia"], 0); } $css->CerrarSelect(); print "<br><br>"; $css->CrearInputNumber("TxtCantidad", "number", "Cantidad:", 1, "Valor Unitario", "black", "", "", 200, 30, 0, 1, 0, 100000000, "any"); print "<br><br>"; $css->CrearInputNumber("TxtValorUnitario", "number", "Valor Unitario:", "", "Valor Unitario", "black", "", "", 200, 30, 0, 1, 0, 100000000, "any");
while ($DatosVentasActivas = mysql_fetch_array($pa)) { $label = $DatosVentasActivas["idVestasActivas"] . " " . $DatosVentasActivas["Nombre"]; if ($idPreventa == $DatosVentasActivas["idVestasActivas"]) { $Sel = 1; } else { $Sel = 0; } $css->CrearOptionSelect($DatosVentasActivas["idVestasActivas"], $label, $Sel); } $css->CerrarSelect(); $css->CrearInputText("TxtBuscarCliente", "text", "Buscar Cliente: ", "", "Digite un Dato del cliente", "white", "", "", 200, 30, 0, 0); $css->CerrarForm(); $css->CreaBotonDesplegable("Clientes", "Crear Cliente"); $css->CabeceraFin(); /////////////////Cuadro de dialogo de separados $css->CrearCuadroDeDialogo("cant2", "Crear Separado"); $DatosPreventa = $obVenta->DevuelveValores("vestasactivas", "idVestasActivas", $idPreventa); if ($DatosPreventa["Clientes_idClientes"] > 1) { $css->CrearForm("FrmCrearSeparado", $myPage, "post", "_self"); $css->CrearInputText("CmbPreVentaAct", "hidden", "", $idPreventa, "", "", "", "", 0, 0, 0, 0); $css->CrearInputText("TxtAbono", "number", "Abono:<br>", "", "Digite el Abono del cliente", "black", "", "", 200, 30, 0, 0); $css->CrearBoton("BtnCrearSeparado", "Crear Separado"); $css->CerrarForm(); } else { print "No es posible crear un separado sin asignar un cliente"; } $css->CerrarCuadroDeDialogo(); /////////////////Cuadro de dialogo de Clientes create $css->CrearCuadroDeDialogo("Clientes", "Crear Crear Cliente"); $css->CrearForm("FrmCrearCliente", $myPage, "post", "_self"); $css->CrearSelect("CmbTipoDocumento", "Oculta()");
<body align="center"> <?php $obVenta = new ProcesoVenta($idUser); $myPage = "Cotizaciones.php"; $css->CabeceraIni("SoftConTech Cotizaciones"); $DatosUsuarios = $obVenta->DevuelveValores("usuarios", "idUsuarios", $idUser); $css->CrearForm("FrmBuscarCliente", $myPage, "post", "_self"); $css->CrearInputText("TxtBuscarCliente", "text", "Buscar Cliente: ", "", "Digite un Dato del cliente", "white", "", "", 200, 30, 0, 0); $css->CrearBoton("BtnBuscarCliente", "Buscar"); $css->CerrarForm(); $css->CreaBotonDesplegable("DialCliente", "Crear Cliente"); $css->CabeceraFin(); /////////////////Cuadro de dialogo de Clientes create $css->CrearCuadroDeDialogo("DialCliente", "Crear Crear Cliente"); $css->CrearForm("FrmCrearCliente", $myPage, "post", "_self"); $css->CrearSelect("CmbTipoDocumento", "Oculta()"); $css->CrearOptionSelect('13', 'Cedula', 1); $css->CrearOptionSelect('31', 'NIT', 0); $css->CerrarSelect(); //$css->CrearInputText("CmbPreVentaAct","hidden","",$idPreventa,"","","","",0,0,0,0); $css->CrearInputText("TxtNIT", "number", "", "", "Identificacion", "black", "", "", 200, 30, 0, 1); $css->CrearInputText("TxtPA", "text", "", "", "Primer Apellido", "black", "onkeyup", "CreaRazonSocial()", 200, 30, 0, 0); $css->CrearInputText("TxtSA", "text", "", "", "Segundo Apellido", "black", "onkeyup", "CreaRazonSocial()", 200, 30, 0, 0); $css->CrearInputText("TxtPN", "text", "", "", "Primer Nombre", "black", "onkeyup", "CreaRazonSocial()", 200, 30, 0, 0); $css->CrearInputText("TxtON", "text", "", "", "Otros Nombres", "black", "onkeyup", "CreaRazonSocial()", 200, 30, 0, 0); $css->CrearInputText("TxtRazonSocial", "text", "", "", "Razon Social", "black", "", "", 200, 30, 0, 1); $css->CrearInputText("TxtDireccion", "text", "", "", "Direccion", "black", "", "", 200, 30, 0, 1); $css->CrearInputText("TxtTelefono", "text", "", "", "Telefono", "black", "", "", 200, 30, 0, 1); $css->CrearInputText("TxtEmail", "text", "", "", "Email", "black", "", "", 200, 30, 0, 1);