public static string GetSignatory(int?id)
        {
            string result           = "";
            ImusCityHallEntities db = new ImusCityHallEntities();

            ImusCityGovernmentSystem.Model.Employee employee = db.Employees.Find(id);
            result = employee.FirstName + " " + employee.MiddleName + " " + employee.LastName;
            return(result.ToUpper());
        }
        public static string Employee(int id)
        {
            string result           = "";
            ImusCityHallEntities db = new ImusCityHallEntities();

            ImusCityGovernmentSystem.Model.Employee employee = db.Employees.Find(id);
            result = employee.FirstName + " " + employee.LastName;
            return(result);
        }
Exemplo n.º 3
0
 private void MetroWindow_Loaded(object sender, RoutedEventArgs e)
 {
     if (SystemClass.CheckConnection())
     {
         ImusCityHallEntities db = new ImusCityHallEntities();
         ImusCityGovernmentSystem.Model.Employee employee = db.Employees.Find(App.EmployeeID);
         resetpasswordbtn.IsEnabled = employee.IsAdmin == true ? true : false;
     }
     else
     {
         MessageBox.Show(SystemClass.DBConnectionErrorMessage);
     }
 }