Ejemplo n.º 1
0
 public UserCard()
 {
     User = new UserStaff();
     _softList = new List<UserCardInstSoft>();
     DateAdded = new DateTime();
     LastUpdate = new DateTime();
 }
Ejemplo n.º 2
0
 public UserCard(int id, UserStaff user, List<UserCardInstSoft> softList, DateTime dateAdded, DateTime lastupdate)
 {
     Id = id;
     User = user;
     _softList = softList;
     DateAdded = dateAdded;
     LastUpdate = lastupdate;
 }
Ejemplo n.º 3
0
        public StaffEdit()
        {
            InitializeComponent();
            // Insert code required on object creation below this point.

            _user = new UserStaff();
            _otdels = (List<UserOtdel>) _otdelMapper.FindAll();
            FillOtdelComboBox(_otdels);
        }
Ejemplo n.º 4
0
        public StaffEdit(int id)
        {
            InitializeComponent();
            // Insert code required on object creation below this point.

            _user = _staffMapper.Find(id);
            _otdels = (List<UserOtdel>) _otdelMapper.FindAll();
            FillOtdelComboBox(_otdels);

            if (id > 0)
            {
                Otdel.SelectedItem = _user.Otdel.Name;
                LastName.Text = _user.LastName;
                FirstName.Text = _user.FirstName;
                Patronymic.Text = _user.Patronymic;
                CabNumber.Text = _user.CabNumber;
                TelNumber.Text = _user.TelNumber;
            }
        }