コード例 #1
0
        void GetRegistroAndamento(Processo ProcessoAtivo, TextControl txtAtendimentosRealizados)
        {
            txtAtendimentosRealizados.Text = "";
            ProcessoAtivo.Recortes.OrderByDescending((re) => re.DataInclusao).ToList().ForEach((re) =>
            {
                if (re.DataInclusao.HasValue)
                {
                    txtAtendimentosRealizados.Select(txtAtendimentosRealizados.Text.Length - 1, 1);
                    string append = re.DataInclusao.Value.ToString("dd/MM/yyyy hh:mm:ss") + " - " + re.UsuarioInclusao.Nome;

                    txtAtendimentosRealizados.Selection.Load(String.Concat("<p style='color:midnightblue;'>", append, "</p>"), StringStreamType.HTMLFormat);
                    txtAtendimentosRealizados.Select(txtAtendimentosRealizados.Text.Length - 1, 1);

                    append = re.TextoRecorte;
                    txtAtendimentosRealizados.Selection.Load(append, StringStreamType.HTMLFormat);
                    txtAtendimentosRealizados.Select(txtAtendimentosRealizados.Text.Length - 1, 1);
                }
            });
        }
コード例 #2
0
 protected void CarregarObservacoes(TextControl observacao)
 {
     observacao.Text = String.Empty;
     if (ProcessoAtivo.Observacao == null) return;
     observacao.Select(observacao.Text.Length - 1, 1);
     observacao.Selection.Load(ProcessoAtivo.Observacao, StringStreamType.HTMLFormat);
 }
コード例 #3
0
 protected void CarregarObjetivo(Processo ProcessoAtivo, TextControl objetivo)
 {
     if (ProcessoAtivo.Objetivo == null) return;
     objetivo.Text = String.Empty;
     objetivo.Select(objetivo.Text.Length - 1, 1);
     objetivo.Selection.Load(ProcessoAtivo.Objetivo, StringStreamType.HTMLFormat);
 }
コード例 #4
0
 protected void CarregarAndamento(TextControl txtAtendimento)
 {
     txtAtendimento.Text = String.Empty;
     if (ClienteAtivo.Atendimento == null) return;
     txtAtendimento.Select(txtAtendimento.Text.Length - 1, 1);
     txtAtendimento.Selection.Load(ClienteAtivo.Atendimento, StringStreamType.HTMLFormat);
 }