private void CargaVendorClassificationModificar()
        {
            List <VendorClassificationBE> lstTmpVendorClassification = null;

            lstTmpVendorClassification = new VendorClassificationBL().ListaTodosActivo(IdVendor);

            foreach (VendorClassificationBE item in lstTmpVendorClassification)
            {
                CVendorClassification objE_VendorClassification = new CVendorClassification();
                objE_VendorClassification.IdCompany = item.IdCompany;
                objE_VendorClassification.IdVendor  = item.IdVendor;
                objE_VendorClassification.IdVendorClassification = item.IdVendorClassification;
                objE_VendorClassification.IdClassification       = item.IdClassification;
                objE_VendorClassification.NameClassification     = item.NameClassification;
                objE_VendorClassification.FlagActive             = item.FlagActive;
                objE_VendorClassification.TipoOper = item.TipoOper;
                mListaVendorClassificationOrigen.Add(objE_VendorClassification);
            }

            bsListadoVendorClassification.DataSource = mListaVendorClassificationOrigen;
            gcVendorClassification.DataSource        = bsListadoVendorClassification;
            gcVendorClassification.RefreshDataSource();
        }
        private void CargaVendorClassificationNuevo()
        {
            List <ClassificationBE> lstClassification = null;

            lstClassification = new ClassificationBL().ListaTodosActivo(Parametros.intEmpresaId);

            foreach (ClassificationBE item in lstClassification)
            {
                CVendorClassification objE_VendorClassification = new CVendorClassification();
                objE_VendorClassification.IdCompany = item.IdCompany;
                objE_VendorClassification.IdVendor  = 0;
                objE_VendorClassification.IdVendorClassification = 0;
                objE_VendorClassification.IdClassification       = item.IdClassification;
                objE_VendorClassification.NameClassification     = item.NameClassification;
                objE_VendorClassification.FlagActive             = false;
                objE_VendorClassification.TipoOper = (int)Operacion.Consultar;
                mListaVendorClassificationOrigen.Add(objE_VendorClassification);
            }

            bsListadoVendorClassification.DataSource = mListaVendorClassificationOrigen;
            gcVendorClassification.DataSource        = bsListadoVendorClassification;
            gcVendorClassification.RefreshDataSource();
        }