Esempio n. 1
0
 public void LoadCompositions(Meridian _meridian)
 {
     string[] keyIds = null;
     keyIds = fieldsets.Split(',');
     foreach(var foreignIdStr in keyIds)
     {
         long foreignId = 0;
         if(long.TryParse(foreignIdStr, out foreignId))
         {
             if((foreignId > 0) && (_meridian.fieldsetsStore.Exists(foreignId)))
             {
                 var foreignItem = _meridian.fieldsetsStore.Get(foreignId);
                 this.fieldsets_items.Add(foreignItem);
                 foreignItem.fieldsets_items.Add(this);
             }
         }
     }
 }
Esempio n. 2
0
 public void LoadAggregations(Meridian _meridian)
 {
     if((parent_id > 0) && (_meridian.territoriesStore.Exists(parent_id)))
     {
         this.sub_territories_territories = _meridian.territoriesStore.Get(parent_id);;
         this.sub_territories_territories.AddSubTerritories(this);
     }
     if((category_id > 0) && (_meridian.territory_categoriesStore.Exists(category_id)))
     {
         this.category_territories_territory_categories = _meridian.territory_categoriesStore.Get(category_id);;
         this.category_territories_territory_categories.AddTerritories(this);
     }
 }
Esempio n. 3
0
 public void LoadAggregations(Meridian _meridian)
 {
 }
Esempio n. 4
0
 public void LoadCompositions(Meridian _meridian)
 {
     string[] keyIds = null;
 }
Esempio n. 5
0
 public void LoadAggregations(Meridian _meridian)
 {
     if((account_id > 0) && (_meridian.accountsStore.Exists(account_id)))
     {
         this.account_questions_accounts = _meridian.accountsStore.Get(account_id);;
         this.account_questions_accounts.AddQuestions(this);
     }
     if((replier_account_id > 0) && (_meridian.accountsStore.Exists(replier_account_id)))
     {
         this.account_answers_accounts = _meridian.accountsStore.Get(replier_account_id);;
         this.account_answers_accounts.AddAnswers(this);
     }
 }
Esempio n. 6
0
 public void LoadCompositions(Meridian _meridian)
 {
     string[] keyIds = null;
     keyIds = cure_profiles.Split(',');
     foreach(var foreignIdStr in keyIds)
     {
         long foreignId = 0;
         if(long.TryParse(foreignIdStr, out foreignId))
         {
             if((foreignId > 0) && (_meridian.cure_profilesStore.Exists(foreignId)))
             {
                 var foreignItem = _meridian.cure_profilesStore.Get(foreignId);
                 this.cure_profiles_items.Add(foreignItem);
                 foreignItem.cure_profiles_items.Add(this);
             }
         }
     }
     keyIds = ad_cure_profiles.Split(',');
     foreach(var foreignIdStr in keyIds)
     {
         long foreignId = 0;
         if(long.TryParse(foreignIdStr, out foreignId))
         {
             if((foreignId > 0) && (_meridian.cure_profilesStore.Exists(foreignId)))
             {
                 var foreignItem = _meridian.cure_profilesStore.Get(foreignId);
                 this.ad_cure_profiles_items.Add(foreignItem);
                 foreignItem.ad_cure_profiles_items.Add(this);
             }
         }
     }
     keyIds = health_factors.Split(',');
     foreach(var foreignIdStr in keyIds)
     {
         long foreignId = 0;
         if(long.TryParse(foreignIdStr, out foreignId))
         {
             if((foreignId > 0) && (_meridian.health_factorsStore.Exists(foreignId)))
             {
                 var foreignItem = _meridian.health_factorsStore.Get(foreignId);
                 this.health_factors_items.Add(foreignItem);
                 foreignItem.health_factors_items.Add(this);
             }
         }
     }
 }
Esempio n. 7
0
 public void DeleteCompositions(Meridian _meridian)
 {
     string[] keyIds = null;
 }
Esempio n. 8
0
 public BaseController()
 {
     meridian = Meridian.Default;
 }
Esempio n. 9
0
 public void LoadAggregations(Meridian _meridian)
 {
     if((parent_id > 0) && (_meridian.pagesStore.Exists(parent_id)))
     {
         this.sub_pages_pages = _meridian.pagesStore.Get(parent_id);;
         this.sub_pages_pages.AddSubPages(this);
     }
 }
Esempio n. 10
0
 public void LoadAggregations(Meridian _meridian)
 {
     if((account_id > 0) && (_meridian.accountsStore.Exists(account_id)))
     {
         this.u_comments_accounts = _meridian.accountsStore.Get(account_id);;
         this.u_comments_accounts.AddComments(this);
     }
     if((parent_id > 0) && (_meridian.commentsStore.Exists(parent_id)))
     {
         this.cn_child_comments_comments = _meridian.commentsStore.Get(parent_id);;
         this.cn_child_comments_comments.AddChildComments(this);
     }
 }
Esempio n. 11
0
 public void Init(string _connection)
 {
     ConnectionString = _connection;
     using(var connection = new MySqlConnection(_connection))
     {
         m_Meridian = new Meridian();
         m_Meridian.ConnectionString = _connection;
         connection.Open();
         m_Meridian.Load(connection);
         connection.Close();
     }
 }
Esempio n. 12
0
 public void SaveCompositions(Meridian _meridian)
 {
     deseases = string.Join(",", this.deseases_items.Select(s => s.id));
     treatment_options = string.Join(",", this.treatment_options_items.Select(s => s.id));
     properties = string.Join(",", this.properties_items.Select(s => s.id));
 }
