public ChangePasswordUserControl() { _staffBusiness = new StaffBusiness(); changePasswordViewModel = new ChangePasswordViewModel(); InitializeComponent(); this.DataContext = changePasswordViewModel; }
private void InitializeData() { _staffBusiness = new StaffBusiness(); staffs = _staffBusiness.GetAll(); this.DataContext = staffs; ListStaffs.ItemsSource = staffs; }
public StaffController(IStaffBusiness iStaffBusiness = null, ICommandBus commandBus, IQueryBus queryBus) { this.commandBus = commandBus; this.queryBus = queryBus; this.iStaffBusiness = iStaffBusiness ?? GsbIoC.Instance.GetInstance <IStaffBusiness>(); }
public StaffController(IStaffBusiness staffBusiness, IDepartmentBusiness departmentBusiness, IPositionBusiness positionBusiness, IAssignPositionBusiness assignPosition) { this._staffBusiness = staffBusiness; this._departmentBusiness = departmentBusiness; this._positionBusiness = positionBusiness; this._assignPosition = assignPosition; }
public StaffController(CRMContext context, IStaffBusiness staffBusiness, IAddressBusiness addressBusiness, IStoreBusiness storeBusiness, UserManager <IdentityUser> userManager, ICountryBusiness countryBusiness) { this.staffBusiness = staffBusiness; this.addressBusiness = addressBusiness; this.storeBusiness = storeBusiness; this._userManager = userManager; this.countryBusiness = countryBusiness; _context = context; }
public ProductController(IProductBusiness productBusiness, IStaffBusiness staffBusiness, IMemberReceiptInfoBusiness memberReceiptInfo, IOrderBusiness orderBusiness, IOrderDetailBusiness orderDetailBusiness, IMemberBusiness memberBusiness) { this._productBusiness = productBusiness; this._staffBusiness = staffBusiness; this._memberReceiptInfo = memberReceiptInfo; this._orderBusiness = orderBusiness; this._orderDetailBusiness = orderDetailBusiness; this._memberBusiness = memberBusiness; }
public LoginWindow() { InitializeComponent(); _staffBusiness = new StaffBusiness(); _loginStaffViewModel = new LoginStaffViewModel() { AcceptValidModel = false }; this.DataContext = _loginStaffViewModel; }
public TicketController(CRMContext context, IStaffBusiness staffBusiness, ITicketBusiness ticketBusiness, ITicketStatusBusiness ticketStatusBusiness, ICustomerBusiness customerBusiness, ICountryBusiness countryBusiness) { this.ticketStatusBusiness = ticketStatusBusiness; this.ticketBusiness = ticketBusiness; this.staffBusiness = staffBusiness; this.staffBusiness = staffBusiness; this.customerBusiness = customerBusiness; this.countryBusiness = countryBusiness; _context = context; }
public EditStaffUserControl(Staff staff) { _staffBusiness = new StaffBusiness(); InitializeComponent(); staffViewModel = new StaffViewModel(staff); ComboBoxStaffRole.Items.Add(new ComboBoxItem() { Content = "Nhân viên bán hàng", Tag = (int)EStaffRole.SaleStaff }); ComboBoxStaffRole.Items.Add(new ComboBoxItem() { Content = "Người quản lý", Tag = (int)EStaffRole.Administrator }); if (staffViewModel.StaffRole == (int)EStaffRole.SaleStaff) { ComboBoxStaffRole.SelectedIndex = 0; } else { ComboBoxStaffRole.SelectedIndex = 1; } this.DataContext = staffViewModel; }
public StaffController(IStaffBusiness itemBusiness) { _itemBusiness = itemBusiness; }
public SystemController(IStaffBusiness staffBusiness) { this._staffBusiness = staffBusiness; }
public StaffController(IStaffBusiness iStaffBusiness = null) { this.iStaffBusiness = iStaffBusiness ?? GsbIoC.Instance.GetInstance <IStaffBusiness>(); }
public StaffController(ILogger <StaffController> logger, IStaffBusiness iStaffBusiness) { this._logger = logger; this.iStaffBusiness = iStaffBusiness; }
public AddStaffUserControl() { _staffBusiness = new StaffBusiness(); InitializeComponent(); InitializeData(); }
public StaffService() { this.iStaffBusiness = SimpleIoC.Instance.GetInstance <IStaffBusiness>(); }
public StaffController(IStaffBusiness iStaffBusiness) { this.iStaffBusiness = iStaffBusiness; }