Пример #1
0
 public static void NomUdt(Nom o)
 {
     try
     {
         NomMng oMng = new NomMng();
         oMng.O_Nom = o;
         oMng.udt();
     }
     catch
     {
         throw;
     }
 }
Пример #2
0
 public static void NomAdd(Nom o)
 {
     try
     {
         NomMng oMng = new NomMng();
         oMng.O_Nom = o;
         oMng.add();
     }
     catch
     {
         throw;
     }
 }
Пример #3
0
        public static List <Nom> NomfillEvenInactive()
        {
            List <Nom> lst = new List <Nom>();

            try
            {
                NomMng oMng = new NomMng();
                oMng.fillEvenInactive();
                lst = oMng.Lst;
            }
            catch
            {
                throw;
            }
            return(lst);
        }
Пример #4
0
        public static Nom NomGet(int Id)
        {
            Nom o = new Nom();

            try
            {
                o.Id = Id;
                NomMng oMng = new NomMng();
                oMng.O_Nom = o;
                oMng.selById();
            }
            catch
            {
                throw;
            }
            return(o);
        }
Пример #5
0
 public static void NomChangeStatus(Nom o, bool status)
 {
     try
     {
         NomMng oMng = new NomMng();
         oMng.O_Nom = o;
         if (status)
         {
             oMng.dlt();
         }
         else
         {
             oMng.reactive();
         }
     }
     catch
     {
         throw;
     }
 }