Пример #1
0
 partial void DeleteEmployee(Employee instance);
Пример #2
0
        //验证用户名和密码
        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();
        }
Пример #3
0
 partial void UpdateEmployee(Employee instance);
Пример #4
0
 partial void InsertEmployee(Employee instance);
Пример #5
0
 partial void DeleteEmployee(Employee instance);
Пример #6
0
 partial void UpdateEmployee(Employee instance);
Пример #7
0
 partial void InsertEmployee(Employee instance);