partial void DeleteEmployee(Employee instance);
//验证用户名和密码 private void verifyEmployee() { m_User = db.Employee.FirstOrDefault(x => x.id == Convert.ToInt32(id.Text)); if (m_User == null) { id.SelectAll(); id.Focus(); GeneralClass.printErrorMsg("该员工号不存在!"); return; } if (pwd.Text != m_User.password) { pwd.SelectAll(); pwd.Focus(); GeneralClass.printErrorMsg("密码不对!"); return; } write_user(); this.Hide(); MainWindow mainWindow = new MainWindow(db); mainWindow.ShowDialog(); this.Close(); }
partial void UpdateEmployee(Employee instance);
partial void InsertEmployee(Employee instance);