public override void ModelToView() { IsPopulated = false; TradicaoDocumentalController = new DomainValueListBoxController(CurrentFRDBase, GisaDataSetHelper.GetInstance().TipoTradicaoDocumental, GisaDataSetHelper.GetInstance().SFRDTradicaoDocumental, "IDTipoTradicaoDocumental", chkLstTradicaoDocumental); TradicaoDocumentalController.ModelToView(); OrdenacaoController = new DomainValueListBoxController(CurrentFRDBase, GisaDataSetHelper.GetInstance().TipoOrdenacao, GisaDataSetHelper.GetInstance().SFRDOrdenacao, "IDTipoOrdenacao", chklstOrdenacao); OrdenacaoController.ModelToView(); IsPopulated = true; }
public override void ModelToView() { IsPopulated = true; byte[] Versao = null; string QueryFilter = "IDFRDBase=" + CurrentFRDBase.ID.ToString(); if (GisaDataSetHelper.GetInstance().SFRDCondicaoDeAcesso. Select(QueryFilter).Length != 0) { CurrentCondicaoDeAcesso = (GISADataset.SFRDCondicaoDeAcessoRow)(GisaDataSetHelper.GetInstance(). SFRDCondicaoDeAcesso.Select(QueryFilter)[0]); } else { CurrentCondicaoDeAcesso = GisaDataSetHelper.GetInstance().SFRDCondicaoDeAcesso. AddSFRDCondicaoDeAcessoRow(CurrentFRDBase, "", "", "", "", Versao, 0); } TecnicaRegistoController = new DomainValueListBoxController(CurrentFRDBase, GisaDataSetHelper.GetInstance().TipoTecnicasDeRegisto, GisaDataSetHelper.GetInstance().SFRDTecnicasDeRegisto, "IDTipoTecnicasDeRegisto", chkLstTecnicaRegisto); TecnicaRegistoController.ModelToView(); FormaSuporteAcondicionamentoController = new DomainValueListBoxController(CurrentFRDBase, GisaDataSetHelper.GetInstance().TipoFormaSuporteAcond, GisaDataSetHelper.GetInstance().SFRDFormaSuporteAcond, "IDTipoFormaSuporteAcond", chkLstFormaSuporteAcondicionamento); FormaSuporteAcondicionamentoController.ModelToView(); EstadoConservacaoController = new DomainValueListBoxController(CurrentFRDBase, GisaDataSetHelper.GetInstance().TipoEstadoDeConservacao, GisaDataSetHelper.GetInstance().SFRDEstadoDeConservacao, "IDTipoEstadoDeConservacao", chkLstEstadoConservacao, true); EstadoConservacaoController.ModelToView(); MaterialSuporteController = new DomainValueListBoxController(CurrentFRDBase, GisaDataSetHelper.GetInstance().TipoMaterialDeSuporte, GisaDataSetHelper.GetInstance().SFRDMaterialDeSuporte, "IDTipoMaterialDeSuporte", chkLstMaterialSuporte); MaterialSuporteController.ModelToView(); if (! CurrentCondicaoDeAcesso.IsAuxiliarDePesquisaNull()) { txtAuxiliaresPesquisa.Text = CurrentCondicaoDeAcesso.AuxiliarDePesquisa; } else { txtAuxiliaresPesquisa.Text = ""; } IsPopulated = true; }