}//Cập nhật groupID tự động void displayPass() { NewEmployeeBL newEmp = new NewEmployeeBL(); if (txtGroupID.Text == "01") { txtPass.Text = newEmp.SetPass(); } else { txtPass.Text = newEmp.SetPassPT(); } }//Cập nhật pass tự động
}//Cập nhật pass tự động void disUsername() { LOGIN newEmp = new LOGIN(); NewEmployeeBL newID = new NewEmployeeBL(); //txtUsername.Text = "nv" + (dt.Rows.Count + 1).ToString(); if (txtGroupID.Text == "01") { txtUsername.Text = newID.existsEmpID(txtGroupID.Text); } else { txtUsername.Text = newID.existsPTID(txtGroupID.Text); } }//Cập nhật usernametự động