<%=javascript_include_tag "work_time", :plugin=>'redmine_work_time' %> <%=stylesheet_link_tag 'work_time', :plugin => 'redmine_work_time' %> <%= @message.html_safe %>
<%= render :partial=>'select_project' %>
[<%= link_to(l(:wt_each_member_report), @link_params.merge(:action=>"show")) %>] [<%= link_to(l(:wt_edit_relay), @link_params.merge(:action=>"edit_relay")) %>] [<%= link_to(l(:wt_raw_total), @link_params.merge(:action=>"total")) %>]

<%=l(:wt_relay_total)%> <%= link_to("<<", @link_params.merge(:day=>@last_month.day, :month=>@last_month.month, :year=>@last_month.year))%> <%= @first_date.strftime("%Y/%m/%d") %> - <%= @last_date.strftime("%Y/%m/%d") %> <%= link_to(">>", @link_params.merge(:day=>@next_month.day, :month=>@next_month.month, :year=>@next_month.year))%>

<% if !User.current.allowed_to?(:view_work_time_other_member, @project) then return end ############################################## 集計表 ##################### %> <% max = @members.size @members.each do |mem_info| pos = mem_info[0] user = mem_info[1] %> <% end %> <% #---------------------------------------各人の合計を表示 @members.each do |mem_info| user=mem_info[1] %> <% end %> <% prjs = WtProjectOrders.where("uid=-1").order("dsp_pos").all tickets = WtTicketRelay.order("position").all tic_max = tickets.size #-------------------------------------- チケット行のループ prjs.each do |po| dsp_prj = po.dsp_prj dsp_pos = po.dsp_pos next unless @r_prj_cost.key?(dsp_prj) # 値の無いプロジェクトはパス next unless @r_prj_cost[dsp_prj].key?(-1) # 値の無いプロジェクトはパス next if @r_prj_cost[dsp_prj][-1] == 0 # 値の無いプロジェクトはスパ prj =Project.find(dsp_prj) %> <% @members.each do |mem_info| user=mem_info[1] uid=user.id %> <% end %> <% tickets.each do |tic| issue_id = tic.issue_id next unless @r_issue_cost.key?(issue_id) # 値の無いチケットはパス next unless @r_issue_cost[issue_id].key?(-1) # 値の無いチケットはパス next if @r_issue_cost[issue_id][-1] == 0 # 値の無いチケットはパス issue = Issue.find_by_id(issue_id) next if issue.nil? # チケットが削除されていたらパス next if issue.project_id != dsp_prj # このプロジェクトに表示するチケットでない場合はパス %> <% @members.each do |mem_info| user=mem_info[1] %> <% end %> <% end end if @r_prj_cost.has_key?(-1) then %> <% @members.each do |mem_info| user=mem_info[1] uid=user.id %> <%end%> <%end%>
<%if User.current.allowed_to?(:edit_work_time_total, @project) then%> <%=pos%> <%end%>
<%= link_to(user, @link_params.merge(:action=>"show", :user=>user.id))%>
<%=sprintf('%1.2f', @total_cost)%> <%= (@member_cost.key?(user.id) && @member_cost[user.id] !=0 ) ? sprintf('%1.2f', @member_cost[user.id]) : " "%>
<%if User.current.allowed_to?(:edit_work_time_total, @project) then%> <%=dsp_pos%>: <%end%> <%=prj.name%> <%=sprintf('%1.2f', (@r_prj_cost[dsp_prj])[-1])%> <%= @r_prj_cost[dsp_prj].key?(uid) ? sprintf('%1.2f', (@r_prj_cost[dsp_prj])[uid]) : " "%>
<%if User.current.allowed_to?(:edit_work_time_total, @project) then%> <%=tic.position%> <%end%> <%= link_to( wk_pretty_issue_name(issue), {:controller=>"issues", :action=>"show", :id=>issue.id}, :popup=>true) %> <%= print_issue_cost(issue) %> <%=sprintf('%1.2f', (@r_issue_cost[issue_id])[-1])%> <% if @r_issue_cost.key?(issue_id) && @r_issue_cost[issue_id].key?(user.id) then %> <%= sprintf('%1.2f', (@r_issue_cost[issue_id])[user.id]) %> <%else%>   <%end%>
private <%=sprintf('%1.2f', (@r_prj_cost[-1])[-1])%> <%= @r_prj_cost[-1].key?(uid) ? sprintf('%1.2f', (@r_prj_cost[-1])[uid]) : " "%>
'" value="<%=l(:wt_data_download)%>" /> '" value="<%=l(:wt_data_download_with_act)%>" />
<%= render :partial=>'select_project' %>
[<%= link_to(l(:wt_each_member_report), @link_params.merge(:action=>"show")) %>] [<%= link_to(l(:wt_edit_relay), @link_params.merge(:action=>"edit_relay")) %>] [<%= link_to(l(:wt_raw_total), @link_params.merge(:action=>"total")) %>]