public void eliminarDetalleReparo(int id) { drc = dm.Getdetalle_reparoCollection(); detalle_reparo dr = drc.FindByid(id); dr.estado = false; dm.CommitAll(); }
public void insertarDetalleReparo(string id_maq, int id_user) { drc = dm.Getdetalle_reparoCollection(); List <detalle_reparo> lp = drc.Cast <detalle_reparo>().ToList(); int id; if (lp.Count == 0) { id = 1; } else { id = lp.Last().id + 1; } dm.Newdetalle_reparo(id_maq, DateTime.Now, id, id_user, true); dm.CommitAll(); }
public void modificarDetalleReparo() { drc = dm.Getdetalle_reparoCollection(); }