Ejemplo n.º 1
0
        private void FindAll()
        {
            try
            {
                string vat = "";
                if (txtVAT.Text == "")
                    vat = "";
                else
                    vat = "%" + txtVAT.Text + "%";

                string name = "";
                if (txtName.Text == "")
                    name = "";
                else
                    name = "%" + txtName.Text + "%";

                BL.Internal.Customer blCustomer = new BL.Internal.Customer();
                CustomersMember = blCustomer.GetFilter(name, vat);

                this.gdcCustomer.DataSource = CustomersMember;
            }
            catch (System.Exception exception1)
            {
                System.Exception innerException = exception1;
                throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
            }
        }
Ejemplo n.º 2
0
        private void FindAll()
        {
            try
            {
                string vat = "";
                if (txtVAT.Text == "")
                {
                    vat = "";
                }
                else
                {
                    vat = "%" + txtVAT.Text + "%";
                }

                string name = "";
                if (txtName.Text == "")
                {
                    name = "";
                }
                else
                {
                    name = "%" + txtName.Text + "%";
                }

                BL.Internal.Customer blCustomer = new BL.Internal.Customer();
                CustomersMember = blCustomer.GetFilter(name, vat);

                this.gdcCustomer.DataSource = CustomersMember;
            }
            catch (System.Exception exception1)
            {
                System.Exception innerException = exception1;
                throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
            }
        }