コード例 #1
0
ファイル: UserCard.cs プロジェクト: kyleabrock/StudioV
 public UserCard()
 {
     User = new UserStaff();
     _softList = new List<UserCardInstSoft>();
     DateAdded = new DateTime();
     LastUpdate = new DateTime();
 }
コード例 #2
0
ファイル: UserCard.cs プロジェクト: kyleabrock/StudioV
 public UserCard(int id, UserStaff user, List<UserCardInstSoft> softList, DateTime dateAdded, DateTime lastupdate)
 {
     Id = id;
     User = user;
     _softList = softList;
     DateAdded = dateAdded;
     LastUpdate = lastupdate;
 }
コード例 #3
0
ファイル: StaffEdit.xaml.cs プロジェクト: kyleabrock/StudioV
        public StaffEdit()
        {
            InitializeComponent();
            // Insert code required on object creation below this point.

            _user = new UserStaff();
            _otdels = (List<UserOtdel>) _otdelMapper.FindAll();
            FillOtdelComboBox(_otdels);
        }
コード例 #4
0
ファイル: StaffEdit.xaml.cs プロジェクト: kyleabrock/StudioV
        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;
            }
        }