// GET api/dummyordenrecepcionfoliosavisoentrada
        public IEnumerable <ListaCombos> Get(int proyectoid, string token)
        {
            List <ListaCombos> lstFolios = new List <ListaCombos>();
            ListaCombos        folios1   = new ListaCombos();
            ListaCombos        folios2   = new ListaCombos();
            ListaCombos        folios3   = new ListaCombos();

            if (proyectoid == 1)
            {
                folios1.id    = "1050";
                folios1.value = "1";
                lstFolios.Add(folios1);

                folios2.id    = "1051";
                folios2.value = "2";
                lstFolios.Add(folios2);

                folios3.id    = "1052";
                folios3.value = "3";
                lstFolios.Add(folios3);
            }
            else
            {
                folios1.id    = "1050";
                folios1.value = "1";
                lstFolios.Add(folios1);

                folios2.id    = "1051";
                folios2.value = "2";
                lstFolios.Add(folios2);
            }
            return(lstFolios.AsEnumerable());
        }
        // GET api/dummyordenrecepcionitemcode
        public IEnumerable <ListaCombos> Get(int folioAvisoEntradID, string token)
        {
            List <ListaCombos> lstFolios = new List <ListaCombos>();
            ListaCombos        folios1   = new ListaCombos();
            ListaCombos        folios2   = new ListaCombos();
            ListaCombos        folios3   = new ListaCombos();

            if (folioAvisoEntradID == 1050)
            {
                folios1.id    = "123";
                folios1.value = "IT123";
                lstFolios.Add(folios1);

                folios2.id    = "124";
                folios2.value = "IT124";
                lstFolios.Add(folios2);

                folios3.id    = "125";
                folios3.value = "IT125";
                lstFolios.Add(folios3);
            }
            else
            {
                folios1.id    = "123";
                folios1.value = "IT123";
                lstFolios.Add(folios1);

                folios2.id    = "124";
                folios2.value = "IT124";
                lstFolios.Add(folios2);
            }
            return(lstFolios.AsEnumerable());
        }
        // GET api/tipoincidencia/5
        public IEnumerable <ListaCombos> Get(int tipoIncidenciaID, string token)
        {
            List <ListaCombos> lstCombo = new List <ListaCombos>();
            ListaCombos        combo1   = new ListaCombos();
            ListaCombos        combo2   = new ListaCombos();
            ListaCombos        combo3   = new ListaCombos();

            if (tipoIncidenciaID == 1)
            {
                combo1.id    = "1";
                combo1.value = "Packing List 1";
                lstCombo.Add(combo1);

                combo2.id    = "2";
                combo2.value = "Packing List 2";
                lstCombo.Add(combo2);
            }

            if (tipoIncidenciaID == 2)
            {
                combo1.id    = "1";
                combo1.value = "Numero Unico 1";
                lstCombo.Add(combo1);

                combo2.id    = "2";
                combo2.value = "Numero Unico 2";
                lstCombo.Add(combo2);
            }

            if (tipoIncidenciaID == 3)
            {
                combo1.id    = "1";
                combo1.value = "ItemCode 1";
                lstCombo.Add(combo1);

                combo2.id    = "2";
                combo2.value = "ItemCode 2";
                lstCombo.Add(combo2);
            }

            return(lstCombo.AsEnumerable());
        }
Ejemplo n.º 4
0
        // GET api/entrega
        public IEnumerable <ListaCombos> Get(string token)
        {
            List <ListaCombos> lstCombos = new List <ListaCombos>();
            ListaCombos        combo1    = new ListaCombos();
            ListaCombos        combo2    = new ListaCombos();
            ListaCombos        combo3    = new ListaCombos();

            combo1.id    = "123";
            combo1.value = "123";
            lstCombos.Add(combo1);

            combo2.id    = "124";
            combo2.value = "124";
            lstCombos.Add(combo2);

            combo3.id    = "125";
            combo3.value = "125";
            lstCombos.Add(combo3);

            return(lstCombos.AsEnumerable());
        }