private void cmbgoith_SelectedIndexChanged(object sender, RoutedEventArgs e) { m_lan += 1; if (cmbgoith.SelectedIndex == -1 ) return; //if (txtusr.Text.Trim() == "") //{ // MessageBox.Show("Chưa nhập đầy đủ thông tin !"); // return; //} string m_goi = this.cmbgoith.GetKeyValue(cmbgoith.SelectedIndex).ToString().Trim(); if (m_goi != "" && m_lan > 1) { for (int i = 0; i < LoadGoi.Entities.Count(); i++) { if (LoadGoi.Entities.ElementAt(i).ma_goi.Trim() == m_goi) { Int32 sl = Convert.ToInt32(LoadGoi.Entities.ElementAt(i).sl_dd); string so = txtusr.Text.Trim(); string ten = txttentb.Text.Trim(); string dc = txtdctb.Text.Trim(); frmgoicuoc frm = new frmgoicuoc(sl, false, so, ten, dc, "M", m_goi,false,""); frm.ShowDialog(); } } } }
private void cmdview_Click(object sender, RoutedEventArgs e) { string m_goi = this.cmbgoith.GetKeyValue(cmbgoith.SelectedIndex).ToString().Trim(); if (idgoi != "") { frmgoicuoc frm = new frmgoicuoc(0, false, "", "", "", "", m_goi, true, idgoi); frm.ShowDialog(); } else MessageBox.Show("Khách hàng này chưa có dữ liệu gói cước !"); }
private void cmdview_Click(object sender, RoutedEventArgs e) { string m_goi = this.cmbgoith.GetKeyValue(cmbgoith.SelectedIndex).ToString().Trim(); if (idgoi != "") { frmgoicuoc frm = new frmgoicuoc(0, true, "", "", "", "", m_goi, false, idgoi); frm.ShowDialog(); } }