def process_get_industry(db): results = get_industries(db) domain_list = get_domains_for_user(db, 0) country_list = get_countries_for_user(db, 0) return knowledgemaster.GetIndustriesSuccess(industries=results, countries=country_list, domains=domain_list)
def process_get_statutory_notifications_filters(db, request_frame, user_id): countries = get_countries_for_user_filter(db, user_id) domains = get_domains_for_user(db, user_id) level_one_statutories = get_level_1_statutories(db) return technoreports.GetStatutoryNotificationsFiltersSuccess( countries=countries, domains=domains, level_one_statutories=level_one_statutories )
def process_get_approve_mapping_filters(db, user_id): industry = get_industries(db) natures = get_statutory_nature(db) country = get_countries_for_user(db, user_id) domains = get_domains_for_user(db, user_id) users = get_child_users(db, user_id) return knowledgetransaction.GetApproveStatutoryMappingFilterSuccess( country, domains, natures, industry, users )
def process_get_assigned_statutory_wizard_one(db, user_id): group_companies = get_clients_by_user(db, user_id) business_groups = get_business_groups_for_user(db, user_id) legal_entities = get_legal_entities_for_user(db, user_id) divisions = get_divisions_for_user(db, user_id) categories = get_categories_for_user(db, user_id) domains = get_domains_for_user(db, user_id) units = get_units_for_user(db, user_id) return technotransactions.GetAssignedStatutoryWizardOneDataSuccess( group_companies, business_groups, legal_entities, divisions, categories, domains, units)
def process_get_assigned_statutory_report_filters(db, user_id): countries = get_countries_for_user(db, user_id) domains = get_domains_for_user(db, user_id) group_companies = get_group_companies_for_statutorysetting_report(db, user_id) business_groups = get_business_groups_for_statutorysetting_report(db, user_id) unit_list = get_units_for_statutorysetting_report(db, user_id) compliance_statutories = get_compliance_statutoy_for_statutorysetting_report(db, user_id) return technoreports.GetAssignedStatutoryReportFiltersSuccess( countries, domains, group_companies, business_groups, unit_list, compliance_statutories )
def process_get_compliance_task_filter(db, request, session_user): countries = get_countries_for_user(db, session_user) domains = get_domains_for_user(db, session_user) industries = get_industries(db) statutory_nature = get_statutory_nature(db) geographies = get_geographies(db) level_1_statutories = get_country_wise_level_1_statutoy(db) compliance_frequency = get_compliance_frequency(db) return knowledgereport.GetStatutoryMappingReportFiltersSuccess( countries, domains, industries, statutory_nature, geographies, level_1_statutories, compliance_frequency )
def process_get_client_agreement_report_filters(db, request_frame, session_user): countries = get_countries_for_user_filter(db, session_user) domains = get_domains_for_user(db, session_user) groups = get_client_groups_for_user(db, session_user) business_groups = get_business_groups_for_user(db, session_user) unit_legal_entity = get_legal_entities_for_user(db, session_user) return technoreports.GetClientAgreementReportFiltersSuccess( countries=countries, domains=domains, groups=groups, business_groups=business_groups, unit_legal_entity=unit_legal_entity )
def process_get_statutory_level(db, user_id): countries = get_countries_for_user(db, user_id) domains = get_domains_for_user(db, user_id) statutory_levels = get_statutory_levels(db) return knowledgemaster.GetStatutoryLevelsSuccess(countries, domains, statutory_levels)