daily pastebin goal
33%
SHARE
TWEET

Untitled

a guest Mar 2nd, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  data = [["Evaluation Period", "Evaluation Type"]]
  2.     if @employee.employee_document.eval_type == "annual_eval"
  3.       data += [["From:"+ @employee.employee_document.eval_from.to_s + " | To:" + @employee.employee_document.eval_to.to_s, "Annual Performance <b>#{CHECK}#{LINE_SEPARATOR}#{LINE_SEPARATOR}</b> | End of Probation #{CHECKBOX} | Other #{CHECKBOX}"]]
  4.     elsif @employee.employee_document.eval_type == ""
  5.       data += [["From:"+ @employee.employee_document.eval_from.to_s + " | To:" + @employee.employee_document.eval_to.to_s, "Annual Performance #{CHECKBOX} | End of Probation <b>#{FILLED_XBOX}</b> | Other #{CHECKBOX}"]]
  6.     else
  7.       data += [["From:"+ @employee.employee_document.eval_from.to_s + " | To:" + @employee.employee_document.eval_to.to_s, "Annual Performance #{CHECKBOX} | End of Probation #{CHECKBOX} | Other <b>#{FILLED_XBOX}</b>"]]
  8.     end
  9.  
  10.     table data do
  11.       cells.padding = 2;
  12.       self.cell_style = { :inline_format => true}
  13.       row(0).font_style=:bold
  14.       row(0).align=:center
  15.       row(0).size = 8
  16.       row(1).size = 8
  17.       self.cells[1, 1].font = "DejaVuSans"
  18.       self.width = 524;
  19.       self.column_widths = [262,262]
  20.       self.header=true
  21.     end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top