public void DisplayForUpdate(US_DM_BAO_HIEM v_us) { this.Text = "F102 - Sửa bảo hiểm"; m_lbl_header.Text = "SỬA BẢO HIỂM"; m_e_form_mode = DataEntryFormMode.UpdateDataState; m_us = v_us; us_to_form(m_us); this.CenterToScreen(); this.ShowDialog(); }
private bool check_ma_bh_da_ton_tai() { US_DM_BAO_HIEM v_us = new US_DM_BAO_HIEM(); DS_DM_BAO_HIEM v_ds = new DS_DM_BAO_HIEM(); v_us.FillDataset(v_ds, "where ma_bh = N'" + m_txt_ma_bao_hiem.Text + "'"); if (m_us.strMA_BH != m_txt_ma_bao_hiem.Text && v_ds.Tables[0].Rows.Count != 0) { return true; } return false; }
private void us_to_form(US_DM_BAO_HIEM v_us) { m_txt_ma_bao_hiem.Text = v_us.strMA_BH; m_txt_ten_bao_hiem.Text = v_us.strTEN_BH; m_txt_ti_le.Text = v_us.dcTI_LE.ToString(); }