// ////////////////////////////////////////////////////////////////////////
        // PUBLIC METHODS - DATASET
        //
        /// <summary>
        /// LoadAll
        /// </summary>
        /// <param name="companyId">companyId</param>
        public void LoadAll(int companyId)
        {
            InsuranceCompaniesSetupInsuranceCompaniesSetupGateway insuranceCompaniesSetupInsuranceCompaniesSetupGateway = new InsuranceCompaniesSetupInsuranceCompaniesSetupGateway(Data);
            insuranceCompaniesSetupInsuranceCompaniesSetupGateway.LoadAll(companyId);

            UpdateDataForNavigators();
        }
        /// <summary>
        /// Save all insuranceCompanies to database (direct)
        /// </summary>
        /// <param name="companyId">companyId</param>        
        public void Save(int companyId)
        {
            InsuranceCompaniesSetupTDS subcontractorSetupChanges = (InsuranceCompaniesSetupTDS)Data.GetChanges();

            if (subcontractorSetupChanges != null)
            {
                if (subcontractorSetupChanges.InsuranceCompaniesSetup.Rows.Count > 0)
                {
                    InsuranceCompaniesSetupInsuranceCompaniesSetupGateway insuranceCompaniesSetupInsuranceCompaniesSetupGateway = new InsuranceCompaniesSetupInsuranceCompaniesSetupGateway(subcontractorSetupChanges);

                    foreach (InsuranceCompaniesSetupTDS.InsuranceCompaniesSetupRow row in (InsuranceCompaniesSetupTDS.InsuranceCompaniesSetupDataTable)subcontractorSetupChanges.InsuranceCompaniesSetup)
                    {
                        // Delete insuranceCompanies
                        if (row.Deleted)
                        {
                            InsuranceCompanies insuranceCompanies = new InsuranceCompanies(null);
                            insuranceCompanies.DeleteDirect(row.COMPANIES_ID, row.Date);
                        }
                    }
                }
            }
        }