Example #1
0
        public FTypeService()
        {
            Module = "Cadastros Iniciais";

            ObjectControl = new List <TypeService>();

            InvokeMethod = new InvokeMethod(typeof(TypeServiceController), new Dictionary <TypeExecute, string>()
            {
                { TypeExecute.InsertOrUpdate, "Save" },
                { TypeExecute.Remove, "RemoveId" },
                { TypeExecute.FindId, "FindId" },
                { TypeExecute.Search, "Search" },
                { TypeExecute.SearchAll, "ListTypeService" }
            }, typeof(TypeService));

            InitializeComponent();

            TypeStructure.SetEnumItems <TypeStructure>(Core.Domain.EnumBase.TypeStructure.Sinthetic);

            TypeServices.FormType              = typeof(FTypeService);
            TypeServices.ObjetoApp             = new InvokeMethod(typeof(TypeServiceController), TypeExecute.Search, "Search", typeof(TypeService));
            TypeServices.ScreenSecondary       = true;
            TypeServices.IsDependecyUkey       = true;
            TypeServices.PropertyDependecyUkey = "TypeServiceMasterId";
            TypeServices.Caption = "Sub Tipos de Serviços";

            ImageSource = Properties.Resources.icon_typeService;
        }
Example #2
0
        public FFamily()
        {
            Module        = "Cadastros Iniciais";
            ObjectControl = new List <Family>();
            InvokeMethod  = new InvokeMethod(typeof(FamilyController), new Dictionary <TypeExecute, string>()
            {
                { TypeExecute.InsertOrUpdate, "Save" },
                { TypeExecute.Remove, "RemoveId" },
                { TypeExecute.FindId, "FindId" },
                { TypeExecute.Search, "Search" },
                { TypeExecute.SearchAll, "ListFamily" }
            }, typeof(Family));

            InitializeComponent();

            TypeStructure.SetEnumItems <TypeStructure>(Core.Domain.EnumBase.TypeStructure.Sinthetic);

            OriginItem.SetEnumItems <OriginItem>(Core.Domain.EnumBase.OriginItem.Origin0);

            Families.FormType              = typeof(FFamily);
            Families.ObjetoApp             = new InvokeMethod(typeof(FamilyController), TypeExecute.Search, "Search", typeof(Family));
            Families.ScreenSecondary       = true;
            Families.IsDependecyUkey       = true;
            Families.PropertyDependecyUkey = "FamilyMasterId";
            Families.Caption = "Sub Familias";

            ImageSource = Properties.Resources.icon_family_stock;
        }
Example #3
0
        public FLocalStock()
        {
            Module = "Cadastros Iniciais";

            InvokeMethod = new InvokeMethod(typeof(LocalStockController), new Dictionary <TypeExecute, string>()
            {
                { TypeExecute.InsertOrUpdate, "Save" },
                { TypeExecute.Remove, "RemoveId" },
                { TypeExecute.FindId, "FindId" },
                { TypeExecute.Search, "Search" },
                { TypeExecute.SearchAll, "ListLocalStock" }
            }, typeof(LocalStock));

            ObjectControl = new List <LocalStock>();

            InitializeComponent();

            TypeStructure.SetEnumItems <TypeStructure>(Core.Domain.EnumBase.TypeStructure.Sinthetic);

            LocalStocks.FormType              = typeof(FLocalStock);
            LocalStocks.ObjetoApp             = new InvokeMethod(typeof(LocalStockController), TypeExecute.Search, "Search", typeof(LocalStock));
            LocalStocks.ScreenSecondary       = true;
            LocalStocks.IsDependecyUkey       = true;
            LocalStocks.PropertyDependecyUkey = "LocalStockMasterId";
            LocalStocks.Caption = "Sub Locais";

            ImageSource = Properties.Resources.local;
        }