private void loadBHYT() { try { CBenhNhanOracle BNOracle = new CBenhNhanOracle(); BN = BNOracle.getBenhNhan(txtMaBN.Text); BN.HoTen = s_prepair(BN.HoTen); BN.DiaChi = s_prepair(BN.DiaChi); txtNamSinh.Text = BN.NamSinh.ToString(); txtHoTen.Text = BN.HoTen; txtDiaChi.Text = BN.DiaChi; f_setcbPhai(BN.GioiTinh); CThanhToanBHYTOracleNoiTru DataOracle = new CThanhToanBHYTOracleNoiTru(); DataSet dsdotdt = DataOracle.f_loadNgayNhapVien_MaQL(txtMaBN.Text, haison1.tungay, haison1.denngay, ckLocNgay.Checked); cbdotdieutri.DataSource = null; cbdotdieutri.DataSource = dsdotdt.Tables[0]; cbdotdieutri.DisplayMember = "dotdieutri"; cbdotdieutri.ValueMember = "mavaovien"; cbdotdieutri.SelectedIndex = 0; //btLuu.Select(); txtMaBN.Enabled = false; } catch { } }
private void txtMaMay_Leave(object sender, EventArgs e) { try { if (txtMaMay.Text.Length == 8) { CBenhNhan item = new CBenhNhan(); CBenhNhanOracle dataOra = new CBenhNhanOracle(); item = dataOra.getBenhNhan(txtMaMay.Text); txtTen.Text=item.HoTen + " ("+item.NamSinh+")"; CThanhToanBHYTOracle dataBHYTOra = new CThanhToanBHYTOracle(); CThanhToanBHYT bhyt = new CThanhToanBHYT(); bhyt = dataBHYTOra.f_loadTT_BHYT_TiepNhan(txtMaMay.Text,DateTime.Today); txtNguoiYC.Text = bhyt.SoTheBHYT ; txtHSD.Text = string.Format("{0:dd/MM/yyyy}", bhyt.HSD); setList(cbPhuongThuc, bhyt.TraiTuyen.ToString()); } else { txtTen.Text = ""; } } catch { } }
private void txtMaBN_Leave(object sender, EventArgs e) { try { if (txtMaBN.Text.Length == 8) { CBenhNhan item = new CBenhNhan(); CBenhNhanOracle dataOra = new CBenhNhanOracle(); item = dataOra.getBenhNhan(txtMaBN.Text); txtHoten.Text = item.HoTen; txtNamsinh.Text = item.NamSinh.ToString(); CThanhToanBHYTOracle dataBHYTOra = new CThanhToanBHYTOracle(); CThanhToanBHYT bhyt = new CThanhToanBHYT(); bhyt = dataBHYTOra.f_loadTT_BHYT_TiepNhan(txtMaBN.Text, DateTime.Today); txtSothe.Text = bhyt.SoTheBHYT; //txtHSD.Text = string.Format("{0:dd/MM/yyyy}", bhyt.HSD); //setList(cbPhuongThuc, bhyt.TraiTuyen.ToString()); //if(ckLuu.Checked==true) //{ // if (toolSave.Enabled == true) // { // SendKeys.Send("{F5}"); // } //} } else { txtHoten.Text = ""; } } catch { } }
private void loadBHYT() { try { CBenhNhanOracle BNOracle = new CBenhNhanOracle(); BN = BNOracle.getBenhNhan(txtMaBN.Text); BN.HoTen = s_prepair(BN.HoTen); BN.DiaChi = s_prepair(BN.DiaChi); txtNamSinh.Text = BN.NamSinh.ToString(); txtHoTen.Text = BN.HoTen; txtDiaChi.Text = BN.DiaChi; f_setcbPhai(BN.GioiTinh); } catch { } }
private void txtMaMay_Leave(object sender, EventArgs e) { try { if (txtMaMay.Text.Length == 8) { CBenhNhan item = new CBenhNhan(); CBenhNhanOracle dataOra = new CBenhNhanOracle(); item = dataOra.getBenhNhan(txtMaMay.Text); txtTen.Text = item.HoTen + " (" + item.NamSinh + ")"; } else { txtTen.Text = ""; } } catch { } }
private void txtMaBN_Leave(object sender, EventArgs e) { try { if (txtMaBN.Text.Length == 8) { CBenhNhan item = new CBenhNhan(); CBenhNhanOracle dataOra = new CBenhNhanOracle(); item = dataOra.getBenhNhan(txtMaBN.Text); txtTen.Text = item.HoTen; txtNamSinh.Text = item.NamSinh.ToString(); } else { txtTen.Text = ""; } } catch { } }