Example #1
0
 public static List <string> Cliente_mercanciaGetNegocios()
 {
     try
     {
         Cliente_mercanciaMng oMng = new Cliente_mercanciaMng();
         return(oMng.getNegocioRecurrente());
     }
     catch
     {
         throw;
     }
 }
Example #2
0
 public static void Cliente_mercanciaUdt(Cliente_mercancia o)
 {
     try
     {
         Cliente_mercanciaMng oMng = new Cliente_mercanciaMng();
         oMng.O_Cliente_mercancia = o;
         oMng.udt();
     }
     catch
     {
         throw;
     }
 }
Example #3
0
 public static Cliente_mercancia cliente_mercanciaFindByCode(Cliente_mercancia o)
 {
     try
     {
         Cliente_mercanciaMng oMng = new Cliente_mercanciaMng()
         {
             O_Cliente_mercancia = o
         };
         oMng.selByCode();
     }
     catch
     {
         throw;
     }
     return(o);
 }
Example #4
0
        public static Cliente_mercancia Cliente_mercanciaGet(int Id)
        {
            Cliente_mercancia o = new Cliente_mercancia();

            try
            {
                o.Id = Id;
                Cliente_mercanciaMng oMng = new Cliente_mercanciaMng();
                oMng.O_Cliente_mercancia = o;
                oMng.selById();
            }
            catch
            {
                throw;
            }
            return(o);
        }
Example #5
0
 public static void Cliente_mercanciaChangeStatus(Cliente_mercancia o, bool status)
 {
     try
     {
         Cliente_mercanciaMng oMng = new Cliente_mercanciaMng();
         oMng.O_Cliente_mercancia = o;
         if (status)
         {
             oMng.dlt();
         }
         else
         {
             oMng.reactive();
         }
     }
     catch
     {
         throw;
     }
 }
Example #6
0
        public static List <Cliente_mercancia> Cliente_mercanciafillEvenInactive(int IdClienteGrupo, string findBy = "")
        {
            List <Cliente_mercancia> lst = new List <Cliente_mercancia>();

            try
            {
                Cliente_mercanciaMng oMng = new Cliente_mercanciaMng();
                Cliente_mercancia    o    = new Cliente_mercancia();
                o.Id_cliente_grupo = IdClienteGrupo;
                if (findBy.Length > 0)
                {
                    o.Codigo = findBy;
                }
                oMng.O_Cliente_mercancia = o;
                oMng.fillEvenInactive();
                lst = oMng.Lst;
            }
            catch
            {
                throw;
            }
            return(lst);
        }
Example #7
0
        public static List <Cliente_mercancia> Cliente_mercanciafillByCliente(int IdClienteGrupo, string codigo = "")
        {
            List <Cliente_mercancia> lst = new List <Cliente_mercancia>();

            try
            {
                Cliente_mercanciaMng oMng = new Cliente_mercanciaMng();
                Cliente_mercancia    o    = new Cliente_mercancia();
                o.Id_cliente_grupo = IdClienteGrupo;
                if (codigo.Length > 0)
                {
                    o.Codigo = codigo;
                }
                oMng.O_Cliente_mercancia = o;
                oMng.fillLstByCliente();
                lst = oMng.Lst;
            }
            catch
            {
                throw;
            }
            return(lst);
        }