📄 qiandao_jsp.java
字号:
package org.apache.jsp.oaweb.kaoqin;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import cn.com.chx.oa.model.catalog.UserModel;
import cn.com.chx.oa.util.*;
import java.util.*;
import java.util.Calendar;
import cn.com.chx.oa.model.catalog.UserModel;
import cn.com.chx.oa.util.button.ShowButton;
import cn.com.chx.oa.model.catalog.UserModel;
import java.util.Map;
public final class qiandao_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(6);
_jspx_dependants.add("/WEB-INF/struts-bean.tld");
_jspx_dependants.add("/WEB-INF/struts-html.tld");
_jspx_dependants.add("/WEB-INF/struts-logic.tld");
_jspx_dependants.add("/WEB-INF/CommonTags.tld");
_jspx_dependants.add("/oaweb/style.jsp");
_jspx_dependants.add("/oaweb/kaoqin/label.jsp");
}
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_form_method_action;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_hidden_property_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_hidden_value_property_nobody;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_html_form_method_action = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_html_hidden_property_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_html_hidden_value_property_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_html_form_method_action.release();
_jspx_tagPool_html_hidden_property_nobody.release();
_jspx_tagPool_html_hidden_value_property_nobody.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
String label = request.getParameter("label");
out.write('\r');
out.write('\n');
// Calendar calendar = Calendar.getInstance();
// int year = calendar.get(calendar.YEAR);
// int month = calendar.get(calendar.MONTH)+1;
// StringBuffer querytime = new StringBuffer();
// querytime.append((String)Integer.toString(year));
// querytime.append("-");
// if(month<10){
// querytime.append("0");
// querytime.append((String)Integer.toString(month));
//}else{
// querytime.append((String)Integer.toString(month));
//}
UserModel tm_model = (UserModel)session.getAttribute("userinfo");
String t_userid = tm_model.getId();
out.write('\r');
out.write('\n');
out.write('\r');
out.write('\n');
UserModel user_style_model = (UserModel)session.getAttribute("userinfo");
String css_name = "1";
String t_cssName = user_style_model.getCss_name();
if(t_cssName != null || !t_cssName.equals(""))
css_name = user_style_model.getCss_name();
out.write('\r');
out.write('\n');
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("<title>无标题文档</title>\r\n");
out.write("<script Language=\"JavaScript\" src=\"/oa/oaweb/js/common.js\"> </script>\r\n");
out.write("<script Language=\"JavaScript\" src=\"/oa/oaweb/js/common.script\"></script>\r\n");
out.write("<script Language=\"JavaScript\" src=\"/oa/oaweb/js/checkValue.js\"></script>\r\n");
out.write("<script Language=\"JavaScript\">\r\n");
out.write("function submitForm(act,param)\r\n");
out.write("{\r\n");
out.write(" var today = new Date();\r\n");
out.write("var year = today.getYear();\r\n");
out.write("var month = today.getMonth()+1;\r\n");
out.write("var date = today.getDate();\r\n");
out.write("var hour = today.getHours();\r\n");
out.write("var min = today.getMinutes();\r\n");
out.write("var sec = today.getSeconds();\r\n");
out.write("var col = \":\";\r\n");
out.write("var spc = \" \";\r\n");
out.write("var apm;\r\n");
out.write("\r\n");
out.write("//if ( hour >12 )\r\n");
out.write("//{\r\n");
out.write("//apm=\"PM\";\r\n");
out.write("//}\r\n");
out.write("//else\r\n");
out.write("//{\r\n");
out.write("//apm=\"AM\";\r\n");
out.write("//}\r\n");
out.write("\r\n");
out.write("if (hour<10) hour=\"0\"+hour;\r\n");
out.write("if (hour == 0) hour=12;\r\n");
out.write("if (min<=9) min=\"0\"+min;\r\n");
out.write("if (sec<=9) sec=\"0\"+sec;\r\n");
out.write("if (month<=9) month=\"0\"+month;\r\n");
out.write("\r\n");
out.write("\r\n");
out.write(" document.KaoqinForm.actionType.value = act;\r\n");
out.write("\tif(act==\"save\"){\r\n");
out.write("\t document.KaoqinForm.$end_time.value=\"\";\r\n");
out.write("\t document.KaoqinForm.$begin_time.value=hour + \":\" + min + \":\" + sec;\r\n");
out.write("\t document.KaoqinForm.$kaoqin_date.value=year+\"-\"+month+\"-\"+date;\r\n");
out.write("\r\n");
out.write("\t if(confirm(\"现在时间是:\" + year+\"-\"+month+\"-\"+date+\" \"+hour + \":\" + min + \":\" + sec + \" 确定签到吗?\")){\r\n");
out.write("\t document.KaoqinForm.submit();\r\n");
out.write("\t }\r\n");
out.write("\t else{\r\n");
out.write("\t return;\r\n");
out.write("\t }\r\n");
out.write("\t return;\r\n");
out.write(" }\r\n");
out.write("\tif(act=\"update\"){\r\n");
out.write("\t document.KaoqinForm.$begin_time.value=\"\";\r\n");
out.write("\t document.KaoqinForm.$kaoqin_date.value=year+\"-\"+month+\"-\"+date;\r\n");
out.write("\t document.KaoqinForm.$end_time.value=hour + \":\" + min + \":\" + sec ;\r\n");
out.write("\t if(confirm(\"现在时间是:\" + year+\"-\"+month+\"-\"+date+\" \"+hour + \":\" + min + \":\" + sec +\" 确定签退吗?\")){\r\n");
out.write("\t document.KaoqinForm.submit();\r\n");
out.write("\t }\r\n");
out.write("\t else{\r\n");
out.write("\t return;\r\n");
out.write("\t }\r\n");
out.write("\t return;\r\n");
out.write("\t}\r\n");
out.write("\r\n");
out.write("}\r\n");
out.write("</script>\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("<!--\r\n");
out.write("body {\r\n");
out.write("\tmargin-left: 0px;\r\n");
out.write("\tmargin-top: 0px;\r\n");
out.write("\tbackground-color: #FFFFFF;\r\n");
out.write("}\r\n");
out.write("a:link {\r\n");
out.write("\tcolor: 00007F;\r\n");
out.write("}\r\n");
out.write("a:visited {\r\n");
out.write("\tcolor: 65038E;\r\n");
out.write("}\r\n");
out.write("a:hover {\r\n");
out.write("\tcolor: FF0000;\r\n");
out.write("}\r\n");
out.write("-->\r\n");
out.write("</style>\r\n");
out.write("<link href=\"../css/");
out.print(css_name);
out.write("/homecss.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("<!--\r\n");
out.write(".style1 {font-size: 9pt}\r\n");
out.write("-->\r\n");
out.write("</style>\r\n");
out.write("</head>\r\n");
out.write("<body>\r\n");
out.write("\r\n");
// html:form
org.apache.struts.taglib.html.FormTag _jspx_th_html_form_0 = (org.apache.struts.taglib.html.FormTag) _jspx_tagPool_html_form_method_action.get(org.apache.struts.taglib.html.FormTag.class);
_jspx_th_html_form_0.setPageContext(_jspx_page_context);
_jspx_th_html_form_0.setParent(null);
_jspx_th_html_form_0.setAction("/oaweb/kaoqin/KaoqinAction.do");
_jspx_th_html_form_0.setMethod("POST");
int _jspx_eval_html_form_0 = _jspx_th_html_form_0.doStartTag();
if (_jspx_eval_html_form_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write('\r');
out.write('\n');
if (_jspx_meth_html_hidden_0(_jspx_th_html_form_0, _jspx_page_context))
return;
out.write('\r');
out.write('\n');
// html:hidden
org.apache.struts.taglib.html.HiddenTag _jspx_th_html_hidden_1 = (org.apache.struts.taglib.html.HiddenTag) _jspx_tagPool_html_hidden_value_property_nobody.get(org.apache.struts.taglib.html.HiddenTag.class);
_jspx_th_html_hidden_1.setPageContext(_jspx_page_context);
_jspx_th_html_hidden_1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_html_form_0);
_jspx_th_html_hidden_1.setProperty("$user_pk");
_jspx_th_html_hidden_1.setValue(t_userid);
int _jspx_eval_html_hidden_1 = _jspx_th_html_hidden_1.doStartTag();
if (_jspx_th_html_hidden_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return;
_jspx_tagPool_html_hidden_value_property_nobody.reuse(_jspx_th_html_hidden_1);
out.write('\r');
out.write('\n');
if (_jspx_meth_html_hidden_2(_jspx_th_html_form_0, _jspx_page_context))
return;
out.write('\r');
out.write('\n');
if (_jspx_meth_html_hidden_3(_jspx_th_html_form_0, _jspx_page_context))
return;
out.write('\r');
out.write('\n');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -