Exemple #1
0
 public ChangePasswordUserControl()
 {
     _staffBusiness          = new StaffBusiness();
     changePasswordViewModel = new ChangePasswordViewModel();
     InitializeComponent();
     this.DataContext = changePasswordViewModel;
 }
Exemple #2
0
 private void InitializeData()
 {
     _staffBusiness         = new StaffBusiness();
     staffs                 = _staffBusiness.GetAll();
     this.DataContext       = staffs;
     ListStaffs.ItemsSource = staffs;
 }
Exemple #3
0
 public StaffController(IStaffBusiness iStaffBusiness = null, ICommandBus commandBus, IQueryBus queryBus)
 {
     this.commandBus     = commandBus;
     this.queryBus       = queryBus;
     this.iStaffBusiness = iStaffBusiness ??
                           GsbIoC.Instance.GetInstance <IStaffBusiness>();
 }
Exemple #4
0
 public StaffController(IStaffBusiness staffBusiness, IDepartmentBusiness departmentBusiness, IPositionBusiness positionBusiness, IAssignPositionBusiness assignPosition)
 {
     this._staffBusiness      = staffBusiness;
     this._departmentBusiness = departmentBusiness;
     this._positionBusiness   = positionBusiness;
     this._assignPosition     = assignPosition;
 }
Exemple #5
0
 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;
 }
Exemple #6
0
 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;
 }
Exemple #8
0
 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;
 }
Exemple #9
0
 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;
 }
Exemple #10
0
 public StaffController(IStaffBusiness itemBusiness)
 {
     _itemBusiness = itemBusiness;
 }
Exemple #11
0
 public SystemController(IStaffBusiness staffBusiness)
 {
     this._staffBusiness = staffBusiness;
 }
 public StaffController(IStaffBusiness iStaffBusiness = null)
 {
     this.iStaffBusiness = iStaffBusiness ??
                           GsbIoC.Instance.GetInstance <IStaffBusiness>();
 }
Exemple #13
0
 public StaffController(ILogger <StaffController> logger,
                        IStaffBusiness iStaffBusiness)
 {
     this._logger        = logger;
     this.iStaffBusiness = iStaffBusiness;
 }
 public AddStaffUserControl()
 {
     _staffBusiness = new StaffBusiness();
     InitializeComponent();
     InitializeData();
 }
Exemple #15
0
 public StaffService()
 {
     this.iStaffBusiness =
         SimpleIoC.Instance.GetInstance <IStaffBusiness>();
 }
Exemple #16
0
 public StaffController(IStaffBusiness iStaffBusiness)
 {
     this.iStaffBusiness = iStaffBusiness;
 }