コード例 #1
0
ファイル: FrmFiltro.cs プロジェクト: GabrielPSBrenner/SICAP
        private void CboTipoPonto_SelectedIndexChanged(object sender, EventArgs e)
        {
            CFiltroClient oProxy = new CFiltroClient();

            PONTOCONTROLE[] oListaPonto;
            if (CboTipoPonto.SelectedIndex > 0)
            {
                char Tipo;
                if (CboTipoPonto.SelectedIndex == 1)
                {
                    Tipo = char.Parse("E");
                }
                else
                {
                    Tipo = char.Parse("S");
                }
                oListaPonto = oProxy.ListarPontosControle(Tipo);
            }
            else
            {
                oListaPonto = oProxy.ListarTodosPontosControle();
            }
            PONTOCONTROLE oPonto = new PONTOCONTROLE();

            oPonto.PoNome = "TODOS OS PONTOS";

            List <PONTOCONTROLE> oLista = new List <PONTOCONTROLE>();

            oLista.Add(oPonto);

            for (int i = 0; i < oListaPonto.Length; i++)
            {
                oLista.Add(oListaPonto[i]);
            }
            CboPonto.DataSource    = oLista;
            CboPonto.DisplayMember = "PoNome";
            CboPonto.ValueMember   = "PoCodigo";
            oProxy.Close();
        }
コード例 #2
0
 public List <PONTOCONTROLE> ListarPontosControle(char Tipo)
 {
     return(PONTOCONTROLE.ListarPorTipo(Tipo));
 }
コード例 #3
0
 public List <PONTOCONTROLE> ListarTodosPontosControle()
 {
     return(PONTOCONTROLE.ListarTodos());
 }
コード例 #4
0
 public void Excluir(PONTOCONTROLE oPONTOCONTROLE)
 {
     PONTOCONTROLE.Excluir(oPONTOCONTROLE);
 }
コード例 #5
0
 public void Alterar(PONTOCONTROLE oPONTOCONTROLE)
 {
     PONTOCONTROLE.Alterar(oPONTOCONTROLE);
 }
コード例 #6
0
 public void Incluir(PONTOCONTROLE oPONTOCONTROLE)
 {
     PONTOCONTROLE.Incluir(oPONTOCONTROLE);
 }
コード例 #7
0
 public PONTOCONTROLE SelecionaPKPontoControle(int Codigo, string Tipo)
 {
     return(PONTOCONTROLE.SelecionaPK(Codigo, Tipo));
 }