Esempio n. 13
0
 public void LoadCompositions(Meridian _meridian)
 {
     string[] keyIds = null;
     keyIds = deseases.Split(',');
     foreach(var foreignIdStr in keyIds)
     {
         long foreignId = 0;
         if(long.TryParse(foreignIdStr, out foreignId))
         {
             if((foreignId > 0) && (_meridian.deseasesStore.Exists(foreignId)))
             {
                 var foreignItem = _meridian.deseasesStore.Get(foreignId);
                 this.deseases_items.Add(foreignItem);
                 foreignItem.deseases_items.Add(this);
             }
         }
     }
     keyIds = treatment_options.Split(',');
     foreach(var foreignIdStr in keyIds)
     {
         long foreignId = 0;
         if(long.TryParse(foreignIdStr, out foreignId))
         {
             if((foreignId > 0) && (_meridian.treatment_optionsStore.Exists(foreignId)))
             {
                 var foreignItem = _meridian.treatment_optionsStore.Get(foreignId);
                 this.treatment_options_items.Add(foreignItem);
                 foreignItem.treatment_options_items.Add(this);
             }
         }
     }
     keyIds = properties.Split(',');
     foreach(var foreignIdStr in keyIds)
     {
         long foreignId = 0;
         if(long.TryParse(foreignIdStr, out foreignId))
         {
             if((foreignId > 0) && (_meridian.propertiesStore.Exists(foreignId)))
             {
                 var foreignItem = _meridian.propertiesStore.Get(foreignId);
                 this.properties_items.Add(foreignItem);
                 foreignItem.properties_items.Add(this);
             }
         }
     }
 }
Esempio n. 14
0
 public void LoadAggregations(Meridian _meridian)
 {
     if((resort_id > 0) && (_meridian.resortsStore.Exists(resort_id)))
     {
         this.resort_hotels_resorts = _meridian.resortsStore.Get(resort_id);;
         this.resort_hotels_resorts.AddHotels(this);
     }
     if((class_id > 0) && (_meridian.hotel_classesStore.Exists(class_id)))
     {
         this.class_hotels_hotel_classes = _meridian.hotel_classesStore.Get(class_id);;
         this.class_hotels_hotel_classes.AddHotels(this);
     }
 }
Esempio n. 15
0
 public void SaveCompositions(Meridian _meridian)
 {
     fieldsets = string.Join(",", this.fieldsets_items.Select(s => s.id));
 }
Esempio n. 16
0
 public void LoadAggregations(Meridian _meridian)
 {
     if((parent_id > 0) && (_meridian.treatment_optionsStore.Exists(parent_id)))
     {
         this.sub_treatments_treatment_options = _meridian.treatment_optionsStore.Get(parent_id);;
         this.sub_treatments_treatment_options.AddSubTreatmentOptions(this);
     }
 }
Esempio n. 17
0
 public void LoadAggregations(Meridian _meridian)
 {
     if((territory_id > 0) && (_meridian.territoriesStore.Exists(territory_id)))
     {
         this.territory_resorts_territories = _meridian.territoriesStore.Get(territory_id);;
         this.territory_resorts_territories.AddResorts(this);
     }
 }
Esempio n. 18
0
 public void LoadAggregations(Meridian _meridian)
 {
     if((category_id > 0) && (_meridian.property_categoriesStore.Exists(category_id)))
     {
         this.category_properties_property_categories = _meridian.property_categoriesStore.Get(category_id);;
         this.category_properties_property_categories.AddProperties(this);
     }
 }
Esempio n. 19
0
 public void SaveCompositions(Meridian _meridian)
 {
     cure_profiles = string.Join(",", this.cure_profiles_items.Select(s => s.id));
     ad_cure_profiles = string.Join(",", this.ad_cure_profiles_items.Select(s => s.id));
     health_factors = string.Join(",", this.health_factors_items.Select(s => s.id));
 }
Esempio n. 20
0
 public void LoadAggregations(Meridian _meridian)
 {
     if((field_id > 0) && (_meridian.entity_fieldsStore.Exists(field_id)))
     {
         this.fv_entity_fields_entity_fields = _meridian.entity_fieldsStore.Get(field_id);;
         this.fv_entity_fields_entity_fields.AddFieldValues(this);
     }
 }
Esempio n. 21
0
 public void LoadAggregations(Meridian _meridian)
 {
     if((parent_id > 0) && (_meridian.health_factorsStore.Exists(parent_id)))
     {
         this.sub_health_factors_health_factors = _meridian.health_factorsStore.Get(parent_id);;
         this.sub_health_factors_health_factors.AddSubHealthFactors(this);
     }
 }
Esempio n. 22
0
 public void LoadAggregations(Meridian _meridian)
 {
     if((profile_id > 0) && (_meridian.cure_profilesStore.Exists(profile_id)))
     {
         this.cure_profiles_deseases_cure_profiles = _meridian.cure_profilesStore.Get(profile_id);;
         this.cure_profiles_deseases_cure_profiles.AddDeseases(this);
     }
 }
Esempio n. 23
0
 public void SaveCompositions(Meridian _meridian)
 {
 }
Esempio n. 24
0
 public void LoadAggregations(Meridian _meridian)
 {
     if((category_id > 0) && (_meridian.news_categoriesStore.Exists(category_id)))
     {
         this.news_categories_news_news_categories = _meridian.news_categoriesStore.Get(category_id);;
         this.news_categories_news_news_categories.AddNews(this);
     }
 }