예제 #1
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);
            }
        }