private bool ValidData()
        {
            try
            {
                if (string.IsNullOrEmpty(txtID.Text))
                {
                    Utility.ShowMsg("Tên không hợp lệ");
                    txtName.Focus();
                    return(false);
                }
                else if (vAction != action.Update && LStandardTest.FetchByID(txtID.Text) != null)
                {
                    Utility.ShowMsg(string.Format("Đã tồn tại mã {0}", txtID.Text));
                    txtID.Focus();
                    txtID.SelectAll();
                    return(false);
                }

                if (string.IsNullOrEmpty(txtName.Text))
                {
                    Utility.ShowMsg("Tên không hợp lệ");
                    txtName.Focus();
                    return(false);
                }
                else
                {
                    int count =
                        new Select().From(LStandardTest.Schema.Name).
                        Where(LStandardTest.Columns.TestTypeId).IsEqualTo(Utility.Int32Dbnull(cboTestType.SelectedValue, -1)).
                        And(LStandardTest.Columns.DataName).IsEqualTo(txtName.Text).
                        And(LStandardTest.Columns.TestDataId).IsNotEqualTo(txtID.Text).
                        ExecuteDataSet().Tables[0].Rows.Count;
                    if (count > 0)
                    {
                        Utility.ShowMsg(cboTestType.Text + " đã có " + txtName.Text);
                        txtName.Focus();
                        txtName.SelectAll();
                        return(false);
                    }
                }
                return(true);
            }
            catch (Exception ex)
            {
                Utility.ShowMsg(ex.Message);
                return(false);
            }
        }