private void btnBTNSearch_Click(object sender, System.EventArgs e) { _app.SetBusy("Searching for customers..."); _customers = new ArrayList(); IManager bso = new CustomerBSO(); Hashtable parms = new Hashtable(); parms.Add("btn", AfFormat.ToUnmaskedPhoneNumber(txtBTN.Text)); _customers = (ArrayList)bso.Search(parms); FillListView(); _app.SetIdle(); }
private void FillListView() { ListViewItem item; lvwResults.Items.Clear(); foreach (SearchItem customer in _customers) { item = new ListViewItem(); item.Text = customer.FirstName + " " + customer.LastName; item.SubItems.Add(AfFormat.ToMaskedPhoneNumber(customer.BTN)); item.SubItems.Add(customer.LoadDate.ToShortDateString()); item.SubItems.Add(customer.DispositionDate.ToShortDateString()); item.SubItems.Add(customer.CurrentDisposition); item.Tag = customer; lvwResults.Items.Add(item); } }
private void RebuildTVW() { TreeNode root; TreeNode wtn_node; tvwAccount.Nodes.Clear(); root = tvwAccount.Nodes.Add("WTNs"); root.ImageIndex = TVWICON_HOME; root.SelectedImageIndex = TVWICON_HOME; foreach (WTN wtn in _acct.WTNs) { wtn_node = root.Nodes.Add(AfFormat.ToMaskedPhoneNumber(wtn.WorkingTelephoneNumber)); wtn_node.ImageIndex = TVWICON_WTN; wtn_node.SelectedImageIndex = TVWICON_WTN; wtn_node.Tag = wtn; AddPlansToTVW(wtn_node); } }
public override string ToString() { return(AfFormat.ToMaskedPhoneNumber(_wtn)); }