$pro = $producto->mostrarTodoRegistro("", 1, "nombre,codigo,unidad");
$pro = $producto->mostrarTodoRegistro("codproducto=" . $dat['codproducto']);
$pro = array_shift($pro);
include_once "../../class/productomateriaprima.php";
$productomateriaprima = new productomateriaprima();
include_once "../../class/productoetapa.php";
$productoetapa = new productoetapa();
include_once "../../class/pedidoetapa.php";
$pedidoetapa = new pedidoetapa();
include_once "../../class/pedidoobservacion.php";
$pedidoobservacion = new pedidoobservacion();
include_once "../../class/etapa.php";
$etapa = new etapa();
$eta = $etapa->mostrarTodoRegistro("", 1, "nombre");
include_once "../../class/materiaprima.php";
$materiaprima = new materiaprima();
$mat = $materiaprima->mostrarTodoRegistro("", 1, "nombre");
$titulo = "Ver Control de Producción";
$folder = "../../";
include_once $folder . "cabecerahtml.php";
?>

<?php 
include_once $folder . "cabecera.php";
?>
<div class="row-fluid">
    <div class="span12">
        <div class="widgetbox box-inverse">
            <h4 class="widgettitle">Registro </h4>
            <div class="widgetcontent wc1">
                <form id="formulario" method="post" action="actualizar.php">
Example #2
0
<?php

include_once "../../login/check.php";
include_once "../../class/producto.php";
$producto = new producto();
$pro = $producto->mostrarTodoRegistro("", 1, "nombre,codigo,unidad");
include_once "../../class/etapa.php";
$etapa = new etapa();
$eta = $etapa->mostrarTodoRegistro("", 1, "nombre");
include_once "../../class/materiaprima.php";
$materiaprima = new materiaprima();
$mat = $materiaprima->mostrarTodoRegistro("", 1, "nombre");
$titulo = "Nuevo Pedido";
$folder = "../../";
include_once $folder . "cabecerahtml.php";
?>
<script language="javascript">
$(document).on("ready",function(){
    $("#agregarproducto").click(function(e) {
        e.preventDefault();
        
        var codproducto=$("[name=codproducto]").val();
        var cantidadproducto=$("#cantidadproducto").val();
        $.post("agregarproducto.php",{"codproducto":codproducto,"cantidad":cantidadproducto},function(){
            listarproductos();    
        });
    });
    $("#borrartodo").click(function(e) {
        e.preventDefault();
        $.post("borrartodo.php",{},function(){
            listarproductos();    
<?php

include_once "../../class/productomateriaprima.php";
$productomateriaprima = new productomateriaprima();
extract($_POST);
$dat = $productomateriaprima->mostrarTodoRegistro(" codproducto LIKE '{$codproducto}'", 1, "");
include_once "../../class/materiaprima.php";
$materiaprima = new materiaprima();
?>
<table class="table table-bordered table-striped table-hover">
<thead>
<tr><th width="50">Nº</th><th>Código</th><th>Nombre</th><th>Cantidad</th><th>Unidad</th></tr>
</thead>
<?php 
foreach ($dat as $d) {
    $i++;
    $et = $materiaprima->mostrarTodoRegistro("codmateriaprima=" . $d['codmateriaprima']);
    $et = array_shift($et);
    ?>
<tr>
    <td class="der"><?php 
    echo $i;
    ?>
</td>
    <td><?php 
    echo $et['codigo'];
    ?>
</td>
    <td><?php 
    echo $et['nombre'];
    ?>
Example #4
0
<?php

include_once "../../login/check.php";
$folder = "../../";
$cod = $_POST['cod'];
include_once "../../class/materiaprima.php";
$materiaprima = new materiaprima();
$dat = $materiaprima->eliminarRegistro("codmateriaprima=" . $cod);
Example #5
0
<?php

include_once "../../class/materiaprima.php";
$materiaprima = new materiaprima();
extract($_POST);
$dat = $materiaprima->mostrarTodoRegistro(" codigo LIKE '{$codigo}%' and nombre LIKE '{$nombre}%'", 1, "nombre");
?>
<table class="table table-bordered table-striped table-hover">
<thead>
<tr><th width="50">Nº</th><th>Código</th><th>Nombre</th><th>Unidad</th><th>Descripción</th></tr>
</thead>
<?php 
foreach ($dat as $d) {
    $i++;
    ?>
<tr>
    <td class="der"><?php 
    echo $i;
    ?>
</td>
    <td><?php 
    echo $d['codigo'];
    ?>
</td>
    <td><?php 
    echo $d['nombre'];
    ?>
</td>
    <td><?php 
    echo $d['unidad'];
    ?>
Example #6
0
<?php

include_once "../../login/check.php";
extract($_POST);
include_once "../../class/materiaprima.php";
$materiaprima = new materiaprima();
$valores = array("codigo" => "'{$codigo}'", "nombre" => "'{$nombre}'", "unidad" => "'{$unidad}'", "descripcion" => "'{$descripcion}'");
$materiaprima->insertarRegistro($valores);
$folder = "../../";
include_once $folder . "cabecerahtml.php";
include_once $folder . "cabecera.php";
?>
<div class="widgetbox box-inverse">
    <h4 class="widgettitle">Mensaje de Confirmación</h4>
        <div class="widgetcontent wc1">
            <h5>Sus Datos se Registraron Correctamente</h5>
            <br>
            <a href="./" class="btn btn-primary">NUEVO</a>
            <a href="listar.php" class="btn btn-default">LISTAR</a>
        </div>
</div>
<?php 
include_once $folder . "pie.php";
Example #7
0
<?php

extract($_POST);
include_once "../../class/inventario.php";
$inventario = new inventario();
include_once "../../class/materiaprima.php";
$materiaprima = new materiaprima();
$fecha = $fecha != "" ? $fecha : '%';
$inv = $inventario->mostrarTodoRegistro(" codmateriaprima LIKE '{$codmateriaprima}' and fecha LIKE '{$fecha}'", 1, "");
?>
<table class="table table-bordered table-striped table-hover">
<thead>
<tr><th width="50">Nº</th><th>Código</th><th>Nombre</th><th>Unidad</th><th>Cantidad Recargada</th><th>Cantidad en Stock</th><th>Fecha de Recarga</th></tr>
</thead>
<?php 
foreach ($inv as $in) {
    $i++;
    $cmp = $materiaprima->mostrarTodoRegistro(" codmateriaprima=" . $in['codmateriaprima'], 1, "nombre");
    $cmp = array_shift($cmp);
    ?>
<tr>
    <td class="der"><?php 
    echo $i;
    ?>
</td>
    <td><?php 
    echo $cmp['codigo'];
    ?>
</td>
    <td><?php 
    echo $cmp['nombre'];
<?php

include_once "../../class/pedidotemporal.php";
$pedidotemporal = new pedidotemporal();
extract($_POST);
$dat = $pedidotemporal->mostrarTodoRegistro("", 1, "");
include_once "../../class/producto.php";
$producto = new producto();
include_once "../../class/materiaprima.php";
$materiaprima = new materiaprima();
include_once "../../class/productomateriaprima.php";
$productomateriaprima = new productomateriaprima();
include_once "../../class/inventario.php";
$inventario = new inventario();
?>
<table class="table table-bordered table-striped table-hover">
<thead>
<tr><th width="15">Nº</th><th width="50">Código</th><th>Producto</th><th width="25">Cant.</th><th width="50">Unidad</th><th width="50">Tiempo Produc</th><th colspan="4">Materia Prima</th></tr>
</thead>
<?php 
$totales = array();
foreach ($dat as $d) {
    $i++;
    $pro = $producto->mostrarTodoRegistro("codproducto=" . $d['codproducto']);
    $pro = array_shift($pro);
    $promat = $productomateriaprima->mostrarTodoRegistro("codproducto=" . $d['codproducto']);
    ?>
<tr class="default">
    <td class="der"><?php 
    echo $i;
    ?>
Example #9
0
<?php

include_once "../../login/check.php";
$cod = $_GET['cod'];
include_once "../../class/materiaprima.php";
$materiaprima = new materiaprima();
$dat = $materiaprima->mostrarTodoRegistro(" codmateriaprima='{$cod}'", 1, "");
$dat = array_shift($dat);
$titulo = "Modificar Materia Prima";
$folder = "../../";
include_once $folder . "cabecerahtml.php";
?>
<script language="javascript">
$(document).on("ready",function(){
    $("#unidad").keypress(function (key) {
            window.console.log(key.charCode)
            if ((key.charCode < 97 || key.charCode > 122)//letras mayusculas
                && (key.charCode < 65 || key.charCode > 90) //letras minusculas
                && (key.charCode != 45) //retroceso
                && (key.charCode != 241) //ñ
                 && (key.charCode != 209) //Ñ
                 && (key.charCode != 32) //espacio
                 && (key.charCode != 225) //á
                 && (key.charCode != 233) //é
                 && (key.charCode != 237) //í
                 && (key.charCode != 243) //ó
                 && (key.charCode != 250) //ú
                 && (key.charCode != 193) //Á
                 && (key.charCode != 201) //É
                 && (key.charCode != 205) //Í
                 && (key.charCode != 211) //Ó
Example #10
0
<?php

include_once "../../login/check.php";
extract($_POST);
include_once "../../class/materiaprima.php";
$materiaprima = new materiaprima();
$valores = array("codigo" => "'{$codigo}'", "nombre" => "'{$nombre}'", "unidad" => "'{$unidad}'", "descripcion" => "'{$descripcion}'");
$materiaprima->actualizarRegistro($valores, "codmateriaprima=" . $codmateriaprima);
$folder = "../../";
include_once $folder . "cabecerahtml.php";
include_once $folder . "cabecera.php";
?>
<div class="widgetbox box-inverse">
    <h4 class="widgettitle">Mensaje de Confirmación</h4>
        <div class="widgetcontent wc1">
            <h5>Sus Datos se Registraron Correctamente</h5>
            <br>
            <a href="./" class="btn btn-primary">NUEVO</a>
            <a href="listar.php" class="btn btn-default">LISTAR</a>
        </div>
</div>
<?php 
include_once $folder . "pie.php";