示例#1
0
        public void AddItem(Exame exame, string status, DateTime data)
        {
            ExamesDoAtendimento item = new ExamesDoAtendimento(this);
            item.DataExame = data;
            item.ObjExame = exame;
            item.Status = status;

            ListaExamesDoAtendimento.Add(item);
        }
示例#2
0
        public void Remove()
        {
            using (TransactionScope scopo = new TransactionScope())
            {
                //foreach (var item in listaExamesDoAtendimento)
                //{
                //    item.Remove();
                //}
                ExamesDoAtendimento.RemoveExamesDoAtendimento(this);
                new AtendimentoDAO().Apagar(this);

                scopo.Complete();
            }

        }