private void btSave_Click(object sender, EventArgs e) { try { v_bhytds v_ds = new v_bhytds(); v_bhytds_Oracle Ora_v_bhytds = new v_bhytds_Oracle(); v_ds.ID = long.Parse(txtIDDuyet.Text); v_ds.MAICD = txtMaICD.Text; v_ds.CHANDOAN = txtChanDoan.Text; Ora_v_bhytds.f_update_ICD(v_ds); } catch { } }
private void btXoa_Click(object sender, EventArgs e) { if (AccessData.m_date_lock < m_format.DateTime_parse(haison1.tungay)) { string idduyet = txtIDDuyet.Text; v_bhytct_Oracle v_bhytctOra = new v_bhytct_Oracle(); v_bhytll_Oracle v_bhytllOra = new v_bhytll_Oracle(); v_bhytds_Oracle v_bhytdsOra = new v_bhytds_Oracle(); v_bhytctOra.f_delete(long.Parse(idduyet)); v_bhytllOra.f_delete(long.Parse(idduyet)); CThanhToanBHYT thanhtoan = new CThanhToanBHYT(); thanhtoan.MaBN = txtMaBN.Text; thanhtoan.SoTheBHYT = txtMaBHYT.Text; thanhtoan.ID = long.Parse(idduyet); v_bhytdsOra.f_delete(thanhtoan); f_LoadDSDaDuyet(); } else { MessageBox.Show(string.Format("Số liệu đã khóa đến ngày {0:dd/MM/yyyy}! ", AccessData.m_date_lock)); } }