<% # encoding: utf-8 %> <% @@session = session %> <%= yield %> <% data = action_data @venue_management = data["venue_management"] @sign_up = data["sign_up"] @sign_up_time_range = data["sign_up_time_range"] @venue_management_time_range = data["venue_management_time_range"] @contribute_time_range = data["contribute_time_range"] @contribute_action = data["contribute_action"] @params = data['params'] %> <% if !@venue_management.speaker.blank? #address %> <% end %> <% if !@venue_management.land_number.blank? %> <% end %> <% areas = ['land_area','building_area','area'] %> <% areas.each do |area| %> <% if !@venue_management.send(area).blank? %> <% end %> <% end %> <% if !@venue_management.land_zoning.blank? %> <% end %> <% if !@venue_management.content.blank? %> <% end %> <% if !@contribute_time_range.blank? %> <% end %> <% if !@venue_management.act_place.blank? %> <% end %> <% if !@venue_management.venue_management_files.blank? %> <% end %> <% if !@venue_management.venue_management_links.blank? %> <% end %> <% @venue_management.venue_management_item_contents.asc(:_id).each do |item_content| %> <% end %> <% @venue_management_contract = @venue_management.venue_management_contracts.desc(:id).first %> <% if !@venue_management_contract.nil? %> <% if !@venue_management_contract.venue_management_files.blank? %> <% end %> <% if !@venue_management_contract.venue_management_links.blank? %> <% end %> <% end %>
<%= t(:category) %> <%= @venue_management.category.title %>
<%= t('venue_management.event_during') %> <%= @venue_management_time_range %>
<%= t('venue_management.title') %> <%= @venue_management.title %>
<%= t('venue_management.speaker') %> <%= @venue_management.speaker %>
<%= t('venue_management.land_number') %> <%= @venue_management.land_number %>
<%= t("venue_management.#{area}") %> <%= @venue_management.send(area) %>
<%= t('venue_management.land_zoning') %> <%= @venue_management.land_zoning %>
<%= t('venue_management.content') %> <%= nl2br(@venue_management.content) %>
<%= t('venue_management.signup_during') %> <%= @sign_up_time_range %>
<%= t('venue_management.contribute_during') %> <%= @contribute_time_range %>
<%= t('venue_management.signup') %> <%= @sign_up %>
<%= @contribute_action %>
<%= t('venue_management.act_place') %> <%= @venue_management.act_place %>
<%= t(:file_) %> <% @venue_management.venue_management_files.map do |file| %> <%= link_to (file.title.blank? ? File.basename(file.file.path) : file.title) , file.file.url, {:target => '_blank', :title => file.description} if file.file.file %> <% end %>
<%= t(:link) %> <% @venue_management.venue_management_links.map do |link| %> <%= link_to (link.title.blank? ? link.url : link.title), link.url, :target => '_blank' %> <% end %>
<%= item_content.venue_management_item.title %> <%= item_content.content.html_safe %>
<%= t('vm_contract.case_no') %> <%= @venue_management.newest_case_no rescue "" %>
<%= t('vm_inviting.type') %> <%= @venue_management_contract.display_tags %>
<%= t('venue_management.contractor') %> <%= @venue_management_contract.display_contractors %>
<%= t('vm_inviting.rents') %> <%= "#{@venue_management_contract.early_rent} / #{@venue_management_contract.operation_rent}" %>
<%= t('vm_inviting.royalty') %> <%= @venue_management_contract.display_royalty %>
<%= t('vm_inviting.house_land_tax_payer') %> <%= t("vm_inviting.enums.#{@venue_management_contract.house_tax_payer}")+"/"+t("vm_inviting.enums.#{@venue_management_contract.land_tax_payer}") %>
<%= t('vm_contract.renewal_permission') %> <%= @venue_management_contract.renewal_permission.present? ? t("vm_contract.renewal.#{@venue_management_contract.renewal_permission}") : t("vm_contract.renewal.false") %>
<%= t('vm_contract.start_end') %> <%= "#{@venue_management_contract.contract_start_date} ~ #{@venue_management_contract.contract_end_date}" %>
<%= t('vm_contract.construction_start_end') %> <%= "#{@venue_management_contract.construction_start_date} ~ #{@venue_management_contract.construction_end_date}" %>
<%= t('vm_contract.operation_start_end') %> <%= "#{@venue_management_contract.operation_start_date} ~ #{@venue_management_contract.operation_end_date}" %>
<%= t('vm_contract.free_period_start_end') %> <%= "#{@venue_management_contract.free_period_start_date} ~ #{@venue_management_contract.free_period_end_date}" %>
<%= t('vm_contract.sign_date') %> <%= @venue_management_contract.sign_date %>
<%= t('vm_contract.handover_date') %> <%= @venue_management_contract.handover_date %>
<%= t('vm_contract.deposit_payment_date') %> <%= @venue_management_contract.deposit_payment_date %>
<%= t('vm_contract.deposit_type') %> <%= @venue_management_contract.deposit_type %>
<%= t('vm_contract.deposit_exp_date') %> <%= @venue_management_contract.deposit_exp_date %>
<%= t('vm_contract.insurance_type') %> <%= @venue_management_contract.insurance_type %>
<%= t('vm_contract.insurance_payment_deadline') %> <%= @venue_management_contract.insurance_payment_deadline %>
<%= t('vm_contract.insurance_payment_date') %> <%= @venue_management_contract.insurance_payment_date %>
<%= t('vm_contract.other_commitment') %> <%= @venue_management_contract.other_commitment %>
<%= t('vm_contract.note') %> <%= @venue_management_contract.note %>
<%= t(:file_) %> <% @venue_management_contract.venue_management_files.map do |file| %> <%= link_to (file.title.blank? ? File.basename(file.file.path) : file.title) , file.file.url, {:target => '_blank', :title => file.description} if file.file.file %> <% end %>
<%= t(:link) %> <% @venue_management_contract.venue_management_links.map do |link| %> <%= link_to (link.title.blank? ? link.url : link.title), link.url, :target => '_blank' %> <% end %>

