public void VaciarSolpedRep(EntityConnectionStringBuilder connection, SolPed_Rep sol) { var context = new samEntities(connection.ToString()); context.DELETE_reportes_solped_MDL(sol.FOLIO_SAM, sol.PLANT); }
public void ActualizaRepSolPed(EntityConnectionStringBuilder connection, SolPed_Rep sol) { var context = new samEntities(connection.ToString()); if (sol.FOLIO_SAP.Equals("")) { context.UPDATE_reportes_solped_reportes_MDL(sol.FOLIO_SAM, sol.PROCESADO, sol.ERROR); } else { context.DELETE_reportes_solped_reporte_MDL(sol.FOLIO_SAM); } }
public void IngresaRepSolPed(EntityConnectionStringBuilder connection, SolPed_Rep s) { var context = new samEntities(connection.ToString()); context.reportes_solped_MDL(s.FOLIO_SAM, s.FOLIO_SAP, s.MATERIAL, s.DATUM, s.UZEIT, s.DOC_TYPE, s.TEXTO_CAB, s.SHORT_TEXT, s.QUANTITY, s.PLANT, s.PREQ_DATE, s.DELIV_DATE, s.PREIS, s.WAERS, s.RECIBIDO, s.PROCESADO, s.ERROR); }