コード例 #1
0
        private void EditAccount()
        {
            EmployeeManagementDBContext context = new EmployeeManagementDBContext();
            PdbAccount eve = new Accounts(context)
            {
            }.GetAccountwithID(_id);

            eve = GetInfomationforEdit(eve);
            try
            {
                new Accounts(context)
                {
                }.Update(eve);
                new EmployeeManagement_Service.Service.Basic.Notification.SuccessfulNotification()
                {
                }.UpdateSuccessful();
            }
            catch
            {
                new EmployeeManagement_Service.Service.Basic.Notification.ErrorNotification()
                {
                }.ErrorWhileEdit();
                throw new Exception();
            }
            finally
            {
                GetAllData();
            }
        }
コード例 #2
0
        public UserLogins()
        {
            Error      = new ErrorNotification();
            Successful = new SuccessfulNotification();
            EmployeeManagementDBContext context = new EmployeeManagementDBContext();

            AccountService = new Accounts(context);
        }
コード例 #3
0
 private void EventForm_Load(object sender, EventArgs e)
 {
     _context = new EmployeeManagementDBContext();
     try
     {
         GetAllData();
     }
     catch
     {
         new EmployeeManagement_Service.Service.Basic.Notification.ErrorNotification()
         {
         }.ErrorWhileRefreshData();
     }
 }
コード例 #4
0
 public Salary(EmployeeManagementDBContext context)
 {
     this._context = context;
 }
コード例 #5
0
 public EmployeeDAO(EmployeeManagementDBContext dbContext)
 {
     this.dbContext = dbContext;
 }
コード例 #6
0
 public BaseRepository(EmployeeManagementDBContext context)
 {
     this._context = context;
     this.dbSet    = context.Set <TEntity>();
 }
コード例 #7
0
 public Supplies(EmployeeManagementDBContext context)
 {
     this._context = context;
 }
コード例 #8
0
 public FeedBacks(EmployeeManagementDBContext context)
 {
     this._context = context;
 }
コード例 #9
0
ファイル: Staffs.cs プロジェクト: TNQ96/PhanMemQuanLyNhanVien
 public Staffs(EmployeeManagementDBContext context)
 {
     this._context = context;
 }
コード例 #10
0
 public Contracts(EmployeeManagementDBContext context)
 {
     this._context = context;
 }
コード例 #11
0
 public EducationLevels(EmployeeManagementDBContext context)
 {
     this._context = context;
 }
コード例 #12
0
 public Accounts(EmployeeManagementDBContext context)
 {
     this._context = context;
 }
コード例 #13
0
 public EventForm(EmployeeManagementDBContext context)
 {
     this._context = context;
 }