|
|
@ -4185,7 +4185,7 @@ end
|
|
|
|
sheet1 = book.create_worksheet :name => "users"
|
|
|
|
sheet1 = book.create_worksheet :name => "users"
|
|
|
|
blue = Spreadsheet::Format.new :color => :blue, :weight => :bold, :size => 10
|
|
|
|
blue = Spreadsheet::Format.new :color => :blue, :weight => :bold, :size => 10
|
|
|
|
sheet1.row(0).default_format = blue
|
|
|
|
sheet1.row(0).default_format = blue
|
|
|
|
sheet1.row(0).concat(["用户姓名","性别","职业","职称","地区"," 单位","子单位","注册时间","最后登录时间","授权"])
|
|
|
|
sheet1.row(0).concat(["用户姓名","性别","职业","职称","地区"," 单位","子单位","注册时间","最后登录时间","授权", "邮箱"])
|
|
|
|
count_row = 1
|
|
|
|
count_row = 1
|
|
|
|
users.each do |user|
|
|
|
|
users.each do |user|
|
|
|
|
sheet1[count_row,0] = user.try(:show_real_name)
|
|
|
|
sheet1[count_row,0] = user.try(:show_real_name)
|
|
|
@ -4198,6 +4198,7 @@ end
|
|
|
|
sheet1[count_row,7] = format_time user.created_on
|
|
|
|
sheet1[count_row,7] = format_time user.created_on
|
|
|
|
sheet1[count_row,8] = format_time user.last_login_on
|
|
|
|
sheet1[count_row,8] = format_time user.last_login_on
|
|
|
|
sheet1[count_row,9] = user.trial_authorization
|
|
|
|
sheet1[count_row,9] = user.trial_authorization
|
|
|
|
|
|
|
|
sheet1[count_row,10] = user.mail
|
|
|
|
count_row += 1
|
|
|
|
count_row += 1
|
|
|
|
end
|
|
|
|
end
|
|
|
|
book.write xls_report
|
|
|
|
book.write xls_report
|
|
|
|