Esempio n. 1
0
        public ucNumberSeries()
        {
            InitializeComponent();

            new ToolTip().SetToolTip(btnReload, "Reload");

            filter = new FilterPanel(this, FilterChanged);
            filter.AddFilter(FilterItemType.NUMBER, "ID", "Id");
            filter.AddFilter(FilterItemType.BOOLEAN, "VALID", "Only valid");
            filter.AddFilter(FilterItemType.TEXT, "COMMENT", "Comment");

            filter.AddFilter(FilterItemType.TEXT, "NAME", "Name");
            filter.AddFilter(FilterItemType.TEXT, "PREFIX", "Prefix");
            filter.AddFilter(FilterItemType.NUMBER, "LAST_NR", "Last number");

            //nacitanie moze zlyhat ak DB neexistuje alebo nie je aktualne oscriptovana.. vtedy je potrebne pouzit DBHelper a spustit aktualny script
            try
            {
                ReloadAllData();
            }
            catch (Exception)
            {
            }
            NewItem();
        }
Esempio n. 2
0
        public ucCustomers()
        {
            InitializeComponent();

            new ToolTip().SetToolTip(btnReload, "Reload");

            filter = new FilterPanel(this, FilterChanged);
            filter.AddFilter(FilterItemType.NUMBER, "ID", "Id");
            filter.AddFilter(FilterItemType.BOOLEAN, "VALID", "Only valid");
            filter.AddFilter(FilterItemType.TEXT, "COMMENT", "Comment");

            filter.AddFilter(FilterItemType.TEXT, "NAME", "Name");
            filter.AddFilter(FilterItemType.TEXT, "ADDRESS", "Address");
            filter.AddFilter(FilterItemType.TEXT, "ADDRESS2", "Address2");
            filter.AddFilter(FilterItemType.TEXT, "PHONE", "Phone");
            filter.AddFilter(FilterItemType.TEXT, "EMAIL", "E-mail");

            try
            {
                ReloadAllData();
            }
            catch (Exception)
            {
            }
            NewItem();
        }
Esempio n. 3
0
        public ucProducts()
        {
            InitializeComponent();

            new ToolTip().SetToolTip(btnReload, "Reload");
            new ToolTip().SetToolTip(btnRotatePreview, "Rotate preview");

            filter = new FilterPanel(this, FilterChanged);
            filter.AddFilter(FilterItemType.NUMBER, "ID", "Id");
            filter.AddFilter(FilterItemType.BOOLEAN, "VALID", "Only valid");
            filter.AddFilter(FilterItemType.TEXT, "COMMENT", "Comment");

            filter.AddFilter(FilterItemType.TEXT, "PRODUCT_NR", "Product number");
            filter.AddFilter(FilterItemType.TEXT, "DESCRIPTION", "Description");
            filter.AddFilter(FilterItemType.NUMBER, "HOCHFLOR", "Hochflor");
            filter.AddFilter(FilterItemType.NUMBER, "KNOTS", "Knots");
            filter.AddFilter(FilterItemType.NUMBER, "WEIGHT", "Weight");
            filter.AddFilter(FilterItemType.NUMBER, "BUY_PRICE", "Buy price");
            filter.AddFilter(FilterItemType.TEXT, "COLOR", "Color");
            filter.AddFilter(FilterItemType.TEXT, "MATERIAL", "Material");
            filter.AddFilter(FilterItemType.TEXT, "MAT_INSIDE", "Meterial inside");
            filter.AddFilter(FilterItemType.TEXT, "FORM", "Form");

            try
            {
                ReloadAllData();
            }
            catch (Exception ex)
            {
                Common.PresenterInst.ShowStatus(ex.ToString());
            }
            NewItem();
        }