Ejemplo n.º 1
0
        public void eliminarDetalleReparo(int id)
        {
            drc = dm.Getdetalle_reparoCollection();
            detalle_reparo dr = drc.FindByid(id);

            dr.estado = false;
            dm.CommitAll();
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 public void modificarDetalleReparo()
 {
     drc = dm.Getdetalle_reparoCollection();
 }