Ejemplo n.º 1
0
        public TypesBusinessObject()
        {
            _projectsConnectDB             = new projectsConnectLocalDB();
            _productsConnectDB             = new productsConnectLocalDB();
            _profilesConnectDB             = new profilesConnectLocalDB();
            _materialProductConnectDB      = new materialProductConnectLocalDB();
            _materialTypeConnectDB         = new materialTypeConnectLocalDB();
            _materialConnectDB             = new materialConnectLocalDB();
            _materialTypeMaterialConnectDB = new materialTypeMaterialConnectLocalDB();
            _materialIOPositionConnectDB   = new materialIOPositionConnectLocalDB();
            _typesConnectDB = new typeConnectLocalDB();

            clInputErrors.Add(new clErrors(clConstants.EMPTYCHECK, clLanguages.getName("__ProductCode")));
            sCode = new clTextBoxValidation(clInputErrors);

            clInputErrors = new ObservableCollection <clErrors>();
            clInputErrors.Add(new clErrors(clConstants.EMPTYCHECK, clLanguages.getName("__TypeName")));
            sTypeName = new clTextBoxValidation(clInputErrors);

            clInputErrors = new ObservableCollection <clErrors>();
            clInputErrors.Add(new clErrors(clConstants.EMPTYCHECK, clLanguages.getName("__Comment")));
            sComment = new clTextBoxValidation(clInputErrors);
        }
Ejemplo n.º 2
0
        public ProductsBusinessObject()
        {
            _projectsConnectDB             = new projectsConnectLocalDB();
            _productsConnectDB             = new productsConnectLocalDB();
            _profilesConnectDB             = new profilesConnectLocalDB();
            _coversConnectDB               = new coverConnectLocalDB();
            _typesConnectDB                = new typeConnectLocalDB();
            _materialProductConnectDB      = new materialProductConnectLocalDB();
            _materialTypeConnectDB         = new materialTypeConnectLocalDB();
            _materialConnectDB             = new materialConnectLocalDB();
            _materialTypeMaterialConnectDB = new materialTypeMaterialConnectLocalDB();
            _materialIOPositionConnectDB   = new materialIOPositionConnectLocalDB();


            fillDefaultComboboxes();
            //fillCbbProjectOptions();

            clInputErrors.Add(new clErrors(clConstants.EMPTYCHECK, clLanguages.getName("__ProductCode")));
            sCode = new clTextBoxValidation(clInputErrors);

            clInputErrors = new ObservableCollection <clErrors>();
            clInputErrors.Add(new clErrors(clConstants.EMPTYCHECK, clLanguages.getName("__ProductName")));
            sProductName = new clTextBoxValidation(clInputErrors);
        }