private int kiemTraID() { if (this.txtMaHD.Text == "") { return(1); } if (ktButton == 10) { if (ctxhBUS.getHDByMaHD(this.txtMaHD.Text).Count != 0) { return(2); } } else { if (rlBUS.getHDRLByMaHD(this.txtMaHD.Text).Count != 0) { return(2); } } return(0); }