Ejemplo n.º 1
0
        public void SetBuyerAddress(int ID)
        {
            BuyerAddressBL buyerAddressBL = new BuyerAddressBL();

            table           = buyerAddressBL.GetAddressById(ID);
            txtAddress.Text = table.Rows[0]["Address"].ToString();
            txtCity.Text    = table.Rows[0]["City"].ToString();
            txtPhone.Text   = table.Rows[0]["Phone"].ToString();
            txtStreet.Text  = table.Rows[0]["Street"].ToString();
        }
Ejemplo n.º 2
0
        public void SetBuyerMaster(int ID)
        {
            BuyerMasterBL buyerMasterBL = new BuyerMasterBL();

            table = buyerMasterBL.GetBuyerByID(ID);
            txtCompanyName.Text = table.Rows[0]["CompanyName"].ToString();

            BuyerContactBL buyer = new BuyerContactBL();

            dgvBuyerContact.DataSource = buyer.GetContactById((int)table.Rows[0]["ID"]);

            BuyerAddressBL buyerAddress = new BuyerAddressBL();

            dgvBuyerAddress.DataSource = buyerAddress.GetAddressById((int)table.Rows[0]["ID"]);
        }