예제 #1
0
        public void VaciarReporteOrden(EntityConnectionStringBuilder connection, ReporteOrden um)
        {
            var context = new samEntities(connection.ToString());

            context.DELETE_reportes_ordenes_MDL(um.FOLIO_SAM,
                                                um.PPLANT);
        }
예제 #2
0
        public void ActualizaReporteOrden(EntityConnectionStringBuilder connection, ReporteOrden um)
        {
            var context = new samEntities(connection.ToString());

            if (um.AUFNR.Equals(""))
            {
                context.UPDATE_reporte_ordenes_reportes_MDL(um.FOLIO_SAM,
                                                            um.PROCESADO,
                                                            um.ERROR);
            }
            else
            {
                context.DELETE_reporte_ordenes_reporte_MDL(um.FOLIO_SAM);
            }
        }
예제 #3
0
        public void IngresarReporteOrden(EntityConnectionStringBuilder connection, ReporteOrden av)
        {
            var context = new samEntities(connection.ToString());

            context.reportes_ordenes_MDL(av.FOLIO_SAM,
                                         av.AUFNR,
                                         av.FUNC_LOC,
                                         av.UZEIT,
                                         av.DATUM,
                                         av.TABIX,
                                         av.PPLANT,
                                         av.ORDTYPE,
                                         av.MNWKCTR,
                                         av.SHORTTXT,
                                         av.EQUIP,
                                         av.RECIBIDO,
                                         av.PROCESADO,
                                         av.ERROR);
        }