public US_GD_KHAU_HAO(decimal i_dbID)
 {
     pm_objDS = new DS_GD_KHAU_HAO();
     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_GD_KHAU_HAO()
 {
     pm_objDS = new DS_GD_KHAU_HAO();
     pm_strTableName = c_TableName;
     pm_objDR = pm_objDS.Tables[pm_strTableName].NewRow();
 }
 public bool check_ma_khau_hao_is_valid(string ip_str_ma_phieu)
 {
     DS_GD_KHAU_HAO v_ds_gd_khau_hao = new DS_GD_KHAU_HAO();
     this.FillDataset(v_ds_gd_khau_hao, "where " + GD_KHAU_HAO.MA_PHIEU + " = '" + ip_str_ma_phieu + "'");
     return v_ds_gd_khau_hao.GD_KHAU_HAO.Rows.Count == 0;
 }