Exemplo n.º 1
0
 public static int ComparaDupaNume(BEtape xElemLista1, BEtape xElemLista2)
 {
     if (xElemLista1 == null)
     {
         if (xElemLista2 == null)
         {
             return(0);
         }
         else
         {
             return(-1);
         }
     }
     else
     {
         if (xElemLista2 == null)
         {
             return(1);
         }
         else
         {
             return(xElemLista1.Denumire.CompareTo(xElemLista2.Denumire));
         }
     }
 }
Exemplo n.º 2
0
        public static BEtape GetEtapaById(int pIdEtapa, CDefinitiiComune.EnumStare pStare, IDbTransaction pTranzactie)
        {
            BEtape lstDEtape = null;

            using (DataSet ds = DEtape.GetById(pIdEtapa, pTranzactie))
            {
                foreach (DataRow dr in ds.Tables[0].Rows)
                {
                    lstDEtape = new BEtape(dr);
                }
            }
            return(lstDEtape);
        }