private void Button_Click(object sender, RoutedEventArgs e)
 {
     //CultureInfo enUS = new CultureInfo("en-US");
     //DateTime myDateTime = DateTime.Parse(date_txb.Text);
     //Expends.AddCurrentExpend((EmployeeTable)employeeSlelctionComboBox.SelectedItem, notes_txb.Text, name_txb.Text, Convert.ToInt32(cost_txb.Text), DateTime.ParseExact(date_txb.Text, "g", enUS, DateTimeStyles.AdjustToUniversal));
     Expends.AddCurrentExpend((EmployeeTable)employeeSlelctionComboBox.SelectedItem, notes_txb.Text, name_txb.Text, Convert.ToInt32(cost_txb.Text), Convert.ToDateTime(date_picker.Text));
     this.Close();
 }
 public UpdateCurrentExpend()
 {
     InitializeComponent();
     selectionCurrentExpendComboBox.ItemsSource       = Expends.GetAllCurentExp();
     selectionCurrentExpendComboBox.DisplayMemberPath = "Id";
     employeeSlelctionComboBox.ItemsSource            = employeeBL.GetAll();
     employeeSlelctionComboBox.DisplayMemberPath      = "full_Name";
 }
Ejemplo n.º 3
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            EmployeeTable selectedEmployee = new EmployeeTable();

            selectedEmployee = (EmployeeTable)employeeSlelctionComboBox.SelectedItem;

            Expends.UpdateVariableExpend((variableExpendsTable)selectionVarialeExpendComboBox.SelectedItem, selectedEmployee, notes_txb.Text, name_txb.Text, Convert.ToInt32(cost_txb.Text), Convert.ToDateTime(date_picker.Text), Convert.ToInt32(active_txb.Text));
            this.Close();
        }
Ejemplo n.º 4
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     Expends.AddVariableExpend((EmployeeTable)employeeSlelctionComboBox.SelectedItem, notes_txb.Text, name_txb.Text, Convert.ToInt32(cost_txb.Text), Convert.ToDateTime(date_picker.Text));
     this.Close();
 }
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     Expends.UpdateCurrentExpend((CurrentExpendsTable)selectionCurrentExpendComboBox.SelectedItem, (EmployeeTable)employeeSlelctionComboBox.SelectedItem, notes_txb.Text, name_txb.Text, Convert.ToInt32(cost_txb.Text), Convert.ToDateTime(date_Picker.Text), Convert.ToInt32(active_txb.Text));
     this.Close();
 }
Ejemplo n.º 6
0
 public CurrentExpendsList()
 {
     InitializeComponent();
     selectionCurrentExpendComboBox.ItemsSource       = Expends.GetAllCurentExp();
     selectionCurrentExpendComboBox.DisplayMemberPath = "Id";
 }
Ejemplo n.º 7
0
 public VariableExpendsList()
 {
     InitializeComponent();
     selectionVarialeExpendComboBox.ItemsSource       = Expends.GetAllVariableExp();
     selectionVarialeExpendComboBox.DisplayMemberPath = "Id";
 }