Пример #1
0
        public CostCenterForm(Session session)
        {
            _dimensionTypeInterface = new DimensionTypeOperations(session);
            InitializeComponent();
            Cursor.Current = Cursors.Arrow;
            var types = _dimensionTypeInterface.GetByName("KPL");

            maskBox.Text         = @"**Code moet voldoen aan het volgende format : " + types[0].Mask;
            Cursor.Current       = Cursors.Arrow;
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
        }
Пример #2
0
        public SupplierForm(Session session)
        {
            _countryInterface       = new CountryOperations(session);
            _dimensionTypeInterface = new DimensionTypeOperations(session);
            InitializeComponent();
            Cursor.Current = Cursors.WaitCursor;
            var countries = _countryInterface.GetAll().OrderBy(o => o.Name).ToList();

            countryBox.DataSource    = countries;
            countryBox.DropDownStyle = ComboBoxStyle.DropDownList;
            countryBox.DisplayMember = "Name";
            countryBox.SelectedIndex = countryBox.FindStringExact("Nederland");
            var types = _dimensionTypeInterface.GetByName("CRD");

            maskBox.Text         = @"**Code moet voldoen aan het volgende format : " + types[0].Mask;
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            Cursor.Current       = Cursors.Arrow;
        }
Пример #3
0
        public GeneralLedgerForm(Session session, string type)
        {
            _vatInterface           = new VatOperations(session);
            _dimensionTypeInterface = new DimensionTypeOperations(session);
            InitializeComponent();
            Cursor.Current = Cursors.WaitCursor;
            var vats = _vatInterface.GetSummaries();

            vatBox.DataSource    = vats;
            vatBox.DropDownStyle = ComboBoxStyle.DropDownList;
            vatBox.DisplayMember = "Code";
            var ty = _dimensionTypeInterface.GetByName(type);

            maskBox.Text         = @"**Code moet bij type " + type + @" voldoen aan het volgende format: " + ty[0].Mask;
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            Cursor.Current       = Cursors.Arrow;
            Type = type;
        }