Ejemplo n.º 1
0
        private void LoadCustomerAddresses()
        {
            //mobjCustomerAddressList = CustomerAddress.Search(mintCustomerNumber.ToString());
            mobjCustomerAddressList = CustomerAddress.Find(mintCustomerNumber.ToString());//Changed this implementation so this form will only display the addresses for the exact customer; search does a match...

            mintSelectedAddressIndex = -1;

            if (mobjCustomerAddressList.Count > 0)
            {
                //SelectCustomerAddress(0);
                SelectCustomerAddress(mobjOrder.SelectedAddressNo);//changed implementation to select address indicated as "ship to" on the order. added field "cust_seq" to property "SelectedAddressNo"
                grpAddress.Enabled = true;
            }
            else
            {
                MessageBox.Show("No addresses found for customer!", "No Addresses Found", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
                lblAddrCt.Text     = "";
                grpAddress.Enabled = false;
            }
        }