コード例 #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            limpiar();

            da = new ClientesDA();

            List <Clientes> lista = da.ClientesFacturacion(txtRuc.Text);

            if (lista.Count >= 1)
            {
                foreach (var a in lista)
                {
                    lblRuc.Text      = a.ruc;
                    txtRazonSoc.Text = a.Nombre;
                }
            }
            else
            {
                MessageBox.Show("Clientes no encontrado en Tramrsa", "Mensaje");
            }
        }
コード例 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            limpiar();

            da = new ClientesDA();

            ShortName             = "";
            ParentBusinessPartner = "";
            RowStatus             = "S";
            EmailAddress          = "";
            IsCustomer            = "S";
            DocumentType          = "DCI";

            foreach (var a in da.ClientesFacturacion(""))
            {
                ERPCode             = a.ruc;
                DocumentNumber      = a.ruc;
                NameBusinessPartner = a.Nombre;

                invocarServicio();
            }

            MessageBox.Show("Clientes registrado con éxito", "Mensaje");
        }
コード例 #3
0
        public async Task <ActionResult <IEnumerable <Cliente> > > GetAsync()
        {
            ClientesDA clientes = new ClientesDA(Context);

            return(await clientes.GetClientesAsync().ConfigureAwait(false));
        }