Example #1
0
        public bool ExistsResultPendingSel(long idrecep_sample_detail_elem, long idbatch)
        {
            CRetestFactory faRetest  = new CRetestFactory();
            List <CRetest> lstRetest = faRetest.GetAll();

            return(lstRetest
                   .Exists(c => c.Idrecep_sample_detail_elem == idrecep_sample_detail_elem &&
                           (c.Origin_batch == idbatch || c.Destiny_batch == idbatch) && c.Status_retest == 0));
        }
Example #2
0
        public bool IsRetest(long idrecep_sample_detail_elem, long idbatch)
        {
            CRetestFactory faRetest  = new CRetestFactory();
            List <CRetest> lstRetest = faRetest.GetAll();

            if (lstRetest.Count(c => c.Origin_batch == idbatch && c.Destiny_batch == idbatch) > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }