示例#1
0
		public override void ModelToView()
		{
			IsPopulated = true;
			AttributableDateInicio.dtData.ValueYear = GisaDataSetHelper.GetDBNullableText(CurrentCadeRow, "InicioAno");
			AttributableDateInicio.dtData.ValueMonth = GisaDataSetHelper.GetDBNullableText(CurrentCadeRow, "InicioMes");
			AttributableDateInicio.dtData.ValueDay = GisaDataSetHelper.GetDBNullableText(CurrentCadeRow, "InicioDia");
			AttributableDateFim.dtData.ValueYear = GisaDataSetHelper.GetDBNullableText(CurrentCadeRow, "FimAno");
			AttributableDateFim.dtData.ValueMonth = GisaDataSetHelper.GetDBNullableText(CurrentCadeRow, "FimMes");
			AttributableDateFim.dtData.ValueDay = GisaDataSetHelper.GetDBNullableText(CurrentCadeRow, "FimDia");

			if (! (CurrentCadeRow.IsDescDatasExistenciaNull()))
			{
				txtDataExistencia.Text = CurrentCadeRow.DescDatasExistencia;
			}
			else
			{
				txtDataExistencia.Text = "";
			}

			AttributableDateInicio.chkAtribuida.Checked = CurrentCadeRow.InicioAtribuida;
			AttributableDateFim.chkAtribuida.Checked = CurrentCadeRow.FimAtribuida;

			if (! (CurrentControloAut.IsDescHistoriaNull()))
			{
				txtHistoria.Text = CurrentControloAut.DescHistoria;
			}
			else
			{
				txtHistoria.Text = "";
			}

			if (! (CurrentControloAut.IsDescZonaGeograficaNull()))
			{
				txtZonaGeografica.Text = CurrentControloAut.DescZonaGeografica;
			}
			else
			{
				txtZonaGeografica.Text = "";
			}

			if (! (CurrentControloAut.IsDescEstatutoLegalNull()))
			{
				txtEstatutoLegal.Text = CurrentControloAut.DescEstatutoLegal;
			}
			else
			{
				txtEstatutoLegal.Text = "";
			}

			if (! (CurrentControloAut.IsDescOcupacoesActividadesNull()))
			{
				txtFuncoesOcupacoesActividades.Text = CurrentControloAut.DescOcupacoesActividades;
			}
			else
			{
				txtFuncoesOcupacoesActividades.Text = "";
			}

			if (! (CurrentControloAut.IsDescEnquadramentoLegalNull()))
			{
				txtEnquadramentoLegal.Text = CurrentControloAut.DescEnquadramentoLegal;
			}
			else
			{
				txtEnquadramentoLegal.Text = "";
			}

			if (! (CurrentControloAut.IsDescEstruturaInternaNull()))
			{
				txtEstruturaInterna.Text = CurrentControloAut.DescEstruturaInterna;
			}
			else
			{
				txtEstruturaInterna.Text = "";
			}

			if (! (CurrentControloAut.IsDescContextoGeralNull()))
			{
				txtContextoGeral.Text = CurrentControloAut.DescContextoGeral;
			}
			else
			{
				txtContextoGeral.Text = "";
			}

			if (! (CurrentControloAut.IsDescOutraInformacaoRelevanteNull()))
			{
				txtOutraInformRelevante.Text = CurrentControloAut.DescOutraInformacaoRelevante;
			}
			else
			{
				txtOutraInformRelevante.Text = "";
			}
			IsPopulated = true;
		}