private void NavToEditPurchaseOrder(WpfPurchaseOrder wpfPurchaseOrder, WpfUser currentUser) { _addEditPurchaseOrderListViewModel.EditMode = true; _addEditPurchaseOrderListViewModel.SetCurrentUser(currentUser); _addEditPurchaseOrderListViewModel.SetPurchaseOrder(wpfPurchaseOrder); CurrentViewModel = _addEditPurchaseOrderListViewModel; }
public static List <WpfUser> GetWpfUser() { var query = new DQueryDom(new JoinAlias(typeof(WpfUser))); query.Columns.Add(DQSelectColumn.Field("ID")); query.Columns.Add(DQSelectColumn.Field("Name")); query.Columns.Add(DQSelectColumn.Field("Stopped")); query.Columns.Add(DQSelectColumn.Field("Password")); query.Columns.Add(DQSelectColumn.Field("RoleSchema")); var list = new List <WpfUser>(); using (var context = new TransactionContext()) { using (var reader = context.Session.ExecuteReader(query)) { while (reader.Read()) { var entity = new WpfUser(); entity.ID = (long)reader[0]; entity.Name = (string)reader[1]; entity.Stopped = (bool)reader[2]; entity.Password = (byte[])reader[3]; entity.RoleSchema = (string)reader[4]; list.Add(entity); } } } return(list); }
private void NavToEditWorkCycleView(WpfWorkCycle workCycle, WpfUser currentUser) { _addEditWorkingCycleViewModel.EditMode = true; _addEditWorkingCycleViewModel.SetCurrentUser(currentUser); _addEditWorkingCycleViewModel.SetWorkingCycle(workCycle); CurrentViewModel = _addEditWorkingCycleViewModel; }
public void NavToAddWorkCycleView(WpfWorkCycle workCycle, WpfUser currentUser) { _addEditWorkingCycleViewModel.EditMode = false; _addEditWorkingCycleViewModel.SetCurrentUser(currentUser); _addEditWorkingCycleViewModel.SetWorkingCycle(workCycle); CurrentViewModel = _addEditWorkingCycleViewModel; }
public void SetCurrentUser(WpfUser currentUser) { CurrentUser = currentUser; }
/// <summary> /// Sets Current User /// </summary> /// <param name="user">Current User</param> public void SetCurrentUser(WpfUser user) { CurrentUser = user; }
/// <summary> /// Sets Current User in the system. /// </summary> /// <param name="user"></param> public void SetCurrentUser(WpfUser user) { CurrentUser = user; LogoutCommand = new RelayCommand(OnLogout); InventoryDashboardCommand = new RelayCommand(OnInventoryMgtClick); }
private void NavToProcurePurchaseOrderView(WpfUser currentUser) { _procurePurchaseOrderViewModel.SetCurrentUser(currentUser); CurrentViewModel = _procurePurchaseOrderViewModel; }
private void NavToInventorySettingView(WpfUser currentUser) { _inventorySettingViewModel.SetCurrentUser(currentUser); CurrentViewModel = _inventorySettingViewModel; }
private void NavToLocationListView(WpfUser currentUser) { _locationListViewModel.SetCurrentUser(currentUser); CurrentViewModel = _locationListViewModel; }
private void NavToRawMaterialCategoryListView(WpfUser currentUser) { _rawMaterialCategoryListViewModel.SetCurrentUser(currentUser); CurrentViewModel = _rawMaterialCategoryListViewModel; }
private void NavToSupplierListView(WpfUser currentUser) { _supplierListViewModel.SetCurrentUser(currentUser); CurrentViewModel = _supplierListViewModel; }
private void NavToHomeDashboard(WpfUser currentUser) { _homeDashboardViewModel.SetCurrentUser(currentUser); CurrentViewModel = _homeDashboardViewModel; }
private void NavToPurchaseOrdersListView(WpfUser currentUser) { _purchaseOrderListViewModel.SetCurrentUser(currentUser); CurrentViewModel = _purchaseOrderListViewModel; }
private void NavToManageWorkCycles(WpfUser currentUser) { _workCycleListViewModel.SetCurrentUser(currentUser); CurrentViewModel = _workCycleListViewModel; }
private void NavigateToInventoryDashboard(WpfUser currentUser) { _inventoryDashboardViewModel.SetCurrentUser(currentUser); CurrentViewModel = _inventoryDashboardViewModel; }
private void NavToLoginView(WpfUser currentUser) { _loginViewModel.CurrentUser = currentUser; CurrentViewModel = _loginViewModel; }