private void LoadCombos()
		{
			using (var clogic = new ComboBoxLogic())
			{
				var lstPostionTypes = clogic.ReadPositionTypes();
				this.cmbPositionTypes.ItemsSource = lstPostionTypes;
			}
		}
Exemplo n.º 2
0
		private void LoadCombos()
		{
			using (var clogic = new ComboBoxLogic())
			{
				var lstDepartments = clogic.ReadAllDepartments();
				this.cmbLevel1.ItemsSource = lstDepartments;
				this.cmbLevel2.ItemsSource = lstDepartments;
				this.cmbLevel3.ItemsSource = lstDepartments;
				this.cmbLevel4.ItemsSource = lstDepartments;
			}
		}
		private void Window_Loaded(object sender, RoutedEventArgs e)
		{
			using (var logic = new NomenclaturesLogic())
			{				
				if (this.id_globalPosition == 0)
				{
					this.globalPosition = new HR_GlobalPositions();
					this.globalPosition.IsActive = true;
					this.globalPosition.ActiveFrom = DateTime.Now;
				}
				else
				{
					this.globalPosition = logic.HR_GlobalPositions.GetById(this.id_globalPosition);
				}

				using (var comboBoxLogic = new ComboBoxLogic())
				{
					this.cmbPositionTypes.ItemsSource = comboBoxLogic.ReadPositionTypes(this.globalPosition.id_globalPosition);
				}
				this.DataContext = this.globalPosition;
			}
		}