public static void fillVigilanciaByBodega(DropDownList ddlVigilante, int id_bodega) { VigilanteMng oMng = new VigilanteMng() { O_Vigilante = new Vigilante() { Id_bodega = id_bodega } }; oMng.fillLstByBodega(); ddlVigilante.DataSource = oMng.Lst; ddlVigilante.DataTextField = "nombre"; ddlVigilante.DataValueField = "id"; ddlVigilante.DataBind(); }
private void fillVigilante(int IdBodega) { try { VigilanteMng oVMng = new VigilanteMng(); Vigilante oV = new Vigilante(); oV.Id_bodega = IdBodega; oVMng.O_Vigilante = oV; oVMng.fillLstByBodega(true); fillCatalog(oVMng.Lst); } catch (Exception e) { ((MstCasc)this.Master).setError = e.Message; } }