⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 carinsubmit_jsp.java

📁 应用泛型以及反射编写的单表操作框架
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
      out.write("function returnDate() //根据日期格式等返回用户选定的日期\r\n");
      out.write("{\r\n");
      out.write("    if(WebCalendar.objExport)\r\n");
      out.write("    {\r\n");
      out.write("        var returnValue;\r\n");
      out.write("        var a = (arguments.length==0) ? WebCalendar.day[this.id.substr(8)].split(\"/\") : arguments[0].split(\"/\");\r\n");
      out.write("        var d = WebCalendar.format.match(/^(\\w{4})(-|\\/|.|)(\\w{1,2})\\2(\\w{1,2})$/);\r\n");
      out.write("        if(d==null){alert(\"你设定的日期输出格式不对!\\r\\n\\r\\n请重新定义 WebCalendar.format !\"); return false;}\r\n");
      out.write("        var flag = d[3].length==2 || d[4].length==2; //判断返回的日期格式是否要补零\r\n");
      out.write("        returnValue = flag ? a[2] +d[2]+ appendZero(a[1]) +d[2]+ appendZero(a[0]) : a[2] +d[2]+ a[1] +d[2]+ a[0];\r\n");
      out.write("        if(WebCalendar.timeShow)\r\n");
      out.write("        {\r\n");
      out.write("            var h = new Date().getHours(), m = new Date().getMinutes(), s = new Date().getSeconds();\r\n");
      out.write("            returnValue += flag ? \" \"+ appendZero(h) +\":\"+ appendZero(m) +\":\"+ appendZero(s) : \" \"+  h  +\":\"+ m +\":\"+ s;\r\n");
      out.write("        }\r\n");
      out.write("        WebCalendar.objExport.value = returnValue;\r\n");
      out.write("        hiddenCalendar();\r\n");
      out.write("    }\r\n");
      out.write("}\r\n");
      out.write("function document.onclick()\r\n");
      out.write("{\r\n");
      out.write("    if(WebCalendar.eventSrc != window.event.srcElement) hiddenCalendar();\r\n");
      out.write("}\r\n");
      out.write("  WebCalendar.timeShow = true; \r\n");
      out.write("//-->\r\n");
      out.write("</script>\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body>\r\n");
      out.write("<p>&nbsp;</p>\r\n");
      out.write("\r\n");
      out.write("<table width=\"500\" border=\"1\" align=\"center\" bordercolor=\"#FFFFFF\" class=\"Xsmall\">\r\n");
      out.write("  <tr> \r\n");
      out.write("    <td bordercolor=\"#000000\"> \r\n");
      out.write("    ");
      if (_jspx_meth_ww_set_0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("   \r\n");
      out.write("     \t\t<table width=\"500\" border=\"1\" align=\"center\" bordercolor=\"#FFFFFF\"\r\n");
      out.write("\t\t\tclass=\"Xsmall\">\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td>\r\n");
      out.write("\t\t\t\t\t申请人:");
      if (_jspx_meth_ww_property_0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td>\r\n");
      out.write("\t\t\t\t\t审批日期:");
      if (_jspx_meth_ww_property_1(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t<td>\r\n");
      out.write("\t\t\t\t审批备注:");
      if (_jspx_meth_ww_property_2(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t</tr>\r\n");
      out.write("\t\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t\t\r\n");
      out.write("\r\n");
      out.write("\t</table>\r\n");
      out.write("\t<br>\r\n");
      out.write("\t\t<form action=\"addCarin.action\" method=\"post\">\r\n");
      out.write("\t\t\t交车日期:<input type=\"text\" name=\"carin.date\" onfocus=\"calendar()\"/><br>\r\n");
      out.write("\t\t\t交车意见:<input type=\"text\" name=\"carin.momo\"/>\r\n");
      out.write("\t\t    出车费用:\r\n");
      out.write("\t\t    <select name=\"fee.feetype\">\r\n");
      out.write("\t\t    <option value=\"A\">公费</option>\r\n");
      out.write("\t\t     <option value=\"B\">自费</option>\r\n");
      out.write("\t\t    </select><br>\r\n");
      out.write("\t\t    费用意见:<input type=\"text\" name=\"fee.memo\"/>\r\n");
      out.write("             <input type=\"submit\" value=\"确认交车\"/>\r\n");
      out.write("             </form>\r\n");
      out.write("          \r\n");
      out.write("\t</body>\r\n");
      out.write("\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_ww_set_0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  ww:set
    com.opensymphony.webwork.views.jsp.SetTag _jspx_th_ww_set_0 = (com.opensymphony.webwork.views.jsp.SetTag) _jspx_tagPool_ww_set_value_name_nobody.get(com.opensymphony.webwork.views.jsp.SetTag.class);
    _jspx_th_ww_set_0.setPageContext(_jspx_page_context);
    _jspx_th_ww_set_0.setParent(null);
    _jspx_th_ww_set_0.setName("carout");
    _jspx_th_ww_set_0.setValue("#session['carout']");
    int _jspx_eval_ww_set_0 = _jspx_th_ww_set_0.doStartTag();
    if (_jspx_th_ww_set_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_ww_set_value_name_nobody.reuse(_jspx_th_ww_set_0);
    return false;
  }

  private boolean _jspx_meth_ww_property_0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  ww:property
    com.opensymphony.webwork.views.jsp.PropertyTag _jspx_th_ww_property_0 = (com.opensymphony.webwork.views.jsp.PropertyTag) _jspx_tagPool_ww_property_value_nobody.get(com.opensymphony.webwork.views.jsp.PropertyTag.class);
    _jspx_th_ww_property_0.setPageContext(_jspx_page_context);
    _jspx_th_ww_property_0.setParent(null);
    _jspx_th_ww_property_0.setValue("#carout.user.username");
    int _jspx_eval_ww_property_0 = _jspx_th_ww_property_0.doStartTag();
    if (_jspx_th_ww_property_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_ww_property_value_nobody.reuse(_jspx_th_ww_property_0);
    return false;
  }

  private boolean _jspx_meth_ww_property_1(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  ww:property
    com.opensymphony.webwork.views.jsp.PropertyTag _jspx_th_ww_property_1 = (com.opensymphony.webwork.views.jsp.PropertyTag) _jspx_tagPool_ww_property_value_nobody.get(com.opensymphony.webwork.views.jsp.PropertyTag.class);
    _jspx_th_ww_property_1.setPageContext(_jspx_page_context);
    _jspx_th_ww_property_1.setParent(null);
    _jspx_th_ww_property_1.setValue("#carout.applycheck.checkdate");
    int _jspx_eval_ww_property_1 = _jspx_th_ww_property_1.doStartTag();
    if (_jspx_th_ww_property_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_ww_property_value_nobody.reuse(_jspx_th_ww_property_1);
    return false;
  }

  private boolean _jspx_meth_ww_property_2(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  ww:property
    com.opensymphony.webwork.views.jsp.PropertyTag _jspx_th_ww_property_2 = (com.opensymphony.webwork.views.jsp.PropertyTag) _jspx_tagPool_ww_property_value_nobody.get(com.opensymphony.webwork.views.jsp.PropertyTag.class);
    _jspx_th_ww_property_2.setPageContext(_jspx_page_context);
    _jspx_th_ww_property_2.setParent(null);
    _jspx_th_ww_property_2.setValue("#carout.applycheck.memo");
    int _jspx_eval_ww_property_2 = _jspx_th_ww_property_2.doStartTag();
    if (_jspx_th_ww_property_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_ww_property_value_nobody.reuse(_jspx_th_ww_property_2);
    return false;
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -