<div dir="ltr"><p class=""><span style="font-size:10pt;font-family:Arial">Hola Leo,</span><span style="font-size:10pt;font-family:Arial"><br>
<br>
<span style="background-repeat:initial initial">Buenos
días</span><br>
<span style="background-repeat:initial initial">Te
envío nuevamente la normalización con el cambio en los nombres de las tablas
para que quede más entendible. <br></span></span><span style="font-size:10pt;font-family:Arial">En
cuanto al funcionamiento que describís, esta diferencia no se realizaría desde
la codificación?, es decir, en un primer momento se registraría toda </span>la OT<span style="font-size:10pt;font-family:Arial"> en las tablas y después solo
se registrarían los cambios y el agregado de tareas para esta OT. Di vueltas y
vueltas, pero no pude encontrar lo que me falta hacer en la normalización.<br></span><span style="font-family:Arial;font-size:10pt">Mientras
tanto comencé a programar las partes que se gestionan como para ir adelantando.</span></p>

<p class=""><font face="Arial">Saludos
y gracias como siempre!!,</font><br><span style="font-family:Arial;font-size:10pt">Analía</span></p><div class="gmail_extra"><br><br><div class="gmail_quote">El 19 de julio de 2013 14:52, Leonardo Tadei - Pegasus Tech Supply <span dir="ltr"><<a href="mailto:leonardot@pegasusnet.com.ar" target="_blank">leonardot@pegasusnet.com.ar</a>></span> escribió:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hola Analía,<br>
<br>
El vie, 19-07-2013 a las 12:38 -0300, Analia Varela escribió:<br>
> Hola Leo,<br>
><br>
<div>> Buenos días<br>
> Te envío nuevamente la normalización, con algunas cosas que me<br>
> sugeriste incorporar, para no perder en pasado de los datos ante algún<br>
> cambio.<br>
> Igualmente continuo trabada en la parte de los detalles que me<br>
> explicaste en el día de ayer (perdon!!!). Porque sigo viendo que las<br>
> tablas de accesoriosTareas, maquinasTareas, repuestos y<br>
> tercerizaciones son como las tablas_detalle que charlábamos.<br>
<br>
</div>        Es correcto lo que decís: esas tablas son parte del detalle de la OT<br>
(aunque el nombre no lo sugiera :-( )<br>
<br>
        Lo que tenés que tener en claro es que tiene un funcionamiento distinto<br>
la "cosa" que es parte del sistema de el registro en la OT de una tarea<br>
realizada sobre es "cosa".<br>
<div><br>
> Quizás debería hacer esto, por ejemplo con los repuestos?:<br>
> Repuestos<br>
><br>
> DetalleRepuesto<br>
><br>
><br>
> id<br>
><br>
> id<br>
><br>
><br>
><br>
><br>
> nro_parte<br>
><br>
> id_repuesto<br>
><br>
><br>
><br>
><br>
> descripcion<br>
><br>
> fecha_registro<br>
><br>
><br>
> id_tiporepuesto<br>
> fecha_cambio<br>
><br>
><br>
><br>
><br>
> id_estadotarea<br>
> id_ordentrabajo<br>
> cantidad<br>
> nro_parte_repuesto<br>
><br>
><br>
><br>
<br>
</div>        No... porque el Repuesto no se gestiona según tu SRS, entonces no tiene<br>
sentido guardarlo por separado de su entrada en la OT, que es lo que vos<br>
ponés como DetalleRepuesto (y le falta la descripción y el tipo.<br>
        Si tuvieras una gestión de Repuestos, estas dos tablas serían las<br>
correctas (con el agregado de descripción y tipo)<br>
<br>
        Te quedan dos tablas así con los Accesorios, que se gestionan por<br>
separado, y luego aparecen en una OT.<br>
<br>
<br>
> Continuo pensando...<br>
<br>
        Venís bien!<br>
<div><div><br>
<br>
--<br>
Leonardo Tadei<br>
<a href="mailto:leonardot@pegasusnet.com.ar" target="_blank">leonardot@pegasusnet.com.ar</a><br>
Web: <a href="http://leonardo.tadei.com.ar" target="_blank">http://leonardo.tadei.com.ar</a><br>
Firma pública: <a href="http://www.pegasusnet.com.ar/LeonardoTadei-public.key" target="_blank">http://www.pegasusnet.com.ar/LeonardoTadei-public.key</a><br>
<br>
_______________________________________________<br>
Php-avanzado mailing list<br>
<a href="mailto:Php-avanzado@pato2.fi.mdp.edu.ar" target="_blank">Php-avanzado@pato2.fi.mdp.edu.ar</a><br>
<a href="http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado" target="_blank">http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado</a><br>
</div></div></blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra" style="font-family:arial,sans-serif;font-size:13px">

<b><u>Normalización</u> v3</b></div><div class="gmail_extra" style="font-family:arial,sans-serif;font-size:13px"><br></div><div class="gmail_extra" style="font-family:arial,sans-serif;font-size:13px"><table border="0" cellpadding="0" cellspacing="0" width="669" style="border-collapse:collapse;width:503pt">

<colgroup><col width="129" style="width:97pt"><col width="64" style="width:48pt"><col width="134" style="width:101pt"><col width="64" style="width:48pt"><col width="108" style="width:81pt"><col width="64" style="width:48pt"><col width="106" style="width:80pt"></colgroup><tbody><tr height="17" style="min-height:12.75pt">

<td height="17" width="129" style="min-height:12.75pt;width:97pt"><b>Responsables</b></td><td width="64" style="width:48pt"></td><td width="134" style="width:101pt"><b>Accesos</b></td><td width="64" style="width:48pt"></td>

<td width="108" style="width:81pt"><b>Nivel</b></td><td width="64" style="width:48pt"></td><td width="106" style="width:80pt"></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">

id</td><td></td><td width="134" style="width:101pt">id</td><td></td><td width="108" style="width:81pt">id</td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">nombre</td>

<td></td><td>id_responsable</td><td></td><td width="108" style="width:81pt">descripcion</td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">apellido</td><td></td>

<td>id_nivel</td><td></td><td width="108" style="width:81pt"></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">dni</td><td></td><td width="134" style="width:101pt">

usuario</td><td></td><td width="108" style="width:81pt"></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt"></td><td></td><td width="134" style="width:101pt">
clave</td>
<td></td><td width="108" style="width:81pt"></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt"></td><td></td><td width="134" style="width:101pt"></td><td></td>

<td width="108" style="width:81pt"></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt"></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt">

<td height="17" style="min-height:12.75pt"><b>CentroCostos</b></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">id</td><td>

</td><td width="134" style="width:101pt"></td><td></td><td width="108" style="width:81pt"></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">codigo</td><td></td>

<td width="134" style="width:101pt"></td><td></td><td width="108" style="width:81pt"></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">descripcion</td><td></td>

<td width="134" style="width:101pt"></td><td></td><td width="108" style="width:81pt"></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt"></td><td></td><td width="134" style="width:101pt">

</td><td></td><td width="108" style="width:81pt"></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt"></td><td></td><td width="134" style="width:101pt"></td><td>

</td><td width="108" style="width:81pt"></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt"><b>EstadosEquipos</b></td><td></td><td><b>EstadosTareas</b></td><td>

</td><td><b>EstadosOrdenes</b></td><td></td><td><b>EstadosPedidos</b></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">id</td><td></td><td>id</td><td></td><td>id</td><td></td>

<td>id</td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">nombre</td><td></td><td>nombre</td><td></td><td>nombre</td><td></td><td>nombre</td></tr><tr height="17" style="min-height:12.75pt">

<td height="17" style="min-height:12.75pt"></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt"></td><td></td><td></td><td>
</td>
<td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt"><b>MaquinasViales</b></td><td></td><td><b>DetallesTareasMaquinas</b></td><td></td><td><b>TiposMaquinas</b></td>

<td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">id</td><td></td><td>id</td><td></td><td>id</td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt">

<td height="17" style="min-height:12.75pt">nro_inventario</td><td></td><td>descripcion</td><td></td><td>codigo</td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">

codigo</td><td></td><td>fecha_registro</td><td></td><td>descripcion</td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">descripcion</td><td></td><td>fecha_cambio</td>

<td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">patente</td><td></td><td>id_maquinavial</td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt">

<td height="17" style="min-height:12.75pt">nro_chasis</td><td></td><td>codigo_maquinavial</td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">

hs_utilizacion</td><td></td><td>patente_maquinavial</td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">ult_servicio</td><td></td><td>chasis_maquinavial</td>

<td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">id_tipomaquina</td><td></td><td>id_estadotarea</td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt">

<td height="17" style="min-height:12.75pt">id_estadoequipo</td><td></td><td>id_ordentrabajo</td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">

</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt"></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt">

<td height="17" style="min-height:12.75pt"><b>Accesorios</b></td><td></td><td><b>DetallesTareasAccesorios</b></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">

id</td><td></td><td width="134" style="width:101pt">id</td><td></td><td width="108" style="width:81pt"></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">codigo</td>

<td></td><td width="134" style="width:101pt">descripcion</td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">descripcion</td><td></td><td width="134" style="width:101pt">

fecha_registro</td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">id_tipomaquina</td><td></td><td width="134" style="width:101pt">fecha_cambio</td>

<td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">id_estadoequipo</td><td></td><td width="134" style="width:101pt">id_estadotarea</td><td></td>
<td>
</td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt"></td><td></td><td width="134" style="width:101pt">id_accesorio</td><td></td><td></td><td></td><td></td></tr>

<tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt"></td><td></td><td width="134" style="width:101pt">codigo_accesorio</td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt">

<td height="17" style="min-height:12.75pt"></td><td></td><td>id_ordentrabajo</td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt"></td><td></td>

<td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt"></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt">

<td height="17" style="min-height:12.75pt"><b>DetallesRepuestos</b></td><td></td><td><b>TiposRepuestos</b></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">

id</td><td></td><td>id</td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">nro_parte</td><td></td><td>nombre</td><td></td><td></td><td></td><td>

</td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">descripcion</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">

cantidad</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">fecha_registro</td><td></td><td></td><td></td><td></td><td></td>

<td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">fecha_cambio</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">

id_tiporepuesto</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">id_estadopedido</td><td></td><td></td><td></td><td></td>

<td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">id_ordentrabajo</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt">

<td height="17" style="min-height:12.75pt"></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt"></td><td></td><td></td><td>
</td>
<td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt"><b>Proveedores</b></td><td></td><td><b>DetallesTercerizaciones</b></td><td></td><td></td><td></td><td>
</td>
</tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">id</td><td></td><td>id</td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">

nombre</td><td></td><td>servicio</td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">razon_social</td><td></td><td>fecha_registro</td><td></td>

<td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">contacto</td><td></td><td>fecha_cambio</td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt">

<td height="17" style="min-height:12.75pt">telefono</td><td></td><td>id_proveedor</td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">celular</td>

<td></td><td>nombre_proveedor</td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">mail</td><td></td><td>razon_proveedor</td><td></td><td></td>

<td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">mail_alt</td><td></td><td>id_estadopedido</td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt">

<td height="17" style="min-height:12.75pt"></td><td></td><td>id_ordentrabajo</td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt"></td><td></td>

<td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt"></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt">

<td height="17" style="min-height:12.75pt"><b>OrdenesTrabajo</b></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">id</td>

<td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">nro_orden</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt">

<td height="17" style="min-height:12.75pt">tiempo_trabajo</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">observaciones</td>

<td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">fecha_registro</td><td></td><td></td><td></td><td></td><td></td><td></td></tr>

<tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">fecha_cambio</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">

id_estadorden</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">id_responsable</td><td></td><td></td><td></td><td></td><td>

</td><td></td></tr><tr height="17" style="min-height:12.75pt"><td height="17" style="min-height:12.75pt">nombre_responsable</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr height="17" style="min-height:12.75pt">

<td height="17" style="min-height:12.75pt">apellido_responsable</td></tr></tbody></table></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>