@Override
 protected Doc doCreateDoc() {
   cx().checkAdminAccess();
   try {
     Employee e =
         Employee.table.getRec(
             cx(), SQL.eq(Im4ixUser.table.NAME, request().getParameter("employee-user-name")));
     return new AssignmentDoc(new Assignment(e), request());
   } catch (RecNotFound e) {
     throw HTTP.notFound(e);
   } catch (SQLException e) {
     throw HTTP.internalServerError(e);
   }
 }
  public MoneyYearStatisticsDoc(Im4ixCx cx, final HttpServletRequest request) {
    super(cx);
    setTitle(t8("statistics.money.year"), "money");
    head().script("/js/Chart.js");

    try {
      container().appendChild(new Chart(this, cx, request));
    } catch (SQLException e) {
      throw HTTP.internalServerError(e);
    }
  }