Exemplo n.º 1
0
        public void Remover(int id)
        {
            Entities.tb_timecard remover = db.tb_timecard.First(t => t.id_timecard == id);

            db.tb_timecard.Remove(remover);
            db.SaveChanges();
        }
Exemplo n.º 2
0
        public void Alterar(Entities.tb_timecard timecard, Entities.tb_points points)
        {
            Entities.tb_timecard list  = db.tb_timecard.First(t => t.id_timecard == timecard.id_timecard);
            Entities.tb_points   list1 = db.tb_points.First(t => t.id_point == points.id_point);
            list.hr_fixedInput     = list.hr_fixedInput;
            list.hr_fixedOutput    = list.hr_fixedOutput;
            list.hr_fixedInput     = list.hr_fixedInput;
            list.hr_fixedIntOutput = list.hr_fixedIntOutput;
            list1.hr_input         = list1.hr_input;
            list1.hr_output        = list1.hr_output;
            list1.hr_intInput      = list1.hr_intInput;
            list1.hr_intOutput     = list1.hr_intOutput;
            list1.hr_toPay         = list1.hr_toPay;

            db.SaveChanges();
        }
Exemplo n.º 3
0
        public void Inserir(Entities.tb_timecard timecard)
        {
            db.tb_timecard.Add(timecard);

            db.SaveChanges();
        }