예제 #1
0
        public void SetSellerAddress(int ID)
        {
            SellerAddressBL sellerContactBL = new SellerAddressBL();

            table           = sellerContactBL.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();
        }
예제 #2
0
        public void SetSellerMaster(int ID)
        {
            SellerMasterBL sellerMasterBL = new SellerMasterBL();

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

            SellerContactBL seller = new SellerContactBL();

            dgvSellerContact.DataSource = seller.GetContactById((int)table.Rows[0]["ID"]);

            SellerAddressBL sellerAddress = new SellerAddressBL();

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