public MainWindow()
        {
            InitializeComponent();

            this.DataContext = this;

            ProduitsCollection                = new ObservableCollection <TableProduct>();
            EchangeDirectCollection           = new ObservableCollection <TableEchangeDirect>();
            AvoirCollection                   = new ObservableCollection <TableAvoir>();
            RemiseCollection                  = new ObservableCollection <TableRemise>();
            ReassortDataComboItems            = FormUtils.GetReassortComoboboxItems();
            ProduitsDataComboItems            = FormUtils.GetProduitsComoboboxItems();
            RemiseTypeDataComboItems          = FormUtils.GetRemiseTypeComoboboxItems();
            PaiementTypesDataComboItems       = FormUtils.GetPaiementTypeComoboboxItems();
            PaiementRendreTypesDataComboItems = FormUtils.GetPaiementRendreComoboboxItems();
            TransactionManager                = new TransactionManager();
            TransactionRegister               = new TransactionRegister();
        }
Esempio n. 2
0
        private void EmittedCouponValidateButton_Click(object sender, RoutedEventArgs e)
        {
            if (EmittedCouponOnlyCDCheckbox.IsChecked == true)
            {
                result.onlyOn = ProductTypeEnum.CD;
            }

            if (EmittedCouponNCCheckbox.IsChecked == true)
            {
                result.transactionSpecificity = AvoirTypeEnum.NC;
            }

            //Registering Emitted Coupon...
            TransactionRegister.registerEmittedCouponForVente(calculBean, transaction, result.transactionSpecificity, result.onlyOn);

            EmittedCouponOnlyCDCheckbox.IsChecked = false;
            EmittedCouponNCCheckbox.IsChecked     = false;

            this.Close();
        }
Esempio n. 3
0
 public EmittedCouponSpecificities()
 {
     TransactionRegister = new TransactionRegister();
     result = new EmittedCouponSpecificityResultBean();
     InitializeComponent();
 }