Sha256: 50d65f2b819475a5545a682463f96abb0c3ed32d90a6bc1e4c97633d02cdb26c
Contents?: true
Size: 1.82 KB
Versions: 3
Compression:
Stored size: 1.82 KB
Contents
module C80Estate module AppHelper def render_table_prop_busy_coef(atype_id: nil) # Rails.logger.debug "<render_table_prop_busy_coef> atype_id = #{atype_id}" props = Property.all if props.count > 0 list = [] props.all.each do |prop| pp = Pstat.busy_coef(prop_id: prop.id, atype_id: atype_id) # Rails.logger.debug "<render_table_prop_busy_coef> pp = #{pp}" busy_coef = pp[:busy_coef] props = pp[:raw_props] list << { title: prop.title, busy_coef: busy_coef, props: props } # Rails.logger.debug "<render_table_prop_busy_coef> #{prop.title}" end render :partial => 'c80_estate/shared/table_properties_coef_busy', :locals => { list: list } end end def render_table_prop_busy_coef_sq(atype_id: nil) # Rails.logger.debug "<render_table_prop_busy_coef_sq> atype_id = #{atype_id}" props = Property.all if props.count > 0 list = [] props.all.each do |prop| pp = Pstat.busy_coef(prop_id: prop.id, atype_id: atype_id) # Rails.logger.debug "<render_table_prop_busy_coef> pp = #{pp}" busy_coef_sq = pp[:busy_coef_sq] props = pp[:raw_props_sq] list << { title: prop.title, busy_coef: busy_coef_sq, props: props } # Rails.logger.debug "<render_table_prop_busy_coef> #{prop.title}" end render :partial => 'c80_estate/shared/table_properties_coef_busy_sq', :locals => { list: list } end end def render_upload_areas_excel_form render :partial => 'c80_estate/shared/form_upload_areas_excel' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
c80_estate-0.1.0.12 | app/helpers/c80_estate/app_helper.rb |
c80_estate-0.1.0.11 | app/helpers/c80_estate/app_helper.rb |
c80_estate-0.1.0.10 | app/helpers/c80_estate/app_helper.rb |