Пример #1
0
        protected void btnBuscar_Click(object sender, EventArgs e)
        {
            Codigo();
            string             Cnpj = txtBuscaCnpj.Text;
            mFornecedor        M    = new mFornecedor();
            List <pFornecedor> Lc   = M.SelFornecedor(Cnpj);

            if (Lc.Count == 0)
            {
                Msg("Fornecedor Inexistente !"); return;
            }
            else
            {
                txtRazaoSocial.Text   = Lc[0].Razao_Social;
                txtCnpj.Text          = Lc[0].Cnpj;
                txtTelefone.Text      = Lc[0].Telefone;
                txtEmail.Text         = Lc[0].Email;
                txtTipoPeca.Text      = Lc[0].Tipo_Peca;
                txtEstado.Text        = Lc[0].Estado;
                txtUf.Text            = Lc[0].Uf;
                txtLougradouro.Text   = Lc[0].Lougradouro;
                txtComplemento.Text   = Lc[0].Complemento;
                txtBairro.Text        = Lc[0].Bairro;
                txtCep.Text           = Lc[0].Cep;
                lblCodFornecedor.Text = Lc[0].Cod_Fornecedor.ToString();
            }
        }
Пример #2
0
        private void ListarGrid()
        {
            mFornecedor        M  = new mFornecedor();
            List <pFornecedor> Lc = M.SelFornecedor();

            gdvFornecedor.DataSource = Lc;
            gdvFornecedor.DataBind();
        }
Пример #3
0
 public void ListaFornecedor()
 {
     mFornecedor M = new mFornecedor();
     List<pFornecedor> Lc = M.SelFornecedor();
     ddlFornecedor.DataTextField = "Razao_Social";
     ddlFornecedor.DataValueField = "Cod_Fornecedor";
     ddlFornecedor.DataSource = Lc;
     ddlFornecedor.DataBind();
 }
Пример #4
0
        public void ListaFornecedor()
        {
            mFornecedor        M  = new mFornecedor();
            List <pFornecedor> Lc = M.SelFornecedor();

            ddlFornecedor.DataTextField  = "Razao_Social";
            ddlFornecedor.DataValueField = "Cod_Fornecedor";
            ddlFornecedor.DataSource     = Lc;
            ddlFornecedor.DataBind();
        }
Пример #5
0
        protected void btnBuscar_Click(object sender, EventArgs e)
        {
            Codigo();
            string Cnpj = txtBuscaCnpj.Text;
            mFornecedor M = new mFornecedor();
            List<pFornecedor> Lc = M.SelFornecedor(Cnpj);
            if (Lc.Count == 0) { Msg("Fornecedor Inexistente !"); return; } else {
            txtRazaoSocial.Text = Lc[0].Razao_Social;
            txtCnpj.Text = Lc[0].Cnpj;
            txtTelefone.Text = Lc[0].Telefone;
            txtEmail.Text = Lc[0].Email;
            txtTipoPeca.Text = Lc[0].Tipo_Peca;
            txtEstado.Text = Lc[0].Estado;
            txtUf.Text = Lc[0].Uf;
            txtLougradouro.Text = Lc[0].Lougradouro;
            txtComplemento.Text = Lc[0].Complemento;
            txtBairro.Text = Lc[0].Bairro;
            txtCep.Text = Lc[0].Cep;
            lblCodFornecedor.Text = Lc[0].Cod_Fornecedor.ToString();

            }
        }
Пример #6
0
 private void ListarGrid()
 {
     mFornecedor M = new mFornecedor();
     List<pFornecedor> Lc = M.SelFornecedor();
     gdvFornecedor.DataSource = Lc;
     gdvFornecedor.DataBind();
 }