Пример #1
0
                public static List <StaticResourceDto> GetAll()
                {
                    var list = new List <StaticResourceDto>
                    {
                        HrParent,
                        Employee.AddParent(HrParent),
                    };

                    list.AddRange(Employee.AddCrudChildren());

                    return(list);
                }
Пример #2
0
                public static List <StaticResourceDto> GetAll()
                {
                    var list = new List <StaticResourceDto>
                    {
                        SaleParent,

                        //Child
                        Customer.AddParent(SaleParent),
                    };

                    //Crud Child
                    list.AddRange(Customer.AddCrudChildren());

                    return(list);
                }
Пример #3
0
                public static List <StaticResourceDto> GetAll()
                {
                    var list = new List <StaticResourceDto>
                    {
                        SystemAdministrationParent,
                        Feature.AddParent(SystemAdministrationParent),
                        Edition.AddParent(SystemAdministrationParent),
                        Tenant.AddParent(SystemAdministrationParent),
                        Subscription.AddParent(SystemAdministrationParent),
                        Payment.AddParent(SystemAdministrationParent),
                        ManageSubscription.AddParent(SystemAdministrationParent),
                        SubscriptionPayment.AddParent(SystemAdministrationParent),
                        TenantUser.AddParent(SystemAdministrationParent),
                        TenantCompany.AddParent(SystemAdministrationParent),
                        RfqManager.AddParent(SystemAdministrationParent),

                        Role.AddParent(SystemAdministrationParent),
                        Resource.AddParent(SystemAdministrationParent),
                        Permission.AddParent(SystemAdministrationParent),
                    };

                    list.AddRange(Feature.AddCrudChildren());
                    list.AddRange(Edition.AddCrudChildren());
                    list.AddRange(Tenant.AddCrudChildren());
                    list.AddRange(Subscription.AddCrudChildren());
                    list.AddRange(Payment.AddCrudChildren());

                    list.Add(ManageSubscription.AddViewChildren());
                    list.Add(ManageSubscription.AddCreateChildren());

                    list.Add(SubscriptionPayment.AddViewChildren());
                    list.Add(SubscriptionPayment.AddCreateChildren());

                    list.AddRange(TenantUser.AddCrudChildren());
                    list.AddRange(TenantCompany.AddCrudChildren());
                    list.AddRange(RfqManager.AddCrudChildren());

                    list.AddRange(Resource.AddCrudChildren());
                    list.Add(Permission.AddViewChildren());
                    list.Add(Permission.AddEditChildren());


                    list.AddRange(Role.AddCrudChildren());
                    list.Add(Role.AddChildren("Permission", $"{Role.State}.permission"));


                    return(list);
                }
Пример #4
0
                public static List <StaticResourceDto> GetAll()
                {
                    var list = new List <StaticResourceDto>
                    {
                        StockParent,

                        //Child
                        Warehouse.AddParent(StockParent),
                    };

                    //Crud Child
                    list.AddRange(Warehouse.AddCrudChildren());



                    return(list);
                }
Пример #5
0
                public static List <StaticResourceDto> GetAll()
                {
                    var list = new List <StaticResourceDto>
                    {
                        PurchaseParent,

                        //Child
                        Supplier.AddParent(PurchaseParent),
                    };


                    //Crud Child
                    list.AddRange(Supplier.AddCrudChildren());


                    return(list);
                }
Пример #6
0
                public static List <StaticResourceDto> GetAll()
                {
                    var list = new List <StaticResourceDto>
                    {
                        AdministrationParent,

                        //Child
                        Company.AddParent(AdministrationParent),
                        CompanyProfile.AddParent(Company),
                        CompanySettings.AddParent(Company),
                        CompanyLogo.AddParent(Company),
                        CompanyFiscalYear.AddParent(Company),
                        Branch.AddParent(Company),
                        Partner.AddParent(Company),
                        User.AddParent(AdministrationParent),
                        AuditLog.AddParent(AdministrationParent),
                        //Asset.AddParent(AdministrationParent),
                        //Equity.AddParent(AdministrationParent),
                        //Liability.AddParent(AdministrationParent)

                        //Crud Child
                        CompanyProfile.AddViewChildren(),
                        CompanyProfile.AddEditChildren(),
                        CompanySettings.AddViewChildren(),
                        CompanySettings.AddEditChildren()
                    };



                    list.AddRange(CompanyFiscalYear.AddCrudChildren());


                    list.AddRange(User.AddCrudChildren());
                    list.AddRange(Branch.AddCrudChildren());
                    list.AddRange(Partner.AddCrudChildren());
                    list.Add(AuditLog.AddViewChildren());
                    //list.AddRange(Asset.AddCrudChildren());
                    //list.AddRange(Equity.AddCrudChildren());

                    return(list);
                }