public void IngresaPedido_I(EntityConnectionStringBuilder connection, Pedidos_I pd) { if (pd.BEWTP == "E") { pd.BEWTP = "WE"; } else if (pd.BEWTP == "D") { pd.BEWTP = "Lerf"; } else if (pd.BEWTP != "D" || pd.BEWTP != "E") { pd.BEWTP = pd.BEWTP; } var context = new samEntities(connection.ToString()); context.InsertPedidosHistorial_MDL(pd.EBELN, pd.EBELP, pd.MATNR, pd.TXZ01, pd.MENGE, pd.MEINS, pd.BEWTP, pd.BWART, pd.MBLNR, pd.BUZEI, pd.CANTIADE, pd.UM_PED, pd.EINDT, pd.BUDAT, pd.FOLIO_SAM, pd.LVORM); }
public void BorrarPedido_I(EntityConnectionStringBuilder connection, Pedidos_I pedd) { var context = new samEntities(connection.ToString()); context.DeletePedidosHistorial_MDL(pedd.EBELN); }