<%= render "layouts/portlet-config" %> <%= render "layouts/theme-panel" %> <% if flash[:error] %>
× <%= flash[:error] %>
<% end %> <%= render "layouts/breadcrumbs" %> <%= form_tag({:action=>'create'} ,:multipart=>true,:id=>'myForms' ) do %>
Sched. No [*]
From Date [*]
<% dt ='' @udt = '' if @scheduleData!=nil if @scheduleData.sd_frmdate!=nil && @scheduleData.sd_frmdate!='' ndt = Date.parse(@scheduleData.sd_frmdate.to_s) dt = ndt.strftime("%d-%b-%Y") end if @scheduleData.sd_uptodate!=nil && @scheduleData.sd_uptodate!='' cdt = Date.parse(@scheduleData.sd_uptodate.to_s) @udt = cdt.strftime("%d-%b-%Y") end end %> <% if @isAllowed %> <%=dt%> <% else %> <% end %>
Upto Date [*]
<% if @isAllowed %> <%=@udt%> <% else %> <% end %>
Remark [*]
Backend Remark 
HOD Remark 
 
Customer
Sales/Emp.
From Date
Upto Date
<% pagestart = params[:page] ? params[:page] : 1 if pagestart.to_i <=1 i = 1 else i = ((pagestart.to_i-1)*10)+1 i = i.to_i end if @purposeListed.count >0 @purposeListed.each do |pbd| %> <% i +=1 end else %> <% end %>
SL.No. Schedule No. From Date Upto Date Emp. Remark HOD Remark Backend Remark Status Action
<%=i%> <%=pbd.sd_number%> <% ndates = '' if pbd.sd_frmdate!=nil && pbd.sd_frmdate!='' dt = Date.parse(pbd.sd_frmdate.to_s) ndates = dt.strftime("%d-%b-%Y") end %> <%=ndates%> <% udates = '' if pbd.sd_uptodate!=nil && pbd.sd_uptodate!='' dt = Date.parse(pbd.sd_uptodate.to_s) udates = dt.strftime("%d-%b-%Y") end %> <%=udates%> <% if pbd.sd_remark.length >40 %> <%=pbd.sd_remark[0,40]%>... <% else %> <%=pbd.sd_remark%> <% end %> <% if pbd.sd_remark.length >40 %> <%=pbd.sd_hod_remark[0,40]%>... <% else %> <%=pbd.sd_hod_remark%> <% end %> <% if pbd.sd_remark.length >40 %> <%=pbd.sd_backend_mark[0,40]%>... <% else %> <%=pbd.sd_backend_mark%> <% end %> <% if pbd.sd_status =='C' %> Cancelled <% else %> ---- <% end %> <% if pbd.sd_status !='C' %> Cancel <% else %> --- <% end %>
No Records Found
<%= will_paginate(@purposeListed)%>
<% end %>