コード例 #1
0
        public void loadProveedorCategoria()
        {
            object element = this._dataMapper.getElement(this._selectedProveedor);

            FixupCollection <DeleteCategoria> ic = new FixupCollection <DeleteCategoria>();

            if (element != null)
            {
                if (((List <CATEGORIA>)element).Count > 0)
                {
                    foreach (CATEGORIA item in (List <CATEGORIA>)element)
                    {
                        DeleteCategoria aux = new DeleteCategoria(item);
                        ic.Add(aux);
                    }
                }
            }
            this.Categoria = ic;
        }
コード例 #2
0
        public void loadItems(long unidProv)
        {
            CategoriaDataMapper cat = new CategoriaDataMapper();
            object element          = cat.getElementsByProveedor(new PROVEEDOR()
            {
                UNID_PROVEEDOR = unidProv
            });

            FixupCollection <DeleteCategoria> ic = new FixupCollection <DeleteCategoria>();

            if (element != null)
            {
                if (((List <CATEGORIA>)element).Count > 0)
                {
                    foreach (CATEGORIA item in (List <CATEGORIA>)element)
                    {
                        DeleteCategoria aux = new DeleteCategoria(item);
                        ic.Add(aux);
                    }
                }
            }
            this.Categoria = ic;
        }