public US_DM_BAO_HIEM(decimal i_dbID)
 {
     pm_objDS = new DS_DM_BAO_HIEM();
     pm_strTableName = c_TableName;
     IMakeSelectCmd v_objMkCmd = new CMakeAndSelectCmd(pm_objDS, c_TableName);
     v_objMkCmd.AddCondition("ID", i_dbID, eKieuDuLieu.KieuNumber, eKieuSoSanh.Bang);
     SqlCommand v_cmdSQL;
     v_cmdSQL = v_objMkCmd.getSelectCmd();
     this.FillDatasetByCommand(pm_objDS, v_cmdSQL);
     pm_objDR = getRowClone(pm_objDS.Tables[pm_strTableName].Rows[0]);
 }
 public US_DM_BAO_HIEM()
 {
     pm_objDS = new DS_DM_BAO_HIEM();
     pm_strTableName = c_TableName;
     pm_objDR = pm_objDS.Tables[pm_strTableName].NewRow();
 }
 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;
 }