您好,欢迎访问三七文档
代码设计上机界面packageorg.apache.jsp.page.pc;importjavax.servlet.*;importjavax.servlet.http.*;importjavax.servlet.jsp.*;importjava.util.*;importcom.tjuci.model.PC;publicfinalclassup_jspextendsorg.apache.jasper.runtime.HttpJspBaseimplementsorg.apache.jasper.runtime.JspSourceDependent{privatestaticfinalJspFactory_jspxFactory=JspFactory.getDefaultFactory();privatestaticjava.util.List_jspx_dependants;privatejavax.el.ExpressionFactory_el_expressionfactory;privateorg.apache.AnnotationProcessor_jsp_annotationprocessor;publicObjectgetDependants(){return_jspx_dependants;}publicvoid_jspInit(){_el_expressionfactory=_jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();_jsp_annotationprocessor=(org.apache.AnnotationProcessor)getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());}publicvoid_jspDestroy(){}publicvoid_jspService(HttpServletRequestrequest,HttpServletResponseresponse)throwsjava.io.IOException,ServletException{PageContextpageContext=null;HttpSessionsession=null;ServletContextapplication=null;ServletConfigconfig=null;JspWriterout=null;Objectpage=this;JspWriter_jspx_out=null;PageContext_jspx_page_context=null;try{response.setContentType(text/html;charset=UTF-8);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();1_jspx_out=out;out.write(\r\n);out.write(\r\n);out.write(\r\n);out.write(\r\n);out.write(!DOCTYPEHTMLPUBLIC\-//W3C//DTDHTML4.01Transitional//EN\\r\n);out.write(html\r\n);out.write(head\r\n);out.write(\r\n);out.write(metahttp-equiv=\content\content=\text/html;charset=UTF-8\/\r\n);out.write(title上机/title\r\n);out.write(scripttype=\text/javascript\\r\n);out.write(\t\r\n);out.write(/script\r\n);out.write(/head\r\n);out.write(\r\n);out.write(body\r\n);out.write(\t\t);PCpc=(PC)request.getAttribute(pc);out.write(\r\n);out.write(formid=\myform\action=\);out.print(request.getContextPath());out.write(/submitUp.do?id=);out.print(pc.getId());out.write(\method=\post\onsubmit=\returncheck(this)\\r\n);out.write(\t\r\n);out.write(tablealign=\center\border=\1\\r\n);out.write(centerh2用户上机界面/h2/centerhr/\r\n);out.write(\ttr\r\n);out.write(\t\ttd机器号/td\r\n);out.write(\t\ttd);out.print(pc.getPno());out.write(/td\r\n);out.write(\t/tr\r\n);out.write(\ttr\r\n);out.write(\t\ttd状态/td\r\n);out.write(\t\ttd);out.print(pc.getPcState());out.write(/td\r\n);out.write(\t/tr\r\n);out.write(\ttr\r\n);out.write(\t\ttd客户名/td\r\n);out.write(\t\ttdinputtype=\text\id=\username\name=\username\maxlength=\21\//td\r\n);2out.write(\t/tr\r\n);out.write(\ttr\r\n);out.write(\t\ttd消费额/td\r\n);out.write(\t\ttdinputtype=\text\id=\cost\name=\cost\//td\r\n);out.write(\t/tr\r\n);out.write(\ttr\r\n);out.write(\t\ttd是否通宵/td\r\n);out.write(\t\ttd\r\n);out.write(\t\tselectname=\isnight\\r\n);out.write(\t\t\toptionvalue=\1\否/option\r\n);out.write(\t\t\toptionvalue=\0\是/option\r\n);out.write(\t\t\t\r\n);out.write(\t\t/select\r\n);out.write(\t\t/td\r\n);out.write(\t/tr\r\n);out.write(\ttralign=\center\\r\n);out.write(\t\ttdcolspan=\2\inputtype=\submit\value=\提交\/ inputtype=\reset\value=\重置\//td\r\n);out.write(\t/tr\r\n);out.write(\r\n);out.write(/table\r\n);out.write(/form\r\n);out.write(/body\r\n);out.write(/html\r\n);}catch(Throwablet){if(!(tinstanceofSkipPageException)){out=_jspx_out;if(out!=null&&out.getBufferSize()!=0)try{out.clearBuffer();}catch(java.io.IOExceptione){}if(_jspx_page_context!=null)_jspx_page_context.handlePageException(t);}}finally{_jspxFactory.releasePageContext(_jspx_page_context);}}}3上机界面说明:管理员登陆上机界面时选择待机状态的机器输入客户名、消费额及是否通宵情况,并提交。如果管理员输错信息,则需要重置。用户上下机packageorg.apache.jsp.page.pc;importjavax.servlet.*;importjavax.servlet.http.*;importjavax.servlet.jsp.*;importjava.util.*;importcom.tjuci.model.PC;publicfinalclasspcList_jspextendsorg.apache.jasper.runtime.HttpJspBaseimplementsorg.apache.jasper.runtime.JspSourceDependent{privatestaticfinalJspFactory_jspxFactory=JspFactory.getDefaultFactory();privatestaticjava.util.List_jspx_dependants;privatejavax.el.ExpressionFactory_el_expressionfactory;privateorg.apache.AnnotationProcessor_jsp_annotationprocessor;publicObjectgetDependants(){return_jspx_dependants;}publicvoid_jspInit(){_el_expressionfactory=_jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();_jsp_annotationprocessor=(org.apache.AnnotationProcessor)getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());}publicvoid_jspDestroy(){}publicvoid_jspService(HttpServletRequestrequest,HttpServletResponseresponse)throwsjava.io.IOException,ServletException{PageContextpageContext=null;HttpSessionsession=null;ServletContextapplica
本文标题:网吧计费管理代码
链接地址:https://www.777doc.com/doc-1718594 .html