<% @table_fields = [ 'vm_contract.case_no', 'vm_contract.vendor', 'vm_contract.start_end', 'vm_contract.renewal_permission', 'vm_contract.note', ] %> <% @table_fields.each do |th| %> <% end %> <% @contracts = @venue_management.venue_management_contracts.to_a %> <% @contracts.each do |contract| %> <% end%>
<%=t(th)%>
<%= link_to contract.display_case_no, "/#{I18n.locale}"+@params[:url]+"/#{contract.display_case_no.to_s.strip}-#{contract.id}?method=show_contract" , :target => '_blank' %> <%= contract.display_contractors %> <%= "#{contract.contract_start_date} / #{contract.contract_end_date}" %> <%= contract.renewal_permission.present? ? t("vm_contract.renewal.#{contract.renewal_permission}") : t("vm_contract.renewal.false") %> <%= contract.note %>
<% @table_fields = [ 'vm_memorabilia.case_no', 'vm_memorabilia.event_date', 'vm_memorabilia.details' ] @memorabilias = @venue_management.venue_management_memorabilias.to_a %> <% @table_fields.each do |th| %> <% end %> <% @memorabilias.each do |memorabilia| %> <% end %>
<%=t(th)%>
<%= link_to memorabilia.case_no, "/#{I18n.locale}"+@params[:url]+"/#{memorabilia.case_no.to_s.strip}-#{memorabilia.id}?method=show_memorabilia", :target => '_blank' %> <%= memorabilia.event_date %> <%= memorabilia.details %>
<% @table_fields = [ 'vm_inviting.case_no', 'vm_inviting.publish_times', 'vm_inviting.rents', 'vm_inviting.royalty', 'vm_inviting.house_land_tax_payer', 'vm_inviting.contractor_manager', 'vm_inviting.bid_result', ] @invitings = @venue_management.venue_management_invitings.to_a %> <% @table_fields.each do |th| %> <% end %> <% @invitings.each do |inviting| %> <% end %>
<%=t(th)%>
<%= link_to inviting.display_case_no, "/#{I18n.locale}"+@params[:url]+"/#{inviting.display_case_no.strip}-#{inviting.id}?method=show_inviting", :target => '_blank' %> <%= inviting.publish_times %> <%= "#{inviting.early_rent} / #{inviting.operation_rent}" %> <%= inviting.display_royalty %> <%= t("vm_inviting.enums.#{inviting.house_tax_payer}") + "/" + t("vm_inviting.enums.#{inviting.land_tax_payer}") %> <%= inviting.contractor_manager %> <%= t("vm_inviting.enums.bid_result.#{inviting.bid_result}") %>
<% @table_fields = [ "contractor", "accounting_month", "bill_type", "caculation_basis", "reason", "amount", "pay_date", "pay_method", "note" ] @bills = @venue_management.venue_management_bills.to_a %> <% @table_fields.each do |th| %> <%=Admin::VenueManagementBillsHelper.thead(th)%> <% end %> <% @bills.each do |bill| %> <% end %>
<% contractors = bill.contractor.display_contractors rescue "" %> <% contractors = t(:empty) if contractors.blank? %> <%= link_to contractors, "/#{I18n.locale}"+@params[:url]+"/#{contractors.to_s.strip}-#{bill.id}?method=show_bill", :target => '_blank' %> <%= bill.display_accounting_month %> <%= "#{t("vm_bill.#{bill.bill_typeA}")}/#{t("vm_bill.#{bill.bill_typeB}")}" %> <% if bill.bill_typeB == 'other' && bill.bill_other.present? %> -<%=bill.bill_other%> <% end %> <%= bill.display_caculation_basis %> <%= bill.reason %> <%= bill.amount %> <%= bill.pay_date %> <%= bill.pay_method %> <%= bill.note %>
<%= link_to t(:close), 'javascript:window.close();', :class => 'btn btn-primary' %>