public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html"); 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'); out.write('\n'); String id = request.getParameter("id"); String user = request.getParameter("u"); Upload newupload = new Upload(pageContext, request, response, out, id, "lizozom"); response.sendRedirect(request.getHeader("referer")); out.write('\r'); out.write('\n'); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
String getParam(javax.servlet.http.HttpServletRequest req, String paramName) { String param = req.getParameter(paramName); if (param == null) return ""; param = replace(param, "&", "&"); param = replace(param, "<", "<"); param = replace(param, ">", ">"); param = replace(param, "&lt;", "<"); param = replace(param, "&gt;", ">"); return param; }
public void _jspService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { javax.servlet.http.HttpSession session = request.getSession(true); com.caucho.server.webapp.WebApp _jsp_application = _caucho_getApplication(); javax.servlet.ServletContext application = _jsp_application; com.caucho.jsp.PageContextImpl pageContext = _jsp_application.getJspApplicationContext().allocatePageContext(this, _jsp_application, request, response, null, session, 8192, true, false); javax.servlet.jsp.PageContext _jsp_parentContext = pageContext; javax.servlet.jsp.JspWriter out = pageContext.getOut(); final javax.el.ELContext _jsp_env = pageContext.getELContext(); javax.servlet.ServletConfig config = getServletConfig(); javax.servlet.Servlet page = this; response.setContentType("text/html;charset=EUC-KR"); request.setCharacterEncoding("EUC-KR"); try { out.write(_jsp_string0, 0, _jsp_string0.length); String filename = request.getParameter("filename"); String downname = request.getParameter("downname"); FormDataDownload formData = new FormDataDownload(response, new File(filename), null, null); try { formData.download(); }catch(FileNotFoundException e) { out.write(_jsp_string1, 0, _jsp_string1.length); out.print(( e )); out.write(_jsp_string2, 0, _jsp_string2.length); return; }catch(IOException e) { out.write(_jsp_string3, 0, _jsp_string3.length); out.print(( e )); out.write(_jsp_string4, 0, _jsp_string4.length); return; }catch(Exception e) { System.out.println("Exception Error~~" + e); } out.write('\n'); } catch (java.lang.Throwable _jsp_e) { pageContext.handlePageException(_jsp_e); } finally { _jsp_application.getJspApplicationContext().freePageContext(pageContext); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.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(); _jspx_out = out; out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); org.apache.jasper.runtime.JspRuntimeLibrary.include( request, response, "../dialog/display_messages.jsp", out, false); out.write('\n'); out.write('\n'); // fmt:bundle org.apache.taglibs.standard.tag.rt.fmt.BundleTag _jspx_th_fmt_005fbundle_005f0 = (org.apache.taglibs.standard.tag.rt.fmt.BundleTag) _005fjspx_005ftagPool_005ffmt_005fbundle_0026_005fbasename.get( org.apache.taglibs.standard.tag.rt.fmt.BundleTag.class); _jspx_th_fmt_005fbundle_005f0.setPageContext(_jspx_page_context); _jspx_th_fmt_005fbundle_005f0.setParent(null); // /admin/index.jsp(28,0) name = basename type = null reqTime = true required = true fragment // = false deferredValue = false expectedTypeName = null deferredMethod = false // methodSignature = null _jspx_th_fmt_005fbundle_005f0.setBasename("org.wso2.carbon.i18n.Resources"); int _jspx_eval_fmt_005fbundle_005f0 = _jspx_th_fmt_005fbundle_005f0.doStartTag(); if (_jspx_eval_fmt_005fbundle_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { if (_jspx_eval_fmt_005fbundle_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { out = _jspx_page_context.pushBody(); _jspx_th_fmt_005fbundle_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out); _jspx_th_fmt_005fbundle_005f0.doInitBody(); } do { out.write('\n'); out.write('\n'); Object param = session.getAttribute("authenticated"); String passwordExpires = (String) session.getAttribute(ServerConstants.PASSWORD_EXPIRATION); boolean loggedIn = false; if (param != null) { loggedIn = (Boolean) param; } boolean serverAdminComponentFound = CarbonUIUtil.isContextRegistered(config, "/server-admin/"); if (CharacterEncoder.getSafeText(request.getParameter("skipLoginPage")) != null) { response.sendRedirect("../admin/login_action.jsp"); return; } out.write("\n"); out.write(" <div id=\"middle\">\n"); out.write(" "); String serverName = CarbonUIUtil.getServerConfigurationProperty("Name"); out.write("\n"); out.write(" <h2>\n"); out.write(" "); // fmt:message org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f0 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.get( org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class); _jspx_th_fmt_005fmessage_005f0.setPageContext(_jspx_page_context); _jspx_th_fmt_005fmessage_005f0.setParent( (javax.servlet.jsp.tagext.Tag) _jspx_th_fmt_005fbundle_005f0); // /admin/index.jsp(52,12) name = key type = null reqTime = true required = false fragment // = false deferredValue = false expectedTypeName = null deferredMethod = false // methodSignature = null _jspx_th_fmt_005fmessage_005f0.setKey("carbon.server.home"); int _jspx_eval_fmt_005fmessage_005f0 = _jspx_th_fmt_005fmessage_005f0.doStartTag(); if (_jspx_eval_fmt_005fmessage_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { if (_jspx_eval_fmt_005fmessage_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { out = _jspx_page_context.pushBody(); _jspx_th_fmt_005fmessage_005f0.setBodyContent( (javax.servlet.jsp.tagext.BodyContent) out); _jspx_th_fmt_005fmessage_005f0.doInitBody(); } do { out.write("\n"); out.write(" "); // fmt:param org.apache.taglibs.standard.tag.rt.fmt.ParamTag _jspx_th_fmt_005fparam_005f0 = (org.apache.taglibs.standard.tag.rt.fmt.ParamTag) _005fjspx_005ftagPool_005ffmt_005fparam_0026_005fvalue_005fnobody.get( org.apache.taglibs.standard.tag.rt.fmt.ParamTag.class); _jspx_th_fmt_005fparam_005f0.setPageContext(_jspx_page_context); _jspx_th_fmt_005fparam_005f0.setParent( (javax.servlet.jsp.tagext.Tag) _jspx_th_fmt_005fmessage_005f0); // /admin/index.jsp(53,16) name = value type = null reqTime = true required = false // fragment = false deferredValue = false expectedTypeName = null deferredMethod = // false methodSignature = null _jspx_th_fmt_005fparam_005f0.setValue(serverName); int _jspx_eval_fmt_005fparam_005f0 = _jspx_th_fmt_005fparam_005f0.doStartTag(); if (_jspx_th_fmt_005fparam_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffmt_005fparam_0026_005fvalue_005fnobody.reuse( _jspx_th_fmt_005fparam_005f0); return; } _005fjspx_005ftagPool_005ffmt_005fparam_0026_005fvalue_005fnobody.reuse( _jspx_th_fmt_005fparam_005f0); out.write("\n"); out.write(" "); int evalDoAfterBody = _jspx_th_fmt_005fmessage_005f0.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); if (_jspx_eval_fmt_005fmessage_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { out = _jspx_page_context.popBody(); } } if (_jspx_th_fmt_005fmessage_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.reuse( _jspx_th_fmt_005fmessage_005f0); return; } _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.reuse( _jspx_th_fmt_005fmessage_005f0); out.write("\n"); out.write(" </h2>\n"); out.write("\n"); out.write(" <p>\n"); out.write(" "); // fmt:message org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f1 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.get( org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class); _jspx_th_fmt_005fmessage_005f1.setPageContext(_jspx_page_context); _jspx_th_fmt_005fmessage_005f1.setParent( (javax.servlet.jsp.tagext.Tag) _jspx_th_fmt_005fbundle_005f0); // /admin/index.jsp(58,12) name = key type = null reqTime = true required = false fragment // = false deferredValue = false expectedTypeName = null deferredMethod = false // methodSignature = null _jspx_th_fmt_005fmessage_005f1.setKey("carbon.console.welcome"); int _jspx_eval_fmt_005fmessage_005f1 = _jspx_th_fmt_005fmessage_005f1.doStartTag(); if (_jspx_eval_fmt_005fmessage_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { if (_jspx_eval_fmt_005fmessage_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { out = _jspx_page_context.pushBody(); _jspx_th_fmt_005fmessage_005f1.setBodyContent( (javax.servlet.jsp.tagext.BodyContent) out); _jspx_th_fmt_005fmessage_005f1.doInitBody(); } do { out.write("\n"); out.write(" "); // fmt:param org.apache.taglibs.standard.tag.rt.fmt.ParamTag _jspx_th_fmt_005fparam_005f1 = (org.apache.taglibs.standard.tag.rt.fmt.ParamTag) _005fjspx_005ftagPool_005ffmt_005fparam_0026_005fvalue_005fnobody.get( org.apache.taglibs.standard.tag.rt.fmt.ParamTag.class); _jspx_th_fmt_005fparam_005f1.setPageContext(_jspx_page_context); _jspx_th_fmt_005fparam_005f1.setParent( (javax.servlet.jsp.tagext.Tag) _jspx_th_fmt_005fmessage_005f1); // /admin/index.jsp(59,16) name = value type = null reqTime = true required = false // fragment = false deferredValue = false expectedTypeName = null deferredMethod = // false methodSignature = null _jspx_th_fmt_005fparam_005f1.setValue(serverName); int _jspx_eval_fmt_005fparam_005f1 = _jspx_th_fmt_005fparam_005f1.doStartTag(); if (_jspx_th_fmt_005fparam_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffmt_005fparam_0026_005fvalue_005fnobody.reuse( _jspx_th_fmt_005fparam_005f1); return; } _005fjspx_005ftagPool_005ffmt_005fparam_0026_005fvalue_005fnobody.reuse( _jspx_th_fmt_005fparam_005f1); out.write("\n"); out.write(" "); int evalDoAfterBody = _jspx_th_fmt_005fmessage_005f1.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); if (_jspx_eval_fmt_005fmessage_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { out = _jspx_page_context.popBody(); } } if (_jspx_th_fmt_005fmessage_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.reuse( _jspx_th_fmt_005fmessage_005f1); return; } _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.reuse( _jspx_th_fmt_005fmessage_005f1); out.write("\n"); out.write(" </p>\n"); out.write("\n"); out.write(" <p> </p>\n"); out.write("\n"); out.write(" <div id=\"workArea\">\n"); out.write(" <div id=\"systemInfoDiv\">\n"); out.write(" "); if (loggedIn && passwordExpires != null) { out.write("\n"); out.write(" <div class=\"info-box\"><p>Your password expires at "); out.print(passwordExpires); out.write( ". Please change by visiting <a href=\"../user/change-passwd.jsp?isUserChange=true&returnPath=../admin/index.jsp\">here</a></p></div>\n"); out.write(" "); } if (loggedIn && serverAdminComponentFound) { out.write("\n"); out.write(" <div id=\"result\"></div>\n"); out.write(" <script type=\"text/javascript\">\n"); out.write(" jQuery.noConflict();\n"); out.write(" var refresh;\n"); out.write(" function refreshStats() {\n"); out.write( " var url = \"../server-admin/system_status_ajaxprocessor.jsp\";\n"); out.write(" var data = null;\n"); out.write(" try {\n"); out.write(" jQuery.ajax({\n"); out.write(" url: \"../admin/jsp/session-validate.jsp\",\n"); out.write(" type: \"GET\",\n"); out.write(" dataType: \"html\",\n"); out.write(" data: data,\n"); out.write(" complete: function(res, status){\n"); out.write( " if (res.responseText.search(/----valid----/) != -1) {\n"); out.write( " jQuery(\"#result\").load(url, null, function (responseText, status, XMLHttpRequest) {\n"); out.write(" if (status != \"success\") {\n"); out.write(" stopRefreshStats();\n"); out.write(" }\n"); out.write(" });\n"); out.write(" } else {\n"); out.write(" stopRefreshStats();\n"); out.write(" }\n"); out.write(" },error: function(res, status, error){\n"); out.write(" \tstopRefreshStats();\n"); out.write(" }\n"); out.write(" });\n"); out.write(" } catch (e) {\n"); out.write(" \tstopRefreshStats();\n"); out.write(" }\n"); out.write(" }\n"); out.write(" function stopRefreshStats() {\n"); out.write(" if (refresh) {\n"); out.write(" clearInterval(refresh);\n"); out.write(" }\n"); out.write(" }\n"); out.write(" try {\n"); out.write(" jQuery(document).ready(function() {\n"); out.write(" refreshStats();\n"); out.write( " if (document.getElementById('systemInfoDiv').style.display == '') {\n"); out.write( " refresh = setInterval(\"refreshStats()\", 6000);\n"); out.write(" }\n"); out.write(" });\n"); out.write(" } catch (e) {\n"); out.write(" } // ignored\n"); out.write(" </script>\n"); out.write(" "); } out.write("\n"); out.write(" </div>\n"); out.write(" </div>\n"); out.write(" </div>\n"); int evalDoAfterBody = _jspx_th_fmt_005fbundle_005f0.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); if (_jspx_eval_fmt_005fbundle_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { out = _jspx_page_context.popBody(); } } if (_jspx_th_fmt_005fbundle_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffmt_005fbundle_0026_005fbasename.reuse( _jspx_th_fmt_005fbundle_005f0); return; } _005fjspx_005ftagPool_005ffmt_005fbundle_0026_005fbasename.reuse( _jspx_th_fmt_005fbundle_005f0); out.write('\n'); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html"); pageContext = _jspxFactory.getPageContext( this, request, response, "ErrorPage.jsp?page=OrderProcessingSend.jsp", true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write('\n'); out.write('\n'); out.write("\n"); out.write(" \n"); out.write(" \n"); out.write("\t\t<script type=\"text/javascript\" src=\"js/jquery-1.10.2.min.js\"></script>\n"); out.write("\t"); session.getAttribute("UserName").toString(); // System.out.println("session bachka maapping : "+session +" \n user // "+session.getAttribute("UserName").toString()); out.write('\n'); out.write(' '); out.write('\n'); // DecimalFormat df = new DecimalFormat("###,###.00"); int cnt = 1; String orderNo = ""; String custCode = ""; String custName = ""; String buildingNo = ""; String block = ""; String wing = ""; String building = ""; String area = ""; String orderDate = ""; String lastModifiedDate = ""; String totalItems = ""; String totalValueMrp = ""; String totalValuePrice = ""; String bagsNo = ""; String discountAmt = ""; String advanceAmt = ""; String balanceAmt = ""; String changeAmt = ""; String paidAmt = ""; String expectedAmt = ""; String deliveryStaffName = ""; String statusCode = ""; String delchgs = ""; String payment = ""; double adamt = 0.0f; String ord_comm_amt = ""; String submitTypeValue = "", startTime = "", orderNoArr = "", code = "", desc = "", deliveryPerson = "", divCount = ""; String coinArray = "", commArray = ""; boolean subFlag = true; int divId = 0, count = 0; submitTypeValue = request.getParameter("subValue"); String sendValue = request.getParameter("send"); DecimalFormat df = new DecimalFormat("###,###.00"); order.ManageOrder mo; mo = new order.ManageOrder("jdbc/js"); if (submitTypeValue.equals("Submitted3")) { mo.submittedOrdersList(submitTypeValue); } else if (submitTypeValue.equals("Checked3")) { mo.checkedOrdersList(submitTypeValue); } else if (submitTypeValue.equals("Both")) { mo.bothOrdersList(); } mo.getDeliveryStaffList(); out.write("\n"); out.write("<center><h4>Orders List</h4>\n"); out.write("\n"); out.write("\t\n"); out.write(" \n"); out.write("<table >\n"); out.write("\t<tr>\n"); out.write("\t<td>\n"); out.write("\t<table align=\"left\">\n"); out.write( "\t\t<tr><td><font size=2 color=\"red\">Total Orders :</td><td><font size=2 color=\"red\"><b><div id=\"divtonosend\"></div></b></td></font></b></tr>\n"); out.write( "\t\t<tr><td><font size=2 color=\"red\">Total Change :</td><td><font size=2 color=\"red\"><b><div id=\"divtotchange\"></div></td></tr>\n"); out.write( "\t\t<tr><td><font size=2 color=\"red\">Total Comm. :</td><td><font size=2 color=\"red\"><b><div id=\"divtotcomm\"></div></td></tr>\n"); out.write( "\t\t<tr><td><font size=2 color=\"red\">Total Bags :</td><td><font size=2 color=\"red\"><b><div id=\"divtotbags\"></div></td></tr>\n"); out.write("\t</table>\n"); out.write(" </td>\n"); out.write(" <td>\n"); out.write("\t<table align=\"right\">\n"); out.write("\t<tr>\n"); out.write( "\t\t<td width=\"25%\" ><b><font size=2 color=\"red\">Delivery Person :</b></font></td>\n"); out.write("\t\t<td>\n"); out.write("\t\t\t<SELECT name=\"d_staff\" >\n"); out.write("\t\t\t\t<OPTION VALUE='select' >Select staff\n"); while (mo.rs1.next()) { code = mo.rs1.getString(1); desc = mo.rs1.getString(2); out.write("\n"); out.write("\t\t\t\t<OPTION VALUE=\""); out.print(code); out.write('"'); out.write(' '); out.write('>'); out.print(desc); out.write('\n'); } out.write("\t\t\n"); out.write("\t\t</td>\n"); out.write("\t\t<td>\n"); out.write( "\t\t\t<INPUT type=BUTTON value='Send <Alt+n>' accesskey='n' onclick='funsend();'>\n"); out.write("\t\t</td>\t\t\t\n"); out.write("\t\t<td>\t\t\n"); out.write( "\t\t\t<INPUT type=BUTTON value=\"Cancel <Alt+c>\" accesskey=\"c\" onClick=\"cancel();\"></center>\n"); out.write("\t\t</td>\n"); out.write("\t\t<td>\t\t\n"); out.write( "\t\t\t<INPUT type=BUTTON value=\"Denomination <Alt+d>\" accesskey=\"d\" onClick=\"calculate();\"></center>\n"); out.write("\t\t</td>\t\t\t\n"); out.write("\t</tr>\n"); out.write("\t</table>\n"); out.write("\t</td>\n"); out.write("</tr>\n"); out.write("</table><br>\n"); out.write("\n"); out.write("<div>\n"); out.write( "\t<table border=\"1\" id=\"sendid\" style=\"width=100%;display:none;border-collapse: collapse;\" >\n"); out.write("\t<thead>\n"); out.write("\t\t<tr>\t\n"); out.write("\t\t\t <td ><b>Area</b></td>\n"); out.write("\t\t\t <td ><b>Order</b></td>\t\t\n"); out.write("\t\t\t\t<td><b>Customer</b></td>\t\t\t\t\t\n"); out.write("\t\t\t\t<td ><b>Order Date</b></td>\t\t\t\n"); out.write("\t\t\t\t<td ><b>Items</b></td>\n"); out.write("\t\t\t\t<td><b>Payment</b></td>\n"); out.write("\t\t\t\t\n"); out.write("\t\t\t\n"); out.write("\t\t\t\t\n"); out.write("\t\t\t\t<td> <b>Total</b></td>\n"); out.write("\t\t\t\t<td><b>Advance/Discount</b></td>\n"); out.write("\t\t\t\t<td><b>Del Chgs</b></td>\n"); out.write("\t\t\t\t<td><b>Balance</b></td>\t\n"); out.write("\t\t\t\t<td><b>Change</b></td>\t\n"); out.write("\t\t\t\t<td><b>Expected</b></td>\n"); out.write("\t\t\t\t<td><b>Total Bags</b></td>\n"); out.write("\t\t\t\t<td colspan=\"2\"><b>Action</b></td>\t\n"); out.write("\t\t\t\t<td colspan=\"1\"><b>Comm Amt</b></td>\t\n"); out.write("\t\t\t</tr>\n"); out.write("\t</thead>\n"); out.write("\t<tbody>\n"); out.write("\t</tbody>\n"); out.write("</table>\n"); out.write("</div>\n"); out.write("\n"); out.write("\n"); out.write("<br><hr color=\"red\">\n"); out.write("<div id=\"searchTable\"> \n"); out.write("<table >\n"); out.write( "\t<tr><td width=\"25%\"><font size=2 color=\"red\">Total Orders : <b><div id=\"divtono\"></div></b></font></b></td>\n"); out.write("\t\n"); out.write( "\t\t<td width=\"25%\" ><b><font size=2 color=\"red\">Order Number :</font></b></td>\n"); out.write("\t\t<td>\n"); out.write("\t\t\t <input type=\"text\" name=\"search\" size=\"7\" value=''>\n"); out.write("\t\t</td>\t\n"); out.write("\n"); out.write("\t\t<td>\n"); out.write( "\t\t\t<INPUT type=BUTTON value=\"Search <Alt+S>\" accesskey=\"s\" onClick=\"searchOno();\">\n"); out.write("\t\t</td>\n"); out.write("\t\t<td>\n"); out.write( "\t\t\t<input type=\"reset\" name=\"clear\" accesskey=\"r\" value=\"Clear <Alt+r>\">\n"); out.write("\t\t</td>\t\t\t\n"); out.write("\t\t<td>\t\t\n"); out.write( "\t\t\t<INPUT type=BUTTON value=\"Cancel <Alt+c>\" accesskey=\"c\" onClick=\"cancel();\"></center>\n"); out.write("\t\t</td>\t\t\n"); out.write("\t</tr>\n"); out.write("</table><br>\n"); out.write("</div>\n"); out.write("<table border=\"1\" name=\"t\" id=\"id\" style=\"width=100%;\" >\n"); out.write("\n"); out.write("\t\t\t <tr>\t\n"); out.write("\t\t\t <td ><b>Area</b></td>\n"); out.write("\t\t\t <td ><b>Order</b></td>\t\t\n"); out.write("\t\t\t\t<td><b>Customer</b></td>\t\t\t\t\t\n"); out.write("\t\t\t\t<td ><b>Order Date</b></td>\t\t\t\n"); out.write("\t\t\t\t<td ><b>Items</b></td>\n"); out.write("\t\t\t\t<td><b>Payment</b></td>\n"); out.write( "\t\t\t\t<td colspan=\"6\" align=\"center\"><b>Amounts</b></td>\t\t\t\t\t\t\t\t\t\t\t\n"); out.write("\t\t\t</tr>\n"); out.write("\t\t\t\t<tr>\n"); out.write("\t\t\t\t<td colspan=\"6\"></td>\n"); out.write("\t\t\t\t<td> <b>Total</b></td>\n"); out.write("\t\t\t\t<td><b>Advance/Discount</b></td>\n"); out.write("\t\t\t\t<td><b>Del Chgs</b></td>\n"); out.write("\t\t\t\t<td><b>Balance</b></td>\t\n"); out.write("\t\t\t\t<td><b>Change</b></td>\t\n"); out.write("\t\t\t\t<td><b>Expected</b></td>\n"); out.write("\t\t\t\t<td><b>Bags</b></td>\n"); out.write("\t\t\t\t<td colspan=\"2\"><b>Action</b></td>\t\n"); out.write("\t\t\t</tr>\n"); out.write("\t\t\t<tbody>\n"); int i = 0, rowID = 0; while (mo.rs.next()) { i = 1; count++; divCount = count + "#"; orderNo = mo.rs.getString("order_num"); custCode = mo.rs.getString("custcode"); custName = mo.rs.getString("custname"); buildingNo = mo.rs.getString("building_no"); block = mo.rs.getString("block"); wing = mo.rs.getString("wing"); building = mo.rs.getString("building"); area = mo.rs.getString("area"); orderDate = mo.rs.getString("order_date"); lastModifiedDate = mo.rs.getString("lastmodifieddate"); totalItems = mo.rs.getString("total_items"); totalValueMrp = mo.rs.getString("total_value_mrp"); totalValuePrice = mo.rs.getString("total_value"); bagsNo = mo.rs.getString("bags"); // System.out.println("bagsNo is:"+bagsNo); discountAmt = mo.rs.getString("discount_amt"); advanceAmt = mo.rs.getString("advance_amt"); balanceAmt = mo.rs.getString("balance_amt"); changeAmt = mo.rs.getString("change_amt"); paidAmt = mo.rs.getString("paid_amt"); expectedAmt = mo.rs.getString("expected_amt"); deliveryStaffName = mo.rs.getString("dstaff_name"); statusCode = mo.rs.getString("status_code"); delchgs = mo.rs.getString("other_charges"); payment = mo.rs.getString("payment_type_desc"); ord_comm_amt = df.format(mo.rs.getFloat("ord_comm_amt")); cnt = cnt + 1; // System.out.println("value of ord_comm_amt in jsp"+ord_comm_amt); // System.out.println("comm amt "+ord_comm_amt); out.write(" \t\n"); out.write("\t\t\t<input type=\"hidden\" name=\"hcommAmt"); out.print(cnt); out.write("\" value=\""); out.print(ord_comm_amt); out.write("\">\n"); out.write("\t\t\t\n"); out.write(" \t\t \t<tr id=\"row"); out.print(rowID); out.write("\" class=\""); out.print(orderNo); out.write("\">\n"); out.write(" \t\t \t\t<td align=\"center\" title=\""); out.print(mo.rs.getString(12)); out.write(','); out.print(mo.rs.getString(13)); out.print(mo.rs.getString(14)); out.write(','); out.print(mo.rs.getString(15)); out.write(','); out.print(mo.rs.getString(8)); out.write('"'); out.write('>'); out.write('\n'); out.println(area); out.write(" \n"); out.write(" \t\t\t</td>\n"); out.write("\t \t\t\t<td id=\"orderNum"); out.print(rowID); out.write("\" align=\"center\" title=\""); out.print(mo.rs.getString(12)); out.write(','); out.print(mo.rs.getString(13)); out.print(mo.rs.getString(14)); out.write(','); out.print(mo.rs.getString(15)); out.write(','); out.print(mo.rs.getString(8)); out.write("\">\n"); out.write("\t \t\t\t<a href=\"Javascript:AddRow('"); out.print(custName); out.write('\''); out.write(','); out.write('\''); out.print(orderNo); out.write('\''); out.write(','); out.write('\''); out.print(area); out.write('\''); out.write(','); out.write('\''); out.print(orderDate); out.write("',\n"); out.write("\t \t\t\t'"); out.print(totalItems); out.write('\''); out.write(','); out.write('\''); out.print(totalValuePrice); out.write('\''); out.write(','); out.write('\''); out.print(advanceAmt); out.write('\''); out.write(','); out.write('\''); out.print(discountAmt); out.write("',\n"); out.write("\t \t\t\t'"); out.print(balanceAmt); out.write('\''); out.write(','); out.write('\''); out.print(delchgs); out.write('\''); out.write(','); out.write('\''); out.print(adamt); out.write('\''); out.write(','); out.write('\''); out.print(payment); out.write('\''); out.write(','); out.write('\''); out.print(changeAmt); out.write("',\n"); out.write("\t \t\t\t'"); out.print(expectedAmt); out.write('\''); out.write(','); out.write('\''); out.print(bagsNo); out.write('\''); out.write(','); out.write('\''); out.print(cnt); out.write('\''); out.write(','); out.write('\''); out.print(statusCode); out.write('\''); out.write(','); out.write('\''); out.print(ord_comm_amt); out.write('\''); out.write(','); out.write('\''); out.print(rowID); out.write("');\">\n"); out.println(orderNo); out.write("\n"); out.write("\t\t\t\t</td><td align=\"center\" >\t\n"); out.println(custName); out.write("\n"); out.write("\t\t\t\t</td><td align=\"center\" >\t\n"); out.println(orderDate); out.write(" \t \t\t \t\t\t\t\t\t\t\n"); out.write("\t \t\t</td><td align=\"center\" >\n"); out.println(totalItems); out.write("\n"); out.write("\t \t\t</td><td align=\"center\">\n"); if (payment.equals("Credit")) { out.write("\t\n"); out.write("\t\t\t\t<a href=\"ChangePaymentTypeForm.jsp?orderNo="); out.print(orderNo); out.write('"'); out.write('>'); out.write('\n'); out.println(payment); out.write("\n"); out.write("\t\t\t\t</a>\n"); } else { out.println(payment); } out.write("\n"); out.write("\t \t\t</td><td align=\"center\" >\n"); out.println(totalValuePrice); out.write(" \t\t\t\t\t\n"); out.write("\t \t\t</td><td align=\"center\" >\n"); if (advanceAmt != null && discountAmt != null) { adamt = Double.parseDouble(advanceAmt) - Double.parseDouble(discountAmt); } out.println(adamt); out.write("\n"); out.write("\t\t\t\t</td><td align=\"center\" >\n"); out.println(delchgs); out.write(" \t\n"); out.write("\t \t\t\t</td><td align=\"center\" >\n"); out.println(balanceAmt); out.write(" \t\n"); out.write("\t \t\t\t</td><td align=\"center\" id=\"change"); out.print(rowID); out.write("\" >\n"); out.println(changeAmt); out.write(" \t\n"); out.write("\t \t\t\t</td><td align=\"center\" >\n"); out.println(expectedAmt); out.write(" \t\n"); out.write("\t \t\t\t</td><td align=\"center\" id=\"bag"); out.print(rowID); out.write('"'); out.write('>'); out.write('\n'); out.println(bagsNo); out.write(" \t\n"); out.write("\t \t\t\t</td>\n"); out.write("\t \t\t\t\n"); out.write("\t \t\t\t<td align=\"center\" id=\"send"); out.print(rowID); out.write("\">\n"); out.write("\t \t\t\t\t<a href=\"Javascript:AddRow('"); out.print(custName); out.write('\''); out.write(','); out.write('\''); out.print(orderNo); out.write('\''); out.write(','); out.write('\''); out.print(area); out.write('\''); out.write(','); out.write('\''); out.print(orderDate); out.write("',\n"); out.write("\t \t\t\t\t'"); out.print(totalItems); out.write('\''); out.write(','); out.write('\''); out.print(totalValuePrice); out.write('\''); out.write(','); out.write('\''); out.print(advanceAmt); out.write('\''); out.write(','); out.write('\''); out.print(discountAmt); out.write("',\n"); out.write("\t \t\t\t\t'"); out.print(balanceAmt); out.write('\''); out.write(','); out.write('\''); out.print(delchgs); out.write('\''); out.write(','); out.write('\''); out.print(adamt); out.write('\''); out.write(','); out.write('\''); out.print(payment); out.write('\''); out.write(','); out.write('\''); out.print(changeAmt); out.write("',\n"); out.write("\t \t\t\t\t'"); out.print(expectedAmt); out.write('\''); out.write(','); out.write('\''); out.print(bagsNo); out.write('\''); out.write(','); out.write('\''); out.print(cnt); out.write("',\n"); out.write("\t \t\t\t\t'"); out.print(statusCode); out.write('\''); out.write(','); out.write('\''); out.print(ord_comm_amt); out.write('\''); out.write(','); out.write('\''); out.print(rowID); out.write("');\">\n"); out.write("\t \t\t\t\t\n"); out.println("Send"); out.write("\t\t\t\t\n"); out.write("\t\t\t\t</td><td align=\"center\" id=\"TA"); out.print(rowID); out.write("\">\n"); out.write("\t\t\t\t<a href=\"DeliveryDetailsForm.jsp?orderNo="); out.print(orderNo); out.write("&subValue="); out.print(statusCode); out.write("\" title=\""); out.print(mo.rs.getString(12)); out.write(','); out.print(mo.rs.getString(13)); out.print(mo.rs.getString(14)); out.write(','); out.print(mo.rs.getString(15)); out.write(','); out.print(mo.rs.getString(8)); out.write("\" >\n"); out.println("T.A."); if (divId == 0) { orderNoArr = orderNo; commArray = orderNo + "|" + ord_comm_amt; } else { orderNoArr = orderNoArr + "|" + orderNo; commArray = commArray + "|" + orderNo + "|" + ord_comm_amt; } divId++; rowID++; out.write("\n"); out.write("\t \t </a></td><td style=\"display: none;\">\n"); out.write("\t \t "); out.print(ord_comm_amt); out.write("\t\n"); out.write("\t \t </td>\n"); out.write("\t \t </tr>\n"); out.write("\t \t "); } mo.getcoininfo(); while (mo.rs2.next()) { coinArray = coinArray + "|" + mo.rs2.getString(1); } mo.closeAll(); System.out.println("\n\n row ID " + rowID); out.write("\n"); out.write(" \n"); out.write("</tbody>\n"); out.write("\n"); out.write("<input type=\"hidden\" name=\"horderArray\">\n"); out.write("<input type=\"hidden\" name=\"hcommArray\" value=\""); out.print(commArray); out.write("\">\n"); out.write("<input type=\"hidden\" name=\"hcoinArray\" value=\""); out.print(coinArray); out.write("\">\n"); out.write("<input type=\"hidden\" name=\"horderArr\" value=\""); out.print(orderNoArr); out.write("\">\t\n"); out.write("<input type=\"hidden\" name=\"hchangeArray\" value=\"\">\t\t\n"); out.write("<input type=\"hidden\" name=\"hcountorder\" value=\""); out.print(count); out.write("\">\t\n"); out.write("\t\n"); out.write("\t\n"); out.write("<input type=\"hidden\" name=\"htotalchangeamt\" value=\"\">\n"); out.write("<input type=\"hidden\" name=\"htotalordercnt\" value=\"\">\n"); out.write("<input type=\"hidden\" name=\"htotalpaidamt\" value=\"\">\t\t\n"); out.write("</table>\t \n"); out.write("\n"); out.write("\n"); out.write("\t \t"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { javax.servlet.http.HttpSession session = request.getSession(true); com.caucho.server.webapp.WebApp _jsp_application = _caucho_getApplication(); javax.servlet.ServletContext application = _jsp_application; com.caucho.jsp.PageContextImpl pageContext = _jsp_application .getJspApplicationContext() .allocatePageContext( this, _jsp_application, request, response, null, session, 8192, true, false); javax.servlet.jsp.PageContext _jsp_parentContext = pageContext; javax.servlet.jsp.JspWriter out = pageContext.getOut(); final javax.el.ELContext _jsp_env = pageContext.getELContext(); javax.servlet.ServletConfig config = getServletConfig(); javax.servlet.Servlet page = this; response.setContentType("text/html"); try { response.setHeader("Pragma", "no-cache"); // HTTP 1.0 response.setDateHeader("Expires", 0); response.setHeader("Cache-Control", "no-cache"); // HTTP 1.1 String scmid = ""; String scmnm = ""; String usertype = ""; String usergroup = ""; // String scmsubids = ""; String _adminid = ""; String _adminname = ""; String _admingroup = ""; String _apessid = ""; String _apessname = ""; try { scmid = (String) session.getAttribute("scmid"); _adminid = (String) session.getAttribute("adminid"); if ((scmid == null || scmid.length() == 0 || scmid.equals("null")) && (_adminid == null || _adminid.length() == 0 || _adminid.equals("null"))) { response.sendRedirect("/login_first.html"); return; } _adminname = (String) session.getAttribute("adminname"); _apessid = (String) session.getAttribute("apessid"); _apessname = (String) session.getAttribute("apessname"); scmnm = (String) session.getAttribute("scmnm"); usertype = (String) session.getAttribute("usertype"); if (usertype == null) usertype = ""; usergroup = (String) session.getAttribute("usergroup"); if (usergroup == null) usergroup = ""; // scmsubids = (String) session.getAttribute("scmsubids"); // session.setMaxInactiveInterval(60*60); } catch (Exception e) { response.sendRedirect("/login_first.html"); return; } out.write('\n'); String id = request.getParameter("id"); out.write(_jsp_string0, 0, _jsp_string0.length); out.print((id)); out.write(_jsp_string1, 0, _jsp_string1.length); out.print((id)); out.write(_jsp_string2, 0, _jsp_string2.length); } catch (java.lang.Throwable _jsp_e) { pageContext.handlePageException(_jsp_e); } finally { _jsp_application.getJspApplicationContext().freePageContext(pageContext); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.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(); _jspx_out = out; out.write("\n"); out.write(" \n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n"); request.setCharacterEncoding("euc-kr"); out.write('\n'); guestModel.GuestDto guest = null; guest = (guestModel.GuestDto) _jspx_page_context.getAttribute("guest", javax.servlet.jsp.PageContext.PAGE_SCOPE); if (guest == null) { guest = new guestModel.GuestDto(); _jspx_page_context.setAttribute("guest", guest, javax.servlet.jsp.PageContext.PAGE_SCOPE); } out.write('\n'); org.apache.jasper.runtime.JspRuntimeLibrary.introspect( _jspx_page_context.findAttribute("guest"), request); out.write('\n'); int num = Integer.parseInt(request.getParameter("num")); out.print("num" + num); int check = GuestDao.getInstance().delete(guest.getNum()); out.print("check:" + check); out.write("\n"); out.write("\n"); out.write("<html>\n"); out.write("<head>\n"); out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n"); out.write("<title>Insert title here</title>\n"); out.write("</head>\n"); out.write("<body>\n"); out.write("\t"); if (check > 0) { out.write("\n"); out.write("\t\t<script type=\"text/javascript\">\n"); out.write("\t\t\talert(\"삭제되었습니다.\");\n"); out.write("\t\t\tlocation.href=\"write.jsp\";\n"); out.write("\t\t</script>\n"); out.write("\t\n"); out.write("\t"); } else { out.write("\n"); out.write("\t\t<script type=\"text/javascript\">\n"); out.write("\t\t\talert(\"삭제 실패.\");\n"); out.write("\t\t\tlocation.href=\"write.jsp\";\n"); out.write("\t\t</script>\n"); out.write("\t"); } out.write("\n"); out.write("\t\n"); out.write("\t\n"); out.write("</body>\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html"); 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("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); org.apache.jasper.runtime.JspRuntimeLibrary.include( request, response, "sessionBoth.jsp" + (("sessionBoth.jsp").indexOf('?') > 0 ? '&' : '?') + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode( "formName", request.getCharacterEncoding()) + "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode( "editItemDetails.jsp", request.getCharacterEncoding()), out, false); out.write(" \n"); out.write("\n"); out.write("\n"); int site_id = 0; DecimalFormat df = new DecimalFormat("###,###.00"); try { site_id = (Integer) session.getAttribute("GlobalSiteId"); System.out.print("In : " + site_id); } catch (Exception e) { e.printStackTrace(); } String i_code = ""; String ig_code = ""; String i_name = ""; String i_mrp = ""; String i_mrp2 = ""; String i_rate = ""; String i_rate2 = ""; String flag = ""; String paramList = ""; String changeParamList = ""; String i_tickflag = ""; String ibarcode = request.getParameter("ibarcode"); i_code = request.getParameter("icodeStartWith"); ig_code = request.getParameter("igcodeStartWith"); i_name = request.getParameter("inameStartWith"); i_mrp = request.getParameter("imrpStartWith"); i_rate = request.getParameter("irateStartWith"); i_mrp2 = request.getParameter("imrp2StartWith"); i_rate2 = request.getParameter("irate2StartWith"); flag = request.getParameter("flag"); i_tickflag = request.getParameter("i_tickflg"); item.ManageItem mi; mi = new item.ManageItem("jdbc/js"); mi.listItem( i_code, ig_code, i_name, i_mrp, i_mrp2, i_rate, i_rate2, i_tickflag, ibarcode, site_id); out.write("\n"); out.write(" <style>\n"); out.write(" #id #tr:hover td{\n"); out.write(" \t\tbackground-color: white;\n"); out.write(" \t\tcursor: pointer;\n"); out.write(" }\n"); out.write(" #id td{\n"); out.write(" \t\tpadding: 3px 0px 3px 5px;\n"); out.write(" }\n"); out.write(" </style>\n"); out.write( " <table border=\"1\" name=\"t\" id=\"id\" class=\"item3\" cellspacing = 0 cellpadding = 0 style=\"border-collapse: collapse; width: 96%;background-color: #ECFB99;\" bordercolor=black>\n"); out.write(" \n"); out.write(" \t <thead>\n"); out.write(" \t\t \t<tr align=\"left\">\n"); out.write("\t\t\t\t<td><b>Item Code</b></td>\n"); out.write("\t\t\t\t<td><b>Change Quantity</b></td>\n"); out.write("\t\t\t\t<td><b>Item Group</b></td>\n"); out.write("\t\t\t\t<td><b>Item Name</b></td>\n"); out.write("\t\t\t\t<td><b>Item Barcode</b></td>\n"); out.write("\t\t\t\t<td><b>Item Weight</b></td>\n"); out.write("\t\t\t\t<td><b>Item MRP</b></td>\n"); out.write("\t\t\t\t<td><b>Item Rate</b></td>\n"); out.write("\t\t\t\t<td><b>Deal Flag</b></td>\n"); out.write("\t\t\t\t<td><b>Ticker Flag</b></td>\n"); out.write("\t\t\t\t<td><b>Is bachka</b></td>\n"); out.write("\t\t\t\t<td><b>Mix Item</b></td>\n"); out.write("\t\t\t\t<td><b>Item History</b></td>\n"); out.write("\t\t\t</tr>\n"); out.write(" \t</thead>\t\n"); out.write("\t\t<tbody>\n"); while (mi.rs.next()) { if (flag.equals("1")) { paramList = "EditItemForm.jsp?icode=" + mi.rs.getString(1) + "&igcode=" + mi.rs.getString(7) + "&iname=" + mi.rs.getString(3) + "&iweight=" + mi.rs.getString(4) + "&imrp=" + mi.rs.getString(5) + "&irate=" + mi.rs.getString(6) + "&id_type=" + mi.rs.getString(10) + "&id_flag=" + mi.rs.getString(9) + "&id_qty=" + mi.rs.getString(11) + "&id_amt=" + mi.rs.getString(12) + "&i_comm=" + mi.rs.getString(13) + "&i_tickflag=" + mi.rs.getString(14) + "&ibarcode=" + mi.rs.getString(15) + "&box_qty=" + mi.rs.getInt(16) + "&is_bachka=" + mi.rs.getString("is_bachka") + "&is_mixture=" + mi.rs.getString("mix_item") + "&groupCodeValue=" + mi.rs.getString("item_group_code"); } else { paramList = "ItemDetails.jsp?icode=" + mi.rs.getString(1) + "&igcode=" + mi.rs.getString(7) + "&iname=" + mi.rs.getString(3) + "&iweight=" + mi.rs.getString(4) + "&imrp=" + mi.rs.getString(5); } changeParamList = "ChangeQuantityItemForm.jsp?icode=" + mi.rs.getString(1) + "&igcode=" + mi.rs.getString(7) + "&iname=" + mi.rs.getString(3) + "&iweight=" + mi.rs.getString(4) + "&imrp=" + mi.rs.getString(5) + "&irate=" + mi.rs.getString(6) + "&id_type=" + mi.rs.getString(10) + "&id_flag=" + mi.rs.getString(9) + "&id_qty=" + mi.rs.getString(11) + "&id_amt=" + mi.rs.getString(12) + "&i_comm=" + mi.rs.getString(13) + "&i_tickflag=" + mi.rs.getString(14) + "&ibarcode=" + mi.rs.getString(15); out.write("\n"); out.write("\t\t\t <tr id=\"tr\" align=\"left\">\t\t\n"); out.write("\t\t\t\t<td align=\"left\"><a href=\""); out.print(paramList); out.write('"'); out.write('>'); out.print(mi.rs.getString(1)); out.write("</a></td>\n"); out.write(" \t \t\t<td><a href=\""); out.print(changeParamList); out.write("\">Change Quantity</a></td>\n"); out.write(" \t \t\t<td>"); out.print(mi.rs.getString(7)); out.write("</td>\n"); out.write(" \t \t\t<td>"); out.print(mi.rs.getString(3)); out.write("</td>\n"); out.write(" \t \t\t<td>"); out.print(mi.rs.getString(15)); out.write("</td>\n"); out.write(" \t \t\t<td>"); out.print(mi.rs.getString(4)); out.write("</td>\n"); out.write(" \t \t\t<td>"); out.print(df.format(mi.rs.getFloat(5))); out.write("</td>\n"); out.write(" \t \t\t<td>"); out.print(df.format(mi.rs.getFloat(6))); out.write("</td>\n"); out.write(" \t \t\t"); out.write("\n"); out.write(" \t \t\t<td>\n"); String msg1 = mi.rs.getString(9); if (msg1.equals("N")) { out.println("No"); } else { out.println("Yes"); } out.write(" \n"); out.write(" \t\t</td><td>\n"); String msg2 = mi.rs.getString(14); if (msg2.equals("N")) { out.println("No"); } else { out.println("Yes"); } out.write(" \n"); out.write(" \t</td>\n"); out.write(" \t<td>"); out.print(mi.rs.getString("is_bachka")); out.write("</td>\n"); out.write(" \t<td>"); out.print(mi.rs.getString("mix_item")); out.write("</td><td> \n"); String msg = mi.rs.getString(8); if (!msg.equals("NH")) { out.write(" \n"); out.write(" \t <a href=\"ItemHistoryForm.jsp?icode="); out.print(mi.rs.getString(1)); out.write("\">history\n"); } out.write("\t\t\t\n"); out.write("\t\t\t\t\n"); out.write(" \t \n"); out.write("\t\t\t </td></tr>\n"); out.write("\t\t\t\n"); } mi.closeAll(); out.write("\n"); out.write("\t\t\t <style type=\"text/css\">\n"); out.write("\t\t\t a:link {color: blue}\n"); out.write("\t\t\t a:hover {background: blue;color: white}\n"); out.write("\t\t\t a:active {background: blue;color: white}\n"); out.write("\t\t\t </style>\n"); out.write("\n"); out.write("\t</tbody>\n"); out.write("</table>\n"); out.write("\t\t\t\n"); out.write(" \t"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.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(); _jspx_out = out; out.write("\r\n"); out.write("\r\n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n"); out.write("<html>\r\n"); out.write("<head>\r\n"); out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n"); out.write("<title>收款</title>\r\n"); out.write(" <!--css sheet-->\r\n"); out.write("\t<link href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/css/dtree/dtree.css\" rel=\"stylesheet\" type=\"text/css\">\r\n"); out.write("\t<link href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/css/jquery-easyui/easyui.css\" rel=\"stylesheet\" type=\"text/css\">\r\n"); out.write("\t<link href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/css/jquery-easyui/icon.css\" rel=\"stylesheet\" type=\"text/css\">\r\n"); out.write("\t<link href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/css/tracywindy/tracywindy.css\" rel=\"stylesheet\" type=\"text/css\">\r\n"); out.write("\t<link href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/css/tracywindy/button.css\" rel=\"stylesheet\" type=\"text/css\">\r\n"); out.write("\t<link href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/css/tracywindy/workFlowUtil.css\" rel=\"stylesheet\" type=\"text/css\">\r\n"); out.write("\t<!--javascript libray-->\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/workFlowUtil.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyUtils.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyJsonUtil.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyAjax.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/jquery/jquery.min.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/jquery/jquery.easyui.min.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/jquery/easyui-lang-zh_CN.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyLoadMask.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyTable.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyComboBox.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindySerializeFormToJsonObject.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/my97DatePicker/WdatePicker.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/validator.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyOperationTable.js\"></script>\r\n"); out.write("\t<style type=\"text/css\">\r\n"); out.write("\t html,body{\r\n"); out.write("\t overflow:hidden;\r\n"); out.write("\t }\r\n"); out.write("\t</style>\r\n"); out.write("<script type=\"text/javascript\"> \r\n"); out.write("//var proj_id=\""); out.print(request.getParameter("id")); out.write("\";\r\n"); out.write("var param={};\r\n"); out.write("//if(proj_id!=\"null\" || proj_id==\"\"){param.proj_id=proj_id;}\r\n"); out.write("\tvar pageWidth = document.documentElement.clientWidth-2;\r\n"); out.write("\tvar pageHeight = document.documentElement.clientHeight-2;\r\n"); out.write("\t\r\n"); out.write("\tvar attachmentParams;\r\n"); out.write("\tjQuery(function(){\r\n"); out.write("\t var table = new tracywindyOperationTable({\r\n"); out.write("\t\t tableComment:'[合同收款信息]',\r\n"); out.write("\t\t constantFlagTable:'ProjInfo',\r\n"); out.write("\t\t windowTop:20,\r\n"); out.write("\t border:true,\r\n"); out.write(" renderTo:'id_tableContainer',\r\n"); out.write(" title:'合同收款信息',\r\n"); out.write(" width:parseInt(\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${param.tableWidth}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("\")||pageWidth,\r\n"); out.write(" height:parseInt(\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${param.tableHeight}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("\")||pageHeight,\r\n"); out.write(" id:'id_table',\r\n"); out.write( " xmlFileName:'\\\\eleasing\\\\workflow\\\\contract\\\\contract_flowopen_list.xml',\r\n"); out.write(" loadMode:'ajax',\r\n"); out.write(" params:{\r\n"); out.write("\t\t CONTRACT_STATUS_LessThan : 100, \r\n"); out.write("\t \tCONTRACT_STATUS_GreaterThan : 15,\r\n"); out.write("\t \tuserId:'"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${sessionScope.loginUser.id}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("',\r\n"); out.write("\t \ttotal:'1'\r\n"); out.write("\t\t\t},\r\n"); out.write(" isPage:true,\r\n"); out.write(" operButtons:' ',\r\n"); out.write(" isFit:false,\r\n"); out.write(" tools:[{\r\n"); out.write(" \t html : '<font color=\"red\">收款</font>',\r\n"); out.write("\t\t handler : function(table) {\r\n"); out.write("\t\t\t\tvar projIDValue = table.getCheckedRowDatas();\r\n"); out.write("\t\t\t\tif (0 == projIDValue.length) {\r\n"); out.write("\t\t\t\t\talert(\"请选择需要启动的流程!\");\r\n"); out.write("\t\t\t\t\treturn false;\r\n"); out.write("\t\t\t\t}\r\n"); out.write( "\t\t\t\tattachmentParams = \"cust_id=\"+projIDValue[0].custid+\"&contract_id=\" + projIDValue[0].id ;\r\n"); out.write("\t\t\t\tvar custdealerid = projIDValue[0].custdealerid;\r\n"); out.write("\t\t\t\tvar param_ = {};\r\n"); out.write("\t\t\t\tparam_.hasMoney = '0';\r\n"); out.write("\t\t\t\tif(custdealerid){\r\n"); out.write("\t\t\t\t\tparam_.custid = custdealerid;\r\n"); out.write("\t\t\t\t}\r\n"); out.write("\t\t\t\tvar table_ebank = getTracywindyObject('table_ebank');\r\n"); out.write("\t\t\t\ttable_ebank.setParams(param_);\r\n"); out.write("\t\t\t\ttable_ebank.reload();\r\n"); out.write("\t\t\t\t\r\n"); out.write("\t\t\t\tjQuery(\"#ebank\").show();\r\n"); out.write("\t\t\t\tjQuery(\"#ebank\").window({\r\n"); out.write("\t\t\t\t\t top:10\r\n"); out.write("\t\t\t\t});\r\n"); out.write("\t\t\t\tjQuery(\"#ebank\").window(\"open\");\r\n"); out.write("\t\t\t\t//startProcess(\"收款流程-4\",attachmentParams);\r\n"); out.write("\t\t\t},\r\n"); out.write("\t\t\ticonCls :'icon-update'\r\n"); out.write(" },\r\n"); out.write(" {\r\n"); out.write(" \t html : '<font color=\"red\">红冲</font>',\r\n"); out.write(" \t\t handler : function(table) {\r\n"); out.write(" \t\t\t\tvar projIDValue = table.getCheckedRowDatas();\r\n"); out.write(" \t\t\t\tif (0 == projIDValue.length) {\r\n"); out.write(" \t\t\t\t\talert(\"请选择需要启动的流程!\");\r\n"); out.write(" \t\t\t\t\treturn false;\r\n"); out.write(" \t\t\t\t}\r\n"); out.write(" \t\t\t\tif (projIDValue[0].shebeimoney > 0){\r\n"); out.write(" \t\t\t\t\talert(\"资金已投放不允许红冲!\");\r\n"); out.write(" \t\t\t\t\treturn false;\r\n"); out.write(" \t\t\t\t}else{\r\n"); out.write( "\t \t\t\t\tattachmentParams = \"cust_id=\"+projIDValue[0].custid+\"&contract_id=\" + projIDValue[0].id+\"&feetype=red\";\r\n"); out.write("\t \t\t\t\tvar custdealerid = projIDValue[0].custdealerid;\r\n"); out.write("\t \t\t\t\tvar param_ = {};\r\n"); out.write("\t \t\t\t\tparam_.hasMoney = '0';\r\n"); out.write("\t \t\t\t\tif(custdealerid){\r\n"); out.write("\t \t\t\t\t\tparam_.custid = custdealerid;\r\n"); out.write("\t \t\t\t\t}\r\n"); out.write("\t \t\t\t\tstartProcess(\"收款流程-1\",attachmentParams);\r\n"); out.write(" \t\t\t\t}\r\n"); out.write(" \t\t\t},\r\n"); out.write(" \t\t\ticonCls :'icon-update'\r\n"); out.write(" },\r\n"); out.write(" {\r\n"); out.write("\t\t\t\tisHtml : true,\r\n"); out.write("\t\t\t\thtml : '选择显示合同信息:'\r\n"); out.write("\t\t }, {\r\n"); out.write("\t\t\t\tisHtml : true,\r\n"); out.write("\t\t\t\thtml : '<div id=\"id_flow_name\" style=\"float:left;\"></div>'\r\n"); out.write("\t\t\t}\r\n"); out.write(" ],\r\n"); out.write(" columns:[\r\n"); out.write("\t\t {header:'id',name:'id',hidden:true},\r\n"); out.write("\t\t {header:'proj_id',name:'proj_id',hidden:true},\r\n"); out.write("\t\t {header:'pid',name:'pid',hidden:true},\r\n"); out.write("\t\t {header:'custid',name:'custid',hidden:true},\r\n"); out.write("\t\t {header:'typecode',name:'typecode',hidden:true},\r\n"); out.write("\t\t {header:'业务类别',name:'businesstype'},\r\n"); out.write("\t\t {header:'客户名称',name:'custname',queryConfig:{}},\r\n"); out.write("\t\t {header:'经销商名称',name:'custdealer',queryConfig:{}},\r\n"); out.write("\t\t {header:'合同编号',name:'contractid',queryConfig:{}},\r\n"); out.write("\t\t {header:'业务合同号',name:'contractnumber'},\r\n"); out.write("\t\t {header:'设备款',name:'shebeimoney',hidden:true},\r\n"); out.write( "\t\t {header:'项目名称',name:'projname',width:300,queryConfig:{isNewLine:true}},\r\n"); out.write("\t\t {header:'活动类型',name:'projtype'},\r\n"); out.write("\t\t {header:'项目来源',name:'projsource'},\r\n"); out.write("\t\t //{header:'项目规模',name:'projscale'},\r\n"); out.write("\t\t {header:'资产分类',name:'industrytype'},\r\n"); out.write("\t\t {header:'租赁形式',name:'leasform'},\r\n"); out.write("\t\t {header:'业务模式',name:'businessmode'},\r\n"); out.write("\t\t {header:'客户经理',name:'projmanage'}\r\n"); out.write(" ]\r\n"); out.write("\t });\r\n"); out.write("\t var combo_type = new tracywindyComboBox({\r\n"); out.write("\t\t\tid : 'id_combo_flow_name',\r\n"); out.write("\t\t\twidth : 200,\r\n"); out.write("\t\t\trenderTo : 'id_flow_name',\r\n"); out.write("\t\t\tloadMode : 'local',\r\n"); out.write("\t\t\treadOnly : false,\r\n"); out.write("\t\t\tisAjaxLenovo : true,\r\n"); out.write("\t\t\tisContainEmpty : false,\r\n"); out.write("\t\t\tdropListHeight : 300,\r\n"); out.write("\t\t\ttopAdd : 0,\r\n"); out.write("\t\t\tleftAdd : 0,\r\n"); out.write("\t\t\tpositionDropIconLeftAdd : -1,\r\n"); out.write("\t\t\tvalue:'1',\r\n"); out.write("\t\t\tname : 'flow_name',\r\n"); out.write("\t\t\tdisplayField : 'name',\r\n"); out.write("\t\t\tvalueField : 'value',\r\n"); out.write("\t\t\tdatas : [ \r\n"); out.write("\t\t\t {\r\n"); out.write("\t\t\t\tname : '未收完合同',\r\n"); out.write("\t\t\t\tvalue : '1'\r\n"); out.write("\t\t\t },{\r\n"); out.write("\t\t\t\t\tname : '全部合同',\r\n"); out.write("\t\t\t\t\tvalue : ''\r\n"); out.write("\t\t\t\t}],\r\n"); out.write("\t\t\tonSelect : function(combo) {\r\n"); out.write("\t\t\t\tvar table = getTracywindyObject('id_table');\r\n"); out.write("\t\t\t\t//alert(table);\r\n"); out.write("\t\t\t\t table.setParams({\r\n"); out.write("\t total: combo.getValue()\r\n"); out.write("\t });\r\n"); out.write("\t table.reload();\r\n"); out.write("\r\n"); out.write("\t\t\t}\r\n"); out.write("\t\t});\r\n"); out.write("});\r\n"); out.write("\tjQuery(function(){\r\n"); out.write("\t \t new tracywindyOperationTable({\r\n"); out.write("\t \t\t tableComment:'[网银信息]',\r\n"); out.write("\t \t\t constantFlagTable:'fundebank',\r\n"); out.write("\t \t\t windowTop:20,\r\n"); out.write("\t \t border:true,\r\n"); out.write("\t renderTo:'id_ebank',\r\n"); out.write("\t title:'网银信息',\r\n"); out.write("\t width:(parseInt(\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${param.tableWidth}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("\")||pageWidth) - 300,\r\n"); out.write("\t height:(parseInt(\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${param.tableHeight}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("\")||pageHeight)-140,\r\n"); out.write("\t id:'table_ebank',\r\n"); out.write( "\t //xmlFileName:'eleasing/jsp/fund_collection/fund_ebank_info_collection.xml',\r\n"); out.write("\t xmlFileName:'eleasing/jsp/fund_ebank/fund_ebank_info.xml',\r\n"); out.write("\t displayToggleContainer:\"ebank\",\r\n"); out.write("\t loadMode:'ajax',\r\n"); out.write("\t isPage:true,\r\n"); out.write("\t operButtons:' ',\r\n"); out.write("\t isFit:true,\r\n"); out.write("\t operButtons:' ',\r\n"); out.write("\t params:{\r\n"); out.write("\t \t enabled:0\r\n"); out.write("\t\t\t },\r\n"); out.write("\t //params : param_,\r\n"); out.write("\t tools:[{\r\n"); out.write("\t \t html : '<font color=\"red\">收款</font>',\r\n"); out.write("\t \t\t\thandler : function(table) {\r\n"); out.write("\t \t\t\t\tvar projIDValue = table.getCheckedRowDatas();\r\n"); out.write("\t \t\t\t\tif (0 == projIDValue.length) {\r\n"); out.write("\t \t\t\t\t\talert(\"请选择需要的网银\");\r\n"); out.write("\t \t\t\t\t\treturn false;\r\n"); out.write("\t \t\t\t\t}\r\n"); out.write("\t \t\t\t\t\r\n"); out.write( "\t \t\t\t\tattachmentParams = attachmentParams + \"&ebank_id=\" +projIDValue[0].id ;\r\n"); out.write("\t\t \t\t\tstartProcess(\"收款流程-1\",attachmentParams);\r\n"); out.write("\t \r\n"); out.write("\t \t\t\t},\r\n"); out.write("\t \t\t\ticonCls :'icon-update'\r\n"); out.write("\t }],\r\n"); out.write("\t isFit:false,\r\n"); out.write("\t columns:[\r\n"); out.write("\t {header:'id',name:'id',hidden:true},\r\n"); out.write( "\t {header:'custdealerid',name:'custdealerid',hidden:true},\r\n"); out.write("\t\t\t {header:'网银编号',name:'ebdataid',queryConfig:{}},\r\n"); out.write("\t\t\t {header:'经销商',name:'custname'},\r\n"); out.write("\t\t\t {header:'付款人',name:'clientname',queryConfig:{}},\r\n"); out.write("\t\t\t {header:'本方银行',name:'ownbank',hidden:true},\r\n"); out.write("\t\t\t {header:'本方账户',name:'ownaccount',hidden:true},\r\n"); out.write("\t\t\t {header:'本方账号',name:'ownaccnumber',hidden:true},\r\n"); out.write("\t\t\t {header:'对方银行',name:'clientbank',hidden:true},\r\n"); out.write("\t\t\t {header:'对方账户',name:'clientaccount',hidden:true},\r\n"); out.write("\t\t\t {header:'对方账号',name:'clientaccnumber',hidden:true},\r\n"); out.write("\t\t\t {header:'到账金额类型',name:'moneytype',hidden:true},\r\n"); out.write( "\t\t\t {header:'到账金额',name:'factmoney',queryConfig:{isNewLine:true}},\r\n"); out.write("\t\t\t //{header:'与系统无关金额',name:'nowithmoney'},\r\n"); out.write("\t\t\t {header:'已核销金额',name:'hiremoney'},\r\n"); out.write("\t\t\t {header:'可核销金额',name:'owmoney'},\r\n"); out.write("\t\t\t {header:'到账时间',name:'factdate'},\r\n"); out.write("\t\t\t {header:'流水号',name:'sn'},\r\n"); out.write("\t\t\t {header:'备注',name:'summary',queryConfig:{}},\r\n"); out.write("\t\t\t //{header:'登记人',name:'creator_name'},\r\n"); out.write("\t\t\t //{header:'登记时间',name:'create_date'}\r\n"); out.write("\t\t ]\r\n"); out.write("\t \t });\r\n"); out.write("\t });\r\n"); out.write(" </script>\r\n"); out.write(" \r\n"); out.write("\r\n"); out.write("</head>\r\n"); out.write("<body>\r\n"); out.write(" <div id=\"id_tableContainer\"></div>\r\n"); out.write( "\t <div id=\"ebank\" style=\"display: none;overflow:hidden;\" title=\"选择网银\">\r\n"); out.write("\t \t<div id=\"id_ebank\"></div>\r\n"); out.write(" </div>\r\n"); out.write("\t<script type='text/javascript'>\r\n"); out.write("\t var ebankDom =document.getElementById(\"ebank\");\r\n"); out.write("\t ebankDom.style.height= ((parseInt(\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${param.tableHeight}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("\")||pageHeight) - 100)+\"px\";\r\n"); out.write("\t</script>\r\n"); out.write("</body>\r\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final java.lang.String _jspx_method = request.getMethod(); if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method) && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) { response.sendError( HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD"); return; } final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.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(); _jspx_out = out; out.write("\n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n"); out.write("<html>\n"); out.write("<head>\n"); out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n"); out.write( "<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css\"> \n"); out.write("<style>\n"); out.write("p{\n"); out.write(" color:black;\n"); out.write(" font-family:Arial;\n"); out.write(" font-size:50;\n"); out.write(" margin-left: 120px;\n"); out.write("}\n"); out.write("</style>\n"); out.write(" \n"); out.write("<title>LinkedIn</title> \n"); out.write("</head>\n"); out.write("<body>\n"); out.write("<center>\n"); out.write( "<nav style=\"padding-bottom: 10px;box-shadow: 3px 3px 5px #888888; background-color: #F5F5F5;\">\n"); out.write("\n"); out.write(" \n"); out.write("<form id=\"form2\" method=\"post\" action=\"signin\">\n"); out.write("<fieldset style=\"width: 800px\"> \n"); out.write(" <table> \n"); out.write(" <tr> \n"); out.write( " <td> <img src=\"../resources/images/linkedin2.jpg\" alt=\"LinkedIn\" style=\"margin-left:-20px; margin-top: 5px;width:90px;height:40px\"></td>\n"); out.write(" <td>Email Address</td> \n"); out.write( " <td><input type=\"text\" name=\"username\" required=\"required\" style=\"margin-left: 10px;\"/></td> \n"); out.write(" \n"); out.write(" <td> Password</td>\n"); out.write( " <td><input type=\"password\" name=\"password\" required=\"required\" style=\"margin-left: 10px;\"/></td> \n"); out.write(" \n"); out.write( " <td><input type=\"submit\" value=\"Sign In\" style=\"margin-left: 100px;\"/></td> \n"); out.write(" <td><input type =\"hidden\" name=\"userid\" value=\""); out.print(request.getParameter("userid")); out.write("\"/></td> \n"); out.write(" </tr> \n"); out.write(" </table> \n"); out.write(" </fieldset> \n"); out.write( "\t<!-- <div class=\"form-row\"><span class=\"label\">Username </span><input type=\"text\" name=\"username\"/></div>\n"); out.write( "\t<div class=\"form-row\"><span class=\"label\">Password </span><input type=\"password\" name=\"password\"/></div>\n"); out.write( "\t<div class=\"form-row\"><input class=\"submit\" type=\"submit\" value=\"submit\"/></div> -->\n"); out.write("</form>\n"); out.write("</nav>\n"); out.write(" \n"); out.write( "<h1 style=\"margin-left: 100px; font-size: 35px; margin-bottom:100px;\">Connect, share ideas, and discover opportunities.</h1> \n"); out.write(" <div>\n"); out.write(" <form id=\"form1\" method=\"post\" action=\"signup\">\n"); out.write("\t\t\t\t<table>\n"); out.write("\t\t\t\t<tr>\n"); out.write("\t\t\t\t\t<th rowspan = \"7\">\n"); out.write( "\t\t\t\t\t\t<img src=\"../resources/images/img1.png\" width=\"150\" height=\"150\" alt=\"Male Headshot\">\n"); out.write( "\t\t\t\t\t\t<img src=\"../resources/images/img2.png\" width=\"150\" height=\"150\" alt=\"Female Headshot\">\n"); out.write( "\t\t\t\t\t\t<img src=\"../resources/images/img3.png\" width=\"150\" height=\"150\" alt=\"Male Headshot\"><br> <br>\n"); out.write( "\t\t\t\t\t\t<img src=\"../resources/images/img4.png\" width=\"150\" height=\"150\" alt=\"Male Headshot\">\n"); out.write( "\t\t\t\t\t\t<img src=\"../resources/images/img5.png\" width=\"150\" height=\"150\" alt=\"Male Headshot\">\n"); out.write( "\t\t\t\t\t\t<img src=\"../resources/images/img6.png\" width=\"150\" height=\"150\" alt=\"Male Headshot\">\n"); out.write("\t\t\t\t\t</th>\n"); out.write("\t\t\t\t\t<tr>\n"); out.write( "\t\t\t\t\t<h2 style=\"margin-top:1px;margin-left:400px;width: 400px;\">Get Started - it's free.</h2>\n"); out.write("\t\t\t\t\t</tr>\n"); out.write("\t\t\t\t\t<tr>\n"); out.write( "\t\t\t\t\t<h4 style=\"margin-top:1px;margin-left:400px;width: 400px;\">Registration takes less than 2 minutes.</h4>\n"); out.write("\t\t\t\t\t</tr>\n"); out.write("\t\t\t\t\t<td>\n"); out.write("\t\t\t\t\t<div class=\"col-sm-2\">\t\t\t\t \n"); out.write( "\t\t\t\t <input type=\"text\" placeholder=\"First Name\" name=\"first\" required =\"required\" style=\"margin-top: 15px;margin-left: -400px;width: 200px;\" >\n"); out.write("\t\t\t\t \t\t</div>\n"); out.write("\t\t\t\t \t\t\n"); out.write("\t\t\t\t \t\t<div class=\"col-sm-2\">\t\t\t\t \n"); out.write( "\t\t\t\t <input type=\"text\" placeholder=\"Last Name\" name=\"last\" required =\"required\" style=\"margin-top: 15px;margin-left: -200px;width: 200px;\" >\n"); out.write("\t\t\t\t \t\t</div> \n"); out.write("\t\t\t\t \t</td>\t\n"); out.write("\t\t\t\t \t</tr>\n"); out.write("\t\t\t\t<tr>\n"); out.write("\t\t\t\t\t<td>\n"); out.write("\t\t\t\t \t\t<div class=\"col-sm-4\">\t\t\t\t \n"); out.write( "\t\t\t\t <input type=\"text\" placeholder=\"Email Address\" name=\"email\" required =\"required\" style=\"margin-top:1px;margin-left:-400px;width: 400px;\" >\n"); out.write("\t\t\t\t \t\t</div> \n"); out.write("\t\t\t \t\t</td>\n"); out.write("\t\t\t \t</tr>\n"); out.write("\t\t\t \t<tr>\n"); out.write("\t\t\t \t\t<td>\n"); out.write("\t\t\t\t \t\t<div class=\"col-sm-4\">\t\t\t\t \n"); out.write( "\t\t\t\t <input type=\"text\" placeholder=\"Password (6 or more characters)\" name=\"pass\" required =\"required\" style=\"margin-top:1px;margin-left:-400px;width: 400px;\" >\n"); out.write("\t\t\t\t \t\t</div>\n"); out.write("\t\t\t \t\t</td>\n"); out.write("\t\t\t \t</tr>\n"); out.write("\t\t\t \t<tr>\n"); out.write("\t\t\t\t \t<td>\n"); out.write( "\t\t\t\t \t\t<p style=\"margin-top:1px;margin-left:-400px;width: 400px;\"> By clicking Join Now, you agree to LinkedIn's User Agreement,</br> Privacy Policy and Cookie Policy.</p>\n"); out.write("\t\t\t\t \t</td>\n"); out.write("\t\t\t \t</tr>\n"); out.write("\t\t\t\t<tr>\t\n"); out.write("\t\t\t\t\t<td>\n"); out.write( "\t\t\t\t\t<input class=\"submit\" type=\"submit\" value=\"Join Now\" style=\"margin-top:0px;margin-left:600px;width: 400px;height: 35px;font-weight: bold;background-color: #FFD700;border: 0 none; \"/>\n"); out.write( "\t\t\t\t\t\t<!-- <button type=\"submit\" value=\"Join Now\" style=\"margin-top:1px;margin-left: 120px;width: 400px;height: 35px;font-weight: bold;background-color: #FFD700;border: 0 none; \">Join Now </button>-->\n"); out.write("\t\t\t\t\t</td>\n"); out.write("\t\t\t\t</tr>\n"); out.write("\t\t\t\t\n"); out.write("\t\t\t\t\n"); out.write("\t\t\t</table>\n"); out.write("\t</form>\t \n"); out.write("\t\t \t</div>\n"); out.write(" \n"); out.write(" </center>\n"); out.write("<!-- <div>SignUp for New Account</div>\n"); out.write("<form id=\"form1\" method=\"post\" action=\"signup\">\n"); out.write( "\t<div class=\"form-row\"><span class=\"label\">First Name </span><input type=\"text\" name=\"first\"/></div>\n"); out.write( "\t<div class=\"form-row\"><span class=\"label\">Last Name </span><input type=\"text\" name=\"last\"/></div>\t\n"); out.write( "\t<div class=\"form-row\"><span class=\"label\">Email </span><input type=\"email\" name=\"email\"/></div>\n"); out.write( "\t<div class=\"form-row\"><span class=\"label\">Password </span><input type=\"password\" name=\"pass\"/></div>\n"); out.write( "\t<div class=\"form-row\"><input class=\"submit\" type=\"submit\" value=\"submit\"/></div>\n"); out.write("</form>\n"); out.write(" -->\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("</body>\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.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(); _jspx_out = out; out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); String panelid = request.getParameter("panelid"); User user = MixkyUserCertification.instance().getUserInfo(request); out.write("\n"); out.write("\n"); out.write("<script language='javascript'>\n"); out.write("\n"); out.write("Ext.onReady(function(){\n"); out.write("\n"); out.write("\tvar panel = Ext.getCmp('"); out.print(panelid); out.write("');\n"); out.write("\n"); out.write("\t// 数据访问\n"); out.write("\tvar store = new Ext.data.DirectStore({\n"); out.write("\t\tdirectFn : AppFolderDirect.getShareFolderList,\n"); out.write("\t\tparamOrder:['folderId', 'userId', 'sharetype'],\n"); out.write("\t\tbaseParams:{folderId:0, userId:"); out.print(user.getId()); out.write(", sharetype:0},\n"); out.write("\t\troot : 'results',\n"); out.write("\t\ttotalProperty : 'folderId',\n"); out.write("\t\tidProperty : 'ID',\n"); out.write( "\t\tfields:[\"F_IMG\",\"F_NAME\",\"F_NOTE\",\"F_USERNAME\",\"F_CREATTIME\",\"F_SIZE\",\"F_ACTION\",\"ID\", \"F_TYPE\", \"F_PARENTID\", \"F_BELONGUSERID\", \"F_SHARETYPE\", \"F_USERID\", \"F_FILENAME\"]\n"); out.write("\t});\n"); out.write("\n"); out.write("\t\n"); out.write("\t// 显示列\n"); out.write("\tvar columns = [\n"); out.write( " \t{id:\"F_NAME\",header:\"名称\",dataIndex:\"F_NAME\",width:300, renderer : function(value, p, record){\n"); out.write("\t\t\tvar type = 'icon-app-mkoa-folderup';\n"); out.write("\t\t\tvar title = value;\n"); out.write("\t\t\tswitch(record.get(\"F_TYPE\")){\n"); out.write("\t\t\tcase 0:\n"); out.write("\t\t\t\tif(record.get('F_SHARETYPE') == 0){\n"); out.write("\t\t\t\t\ttype = 'icon-app-mkoa-folder';\n"); out.write("\t\t\t\t}else{\n"); out.write("\t\t\t\t\ttype = 'icon-app-mkoa-foldershare';\n"); out.write("\t\t\t\t}\n"); out.write("\t\t\t\tbreak;\n"); out.write("\t\t\tcase 1:\n"); out.write("\t\t\t\ttype = 'icon-app-mkoa-file';\n"); out.write( "\t\t\t\ttitle = '<a href=\"engine/file/sysdownload.do?documentdbtype=blob&fieldname=F_FILE&documentkey=mkNetFolder.docNetFile'\n"); out.write( "\t\t\t\t\t + '&id=' + record.get(\"ID\") + '&filename=' + record.get(\"F_FILENAME\") + '\">'\n"); out.write("\t\t\t\t\t + title + '</a>';\n"); out.write("\t\t\t\tbreak;\n"); out.write("\t\t\t}\n"); out.write( "\t\t\treturn String.format(\"<div style='padding-left:23px;background-repeat:no-repeat' class='{1}'> {0}</div>\", title, type);\n"); out.write("\t\t}},\n"); out.write(" \t{id:\"F_USERNAME\",header:\"创建人\",dataIndex:\"F_USERNAME\",width:80},\n"); out.write( " \t{id:\"F_CREATTIME\",header:\"创建日期\",dataIndex:\"F_CREATTIME\",width:120},\n"); out.write(" \t{id:\"F_SIZE\",header:\"文件大小\",dataIndex:\"F_SIZE\",width:80},\n"); out.write(" \t{id:\"F_NOTE\",header:\"说明\",dataIndex:\"F_NOTE\"}\n"); out.write(" ];\n"); out.write("\n"); out.write("\t\n"); out.write("\tvar fieldSearch = new Ext.form.TextField({\n"); out.write("\t\twidth : 100,\n"); out.write("\t\temptyText : '输入快速检索字符',\n"); out.write(" listeners: {\n"); out.write("\t specialkey: function(field, e){\n"); out.write("\t // e.HOME, e.END, e.PAGE_UP, e.PAGE_DOWN,\n"); out.write("\t // e.TAB, e.ESC, arrow keys: e.LEFT, e.RIGHT, e.UP, e.DOWN\n"); out.write("\t if (e.getKey() == e.ENTER) {\n"); out.write("\t \tvar value = field.getValue();\n"); out.write("\t \t\t\tif(Ext.isDefined(value) && value != ''){\n"); out.write("\t \t\t\t\tvar modulePanel = MixkyApp.desktop.openModule('mkNetFolder');\n"); out.write( "\t \t\t\t\tvar urlPanel = modulePanel.openView('mkNetFolder.qFolder.vShareSearch');\n"); out.write("\t \t\t\t\tif(urlPanel){\n"); out.write("\t \t\t\t\t\tif(urlPanel.refresh){\n"); out.write( "\t \t\t\t\t\t\turlPanel.refresh({folderId: store.baseParams.folderId,queryvalue: value});\n"); out.write("\t \t\t\t\t\t}else{\n"); out.write( "\t \t\t\t\t\t\turlPanel.initParams = {folderId: store.baseParams.folderId,queryvalue: value};\n"); out.write("\t \t\t\t\t\t}\n"); out.write("\t \t\t\t\t}\n"); out.write("\t \t\t\t}\n"); out.write("\t }\n"); out.write("\t }\n"); out.write("\t }\n"); out.write("\t});\n"); out.write("\tvar btnSearch = new Ext.Action({\n"); out.write("\t\ttext : '快速检索',\n"); out.write("\t\ticonCls : 'icon-sys-query',\n"); out.write("\t\thandler : function(){\n"); out.write("\t\t\tvar value = fieldSearch.getValue();\n"); out.write("\t\t\tif(Ext.isDefined(value) && value != ''){\n"); out.write("\t\t\t\tvar modulePanel = MixkyApp.desktop.openModule('mkNetFolder');\n"); out.write( "\t\t\t\tvar urlPanel = modulePanel.openView('mkNetFolder.qFolder.vShareSearch');\n"); out.write("\t\t\t\tif(urlPanel){\n"); out.write("\t\t\t\t\tif(urlPanel.refresh){\n"); out.write( "\t\t\t\t\t\turlPanel.refresh({folderId: store.baseParams.folderId,queryvalue: value});\n"); out.write("\t\t\t\t\t}else{\n"); out.write( "\t\t\t\t\t\turlPanel.initParams = {folderId: store.baseParams.folderId,queryvalue: value};\n"); out.write("\t\t\t\t\t}\n"); out.write("\t\t\t\t}\n"); out.write("\t\t\t}\n"); out.write("\t\t}\n"); out.write("\t});\n"); out.write("\t\n"); out.write("\t\n"); out.write(" // 视图操作\n"); out.write(" var AddFolderAction = new Ext.Action({\n"); out.write("\t\ttext:'新建文件夹',\n"); out.write("\t\ticonCls:'icon-sys-btnadd',\n"); out.write("\t\thandler:function(){\n"); out.write( " \t\tAppFolderDirect.getNewItemInfo(store.baseParams.folderId, store.baseParams.userId, function(result, e){\n"); out.write("\t\t\t\tif(result) {\n"); out.write( "\t\t\t\t\tMixkyApp.desktop.openDocument('mkNetFolder.docNetFolder', 0, {'F_GRIDPANEL_ID':'"); out.print(panelid); out.write( "', 'F_PARENTID':result.f_parentid, 'F_LEVEL':result.f_level, 'F_BELONGUSERID':result.f_belonguserid, 'F_TYPE': "); out.print(FolderItem.TYPE_FOLDER); out.write("});\n"); out.write("\t\t\t\t}\n"); out.write("\t });\n"); out.write("\t\t}\n"); out.write("\t});\n"); out.write("\n"); out.write(" var UploadFileButton = new Mixky.plugins.UploadButton({\n"); out.write("\t\ttext:'上传文件',\n"); out.write("\t\ticonCls:'icon-sys-upload',\n"); out.write("\t\tuploadConfig : {\n"); out.write("\t\t\tupload_url : 'servlet/mkoa/netfolder/folderfile.upload',\n"); out.write("\t\t\tpost_params : {\n"); out.write("\t\t\t\tuserId: '"); out.print(user.getId()); out.write("'\n"); out.write("\t\t\t},\n"); out.write("\t\t\tlisteners : {\n"); out.write("\t\t\t\t'allUploadsComplete' : function(){\n"); out.write("\t\t\t\t\tpanel.refreshView();\n"); out.write("\t\t\t\t},\n"); out.write("\t\t\t\t'startUpload' : function(){\n"); out.write("\t\t\t\t\tthis.addPostParam('folderId', store.baseParams.folderId);\n"); out.write("\t\t\t\t}\n"); out.write("\t\t\t}\n"); out.write("\t\t}\n"); out.write("\t});\n"); out.write("\t\n"); out.write("\t// 刷新按钮\n"); out.write("\tvar btnRefresh = new Ext.Action({\n"); out.write("\t\ttext : '刷新',\n"); out.write("\t\ticonCls : 'icon-sys-refresh',\n"); out.write("\t\thandler : function(){\n"); out.write("\t\t\tpanel.refresh();\n"); out.write("\t\t}\n"); out.write("\t});\n"); out.write("\n"); out.write("\tvar btnEdit = new Ext.Action({\n"); out.write("\t\ttext: '编辑',\n"); out.write("\t\ticonCls : 'icon-sys-edit',\n"); out.write("\t\thandler: function() {\n"); out.write("\t\t\tvar record = grid.getSelectionModel().getSelected();\n"); out.write("\t\t\tvar windName;\n"); out.write("\t\t\tif (record.get('F_TYPE') == 0) {\n"); out.write( "\t\t\t\tMixkyApp.desktop.openDocument('mkNetFolder.docNetFolder', record.get('ID'), {'F_GRIDPANEL_ID':'"); out.print(panelid); out.write("'});\n"); out.write("\t\t\t} else {\n"); out.write( "\t\t\t\tMixkyApp.desktop.openDocument('mkNetFolder.docNetFile', record.get('ID'), {'F_GRIDPANEL_ID':'"); out.print(panelid); out.write("'});\n"); out.write("\t\t\t}\n"); out.write("\t\t}\n"); out.write("\t})\n"); out.write("\n"); out.write("\tvar btnDelete = new Ext.Action({\n"); out.write("\t\ttext: '删除',\n"); out.write("\t\ticonCls : 'icon-sys-delete',\n"); out.write("\t\thandler: function() {\n"); out.write("\t\t\tvar record = grid.getSelectionModel().getSelected();\n"); out.write("\t\t\tif(!record){\n"); out.write("\t\t\t\treturn;\n"); out.write("\t\t\t}\n"); out.write("\t\t\tvar message = '';\n"); out.write("\t\t\tif (record.get('F_TYPE') == "); out.print(FolderItem.TYPE_FOLDER); out.write(") {\n"); out.write( "\t\t\t\tmessage = \"删除文件夹【\" + record.get('F_NAME') + \"】,包括该文件夹下的所有子文件夹及文件,您确定吗?\";\n"); out.write("\t\t\t} else {\n"); out.write("\t\t\t\tmessage = \"删除文件【\" + record.get('F_NAME') + \"】,您确定吗?\";\n"); out.write("\t\t\t}\n"); out.write("\t\t\t//添加confirm\n"); out.write("\t\t\tExt.Msg.confirm('危险操作提示', message, function(btn) {\n"); out.write("\t\t\t\tif (btn == 'yes') {\n"); out.write( "\t\t\t\t\tAppFolderDirect.deleteFolderItem(record.get('ID'), record.get('F_TYPE'));\n"); out.write("\t\t\t\t\tpanel.refresh();\n"); out.write("\t\t\t\t}\n"); out.write("\t\t\t});\n"); out.write("\t\t}\n"); out.write("\t})\n"); out.write("\t\n"); out.write( "\tvar buttons = [{xtype: 'tbtext', text: ''}, '->',fieldSearch, btnSearch, '-', AddFolderAction, '-', UploadFileButton, \"-\", btnEdit, btnDelete, '-', btnRefresh];\n"); out.write("\n"); out.write("\t//右键\n"); out.write("\tvar contextmenus = [AddFolderAction, \"-\", btnEdit, btnDelete, btnRefresh];\n"); out.write("\n"); out.write("\tstore.on('load', function(store, records, option){\n"); out.write("\t\tif (records.length > 0 && store.baseParams.folderId > 0) {\n"); out.write("\t\t\tif (records[0].get('F_SHARETYPE') == "); out.print(FolderItem.TYPE_SHARE_WRITE); out.write(") {\n"); out.write("\t\t\t\tAddFolderAction.enable();\n"); out.write("\t\t\t\tUploadFileButton.enable();\n"); out.write("\t\t\t\tbtnDelete.enable();\n"); out.write("\t\t\t\tbtnEdit.enable();\n"); out.write("\t\t\t\tstore.baseParams.sharetype = "); out.print(FolderItem.TYPE_SHARE_WRITE); out.write(";\n"); out.write("\t\t\t}\n"); out.write("\t\t}\n"); out.write("\t});\n"); out.write("\n"); out.write("\tvar sm = new Ext.grid.RowSelectionModel({singleSelect:true});\n"); out.write("\n"); out.write("\t// 表格对象\n"); out.write("\tvar grid = new Ext.grid.GridPanel({\n"); out.write("\t\tborder : false,\n"); out.write("\t\tstripeRows: true,\n"); out.write("\t\tenableHdMenu : true,\n"); out.write("\t\tlineBreak : true,\n"); out.write("\t\tcellSelect : false,\n"); out.write(" loadMask: {msg:'正在装载...'},\n"); out.write("\t\tautoExpandColumn : 'F_NOTE',\n"); out.write("\t\tsm : sm,\n"); out.write("\t\tcolumns : columns,\n"); out.write("\t\tstore : store,\n"); out.write("\t\ttbar : buttons,\n"); out.write("\t\tcontextMenu : new Ext.menu.Menu({items:contextmenus}),\n"); out.write("\t\tenableDragDrop : false,\n"); out.write("\t\tddGroup : 'grid2tree',\n"); out.write("\t\tlisteners:{\n"); out.write("\t\t\trowcontextmenu:function(grid, rowIndex, e){\n"); out.write(" \t grid.getSelectionModel().selectRow(rowIndex);\n"); out.write( "\t\t\t\tif(this.contextMenu.items.length > 0 && grid.store.baseParams.sharetype == "); out.print(FolderItem.TYPE_SHARE_WRITE); out.write("){\n"); out.write("\t\t\t\t\te.preventDefault();\n"); out.write("\t\t\t\t\tif (rowIndex == 0 && store.baseParams.folderId > 0) {\n"); out.write("\t\t\t\t\t\t\n"); out.write("\t\t\t\t\t} else {\n"); out.write("\t\t\t\t\t\tthis.contextMenu.showAt(e.getXY());\n"); out.write("\t\t\t\t\t}\n"); out.write("\t\t\t\t}\n"); out.write("\t\t\t},\n"); out.write("\t\t\trowdblclick:function(grid, index, e){\n"); out.write("\t\t\t\tvar record = grid.store.getAt(index);\n"); out.write("\t\t\t\tif (record.get('F_TYPE') == 0) {\n"); out.write("\t\t\t\t\tvar sharetype = 0\n"); out.write("\t\t\t\t\tif (record.get('ID') > 0) {\n"); out.write("\t\t\t\t\t\tsharetype = record.get('F_SHARETYPE');\n"); out.write("\t\t\t\t\t}\n"); out.write("\t\t\t\t\tpanel.refresh({folderId:record.get('ID'),sharetype:sharetype});\n"); out.write("\t\t\t\t} else {\n"); out.write( "\t\t\t\t\tlocation.href = 'engine/file/sysdownload.do?documentdbtype=blob&fieldname=F_FILE&documentkey=mkNetFolder.docNetFile'\n"); out.write( "\t\t\t\t\t\t\t + '&id=' + record.get(\"ID\") + '&filename=' + record.get(\"F_FILENAME\");\n"); out.write("\t\t\t\t}\n"); out.write("\t\t\t}\n"); out.write("\t\t},\n"); out.write("\t\tgetSelectedRecords : function(){\n"); out.write("\t\t\treturn this.getSelectionModel().getSelections();\n"); out.write("\t\t}\n"); out.write("\t});\n"); out.write("\t\n"); out.write("\tfunction getSelectedRecords(){\n"); out.write("\t\treturn grid.getSelectedRecords();\n"); out.write("\t}\n"); out.write("\t\n"); out.write("\t// 视图刷新\n"); out.write("\tpanel.refresh = function(params){\n"); out.write("\t\tif(Ext.isDefined(params) && Ext.isDefined(params.folderId)){\n"); out.write("\t\t\tstore.baseParams.folderId = params.folderId;\n"); out.write("\t\t\tstore.baseParams.sharetype = params.sharetype;\n"); out.write("\n"); out.write("\t\t\tAppFolderDirect.getFolderName(params.folderId, function(result, e){\n"); out.write("\t\t\t\tif(result && result.success) {\n"); out.write("\t\t\t\t\tgrid.getTopToolbar().get(0).setText(result.folderName);\n"); out.write("\t\t\t\t}\n"); out.write("\t });\n"); out.write("\t\t}\n"); out.write("\t\tAddFolderAction.disable();\n"); out.write("\t\tUploadFileButton.disable();\n"); out.write("\t\tbtnDelete.disable();\n"); out.write("\t\tbtnEdit.disable();\n"); out.write("\t\t// 初始化参数\n"); out.write("\t\tstore.reload();\n"); out.write("\t}\n"); out.write("\n"); out.write("\t// 输出附加脚本 begin\n"); out.write("\n"); out.write("\t// 输出附加脚本 end\n"); out.write("\tpanel.add(grid);\n"); out.write("\tpanel.doLayout();\n"); out.write("\t// 初始化视图数据\n"); out.write("\tpanel.refresh(panel.initParams);\n"); out.write("\n"); out.write("\n"); out.write("\t\n"); out.write(" //为左边菜单添加文件夹移动事件\n"); out.write( "\tExt.getCmp('m-mkNetFolder').items.items[0].moduleTree.addListener('beforenodedrop', function(e) {\n"); out.write("\t\tif(Ext.isArray(e.data.selections)) {\n"); out.write("\t\t\tvar r;\n"); out.write(" for(var i = 0; i < e.data.selections.length; i++) {\n"); out.write("\t r = e.data.selections[i];\n"); out.write("\t var targetId;\n"); out.write("\t\t\t\t\n"); out.write("\t\t\t\tif (e.target.attributes.folderId != null) {\n"); out.write("\t\t\t\t\ttargetId = e.target.attributes.folderId;\n"); out.write("\t\t\t\t} else {\n"); out.write("\t\t\t\t\t//拖入到个人文件柜的目录下\n"); out.write( "\t\t\t\t\tif (e.target.id == Ext.getCmp('m-mkNetFolder').items.items[0].moduleTree.getRootNode().firstChild.id) {\n"); out.write("\t\t\t\t\t\tif (r.get('F_TYPE') == "); out.print(FolderItem.TYPE_FILE); out.write(") {\n"); out.write("\t\t\t\t\t\t\tExt.Msg.alert('信息提示', '文件移动,只能移动到自定义的文件夹下!');\n"); out.write("\t\t\t\t\t\t\treturn false;\n"); out.write("\t\t\t\t\t\t}\n"); out.write("\t\t\t\t\t\ttargetId = 0;\n"); out.write("\t\t\t\t\t//拖入到其它根目录,直接返回\n"); out.write("\t\t\t\t\t} else {\n"); out.write("\t\t\t\t\t\tExt.Msg.alert('信息提示', '文件和文件夹的移动,只能移动到个人文件柜下!');\n"); out.write("\t\t\t\t\t\treturn false;\n"); out.write("\t\t\t\t\t}\n"); out.write("\t\t\t\t}\n"); out.write("\n"); out.write("\t\t\t\tif (targetId == r.get('F_PARENTID')) {\n"); out.write( "\t\t\t\t\tExt.Msg.alert('信息提示', r.get('F_NAME') + '已经在' + e.target.text + '文件夹下!');\n"); out.write("\t\t\t\t\treturn false; \n"); out.write("\t\t\t\t}\n"); out.write("\n"); out.write("\t\t\t\tif (targetId == r.get('ID')) {\n"); out.write( "\t\t\t\t\tExt.Msg.alert('信息提示', r.get('F_NAME') + '不允许移动到' + e.target.text + '文件夹下!');\n"); out.write("\t\t\t\t\treturn false; \n"); out.write("\t\t\t\t}\n"); out.write("\t\t\t\t\n"); out.write( "\t\t\t\tAppFolderDirect.moveFolderItem(r.get('ID'), targetId, function(result, event) {\n"); out.write("\t\t\t\t\tif (result) {\n"); out.write("\t\t\t\t\t\tif (result.success) {\n"); out.write("\t\t\t\t\t\t\te.target.reload();\n"); out.write("\t\t\t\t\t\t} else {\n"); out.write("\t\t\t\t\t\t\t//不允许移动到指定目录\n"); out.write( "\t\t\t\t\t\t\tExt.Msg.alert('信息提示', r.get('F_NAME') + '不允许移动到' + e.target.text + '文件夹下!');\n"); out.write("\t\t\t\t\t\t}\n"); out.write("\t\t\t\t\t}\n"); out.write("\t\t\t\t}, this);\n"); out.write(" }\n"); out.write(" \n"); out.write(" return true;\n"); out.write(" }\n"); out.write("\t});\n"); out.write("\n"); out.write("\t//表单保存后刷新视图列表和菜单\n"); out.write("\tpanel.refreshViewAndTree = function() {\n"); out.write("\t\tpanel.refresh();\n"); out.write("\t};\n"); out.write("\n"); out.write("\tpanel.refreshView = function() {\n"); out.write("\t\tpanel.refresh();\n"); out.write("\t};\n"); out.write("\n"); out.write("});\n"); out.write("</script>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.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(); _jspx_out = out; out.write("\r\n"); out.write("\r\n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n"); out.write("<html>\r\n"); out.write("<head>\r\n"); out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n"); out.write("<title>合同结束管理-合同结束</title>\r\n"); out.write(" <!--css sheet-->\r\n"); out.write("\t<link href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/css/dtree/dtree.css\" rel=\"stylesheet\" type=\"text/css\">\r\n"); out.write("\t<link href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/css/jquery-easyui/easyui.css\" rel=\"stylesheet\" type=\"text/css\">\r\n"); out.write("\t<link href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/css/jquery-easyui/icon.css\" rel=\"stylesheet\" type=\"text/css\">\r\n"); out.write("\t<link href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/css/tracywindy/tracywindy.css\" rel=\"stylesheet\" type=\"text/css\">\r\n"); out.write("\t<link href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/css/tracywindy/button.css\" rel=\"stylesheet\" type=\"text/css\">\r\n"); out.write("\t<link href=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/css/tracywindy/workFlowUtil.css\" rel=\"stylesheet\" type=\"text/css\">\r\n"); out.write("\t<!--javascript libray-->\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/workFlowUtil.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyUtils.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyJsonUtil.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyAjax.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/jquery/jquery.min.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/jquery/jquery.easyui.min.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/jquery/easyui-lang-zh_CN.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyLoadMask.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyTable.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyComboBox.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindySerializeFormToJsonObject.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/my97DatePicker/WdatePicker.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/validator.js\"></script>\r\n"); out.write("\t<script type=\"text/javascript\" src=\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/js/tracywindy/tracywindyOperationTable.js\"></script>\r\n"); out.write("\t<style type=\"text/css\">\r\n"); out.write("\t html,body{\r\n"); out.write("\t overflow:hidden;\r\n"); out.write("\t }\r\n"); out.write("\t</style>\r\n"); out.write("<script type=\"text/javascript\"><!-- \r\n"); out.write(" //var proj_id=\""); out.print(request.getParameter("id")); out.write("\";\r\n"); out.write(" var param={};\r\n"); out.write(" //if(proj_id!=\"null\" || proj_id==\"\"){param.proj_id=proj_id;}\r\n"); out.write("\tvar pageWidth = document.documentElement.clientWidth-2;\r\n"); out.write("\tvar pageHeight = document.documentElement.clientHeight-2;\r\n"); out.write("\tjQuery(function(){\r\n"); out.write("\t\t\r\n"); out.write(" \t var table = new tracywindyOperationTable({\r\n"); out.write(" \t\t tableComment:'[合同结束]',\r\n"); out.write(" \t\t constantFlagTable:'ProjInfo',\r\n"); out.write(" \t\t windowTop:20,\r\n"); out.write(" \t border:true,\r\n"); out.write(" renderTo:'id_tableContainer',\r\n"); out.write(" title:'合同结束',\r\n"); out.write(" width:parseInt(\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${param.tableWidth}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("\")||pageWidth,\r\n"); out.write(" height:parseInt(\""); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${param.tableHeight}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("\")||pageHeight,\r\n"); out.write(" id:'id_table',\r\n"); out.write( " xmlFileName:'\\\\eleasing\\\\workflow\\\\contract\\\\contractFinish_flowopen_list.xml',\r\n"); out.write(" loadMode:'ajax',\r\n"); out.write(" params:{\r\n"); out.write(" \t\t\t//custdealer:''\r\n"); out.write(" \t total:'1'\r\n"); out.write(" \t\t\t\r\n"); out.write("\t },\r\n"); out.write(" isPage:true,\r\n"); out.write(" operButtons:' ',\r\n"); out.write(" isFit:false,\r\n"); out.write(" tools:[{\r\n"); out.write(" \t html : '<font color=\"red\">合同结束</font>',\r\n"); out.write(" \t\t\thandler : function(table) {\r\n"); out.write(" \t\t\t\tvar projIDValue = table.getCheckedRowDatas();\r\n"); out.write(" \t\t\t\tif (0 == projIDValue.length) {\r\n"); out.write(" \t\t\t\t\talert(\"请选择需要启动的流程!\");\r\n"); out.write(" \t\t\t\t\treturn false;\r\n"); out.write(" \t\t\t\t}\r\n"); out.write( " \t\t\t\tvar loadMask_oper = new tracywindyLoadMask(document.body,'操作进行中,请稍等...');\r\n"); out.write(" \t\t\t\tvar params ={};\r\n"); out.write(" \t\t\t\tparams.contract_id=projIDValue[0][\"id\"];\r\n"); out.write(" \t\t\t\tloadMask_oper.show();\r\n"); out.write(" \t \t\t ajaxRequest({\r\n"); out.write(" \t\t\t\t\t url:'"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageContext.request.contextPath}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("/leasing/checkFinish.action',\r\n"); out.write(" \t\t\t\t\t method:'POST',\r\n"); out.write(" \t\t\t\t\t success:function(res){\r\n"); out.write(" \t\t\t\t\t\t var data = res.responseText;\r\n"); out.write(" \t\t\t\t\t\t if ( data == \"no\")\r\n"); out.write("\t\t\t\t\t \t {\r\n"); out.write( "\t\t\t\t\t\t\t\t var attachmentParams = \"contract_id=\" + projIDValue[0][\"id\"]+\"&cust_id=\"+projIDValue[0][\"custid\"];\r\n"); out.write("\t\t\t\t \t\t\t\tstartProcess(\"合同结束流程-1\",attachmentParams); \r\n"); out.write("\t\t\t\t\t \t }\r\n"); out.write(" \t\t\t\t\t\t else\r\n"); out.write("\t\t\t\t\t \t {\r\n"); out.write(" \t\t\t\t\t\t \talert(\"合同已经结束!\");\r\n"); out.write("\t\t\t\t\t \t \treturn false;\r\n"); out.write("\t\t\t\t\t \t }\r\n"); out.write(" \t\t\t\t\t },\r\n"); out.write(" \t\t\t\t\t\t params:params,\r\n"); out.write(" \t\t\t\t\t failure:function(res){},\r\n"); out.write(" \t\t\t\t\t async:false,\r\n"); out.write(" \t\t\t\t\t timeout:30*1000\r\n"); out.write(" \t\t\t\t });\r\n"); out.write(" \t \t\t loadMask_oper.hide();\r\n"); out.write(" \t \t\t table.reload();\r\n"); out.write(" \t\t\t},\r\n"); out.write(" \t\t\ticonCls :'icon-update'\r\n"); out.write(" },\r\n"); out.write(" {\r\n"); out.write(" \t\t\t\tisHtml : true,\r\n"); out.write(" \t\t\t\thtml : '选择显示合同信息:'\r\n"); out.write(" \t\t }\r\n"); out.write(" \t\t ,{\r\n"); out.write(" \t\t\t\tisHtml : true,\r\n"); out.write(" \t\t\t\thtml : '<div id=\"id_flow_name\" style=\"float:left;\"></div>'\r\n"); out.write(" \t\t\t } \r\n"); out.write(" ],\r\n"); out.write(" columns:[\r\n"); out.write("\t\t {header:'id',name:'id',hidden:true},\r\n"); out.write("\t\t {header:'proj_id',name:'proj_id',hidden:true},\r\n"); out.write("\t\t {header:'pid',name:'pid',hidden:true},\r\n"); out.write("\t\t {header:'custid',name:'custid',hidden:true},\r\n"); out.write("\t\t {header:'业务类别',name:'businesstype',hidden:true},\r\n"); out.write("\t\t {header:'客户名称',name:'custname',queryConfig:{}},\r\n"); out.write("\t\t {header:'经销商名称',name:'custdealer',width:200,queryConfig:{}},\r\n"); out.write("\t\t // {header:'合同编号',name:'contractid',queryConfig:{}},\r\n"); out.write( "\t\t {header:'业务合同号',name:'contractnumber',queryConfig:{isNewLine:true}},\r\n"); out.write("\t\t {header:'项目名称',name:'projname',width:300,queryConfig:{}},\r\n"); out.write("\t\t\t\t\t/*\r\n"); out.write("\t\t {header:'项目类型',name:'projtype',type:'combobox',\r\n"); out.write("\t\t\t queryConfig:{\r\n"); out.write("\t\t\t\t\t\tcolSpan:3,\r\n"); out.write("\t\t\t\t\t\tloadMode:'local',\r\n"); out.write("\t\t\t\t\t\tdatas:[{title:'关联',name:'关联'},{title:'非关联',name:'非关联'}],\r\n"); out.write("\t\t\t displayField:'title',\r\n"); out.write("\t\t\t valueField:'name',\r\n"); out.write("\t\t\t defaultValue:1\r\n"); out.write("\t\t\t }},\r\n"); out.write("\t\t\t */\r\n"); out.write("\t\t //{header:'项目来源',name:'projsource'},\r\n"); out.write("\t\t //{header:'项目规模',name:'projscale'},\r\n"); out.write("\t\t //{header:'资产分类',name:'industrytype'},\r\n"); out.write("\t\t {header:'租赁形式',name:'leasform'},\r\n"); out.write("\t\t {header:'业务模式',name:'businessmode'},\r\n"); out.write("\t\t {header:'客户经理',name:'projmanage'}\r\n"); out.write(" ]\r\n"); out.write(" \t });\r\n"); out.write(" \r\n"); out.write("\t var combo_type = new tracywindyComboBox({\r\n"); out.write("\t\t\tid : 'id_combo_flow_name',\r\n"); out.write("\t\t\twidth : 200,\r\n"); out.write("\t\t\trenderTo : 'id_flow_name',\r\n"); out.write("\t\t\tloadMode : 'local',\r\n"); out.write("\t\t\treadOnly : false,\r\n"); out.write("\t\t\tisAjaxLenovo : true,\r\n"); out.write("\t\t\tisContainEmpty : false,\r\n"); out.write("\t\t\tdropListHeight : 300,\r\n"); out.write("\t\t\ttopAdd : 0,\r\n"); out.write("\t\t\tleftAdd : 0,\r\n"); out.write("\t\t\tpositionDropIconLeftAdd : -1,\r\n"); out.write("\t\t\tvalue:'1',\r\n"); out.write("\t\t\tname : 'flow_name',\r\n"); out.write("\t\t\tdisplayField : 'name',\r\n"); out.write("\t\t\tvalueField : 'value',\r\n"); out.write("\t\t\tdatas : [{\r\n"); out.write("\t\t\t\tname : '结束合同',value : '1'\r\n"); out.write("\t\t\t }\r\n"); out.write("\t\t ,{\r\n"); out.write("\t\t\t\tname : '全部合同',value : ''\r\n"); out.write("\t\t\t}],\r\n"); out.write("\t\t\tonSelect : function(combo) \r\n"); out.write("\t\t\t{\r\n"); out.write("\t\t\t\tvar table = getTracywindyObject('id_table');\r\n"); out.write("\t\t\t\tif(combo.getValue()=='1'){\r\n"); out.write("\t\t\t\t\ttable.setParams({total: combo.getValue()});\r\n"); out.write("\t\t table.reload();\r\n"); out.write("\t\t\t\t}else{\r\n"); out.write("\t\t\t\t\ttable.setParams({total:''});\r\n"); out.write("\t\t table.reload();\r\n"); out.write("\t\t\t\t}\r\n"); out.write("\t\t\t\t\r\n"); out.write("\t\t\t}\r\n"); out.write("\t\t});\r\n"); out.write("\t \r\n"); out.write("\t});\r\n"); out.write("</script>\r\n"); out.write(" \r\n"); out.write("</head>\r\n"); out.write("<body>\r\n"); out.write(" <div id=\"id_tableContainer\"></div>\r\n"); out.write("</body>\r\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final java.lang.String _jspx_method = request.getMethod(); if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method) && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) { response.sendError( HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD"); return; } final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.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(); _jspx_out = out; out.write("\r\n"); out.write("\r\n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n"); out.write("<html>\r\n"); out.write("<head>\r\n"); out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n"); out.write("<title>공지사항</title>\r\n"); out.write( "<link href=\"http://netdna.bootstrapcdn.com/bootstrap/2.3.2/css/bootstrap.min.css\" rel=\"stylesheet\">\r\n"); out.write("<style>\r\n"); out.write("\t thead tr { background: #eee; }\r\n"); out.write("\t tbody tr:hover { background-color: #DAD9FF; cursor: pointer; }\r\n"); out.write("</style>\r\n"); out.write("\r\n"); out.write( "<script src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js\"></script>\r\n"); out.write("<script>\r\n"); out.write("\t$(function(){\r\n"); out.write("\t\t $(\"tbody tr\").click(function(){\r\n"); out.write("\t\t\t location.href=\"adminContent.jsp?idx=\"+$(this).attr(\"data-id\");\r\n"); out.write("\t\t });\r\n"); out.write("\t});\r\n"); out.write("</script>\r\n"); out.write("</head>\r\n"); int id; id = (int) session.getAttribute("id"); System.out.println(id); // 해당 학번=id(세션) 값으로 정보를 불러온다. User user = Register.selectDetail(id); ArrayList<Admin> list = AdminPage.selectAll(); String cmd = request.getParameter("cmd"); if (request.getMethod().equals("POST")) { if (cmd.equals("logout")) { session.invalidate(); out.write("\r\n"); out.write("\t\t\t\t<script>\r\n"); out.write("\t\t\t\t\talert(\"로그아웃 되었습니다\");\r\n"); out.write("\t\t\t\t\tlocation.href=\"login.jsp\";\r\n"); out.write("\t\t\t\t</script>\r\n"); out.write("\t\t\t"); } } out.write("\r\n"); out.write("\r\n"); out.write("<body>\r\n"); out.write("<div>\r\n"); out.write("\t<form method=\"post\">\r\n"); out.write( "\t\t<button class=\"btn btn-small\" name=\"cmd\" value=\"logout\">로그 아웃</button>\r\n"); out.write("\t</form>\r\n"); out.write("</div>\r\n"); out.write("<div class=\"container\">\r\n"); out.write("\t<h2>공지사항 게시판</h2><hr/>\r\n"); out.write("\t<form>\r\n"); out.write("\t\t<table class=\"table table-condensed table-bordered\">\r\n"); out.write("\t\t\t<thead>\r\n"); out.write(" \t\t<tr>\r\n"); out.write(" \t\t\t<th>번호</th>\r\n"); out.write(" \t\t\t<th>제목</th>\r\n"); out.write(" \t\t\t<th>작성자</th>\r\n"); out.write(" \t\t</tr>\r\n"); out.write(" \t</thead>\r\n"); out.write(" \t<tbody>\r\n"); out.write("\t\t\t"); for (Admin admin : list) { out.write("\r\n"); out.write("\t\t\t<tr data-id=\""); out.print(admin.getIdx()); out.write("\">\r\n"); out.write(" \t\t\t<td>"); out.print(admin.getIdx()); out.write("</td>\r\n"); out.write(" \t\t\t<td>"); out.print(admin.getTitle()); out.write("</td>\r\n"); out.write(" \t\t\t<td>"); out.print(admin.getName()); out.write("</td>\r\n"); out.write(" \t\t</tr>\r\n"); out.write(" \t\t"); } out.write("\r\n"); out.write(" \t</tbody>\r\n"); out.write("\t\t</table>\r\n"); out.write("\t\t\r\n"); out.write("\t\t"); if (user.getLevel() == 2 || user.getLevel() == 3) { out.write("\r\n"); out.write("\t\t<div>\r\n"); out.write("\t\t\t<a href=\"adminWrite.jsp\" class=\"btn btn-small\">글쓰기</a>\r\n"); out.write("\t\t</div>\r\n"); out.write("\t\t"); } out.write("\r\n"); out.write("\t</form>\r\n"); out.write("\t</div>\r\n"); out.write("</body>\r\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
private void _jspService( javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.caucho.jsp.PageContextImpl pageContext, javax.servlet.ServletContext application, javax.servlet.http.HttpSession session, TagState _jsp_state) throws Throwable { javax.servlet.jsp.JspWriter out = pageContext.getOut(); final javax.el.ELContext _jsp_env = pageContext.getELContext(); javax.servlet.ServletConfig config = getServletConfig(); javax.servlet.Servlet page = this; javax.servlet.jsp.tagext.JspTag _jsp_parent_tag = null; com.caucho.jsp.PageContextImpl _jsp_parentContext = pageContext; response.setContentType("text/html"); response.setCharacterEncoding("utf-8"); // Author: Dai Yong in June 2013 out.write(_jsp_string0, 0, _jsp_string0.length); CP_Classes.Database Database; synchronized (pageContext.getSession()) { Database = (CP_Classes.Database) pageContext.getSession().getAttribute("Database"); if (Database == null) { Database = new CP_Classes.Database(); pageContext.getSession().setAttribute("Database", Database); } } out.write(_jsp_string1, 0, _jsp_string1.length); CP_Classes.Login logchk; synchronized (pageContext.getSession()) { logchk = (CP_Classes.Login) pageContext.getSession().getAttribute("logchk"); if (logchk == null) { logchk = new CP_Classes.Login(); pageContext.getSession().setAttribute("logchk", logchk); } } out.write(_jsp_string2, 0, _jsp_string2.length); Coach.LoginStatus LoginStatus; synchronized (pageContext.getSession()) { LoginStatus = (Coach.LoginStatus) pageContext.getSession().getAttribute("LoginStatus"); if (LoginStatus == null) { LoginStatus = new Coach.LoginStatus(); pageContext.getSession().setAttribute("LoginStatus", LoginStatus); } } out.write(_jsp_string1, 0, _jsp_string1.length); Coach.Coach Coach; synchronized (pageContext.getSession()) { Coach = (Coach.Coach) pageContext.getSession().getAttribute("Coach"); if (Coach == null) { Coach = new Coach.Coach(); pageContext.getSession().setAttribute("Coach", Coach); } } out.write(_jsp_string3, 0, _jsp_string3.length); String username = (String) session.getAttribute("username"); if (!logchk.isUsable(username)) { out.write(_jsp_string4, 0, _jsp_string4.length); } else { if (request.getParameter("add") != null) { if (request.getParameter("Name") != null) { String name = request.getParameter("Name"); String link = ""; if (request.getParameter("Link") != "") { link = request.getParameter("Link"); } // check whether SlotGroup name already exists in database Boolean Exist = false; Vector v = Coach.getAllCoach(); for (int i = 0; i < v.size(); i++) { voCoach vo = (voCoach) v.elementAt(i); String coachName = vo.getCoachName(); // System.out.println("Existing Schedule Name:"+slotGroupName); if (name.trim().equalsIgnoreCase((coachName.trim()))) { Exist = true; System.out.println("Same Coach Name"); } } if (!Exist) { try { boolean add = Coach.addCoach(name, link); if (add) { out.write(_jsp_string5, 0, _jsp_string5.length); } else { } } catch (Exception SE) { System.out.println(SE); } } else { out.write(_jsp_string6, 0, _jsp_string6.length); } } } out.write(_jsp_string7, 0, _jsp_string7.length); } out.write(_jsp_string8, 0, _jsp_string8.length); }
public void _jspService( javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { com.caucho.jsp.QPageContext pageContext = (com.caucho.jsp.QPageContext) com.caucho.jsp.QJspFactory.create() .getPageContext(this, request, response, "/error.jsp", true, 8192, true); javax.servlet.jsp.JspWriter out = (javax.servlet.jsp.JspWriter) pageContext.getOut(); javax.servlet.ServletConfig config = getServletConfig(); javax.servlet.Servlet page = this; javax.servlet.http.HttpSession session = pageContext.getSession(); javax.servlet.ServletContext application = pageContext.getServletContext(); response.setContentType("text/html;charset=UTF-8"); request.setCharacterEncoding("UTF-8"); org.myconf.AuthTag _jsp_tag0 = null; org.apache.struts.taglib.bean.MessageTag _jsp_tag1 = null; org.apache.struts.taglib.html.RewriteTag _jsp_tag2 = null; org.apache.struts.taglib.bean.MessageTag _jsp_tag3 = null; try { // ********************************* // security // ********************************* pageContext.write(_jsp_string0, 0, _jsp_string0.length); pageContext.write(_jsp_string0, 0, _jsp_string0.length); if (_jsp_tag0 == null) { _jsp_tag0 = new org.myconf.AuthTag(); _jsp_tag0.setPageContext(pageContext); _jsp_tag0.setParent((javax.servlet.jsp.tagext.Tag) null); _jsp_tag0.setModule("admin"); } _jsp_tag0.doStartTag(); _jsp_tag0.setBodyContent(null); int _jsp_endTagVar3 = _jsp_tag0.doEndTag(); if (_jsp_endTagVar3 == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return; pageContext.write(_jsp_string0, 0, _jsp_string0.length); // ********************************* // define // ********************************* pageContext.write(_jsp_string0, 0, _jsp_string0.length); pageContext.write(_jsp_string0, 0, _jsp_string0.length); pageContext.write(_jsp_string0, 0, _jsp_string0.length); pageContext.write(_jsp_string0, 0, _jsp_string0.length); pageContext.write(_jsp_string0, 0, _jsp_string0.length); pageContext.write(_jsp_string0, 0, _jsp_string0.length); pageContext.write(_jsp_string0, 0, _jsp_string0.length); pageContext.write(_jsp_string0, 0, _jsp_string0.length); pageContext.write(_jsp_string0, 0, _jsp_string0.length); pageContext.write(_jsp_string0, 0, _jsp_string0.length); // ********************************* // variable // ********************************* pageContext.write(_jsp_string0, 0, _jsp_string0.length); // bbs data int id = RequestUtils.getParam(request, "id", 0); List list = BBSDAO.getDiscuss(id); if ((list == null) || (list.size() == 0)) { response.sendRedirect( Globals.root(request) + "/bbs/index2.jsp?page=" + StringUtils.exportString(request.getParameter("page"))); return; } String defaultTitle = null; BBSBean bbs = null; pageContext.write(_jsp_string1, 0, _jsp_string1.length); // ********************************* // head // ********************************* pageContext.write(_jsp_string0, 0, _jsp_string0.length); pageContext.include("/inc/head.jsp"); pageContext.write(_jsp_string2, 0, _jsp_string2.length); // ********************************* // top // ********************************* pageContext.write(_jsp_string0, 0, _jsp_string0.length); pageContext.include("/inc/logo_admin.jsp"); pageContext.write(_jsp_string0, 0, _jsp_string0.length); // ********************************* // content // ********************************* pageContext.write(_jsp_string3, 0, _jsp_string3.length); if (_jsp_tag1 == null) { _jsp_tag1 = new org.apache.struts.taglib.bean.MessageTag(); _jsp_tag1.setPageContext(pageContext); _jsp_tag1.setParent((javax.servlet.jsp.tagext.Tag) null); } _jsp_tag1.setKey("error.staritem.not.null"); _jsp_tag1.doStartTag(); pageContext.write(_jsp_string4, 0, _jsp_string4.length); _jsp_tag1.setKey("error.staritem.not.null"); _jsp_tag1.doStartTag(); pageContext.write(_jsp_string5, 0, _jsp_string5.length); _jsp_tag1.setKey("common.title.bbs"); _jsp_tag1.doStartTag(); pageContext.write(_jsp_string6, 0, _jsp_string6.length); if (((BBSBean) list.get(0)).getIsTop() == BBSBean.TRUE) { pageContext.write(_jsp_string7, 0, _jsp_string7.length); if (_jsp_tag2 == null) { _jsp_tag2 = new org.apache.struts.taglib.html.RewriteTag(); _jsp_tag2.setPageContext(pageContext); _jsp_tag2.setParent((javax.servlet.jsp.tagext.Tag) null); } _jsp_tag2.setPage("/bbs.do"); int _jspEval15 = _jsp_tag2.doStartTag(); int _jsp_endTagVar16 = _jsp_tag2.doEndTag(); if (_jsp_endTagVar16 == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return; pageContext.write(_jsp_string8, 0, _jsp_string8.length); out.print((id)); pageContext.write(_jsp_string9, 0, _jsp_string9.length); out.print((id)); pageContext.write(_jsp_string10, 0, _jsp_string10.length); out.print((StringUtils.exportString(request.getParameter("page")))); pageContext.write(_jsp_string11, 0, _jsp_string11.length); if (_jsp_tag1 == null) { _jsp_tag1 = new org.apache.struts.taglib.bean.MessageTag(); _jsp_tag1.setPageContext(pageContext); _jsp_tag1.setParent((javax.servlet.jsp.tagext.Tag) null); } _jsp_tag1.setKey("common.text.bbs.cancel.top"); _jsp_tag1.doStartTag(); pageContext.write(_jsp_string12, 0, _jsp_string12.length); } else { pageContext.write(_jsp_string13, 0, _jsp_string13.length); if (_jsp_tag2 == null) { _jsp_tag2 = new org.apache.struts.taglib.html.RewriteTag(); _jsp_tag2.setPageContext(pageContext); _jsp_tag2.setParent((javax.servlet.jsp.tagext.Tag) null); } _jsp_tag2.setPage("/bbs.do"); int _jspEval22 = _jsp_tag2.doStartTag(); int _jsp_endTagVar23 = _jsp_tag2.doEndTag(); if (_jsp_endTagVar23 == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return; pageContext.write(_jsp_string8, 0, _jsp_string8.length); out.print((id)); pageContext.write(_jsp_string9, 0, _jsp_string9.length); out.print((id)); pageContext.write(_jsp_string10, 0, _jsp_string10.length); out.print((StringUtils.exportString(request.getParameter("page")))); pageContext.write(_jsp_string14, 0, _jsp_string14.length); if (_jsp_tag1 == null) { _jsp_tag1 = new org.apache.struts.taglib.bean.MessageTag(); _jsp_tag1.setPageContext(pageContext); _jsp_tag1.setParent((javax.servlet.jsp.tagext.Tag) null); } _jsp_tag1.setKey("common.text.bbs.top.article"); _jsp_tag1.doStartTag(); pageContext.write(_jsp_string12, 0, _jsp_string12.length); } pageContext.write(_jsp_string15, 0, _jsp_string15.length); if (_jsp_tag2 == null) { _jsp_tag2 = new org.apache.struts.taglib.html.RewriteTag(); _jsp_tag2.setPageContext(pageContext); _jsp_tag2.setParent((javax.servlet.jsp.tagext.Tag) null); } _jsp_tag2.setPage("/bbs.do"); int _jspEval29 = _jsp_tag2.doStartTag(); int _jsp_endTagVar30 = _jsp_tag2.doEndTag(); if (_jsp_endTagVar30 == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return; pageContext.write(_jsp_string16, 0, _jsp_string16.length); out.print((id)); pageContext.write(_jsp_string17, 0, _jsp_string17.length); out.print((list.size())); pageContext.write(_jsp_string18, 0, _jsp_string18.length); out.print((StringUtils.exportString(request.getParameter("page")))); pageContext.write(_jsp_string19, 0, _jsp_string19.length); for (int i = 0; i < list.size(); i++) { bbs = (BBSBean) list.get(i); if (i == 0) { defaultTitle = "RE:" + bbs.getTitle(); } pageContext.write(_jsp_string20, 0, _jsp_string20.length); out.print((i)); pageContext.write(_jsp_string21, 0, _jsp_string21.length); out.print((i)); pageContext.write(_jsp_string22, 0, _jsp_string22.length); out.print((bbs.getId())); pageContext.write(_jsp_string23, 0, _jsp_string23.length); out.print((bbs.getTitle())); pageContext.write(_jsp_string24, 0, _jsp_string24.length); if (i == 0) { if (_jsp_tag1 == null) { _jsp_tag1 = new org.apache.struts.taglib.bean.MessageTag(); _jsp_tag1.setPageContext(pageContext); _jsp_tag1.setParent((javax.servlet.jsp.tagext.Tag) null); } _jsp_tag1.setKey("common.text.bbs.master"); _jsp_tag1.doStartTag(); } else { if (_jsp_tag3 == null) { _jsp_tag3 = new org.apache.struts.taglib.bean.MessageTag(); _jsp_tag3.setPageContext(pageContext); _jsp_tag3.setParent((javax.servlet.jsp.tagext.Tag) null); _jsp_tag3.setKey("common.text.bbs.ceng"); } _jsp_tag3.setArg0(String.valueOf(i)); _jsp_tag3.doStartTag(); } pageContext.write(_jsp_string25, 0, _jsp_string25.length); out.print((bbs.getContent().replaceAll("\r", "<br>"))); pageContext.write(_jsp_string26, 0, _jsp_string26.length); if (i == 0) { if (_jsp_tag1 == null) { _jsp_tag1 = new org.apache.struts.taglib.bean.MessageTag(); _jsp_tag1.setPageContext(pageContext); _jsp_tag1.setParent((javax.servlet.jsp.tagext.Tag) null); } _jsp_tag1.setKey("common.text.bbs.beginer"); _jsp_tag1.doStartTag(); } else { if (_jsp_tag1 == null) { _jsp_tag1 = new org.apache.struts.taglib.bean.MessageTag(); _jsp_tag1.setPageContext(pageContext); _jsp_tag1.setParent((javax.servlet.jsp.tagext.Tag) null); } _jsp_tag1.setKey("common.text.bbs.replyer"); _jsp_tag1.doStartTag(); } pageContext.write(_jsp_string27, 0, _jsp_string27.length); out.print((bbs.getAuthorName())); pageContext.write(_jsp_string28, 0, _jsp_string28.length); if (_jsp_tag1 == null) { _jsp_tag1 = new org.apache.struts.taglib.bean.MessageTag(); _jsp_tag1.setPageContext(pageContext); _jsp_tag1.setParent((javax.servlet.jsp.tagext.Tag) null); } _jsp_tag1.setKey("common.bbs.title.issue.time"); _jsp_tag1.doStartTag(); out.print((StringUtils.exportDate(bbs.getCreateTime(), "yyyy-MM-dd HH:mm"))); pageContext.write(_jsp_string29, 0, _jsp_string29.length); _jsp_tag1.setKey("ins.confirm.delete"); _jsp_tag1.doStartTag(); pageContext.write(_jsp_string30, 0, _jsp_string30.length); _jsp_tag1.setKey("common.button.bbs.delete"); _jsp_tag1.doStartTag(); pageContext.write(_jsp_string31, 0, _jsp_string31.length); } pageContext.write(_jsp_string32, 0, _jsp_string32.length); if (_jsp_tag2 == null) { _jsp_tag2 = new org.apache.struts.taglib.html.RewriteTag(); _jsp_tag2.setPageContext(pageContext); _jsp_tag2.setParent((javax.servlet.jsp.tagext.Tag) null); } _jsp_tag2.setPage("/bbs.do"); int _jspEval54 = _jsp_tag2.doStartTag(); int _jsp_endTagVar55 = _jsp_tag2.doEndTag(); if (_jsp_endTagVar55 == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return; pageContext.write(_jsp_string33, 0, _jsp_string33.length); out.print((id)); pageContext.write(_jsp_string34, 0, _jsp_string34.length); out.print((id)); pageContext.write(_jsp_string35, 0, _jsp_string35.length); out.print((StringUtils.exportString(request.getParameter("page")))); pageContext.write(_jsp_string36, 0, _jsp_string36.length); _jsp_tag2.setPage("/images/orange_arrow.gif"); int _jspEval58 = _jsp_tag2.doStartTag(); int _jsp_endTagVar59 = _jsp_tag2.doEndTag(); if (_jsp_endTagVar59 == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return; pageContext.write(_jsp_string37, 0, _jsp_string37.length); if (_jsp_tag1 == null) { _jsp_tag1 = new org.apache.struts.taglib.bean.MessageTag(); _jsp_tag1.setPageContext(pageContext); _jsp_tag1.setParent((javax.servlet.jsp.tagext.Tag) null); } _jsp_tag1.setKey("common.text.bbs.reply"); _jsp_tag1.doStartTag(); pageContext.write(_jsp_string38, 0, _jsp_string38.length); _jsp_tag1.setKey("common.bbs.title.subject"); _jsp_tag1.doStartTag(); pageContext.write(_jsp_string39, 0, _jsp_string39.length); out.print((defaultTitle)); pageContext.write(_jsp_string40, 0, _jsp_string40.length); _jsp_tag1.setKey("common.bbs.title.content"); _jsp_tag1.doStartTag(); pageContext.write(_jsp_string41, 0, _jsp_string41.length); _jsp_tag1.setKey("common.text.bbs.reply"); _jsp_tag1.doStartTag(); pageContext.write(_jsp_string42, 0, _jsp_string42.length); _jsp_tag2.setPage("/bbs/index2.jsp?page="); int _jspEval74 = _jsp_tag2.doStartTag(); int _jsp_endTagVar75 = _jsp_tag2.doEndTag(); if (_jsp_endTagVar75 == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return; out.print((StringUtils.exportString(request.getParameter("page")))); pageContext.write(_jsp_string43, 0, _jsp_string43.length); _jsp_tag1.setKey("common.button.back"); _jsp_tag1.doStartTag(); pageContext.write(_jsp_string44, 0, _jsp_string44.length); // ********************************* // end content // ********************************* pageContext.write(_jsp_string0, 0, _jsp_string0.length); // ********************************** // footer // ********************************** pageContext.write(_jsp_string0, 0, _jsp_string0.length); pageContext.include("/inc/footer.jsp"); pageContext.write(_jsp_string45, 0, _jsp_string45.length); } catch (java.lang.Throwable _jsp_e) { pageContext.handlePageException(_jsp_e); } finally { if (_jsp_tag0 != null) _jsp_tag0.release(); if (_jsp_tag1 != null) _jsp_tag1.release(); if (_jsp_tag2 != null) _jsp_tag2.release(); if (_jsp_tag3 != null) _jsp_tag3.release(); JspFactory.getDefaultFactory().releasePageContext(pageContext); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final java.lang.String _jspx_method = request.getMethod(); if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method) && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) { response.sendError( HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD"); return; } final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.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(); _jspx_out = out; out.write("\r\n"); out.write(" \r\n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n"); out.write("<html>\r\n"); out.write("<head>\r\n"); out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n"); out.write( "<link href=\"http://netdna.bootstrapcdn.com/bootstrap/2.3.2/css/bootstrap.min.css\" rel=\"stylesheet\">\r\n"); out.write("</head>\r\n"); String cmd = request.getParameter("cmd"); String msg = null; if (request.getMethod().equals("POST")) { if (cmd.equals("login")) { int stNum = Integer.parseInt(request.getParameter("stNum")); String pass = request.getParameter("pass"); Register user = new Register(); if (user.check(stNum, pass) == 0) { System.out.println(user.check(stNum, pass)); msg = "회원가입 하세요"; } else { System.out.println(user.check(stNum, pass)); if (user.check(stNum, pass) == 1) { session.setAttribute("id", stNum); response.sendRedirect("admin.jsp"); } else { out.write("\r\n"); out.write("\t\t\t\t\t<script type=\"text/javascript\">\r\n"); out.write("\t\t\t\t\t\talert(\"로그인 실패\")\r\n"); out.write("\t\t\t\t\t\thistory.go(-1);\r\n"); out.write("\t\t\t\t\t</script>\r\n"); out.write("\t\t\t\t"); } } } } out.write("\r\n"); out.write("<body>\r\n"); out.write("\t<div class=\"container\">\r\n"); out.write("\t<h1>로그인</h1><hr/>\r\n"); out.write("\t\t<form method=\"POST\">\r\n"); out.write("\t\t\t<table>\r\n"); out.write("\t\t\t\t<tr>\r\n"); out.write( " <td><span>학번</span></td><td><input type=\"text\" name=\"stNum\"/></td>\r\n"); out.write(" </tr>\r\n"); out.write("\t\t\t\t<tr>\r\n"); out.write( " <td><span>비밀번호</span></td><td><input type=\"password\" name=\"pass\"/></td>\r\n"); out.write(" </tr>\t\r\n"); out.write("\t\t\t</table>\r\n"); out.write( "\t\t\t<button class=\"btn btn-primary\" name=\"cmd\" value=\"login\">로그인</button>\r\n"); out.write("\t\t\t<a href=\"register.jsp\" class=\"btn\">회원가입</a>\r\n"); out.write("\t\t</form>\r\n"); out.write("\t</div>\t\t\r\n"); out.write("</body>\r\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final java.lang.String _jspx_method = request.getMethod(); if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method) && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) { response.sendError( HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD"); return; } final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.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(); _jspx_out = out; out.write("\n"); out.write(" \n"); out.write(" "); request.setCharacterEncoding("utf-8"); out.write('\n'); out.write(' '); movie.admin.filmBean gb = null; gb = (movie.admin.filmBean) _jspx_page_context.getAttribute("gb", javax.servlet.jsp.PageContext.PAGE_SCOPE); if (gb == null) { gb = new movie.admin.filmBean(); _jspx_page_context.setAttribute("gb", gb, javax.servlet.jsp.PageContext.PAGE_SCOPE); } out.write('\n'); out.write(' '); movie.admin.film _film = null; _film = (movie.admin.film) _jspx_page_context.getAttribute("_film", javax.servlet.jsp.PageContext.PAGE_SCOPE); if (_film == null) { _film = new movie.admin.film(); _jspx_page_context.setAttribute("_film", _film, javax.servlet.jsp.PageContext.PAGE_SCOPE); } out.write('\n'); out.write(' '); org.apache.jasper.runtime.JspRuntimeLibrary.introspect( _jspx_page_context.findAttribute("_film"), request); out.write("\n"); out.write(" \n"); out.write("\n"); out.write(" "); String action = request.getParameter("action"); if (action.equals("list")) { ArrayList<film> films = gb.getDBlist(); request.setAttribute("datas", films); pageContext.forward("admin_mode.jsp"); } if (action.equals("back")) { ArrayList<film> films = gb.getDBlist(); request.setAttribute("datas", films); pageContext.forward("admin_mode.jsp"); } else if (action.equals("insert")) { if (gb.insertDB(_film)) { response.sendRedirect("film_control.jsp?action=list"); } else throw new Exception("DB 입력 오류"); } else if (action.equals("delete")) { if (gb.deleteDB(_film.getId_film())) { response.sendRedirect("film_control.jsp?action=list"); } else throw new Exception("DB 삭제 오류"); } // else if(action.equals("update")){ // } else { } out.write("\n"); out.write(" \n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n"); out.write("<html>\n"); out.write("<head>\n"); out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n"); out.write("<title>Insert title here</title>\n"); out.write("</head>\n"); out.write("<body>\n"); out.write("\n"); out.write("</body>\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
private void _jspService( javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.caucho.jsp.PageContextImpl pageContext, javax.servlet.ServletContext application, javax.servlet.http.HttpSession session, TagState _jsp_state) throws Throwable { javax.servlet.jsp.JspWriter out = pageContext.getOut(); final javax.el.ELContext _jsp_env = pageContext.getELContext(); javax.servlet.ServletConfig config = getServletConfig(); javax.servlet.Servlet page = this; javax.servlet.jsp.tagext.JspTag _jsp_parent_tag = null; com.caucho.jsp.PageContextImpl _jsp_parentContext = pageContext; response.setContentType("text/html"); response.setCharacterEncoding("utf-8"); out.write(_jsp_string0, 0, _jsp_string0.length); CP_Classes.Login logchk; synchronized (pageContext.getSession()) { logchk = (CP_Classes.Login) pageContext.getSession().getAttribute("logchk"); if (logchk == null) { logchk = new CP_Classes.Login(); pageContext.getSession().setAttribute("logchk", logchk); } } out.write(_jsp_string1, 0, _jsp_string1.length); CP_Classes.Create_Edit_Survey CE_Survey; synchronized (pageContext.getSession()) { CE_Survey = (CP_Classes.Create_Edit_Survey) pageContext.getSession().getAttribute("CE_Survey"); if (CE_Survey == null) { CE_Survey = new CP_Classes.Create_Edit_Survey(); pageContext.getSession().setAttribute("CE_Survey", CE_Survey); } } out.write(_jsp_string2, 0, _jsp_string2.length); CP_Classes.Translate trans; synchronized (pageContext.getSession()) { trans = (CP_Classes.Translate) pageContext.getSession().getAttribute("trans"); if (trans == null) { trans = new CP_Classes.Translate(); pageContext.getSession().setAttribute("trans", trans); } } out.write(_jsp_string2, 0, _jsp_string2.length); CP_Classes.RatingTask RT; synchronized (pageContext.getSession()) { RT = (CP_Classes.RatingTask) pageContext.getSession().getAttribute("RT"); if (RT == null) { RT = new CP_Classes.RatingTask(); pageContext.getSession().setAttribute("RT", RT); } } out.write(_jsp_string2, 0, _jsp_string2.length); CP_Classes.RatingScale RS; synchronized (pageContext.getSession()) { RS = (CP_Classes.RatingScale) pageContext.getSession().getAttribute("RS"); if (RS == null) { RS = new CP_Classes.RatingScale(); pageContext.getSession().setAttribute("RS", RS); } } out.write(_jsp_string2, 0, _jsp_string2.length); CP_Classes.Purpose PRP; synchronized (pageContext.getSession()) { PRP = (CP_Classes.Purpose) pageContext.getSession().getAttribute("PRP"); if (PRP == null) { PRP = new CP_Classes.Purpose(); pageContext.getSession().setAttribute("PRP", PRP); } } out.write(_jsp_string2, 0, _jsp_string2.length); CP_Classes.SurveyRating SVR; synchronized (pageContext.getSession()) { SVR = (CP_Classes.SurveyRating) pageContext.getSession().getAttribute("SVR"); if (SVR == null) { SVR = new CP_Classes.SurveyRating(); pageContext.getSession().setAttribute("SVR", SVR); } } out.write(_jsp_string3, 0, _jsp_string3.length); // by lydia Date 05/09/2008 Fix jsp file to support Thai language out.write(_jsp_string4, 0, _jsp_string4.length); out.print((trans.tslt("Please choose a rating task"))); out.write(_jsp_string5, 0, _jsp_string5.length); response.setHeader("Pragma", "no-cache"); response.setHeader("Cache-Control", "no-cache"); response.setDateHeader("expires", 0); String username = (String) session.getAttribute("username"); if (!logchk.isUsable(username)) { out.write(_jsp_string6, 0, _jsp_string6.length); } else { if (request.getParameter("purpose") != null) { int var1 = new Integer(request.getParameter("purpose")).intValue(); CE_Survey.setPurpose(var1); System.out.println("Purpose ID" + var1); } else { // Edited by Eric Lu 22/5/08 // Resets purpose if first time accessing this page CE_Survey.setPurpose(0); } if (request.getParameter("add") != null) { String rating = ""; String scale = ""; boolean RequiredChosen = false; String[] chkSelect = new String[10]; String[] ScaleDesc = new String[10]; String[] radioSelect = new String[10]; int SurveyID = CE_Survey.getSurvey_ID(); ScaleDesc = request.getParameterValues("selScaleDesc"); chkSelect = request.getParameterValues("chkRat"); radioSelect = request.getParameterValues("radioRat"); int count = 0; // count shifted, Mark Oei 16 April 2010 /*------------------------------------------------- for checkbox ------------------------------------------------*/ // Changed by Ha 28/05/09 to pop out message when action is done successfully if (chkSelect != null) { boolean added = false; count = 0; // change to declare variable outside if statement, Mark Oei 16 April 2010 for (int i = 0; i < chkSelect.length; i++) { rating = chkSelect[i]; if (rating != null) { String RatName = " "; RatName = RT.getRatingTask(Integer.parseInt(rating)); ScaleDesc = new String[10]; ScaleDesc = request.getParameterValues("selScaleDesc" + rating); for (int j = 0; j < ScaleDesc.length; j++) { scale = ScaleDesc[j]; CE_Survey.editPurpose(SurveyID, CE_Survey.getPurpose()); added = CE_Survey.addRating(SurveyID, scale, rating, RatName); if (added) count++; } } } // Added to insert default values into database when rating tasks are added // Mark Oei 16 April 2010 int lLimit = 0; int uLimit = 0; int scaleRange = CE_Survey.getRatScale(); int taskCount = (Integer) session.getAttribute("taskCount") + count; if ((taskCount == 1 && Integer.parseInt(rating) == 1)) { lLimit = scaleRange / 2 - 1; uLimit = scaleRange / 2 + 1; } else { lLimit = -1; uLimit = 1; } boolean isSuccessful = CE_Survey.setMinPassScore(SurveyID, lLimit, uLimit); if (isSuccessful) { System.out.println( "Default Limits " + lLimit + ", " + uLimit + " has been inserted successfully"); } if (count == chkSelect.length) { out.write(_jsp_string7, 0, _jsp_string7.length); } } /*-------------------------------------------------------- for radiobox ----------------------------------------------*/ rating = ""; if (radioSelect != null) { for (int i = 0; i < radioSelect.length; i++) { rating = radioSelect[i]; if (rating != null) { String RatName = RT.getRatingTask(Integer.parseInt(rating)); ScaleDesc = new String[10]; ScaleDesc = request.getParameterValues("selScaleDesc" + rating); for (int j = 0; j < ScaleDesc.length; j++) { scale = ScaleDesc[j]; CE_Survey.addRating(SurveyID, scale, rating, RatName); } } } } out.write(_jsp_string8, 0, _jsp_string8.length); } out.write(_jsp_string9, 0, _jsp_string9.length); out.print((trans.tslt("To Select Rating Task, checked on the provided boxes under Select"))); out.write(_jsp_string10, 0, _jsp_string10.length); out.print((trans.tslt("Purpose of Survey"))); out.write(_jsp_string11, 0, _jsp_string11.length); out.print((trans.tslt("Choose one"))); out.write(_jsp_string12, 0, _jsp_string12.length); Vector v = PRP.getAllPurpose(); for (int i = 0; i < v.size(); i++) { votblPurpose vo = (votblPurpose) v.elementAt(i); int PurposeID = vo.getPurposeID(); String PurposeName = vo.getPurposeName(); if (CE_Survey.getPurpose() == PurposeID) { out.write(_jsp_string13, 0, _jsp_string13.length); out.print((PurposeID)); out.write(_jsp_string14, 0, _jsp_string14.length); out.print((PurposeName)); out.write(_jsp_string12, 0, _jsp_string12.length); } else { out.write(_jsp_string15, 0, _jsp_string15.length); out.print((PurposeID)); out.write('>'); out.print((PurposeName)); out.write(_jsp_string12, 0, _jsp_string12.length); } } out.write(_jsp_string16, 0, _jsp_string16.length); out.print((trans.tslt("Scale Range Chosen"))); out.write(_jsp_string17, 0, _jsp_string17.length); out.print((CE_Survey.getRatScale())); out.write(_jsp_string18, 0, _jsp_string18.length); out.print((trans.tslt("Rating Task"))); out.write(_jsp_string19, 0, _jsp_string19.length); out.print((trans.tslt("Select"))); out.write(_jsp_string20, 0, _jsp_string20.length); out.print((trans.tslt("Rating Task"))); out.write(_jsp_string21, 0, _jsp_string21.length); out.print((trans.tslt("Scale Description"))); out.write(_jsp_string22, 0, _jsp_string22.length); String query2 = ""; boolean dunAddPR = false; int iRatingTaskID = SVR.getRatingTaskID(CE_Survey.getSurvey_ID()); if (iRatingTaskID != 0) dunAddPR = true; boolean anyRecord = false; boolean anyscale = false; Vector vRT = RT.getRatingTask(CE_Survey.getSurvey_ID(), dunAddPR, CE_Survey.getPurpose()); for (int i = 0; i < vRT.size(); i++) { anyRecord = true; votblRatingTask vo = (votblRatingTask) vRT.elementAt(i); int RatID = vo.getRatingTaskID(); String RatName = vo.getRatingTask(); String ScaleType = vo.getScaleType(); out.write(_jsp_string23, 0, _jsp_string23.length); if (CE_Survey.getPurpose() != 9) { out.write(_jsp_string24, 0, _jsp_string24.length); out.print((RatID)); out.write(_jsp_string25, 0, _jsp_string25.length); } else { if (RatID != 2 && RatID != 3) { out.write(_jsp_string26, 0, _jsp_string26.length); out.print((RatID)); out.write(_jsp_string27, 0, _jsp_string27.length); } else { out.write(_jsp_string28, 0, _jsp_string28.length); out.print((RatID)); out.write(_jsp_string29, 0, _jsp_string29.length); } } out.write(_jsp_string30, 0, _jsp_string30.length); out.print((RatName)); out.write(_jsp_string31, 0, _jsp_string31.length); out.print(("selScaleDesc" + RatID)); out.write(_jsp_string32, 0, _jsp_string32.length); Vector vScale = RS.getRatingScale(CE_Survey.getRatScale(), ScaleType, CE_Survey.get_survOrg()); for (int j = 0; j < vScale.size(); j++) { votblScale voS = (votblScale) vScale.elementAt(j); anyscale = true; int ScaleID = voS.getScaleID(); String ScaleDesc = voS.getScaleDescription(); out.write(_jsp_string33, 0, _jsp_string33.length); out.print((ScaleID)); out.write('>'); out.print((ScaleDesc)); out.write(_jsp_string34, 0, _jsp_string34.length); } out.write(_jsp_string35, 0, _jsp_string35.length); } if (anyRecord == false && CE_Survey.getPurpose() != 0) { out.write(_jsp_string36, 0, _jsp_string36.length); out.print( (trans.tslt("All the rating tasks under this purpose of survey have been added"))); out.write(_jsp_string37, 0, _jsp_string37.length); } out.write(_jsp_string38, 0, _jsp_string38.length); if (anyRecord && anyscale) { out.write(_jsp_string39, 0, _jsp_string39.length); out.print((trans.tslt("Add"))); out.write(_jsp_string40, 0, _jsp_string40.length); } out.write(_jsp_string41, 0, _jsp_string41.length); out.print((trans.tslt("Close"))); out.write(_jsp_string42, 0, _jsp_string42.length); } out.write(_jsp_string43, 0, _jsp_string43.length); }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html; charset=utf-8"); pageContext = _jspxFactory.getPageContext(this, request, response, "../error.jsp", 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( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n"); out.write("<html>\r\n"); out.write("<head>\r\n"); out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n"); out.write("<title>登陆后台管理</title>\r\n"); out.write( " <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n"); out.write( " <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n"); out.write("\r\n"); out.write(" <!-- Bootstrap -->\r\n"); out.write( " <link href=\"css/bootstrap.min.css\" rel=\"stylesheet\" media=\"screen\">\r\n"); out.write( " <link href=\"css/bootstrap-theme.min.css\" rel=\"stylesheet\" media=\"screen\">\r\n"); out.write("\r\n"); out.write(" <!-- Bootstrap Admin Theme -->\r\n"); out.write( " <link href=\"css/bootstrap-admin-theme.css\" rel=\"stylesheet\" media=\"screen\">\r\n"); out.write("\r\n"); out.write(" <!-- Custom styles -->\r\n"); out.write(" <style type=\"text/css\">\r\n"); out.write(" .alert{\r\n"); out.write(" margin: 0 auto 20px;\r\n"); out.write(" }\r\n"); out.write(" .sorrymsgy{\r\n"); out.write(" \tcolor:#FF9900;\r\n"); out.write(" }\r\n"); out.write(" .sorrymsgr{\r\n"); out.write(" \tcolor: red;\r\n"); out.write(" }\r\n"); out.write(" </style>\r\n"); out.write("\r\n"); out.write( " <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->\r\n"); out.write(" <!--[if lt IE 9]>\r\n"); out.write( " <script type=\"text/javascript\" src=\"js/html5shiv.js\"></script>\r\n"); out.write( " <script type=\"text/javascript\" src=\"js/respond.min.js\"></script>\r\n"); out.write(" <![endif]-->\r\n"); out.write("</head>\r\n"); out.write("<body class=\"bootstrap-admin-without-padding\">\r\n"); out.write("<!-- java start -->\r\n"); User user = null; int is_admin = 0; if (session.getAttribute("user") != null) { user = (User) session.getAttribute("user"); if (user.getUser_isadmin() == 1) { is_admin = 1; } } // 验证登陆回来的信息 String msg = ""; if (request.getParameter("msg") != null) { msg = request.getParameter("msg"); } out.write("\r\n"); out.write("<!-- java end -->\r\n"); out.write(" <div class=\"container\">\r\n"); out.write(" <div class=\"row\">\r\n"); out.write(" <div class=\"alert alert-info\">\r\n"); out.write( " <a class=\"close\" data-dismiss=\"alert\" href=\"#\">×</a>\r\n"); out.write(" 请输入正确的管理员用户名和密码!\r\n"); out.write(" </div>\r\n"); out.write( " <form method=\"post\" action=\"/myblog/AdminSessionDo\" class=\"bootstrap-admin-login-form\">\r\n"); out.write(" <h1>登录</h1>\r\n"); out.write(" "); if (user != null && user.getUser_isadmin() == 1) { out.write("\r\n"); out.write(" <div class=\"form-group\">\r\n"); out.write( " <input class=\"form-control\" type=\"text\" name=\"username\" placeholder=\"账号\">\r\n"); out.write(" </div>\r\n"); out.write(" <div class=\"form-group\">\r\n"); out.write( " <input class=\"form-control\" type=\"password\" name=\"password\" placeholder=\"密码\">\r\n"); out.write(" </div>\r\n"); out.write(" <div class=\"form-group\">\r\n"); out.write(" <label>\r\n"); out.write(" <input type=\"checkbox\" name=\"remember_me\">\r\n"); out.write(" 记住密码\r\n"); out.write(" </label>\r\n"); out.write(" </div>\r\n"); out.write( " <input class=\"btn btn-lg btn-primary\" type=\"submit\" value=\"提交\"/>\r\n"); out.write(" "); } else { out.write("\r\n"); out.write( " <h2 class=\"sorrymsgy\">对不起,您不是我们的管理员</h2><h1 class=\"sorrymsgr\">您无权登陆</h1><hr/>\r\n"); out.write( " <a href=\"javascript:history.go(-1)\">请返回上一个页面~(^_^)~</a>\r\n"); out.write(" "); } out.write("\r\n"); out.write(" </form>\r\n"); out.write(" </div>\r\n"); out.write(" </div>\r\n"); out.write("\r\n"); out.write( " <script type=\"text/javascript\" src=\"http://code.jquery.com/jquery-2.0.3.min.js\"></script>\r\n"); out.write( " <script type=\"text/javascript\" src=\"js/bootstrap.min.js\"></script>\r\n"); out.write(" <script type=\"text/javascript\">\r\n"); out.write(" \t//判断是否是admin\t\r\n"); out.write(" \tvar isadmin = '"); out.print(is_admin); out.write("';\r\n"); out.write(" \tif(isadmin == 0){\r\n"); out.write(" \t\talert('对不起,您不是我们的管理员');\r\n"); out.write(" \t}\r\n"); out.write(" \t\r\n"); out.write(" \tvar message = '"); out.print(msg); out.write("';\r\n"); out.write(" \tif(message != \"\"){\r\n"); out.write("\t \tif(message == 0){\r\n"); out.write("\t \t\talert('对不起,用户名错误');\r\n"); out.write("\t \t}else{\r\n"); out.write("\t \t\talert('对不起,密码错误');\r\n"); out.write("\t \t}\r\n"); out.write(" \t}\r\n"); out.write(" \t\r\n"); out.write(" $(function() {\r\n"); out.write(" // Setting focus\r\n"); out.write(" $('input[name=\"email\"]').focus();\r\n"); out.write(" // Setting width of the alert box\r\n"); out.write( " var formWidth = $('.bootstrap-admin-login-form').innerWidth();\r\n"); out.write(" var alertPadding = parseInt($('.alert').css('padding'));\r\n"); out.write(" $('.alert').width(formWidth - 2 * alertPadding);\r\n"); out.write(" });\r\n"); out.write(" </script>\r\n"); out.write(" </body>\r\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
private void _jspService( javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.caucho.jsp.PageContextImpl pageContext, javax.servlet.ServletContext application, javax.servlet.http.HttpSession session, TagState _jsp_state) throws Throwable { javax.servlet.jsp.JspWriter out = pageContext.getOut(); final javax.el.ELContext _jsp_env = pageContext.getELContext(); javax.servlet.ServletConfig config = getServletConfig(); javax.servlet.Servlet page = this; javax.servlet.jsp.tagext.JspTag _jsp_parent_tag = null; com.caucho.jsp.PageContextImpl _jsp_parentContext = pageContext; response.setContentType("text/html"); response.setCharacterEncoding("utf-8"); out.write(_jsp_string0, 0, _jsp_string0.length); CP_Classes.EthnicGroup ethnic; synchronized (pageContext.getSession()) { ethnic = (CP_Classes.EthnicGroup) pageContext.getSession().getAttribute("ethnic"); if (ethnic == null) { ethnic = new CP_Classes.EthnicGroup(); pageContext.getSession().setAttribute("ethnic", ethnic); } } out.write(_jsp_string1, 0, _jsp_string1.length); CP_Classes.Login logchk; synchronized (pageContext.getSession()) { logchk = (CP_Classes.Login) pageContext.getSession().getAttribute("logchk"); if (logchk == null) { logchk = new CP_Classes.Login(); pageContext.getSession().setAttribute("logchk", logchk); } } out.write(_jsp_string1, 0, _jsp_string1.length); CP_Classes.Translate trans; synchronized (pageContext.getSession()) { trans = (CP_Classes.Translate) pageContext.getSession().getAttribute("trans"); if (trans == null) { trans = new CP_Classes.Translate(); pageContext.getSession().setAttribute("trans", trans); } } out.write(_jsp_string1, 0, _jsp_string1.length); // added to check whether organisation is a consulting company // Mark Oei 09 Mar 2010 out.write(_jsp_string1, 0, _jsp_string1.length); CP_Classes.Organization Org; synchronized (pageContext.getSession()) { Org = (CP_Classes.Organization) pageContext.getSession().getAttribute("Org"); if (Org == null) { Org = new CP_Classes.Organization(); pageContext.getSession().setAttribute("Org", Org); } } out.write(_jsp_string1, 0, _jsp_string1.length); CP_Classes.Create_Edit_Survey CE_Survey; synchronized (pageContext.getSession()) { CE_Survey = (CP_Classes.Create_Edit_Survey) pageContext.getSession().getAttribute("CE_Survey"); if (CE_Survey == null) { CE_Survey = new CP_Classes.Create_Edit_Survey(); pageContext.getSession().setAttribute("CE_Survey", CE_Survey); } } out.write(_jsp_string2, 0, _jsp_string2.length); // by lydia Date 05/09/2008 Fix jsp file to support Thai language out.write(_jsp_string3, 0, _jsp_string3.length); out.print((trans.tslt("Delete Ethnic Group"))); out.write(_jsp_string4, 0, _jsp_string4.length); out.print((trans.tslt("Edit Ethnic Group"))); out.write(_jsp_string5, 0, _jsp_string5.length); out.print((trans.tslt("Please enter Ethnic Group"))); out.write(_jsp_string6, 0, _jsp_string6.length); out.print((trans.tslt("Add Ethnic Group"))); out.write(_jsp_string7, 0, _jsp_string7.length); out.print((trans.tslt("Please enter Ethnic Group"))); out.write(_jsp_string8, 0, _jsp_string8.length); String username = (String) session.getAttribute("username"); if (!logchk.isUsable(username)) { out.write(_jsp_string9, 0, _jsp_string9.length); } else { if (request.getParameter("proceed") != null) { int PKOrg = new Integer(request.getParameter("proceed")).intValue(); logchk.setOrg(PKOrg); } if (request.getParameter("Delete") != null) { int Ethnic_ID = new Integer(request.getParameter("ethnic_ID")).intValue(); boolean bIsDeleted = ethnic.deleteRecord(Ethnic_ID, logchk.getPKUser()); if (bIsDeleted) { out.write(_jsp_string10, 0, _jsp_string10.length); } } if (request.getParameter("Edit") != null) { int Ethnic_ID = new Integer(request.getParameter("ethnic_ID")).intValue(); String txtEthnic = request.getParameter("txtEthnic"); boolean bIsEdited = ethnic.editRecord(Ethnic_ID, txtEthnic, logchk.getOrg(), logchk.getPKUser()); if (bIsEdited) { out.write(_jsp_string11, 0, _jsp_string11.length); } else { out.write(_jsp_string12, 0, _jsp_string12.length); } } if (request.getParameter("Add") != null) { String txtEthnic = request.getParameter("txtEthnic"); boolean bExist = ethnic.existRecord(txtEthnic, logchk.getOrg()); if (!bExist) { boolean bIsAdded = ethnic.addRecord(txtEthnic, logchk.getOrg(), logchk.getPKUser()); if (bIsAdded) { out.write(_jsp_string13, 0, _jsp_string13.length); } } else { out.write(_jsp_string14, 0, _jsp_string14.length); } } out.write(_jsp_string15, 0, _jsp_string15.length); out.print((trans.tslt("Ethnic Group"))); out.write(_jsp_string16, 0, _jsp_string16.length); out.print((trans.tslt("To Add, click on the Add button"))); out.write(_jsp_string17, 0, _jsp_string17.length); out.print( (trans.tslt("To Edit, click on the relevant radio button and click on the Edit button"))); out.write(_jsp_string17, 0, _jsp_string17.length); out.print( (trans.tslt( "To Delete, click on the relevant radio button and click on the Delete button"))); out.write(_jsp_string18, 0, _jsp_string18.length); out.print((trans.tslt("Organisation"))); out.write(_jsp_string19, 0, _jsp_string19.length); // Added to check whether organisation is also a consulting company // if yes, will display a dropdown list of organisation managed by this company // else, it will display the current organisation only // Mark Oei 09 Mar 2010 String[] UserDetail = new String[14]; UserDetail = CE_Survey.getUserDetail(logchk.getPKUser()); boolean isConsulting = true; isConsulting = Org.isConsulting(UserDetail[10]); // check whether organisation is a consulting company if (isConsulting) { Vector vOrg = logchk.getOrgList(logchk.getCompany()); for (int i = 0; i < vOrg.size(); i++) { votblOrganization vo = (votblOrganization) vOrg.elementAt(i); int PKOrg = vo.getPKOrganization(); String OrgName = vo.getOrganizationName(); if (logchk.getOrg() == PKOrg) { out.write(_jsp_string20, 0, _jsp_string20.length); out.print((PKOrg)); out.write(_jsp_string21, 0, _jsp_string21.length); out.print((OrgName)); out.write(_jsp_string22, 0, _jsp_string22.length); } else { out.write(_jsp_string20, 0, _jsp_string20.length); out.print((PKOrg)); out.write('>'); out.print((OrgName)); out.write(_jsp_string22, 0, _jsp_string22.length); } } } else { out.write(_jsp_string23, 0, _jsp_string23.length); out.print((logchk.getSelfOrg())); out.write('>'); out.print((UserDetail[10])); out.write(_jsp_string24, 0, _jsp_string24.length); } // End of isConsulting out.write(_jsp_string25, 0, _jsp_string25.length); out.print((trans.tslt("Ethnic Group"))); out.write(_jsp_string26, 0, _jsp_string26.length); /** ****************** Edited by James 17 Oct 2007 ********************** */ Vector v = ethnic.getAllEthnics(logchk.getOrg()); for (int i = 0; i < v.size(); i++) { voEthnic vo = (voEthnic) v.elementAt(i); int ethnic_ID = vo.getPKEthnic(); String ethnic_Desc = vo.getEthnicDesc(); out.write(_jsp_string27, 0, _jsp_string27.length); out.print((ethnic_ID)); out.write(_jsp_string28, 0, _jsp_string28.length); out.print((ethnic_Desc)); out.write(_jsp_string29, 0, _jsp_string29.length); out.print((ethnic_Desc)); out.write(_jsp_string30, 0, _jsp_string30.length); } out.write(_jsp_string31, 0, _jsp_string31.length); out.print((trans.tslt("Ethnic Group"))); out.write(_jsp_string32, 0, _jsp_string32.length); out.print((trans.tslt("Add"))); out.write(_jsp_string33, 0, _jsp_string33.length); out.print((trans.tslt("Edit"))); out.write(_jsp_string34, 0, _jsp_string34.length); out.print((trans.tslt("Delete"))); out.write(_jsp_string35, 0, _jsp_string35.length); } out.write(_jsp_string36, 0, _jsp_string36.length); // by lydia Date 05/09/2008 Fix jsp file to support Thai language out.write(_jsp_string37, 0, _jsp_string37.length); Calendar c = Calendar.getInstance(); int year = c.get(Calendar.YEAR); out.write(_jsp_string38, 0, _jsp_string38.length); // Denise 05/01/2010 update new email address out.write(_jsp_string39, 0, _jsp_string39.length); out.print((year)); out.write(_jsp_string40, 0, _jsp_string40.length); }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html"); 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('\n'); out.write('\n'); String ajaxCallOption = request.getParameter("ajaxCallOption"); // System.out.println("ajaxCallOption value in:"+ajaxCallOption); if (ajaxCallOption.equals("getSite")) { inventory.ManageSite objMV = new inventory.ManageSite("jdbc/js"); objMV.getSite(); String siteName = ""; Integer siteId = 0; out.write("\n"); out.write( "\t\t<select name=\"siteId\" id=\"siteId1\" onchange=\"getData('getSiteAddress')\"; style=\"width:150px;\" tabindex=\"1\">\n"); out.write("\t\t<option value=\"\">Select</option>\n"); while (objMV.rs.next()) { siteId = objMV.rs.getInt(1); siteName = objMV.rs.getString(2); out.write("\n"); out.write("\t\t\t<option value=\""); out.print(siteId); out.write('"'); out.write('>'); out.print(siteName); out.write("</option>\t\n"); out.write("\t\n"); } objMV.closeAll(); out.write("\n"); out.write("\t\t</select>\n"); } else if (ajaxCallOption.equals("getSiteAddress")) { try { inventory.ManageSite objMV = new inventory.ManageSite("jdbc/js"); Integer siteId = Integer.parseInt(request.getParameter("siteId")); objMV.getSiteAddress(siteId); String siteAddress = ""; if (objMV.rs.next()) { siteAddress = objMV.rs.getString(1); out.write("\n"); out.write("\t\t\t"); out.print(siteAddress); out.write("\t\n"); out.write("\t\n"); } objMV.closeAll(); } catch (Exception e) { } } else if (ajaxCallOption.equals("getDes")) { inventory.ManageSite objMV = new inventory.ManageSite("jdbc/js"); objMV.getSite(); String siteName = ""; Integer siteId = 0; out.write("\n"); out.write( "\t\t\t\t<select name=\"desId\" id=\"desId1\" onchange=\"getData('getDesAddress')\"; style=\"width:150px;\" tabindex=\"2\">\n"); out.write("\t\t\t\t<option value=\"\">Select</option>\n"); out.write("\t\t"); while (objMV.rs.next()) { siteId = objMV.rs.getInt(1); siteName = objMV.rs.getString(2); out.write("\n"); out.write("\t\t\t\t\t<option value=\""); out.print(siteId); out.write('"'); out.write('>'); out.print(siteName); out.write("</option>\t\n"); out.write("\t\t\t\n"); out.write("\t\t"); } objMV.closeAll(); out.write("\n"); out.write("\t\t\t\t</select>\n"); out.write("\t\t"); } else if (ajaxCallOption.equals("getDesAddress")) { try { inventory.ManageSite objMV = new inventory.ManageSite("jdbc/js"); Integer siteId = Integer.parseInt(request.getParameter("siteId")); objMV.getSiteAddress(siteId); String siteAddress = ""; if (objMV.rs.next()) { siteAddress = objMV.rs.getString(1); out.write("\n"); out.write("\t\t\t\t\t"); out.print(siteAddress); out.write("\t\n"); out.write("\t\t\t\n"); out.write("\t\t"); } objMV.closeAll(); } catch (Exception e) { } } else if (ajaxCallOption.equals("getTransferNumber")) { try { inventory.ManageSite objMV = new inventory.ManageSite("jdbc/js"); Integer siteId = Integer.parseInt(request.getParameter("siteId")); Integer desId = Integer.parseInt(request.getParameter("desId")); String frDate = request.getParameter("fromDate"); String toDate = request.getParameter("toDate"); objMV.getTransferNumReprint(siteId, desId, frDate, toDate); Integer trnsId = 0; out.write("\n"); out.write( "\t\t<select name=\"transId\" onchange=\"funSearchTrnsList()\"; style=\"width:150px;\" tabindex=\"3\">\n"); out.write("\t\t<option value=\"\">Select</option>\n"); while (objMV.rs.next()) { trnsId = objMV.rs.getInt(1); out.write("\n"); out.write("\t\t\t<option value=\""); out.print(trnsId); out.write('"'); out.write('>'); out.print(trnsId); out.write("</option>\t\n"); out.write("\t\n"); } objMV.closeAll(); out.write("\n"); out.write("\t\t</select>\n"); } catch (Exception e) { } } else if (ajaxCallOption.equals("searchString")) { ManageInventory objMIV = new ManageInventory("jdbc/js"); String trnsNumber = request.getParameter("searchTrnsNumber"); String siteId = request.getParameter("siteId"); String desId = request.getParameter("desId"); objMIV.searchTrnsNum(trnsNumber, siteId, desId); int total_trans_items, trnsferNumber; out.write("\n"); out.write( "\t<table id=\"searchItemTable\" class=\"genericTbl\" style=\"font-size: 17px;width:80%;\">\n"); out.write("\t\t<thead>\n"); out.write( "\t\t<tr style=\"position:relative;top:expression(document.all['searchTrnsNumberListDiv'].scrollTop);\">\n"); out.write("\t\t\t<th>Transfer Number</th>\n"); out.write("\t\t\t<th>No. of Items</th>\n"); out.write("\t\t</tr>\t\n"); out.write("\t\t</thead>\n"); while (objMIV.rs.next()) { trnsferNumber = objMIV.rs.getInt(1); total_trans_items = objMIV.rs.getInt(2); out.write("\t\t\t\n"); out.write("\t\t\t<tr onclick=\"fundisplayTable('"); out.print(trnsferNumber); out.write("')\"; >\n"); out.write("\t\t\t<td><input type=\"text\" name=\"searchItrnsnum\" value=\""); out.print(trnsferNumber); out.write("\" size=\"7\" class=\"hideTextField\" readonly=\"readonly\"/></td>\n"); out.write("\t\t \t<td><input type=\"text\" name=\"searchICode\" value=\""); out.print(total_trans_items); out.write("\" size=\"7\" class=\"hideTextField\" readonly=\"readonly\"/></td>\n"); out.write("\t\t \t</tr>\n"); out.write("\n"); } objMIV.closeAll(); out.write("\n"); out.write("</table>\n"); out.write("\n"); } else if (ajaxCallOption.equals("popupTable")) { int grandTotal = 0, grandItem = 0; System.out.println("====pop uo "); try { int siteId = Integer.parseInt(request.getParameter("siteId")); int desId = Integer.parseInt(request.getParameter("desId")); ManageInventory objMIVB = new ManageInventory("jdbc/js"); int trnsNumber = Integer.parseInt(request.getParameter("searchTrnsNumber")); objMIVB.getTrnsListReprint(trnsNumber, siteId, desId); out.write("\n"); out.write( "<table id=\"displayItemTable\" align=\"center\" class=\"genericTbl\" style=\"font-size:17px;width:100%;\">\n"); out.write("\t<thead>\n"); out.write("\t<tr>\n"); out.write("\t\t<th>Barcode</th>\n"); out.write("\t\t<th>Item Code</th>\n"); out.write("\t\t<th>Item Name</th>\n"); out.write("\t\t<th>Weight</th>\n"); out.write("\t\t<th>JS Price</th>\n"); out.write("\t\t<th>MRP</th>\n"); out.write("\t\t<th>Source Qty</th>\n"); out.write("\t\t<th>Des Qty.</th>\n"); out.write("<!-- \t\t<th>Transfer Qty.</th> -->\n"); out.write("\t\t<th>Accept Qty.</th>\n"); out.write("\t\t\n"); out.write("\t\t<!-- <th>Remaining Qty.</th>\n"); out.write("\t\t<th>Aftr trans. Qty.</th> -->\n"); out.write("\t\t<!-- <th>Remark</th> -->\n"); out.write("\t\t<th>Status.</th>\n"); out.write("\t</tr>\t\n"); out.write("\t</thead>\n"); out.write("\n"); System.out.println("=====befre result set "); while (objMIVB.rs.next()) { grandItem++; System.out.println("grnadf item " + grandItem); String barcode = objMIVB.rs.getString("barcode"); String item_code = objMIVB.rs.getString("item_code"); String item_name = objMIVB.rs.getString("item_name"); String item_weight = objMIVB.rs.getString("item_weight"); int priceversion = objMIVB.rs.getInt("price_version"); System.out.println("priceversion" + priceversion); double item_mrp, item_rate; item_rate = objMIVB.rs.getDouble("item_rate"); item_mrp = objMIVB.rs.getDouble("item_mrp"); int source_qty = objMIVB.rs.getInt(10); int des_qty = objMIVB.rs.getInt(11); int transfer_qty = objMIVB.rs.getInt("transfer_qty"); grandTotal += transfer_qty; int remainingQty = source_qty - transfer_qty; int aftrtransferQty = des_qty + transfer_qty; String inventoryStatus = null; String status = objMIVB.getitemstatusReprint(trnsNumber, item_code, priceversion); if (status.equals("CHNGQTY-RCVD LESS")) inventoryStatus = "Receive Less"; else if (status.equals("CHNGQTY-RCVD MORE")) inventoryStatus = "Receive More"; else if (status.equals("NOT TRANSFER")) inventoryStatus = "Not Receive "; else if (status.equals("TRANSFER")) inventoryStatus = "Receive "; out.write("\n"); out.write(" <tr>\n"); out.write( " <td style=\"display: none;\"><input type=\"text\" name=\"ItrnsNumber\" value=\""); out.print(trnsNumber); out.write("\" size=\"7\" class=\"hideTextField\" readonly=\"readonly\"/></td>\n"); out.write("\t<td><input type=\"text\" name=\"Ibarcode\" value=\""); out.print(barcode); out.write("\" size=\"7\" class=\"hideTextField\" readonly=\"readonly\"/></td>\n"); out.write(" \t<td><input type=\"text\" name=\"IitemCode\" value=\""); out.print(item_code); out.write("\" size=\"7\" class=\"hideTextField\" readonly=\"readonly\"/></td>\n"); out.write(" \t<td><input type=\"text\" name=\"Iitemname\" value=\""); out.print(item_name); out.write("\" title=\""); out.print(item_name); out.write("\" size=\"7\" class=\"hideTextField\" readonly=\"readonly\"/></td>\n"); out.write(" \t<td><input type=\"text\" name=\"Iitemweight\" value=\""); out.print(item_weight); out.write("\" size=\"7\" class=\"hideTextField\" readonly=\"readonly\"/></td>\n"); out.write(" \t\n"); out.write(" \t<td><input type=\"text\" name=\"Iitem_rate\" value=\""); out.print(item_rate); out.write("\" size=\"7\" class=\"hideTextField\" readonly=\"readonly\"/></td>\n"); out.write(" \t<td><input type=\"text\" name=\"Iitem_mrp\" value=\""); out.print(item_mrp); out.write("\" size=\"7\" class=\"hideTextField\" readonly=\"readonly\"/></td>\n"); out.write(" \t\n"); out.write(" \t<td><input type=\"text\" name=\"Isource_qty\" value=\""); out.print((source_qty)); out.write("\" size=\"4\" class=\"hideTextField\" readonly=\"readonly\" /></td>\n"); out.write(" \t<td><input type=\"text\" name=\"Ides_qty\" id=\"Ides_qty1\" value=\""); out.print((des_qty)); out.write("\" size=\"4\" class=\"hideTextField\" readonly=\"readonly\"/></td>\n"); out.write(" \t\n"); out.write(" \t"); out.write("\n"); out.write( " \t<td><input type=\"text\" name=\"Iaccept_qty\" id=\"Iaccept_qty1\" value=\""); out.print(transfer_qty); out.write("\" size=\"4\" class=\"hideTextField\" readonly=\"readonly\"/></td>\n"); out.write("\t\n"); out.write("\t"); out.write("\n"); out.write("\t<td><input type=\"text\" name=\"Istatus\" id=\"Istatus1\" value=\""); out.print(inventoryStatus); out.write("\" size=\"30\" class=\"hideTextField\" readonly=\"readonly\"/></td>\n"); out.write("\t</tr>\n"); out.write("\t\n"); out.write("\t"); } out.write('\n'); objMIVB.closeAll(); } catch (Exception e) { e.printStackTrace(); } out.write("\n"); out.write("\t\t\t<input type=\"hidden\" id=\"GrandTotalHidden\" value=\""); out.print(grandTotal); out.write("\" style=\"display: none;\"/>\n"); out.write("\t\t\t<input type=\"hidden\" id=\"GrandItemHidden\" value=\""); out.print(grandItem); out.write("\" style=\"display: none;\"/>\n"); out.write("\t\n"); out.write("\t\t"); } else if (ajaxCallOption.equals("calculteTotalQty")) { System.out.println(" calculteTotalQty "); String[] transferQty = request.getParameterValues("Itransfer_qty"); System.out.println(" calculteTotalQty1" + transferQty); for (String s : transferQty) { System.out.println(" calculteTotalQty1 " + s); } } out.write("\n"); out.write("\t\t\n"); out.write("\t </table>\n"); out.write("\t \n"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html;charset=GBK"); 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( "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n"); out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\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("<head>\r\n"); out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" />\r\n"); out.write("<meta http-equiv=\"pragma\" content=\"no-cache\" />\r\n"); out.write("<meta http-equiv=\"cache-control\" content=\"no-cache\" />\r\n"); out.write("<meta http-equiv=\"expires\" content=\"0\" /> \r\n"); out.write(" \r\n"); out.write("<title>超市管理系统</title>\r\n"); out.write("<script type=text/javascript>\r\n"); out.write(" function check(form){\r\n"); out.write("\t if(form.supplierid.value==\"\"){\r\n"); out.write("\t\talert(\"编号不能为空\"); \r\n"); out.write("\t\treturn false;\r\n"); out.write("\t }\r\n"); out.write("\t if(form.suppliername.value==\"\"){\r\n"); out.write("\t\talert(\"供应商名称不能为空\"); \r\n"); out.write("\t\treturn false;\r\n"); out.write("\t }\r\n"); out.write("\t if(form.supplierdescription.value==\"\"){\r\n"); out.write("\t\talert(\"供应商描述不能为空\"); \r\n"); out.write("\t\treturn false;\r\n"); out.write("\t }\r\n"); out.write("\t if(form.linkedman.value==\"\"){\r\n"); out.write("\t\talert(\"联系人不能为空\"); \r\n"); out.write("\t\treturn false;\r\n"); out.write("\t }\r\n"); out.write("\t if(form.telphone.value==\"\"){\r\n"); out.write("\t\talert(\"电话不能为空\"); \r\n"); out.write("\t\treturn false;\r\n"); out.write("\t }\r\n"); out.write("\t if(form.address.value==\"\"){\r\n"); out.write("\t\talert(\"地址不能为空\"); \r\n"); out.write("\t\treturn false;\r\n"); out.write("\t }\r\n"); out.write("\t if(!window.confirm(\"确定更改?\")){\r\n"); out.write("\t\t return false;\r\n"); out.write("\t }\r\n"); out.write("\t return true;\r\n"); out.write(" }\r\n"); out.write("</script>\r\n"); out.write("\r\n"); out.write("</head>\r\n"); if (session.getAttribute("username") == null) { out.println("<script type=\"text/javascript\">"); out.println("alert(\"您还没有登陆!请登陆!\");"); out.println("open(\"index.jsp\",\"_parent\");"); out.println("</script>"); return; } out.write('\r'); out.write('\n'); request.setCharacterEncoding("gbk"); long supplierid = Long.valueOf(request.getParameter("supplierid")); String suppliername = request.getParameter("suppliername"); String supplierdescription = request.getParameter("supplierdescription"); String linkedman = request.getParameter("linkedman"); String telphone = request.getParameter("telphone"); String address = request.getParameter("address"); pageContext.setAttribute("supplierid", supplierid); pageContext.setAttribute("suppliername", suppliername); pageContext.setAttribute("supplierdescription", supplierdescription); pageContext.setAttribute("linkedman", linkedman); pageContext.setAttribute("telphone", telphone); pageContext.setAttribute("address", address); if (request.getParameter("change") != null) { Supplier supplier = new Supplier(); supplier.setSupplierid(supplierid); supplier.setSuppliername(suppliername); supplier.setSupplierdescription(supplierdescription); supplier.setLinkedman(linkedman); supplier.setTelphone(telphone); supplier.setAddress(address); boolean consequence = new SupplierOperation().supplierinfochange(supplier); if (consequence) { out.println("<script type=\"text/javascript\">"); out.println("alert(\"更新成功!\");"); out.println("open(\"suppliermanage.jsp\",\"_self\");"); out.println("</script>"); return; } else { out.println("<script type=\"text/javascript\">"); out.println("alert(\"更新失败!\");"); out.println("open(\"suppliermanage.jsp\",\"_self\");"); out.println("</script>"); return; } } out.write("\r\n"); out.write("<body>\r\n"); out.write( " <form action=supplierinfochange.jsp method=post onSubmit=\"return check(this);\">\r\n"); out.write(" <input type=hidden name=change />\r\n"); out.write(" <div style=\"border:10px solid #4169E1;width:80%;\" >\r\n"); out.write(" <table>\r\n"); out.write(" <tr><td><pre> </pre></td><td><input name=supplierid type=\"hidden\" value="); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${supplierid}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write(" /></td></tr>\r\n"); out.write(" <tr><td>供应商名称:</td><td><input name=suppliername type=\"text\" value="); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${suppliername}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write(" /></td></tr>\r\n"); out.write(" \r\n"); out.write("<tr><td>供应商描述:</td><td><textarea name=supplierdescription>"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${supplierdescription}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</textarea></td></tr>\r\n"); out.write(" <tr><td>联系人:</td><td><input name=linkedman type=\"text\" value="); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${linkedman}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write(" /></td></tr>\r\n"); out.write(" <tr><td>电话:</td><td><input name=telphone type=\"text\" value="); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${telphone}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write(" /></td></tr>\r\n"); out.write(" <tr><td>地址:</td><td><textarea name=address >"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${address}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</textarea></td></tr>\r\n"); out.write(" </table>\r\n"); out.write(" </div>\r\n"); out.write( " <input onclick=\"window.open('suppliermanage.jsp','_self')\" type=\"button\" value=返回 /><input type=\"submit\" value=修改数据 /><input onclick=\"window.open('supplierdelete.jsp?supplierid="); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${supplierid}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("','_self')\" type=button value=删除 />\r\n"); out.write("</form>\r\n"); out.write("</body>\r\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html"); pageContext = _jspxFactory.getPageContext( this, request, response, "ReportErrorPage.jsp?page=EditTargetReportForm.jsp", true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); org.apache.jasper.runtime.JspRuntimeLibrary.include( request, response, "header.jsp", out, false); out.write(' '); out.write('\n'); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\t<!-- files for JqxWidget grid -->\n"); out.write( " <link rel=\"stylesheet\" href=\"js/jqwidgets/styles/jqx.base.css\" type=\"text/css\" />\n"); out.write( " <link rel=\"stylesheet\" href=\"js/jqwidgets/styles/jqx.darkblue.css\" type=\"text/css\" />\n"); out.write( "\t<link rel=\"stylesheet\" href=\"js/jqwidgets/styles/jqx.ui-redmond.css\" type=\"text/css\" />\n"); out.write("\t\n"); out.write( " <script type=\"text/javascript\" src=\"js/jqwidgets/gettheme.js\"></script>\n"); out.write("\t<script type=\"text/javascript\" src=\"js/jquery-1.10.2.min.js\"></script>\n"); out.write(" <script type=\"text/javascript\" src=\"js/jqwidgets/jqxcore.js\"></script>\n"); out.write(" <script type=\"text/javascript\" src=\"js/jqwidgets/jqxdata.js\"></script>\n"); out.write( " <script type=\"text/javascript\" src=\"js/jqwidgets/jqxbuttons.js\"></script>\n"); out.write( " <script type=\"text/javascript\" src=\"js/jqwidgets/jqxscrollbar.js\"></script>\n"); out.write( " <script type=\"text/javascript\" src=\"js/jqwidgets/jqxlistbox.js\"></script>\n"); out.write( " <script type=\"text/javascript\" src=\"js/jqwidgets/jqxcalendar.js\"></script>\n"); out.write( " <script type=\"text/javascript\" src=\"js/jqwidgets/jqxdatetimeinput.js\"></script>\n"); out.write(" <script type=\"text/javascript\" src=\"js/jqwidgets/jqxgrid.js\"></script>\n"); out.write( " <script type=\"text/javascript\" src=\"js/jqwidgets/jqxgrid.filter.js\"></script>\n"); out.write( " <script type=\"text/javascript\" src=\"js/jqwidgets/jqxgrid.selection.js\"></script>\n"); out.write( " <script type=\"text/javascript\" src=\"js/jqwidgets/jqxgrid.sort.js\"></script>\n"); out.write( " <script type=\"text/javascript\" src=\"js/jqwidgets/jqxgrid.pager.js\"></script>\n"); out.write( " <script type=\"text/javascript\" src=\"js/jqwidgets/jqxmenu.js\"></script>\n"); out.write( " <script type=\"text/javascript\" src=\"js/jqwidgets/jqxlistbox.js\"></script>\n"); out.write( " <script type=\"text/javascript\" src=\"js/jqwidgets/jqxdropdownlist.js\"></script>\n"); out.write( " <script type=\"text/javascript\" src=\"js/jqwidgets/jqxdata.export.js\"></script> \n"); out.write( " <script type=\"text/javascript\" src=\"js/jqwidgets/jqxgrid.export.js\"></script> \n"); out.write( " <script type=\"text/javascript\" src=\"js/jqwidgets/jqxgrid.aggregates.js\"></script> \n"); out.write( " <script type=\"text/javascript\" src=\"js/jqwidgets/jqxgrid.grouping.js\"></script> \n"); out.write("\n"); out.write("\n"); out.write("\t\n"); out.write("\t"); session.getAttribute("UserName").toString(); // System.out.println("session bachka maapping : "+session +" \n user // "+session.getAttribute("UserName").toString()); out.write("\n"); out.write("\n"); out.write("\n"); out.write("<script src=\"js/editCustomer_details.js\"> </script> \n"); out.write("\n"); out.write("<script type=\"text/javascript\" src=\"js/popup.js\"></script>\n"); out.write("<style>\n"); out.write("hr {\n"); out.write("color: #f00;\n"); out.write("background-color: #f00;\n"); out.write("height: 3px;\n"); out.write("}\n"); out.write("#selected_order{\n"); out.write("width: 40%;\n"); out.write("max-height: 300px;\n"); out.write("border: 1px solid black; \n"); out.write("background-color: #ECFB99;\n"); out.write("float: right;\n"); out.write("margin-top: 30px;\n"); out.write("overflow: auto;\n"); out.write("margin-right: 2%;\n"); out.write("padding: 5px;\n"); out.write("}\n"); out.write("</style>\n"); out.write("<script>\n"); out.write("\t\n"); out.write("\tfunction checkField(){\n"); out.write("\t\tif(document.myform.chckall.checked==true){\n"); out.write("\t\t\tshowHint();\n"); out.write("\t\t}\n"); out.write("\t\telse{\t\tvar c_date1,c_date2,u_date2,u_date1;\n"); out.write("\t\t\t\tif(!($(\"#createDate2\").jqxDateTimeInput('disabled'))){\n"); out.write("\t\t\t\tc_date1 = $('#createDate1').jqxDateTimeInput('getText');\n"); out.write("\t\t\t\tc_date2 = $('#createDate2').jqxDateTimeInput('getText');\n"); out.write("\t\t\t}\n"); out.write("\t\t\t\n"); out.write("\t\t\tif(!($(\"#updateDate2\").jqxDateTimeInput('disabled'))){\n"); out.write("\t\t\t\tu_date1 = $('#updateDate1').jqxDateTimeInput('getText');\n"); out.write("\t\t\t\tu_date2 = $('#updateDate2').jqxDateTimeInput('getText');\n"); out.write("\t\t\t}\t \n"); out.write("\t\t showHint();\t\t \n"); out.write("\t }\n"); out.write("\t}\n"); out.write("\tfunction showMsg(){\n"); out.write("\t \t document.myform.action=\"HomeForm.jsp\";\n"); out.write("\t \t document.myform.submit();\n"); out.write("\t}\n"); out.write("\tfunction Clear(){\n"); out.write("\t\t\n"); out.write("\t\ttry{\n"); out.write("\t\t\tdocument.getElementById(\"order_number\").focus();\n"); out.write("\t\t} catch (exp){}\n"); out.write("\t\t\n"); out.write("\t\t\n"); out.write("\t\t\n"); out.write("\t\tdocument.myform.custCode.value=\"\";\n"); out.write("\t\tdocument.myform.phonenumber.value=\"\";\n"); out.write("\t\tdocument.myform.custName.value=\"\";\n"); out.write("\t\tdocument.myform.nameString.value=\"\";\t\t\n"); out.write("\t\tdocument.myform.Building.value=\"\";\n"); out.write("\t\tdocument.myform.Building_no.value=\"\";\n"); out.write("\t\tdocument.myform.wing.value=\"\";\n"); out.write("\t\tdocument.myform.block.value=\"\";\n"); out.write("\t\tdocument.myform.add1.value=\"\";\n"); out.write("\t\tdocument.myform.add2.value=\"\";\n"); out.write("\t\tdocument.myform.area.value=\"\";\n"); out.write("\t\tdocument.myform.station.value=\"\";\n"); out.write("\t\t\n"); out.write("\t\tdocument.myform.selmonth.value=\"\";\n"); out.write("\t\t\n"); out.write( "\t\t$(\"#createDate1\").jqxDateTimeInput({theme:'ui-redmond',width: '250px', height: '25px',max:new Date(),formatString: \"yyyy-MM-dd\"});\n"); out.write( "\t\t$(\"#createDate2\").jqxDateTimeInput({theme:'ui-redmond',width: '250px', height: '25px',min:new Date(),max:new Date(),formatString: \"yyyy-MM-dd\",value:new Date()});\n"); out.write("\t\t$(\"#createDate2\").jqxDateTimeInput({disabled: true});\n"); out.write("\t\t\n"); out.write("\t\t\n"); out.write( "\t\t$(\"#updateDate1\").jqxDateTimeInput({theme:'ui-redmond',width: '250px', height: '25px',max:new Date(),formatString: \"yyyy-MM-dd\"});\n"); out.write( "\t\t$(\"#updateDate2\").jqxDateTimeInput({theme:'ui-redmond',width: '250px', height: '25px',min:new Date(),max:new Date(),formatString: \"yyyy-MM-dd\",value:new Date()});\n"); out.write("\t\t$(\"#updateDate2\").jqxDateTimeInput({disabled: true});\n"); out.write("\t\t\n"); out.write("\t\t$('#createDate1').on('close', function (event) {\n"); out.write("\t\t // Some code here. \n"); out.write("\t\t \t$(\"#createDate2\").jqxDateTimeInput({disabled: false});\n"); out.write( "\t\t \t$(\"#createDate2\").jqxDateTimeInput({min: $('#createDate1').jqxDateTimeInput('getDate')});\n"); out.write(" \t\t}); \t\n"); out.write(" \t\t\n"); out.write(" \t\t$('#updateDate1').on('close', function (event) {\n"); out.write("\t\t // Some code here. \n"); out.write("\t\t \t$(\"#updateDate2\").jqxDateTimeInput({disabled: false});\n"); out.write( "\t\t \t$(\"#updateDate2\").jqxDateTimeInput({min: $('#updateDate1').jqxDateTimeInput('getDate')});\n"); out.write(" \t\t}); \t\n"); out.write("\t\t\n"); out.write("\t\tfunEnabled();\n"); out.write("\t}\n"); out.write("\t\n"); out.write("function ckeckEmpty(){\n"); out.write("\tif(document.getElementById(\"order_number\").value == \"\"){\n"); out.write("\t\talert(\"Please Enter Order Number\");\n"); out.write("\t\tdocument.getElementById(\"order_number\").focus();\n"); out.write("\t\treturn false;\n"); out.write("\t} else {\n"); out.write("\t\treturn true;\n"); out.write("\t}\n"); out.write("}\n"); out.write("\n"); out.write("\n"); out.write("</script>\n"); String call_type = request.getParameter("call_type"); if (call_type == null) { call_type = ""; } if (call_type.equals("search_payment")) { String m = "<< Show List"; out.write("\n"); out.write("\t\t\t<div id=\"selected_order\">\n"); out.write("\t\t\t\t<b>Selected orders</b>\n"); out.write( "\t\t\t\t<form action=\"PrintSelectedCustPayment.jsp\" method=\"get\" id=\"submit_form\">\n"); out.write( "\t\t\t\t<table style=\"width: 100%;border-collapse: collapse;\" border=1 id=\"selected_order_table\">\n"); out.write("\t\t\t\t<tr>\n"); out.write("\t\t\t\t\t<th style=\"width: 20%;\">Order Number</th>\n"); out.write("\t\t\t\t\t<th style=\"width: 35%;\">Cust Name</th>\n"); out.write("\t\t\t\t\t<th style=\"width: 20%;\">Balance</th>\n"); out.write("\t\t\t\t\t<th style=\"width: 25%;\"> </th>\n"); out.write("\t\t\t\t</tr>\n"); out.write("\t\t\t\t</table>\n"); out.write("\t\t\t\t<table style=\"width: 100%;\" border=1 id=\"insert_table\">\n"); out.write("\t\t\t\t</table>\n"); out.write( "\t\t\t\t <input type=\"text\" readonly=\"readonly\" name=\"order_count\" id=\"order_count_id\" size=\"3\" value=\"0\" style=\"background-color :#ECFB99 ;\"/> orders selected to print.\n"); out.write( "\t\t\t\t<input type=\"submit\" onclick=\" return printSelectedInformation()\" value=\"Print\" style=\"float: right;\"/>\n"); out.write("\t\t\t\t</form>\n"); out.write("\t\t\t</div>\n"); out.write("\t\t"); } if (!call_type.equals("search_payment") || !call_type.equals("communication")) { out.write("\n"); out.write("<center>\n"); } out.write("\n"); out.write("<fieldset style=\"width: 55%;\"><legend>\n"); String msg = request.getParameter("msg"); if (call_type.equals("receive_payment")) { out.print("<h3>Search Customer To Receive Payment</h3>"); } else if (call_type.equals("search_payment")) { out.print("<h3>Search Customer To See Pending</h3>"); } else if (call_type.equals("communication")) { out.print("<h3>Search Customer To Communicate</h3>"); } else { out.print("<h3>Search Customer</h3>"); } out.write("\n"); out.write("</legend>\n"); if (call_type.equals("receive_payment")) { out.write("\n"); out.write( "\t\t<input type = \"radio\" name = \"radio\" onclick=\"ChangeCriteria('order')\" checked=\"checked\"/>Search By Order Number\n"); out.write( "\t\t<input type = \"radio\" name = \"radio\" onclick=\"ChangeCriteria('cust')\"/>Search By Customer Detail\n"); out.write("\t"); } if (call_type.equals("receive_payment")) { out.write("\n"); out.write("\t<br/><br/>\n"); out.write("<form id=\"myform1\" action=\"SearchCustUsingOrderNo.jsp\" method=\"get\">\n"); out.write("\t"); if (msg != null) { out.print("<i><font color=red>No Matching Record Found</font></i><br/><br/>"); } out.write("\n"); out.write( "\tEnter Order Number : <input type = \"text\" name = \"order_number\" value=\"\" id =\"order_number\" onkeypress=\"return isNumberKey(event)\"/>\n"); out.write( "\t<input type = \"submit\" value=\"Search\" onclick=\"return ckeckEmpty();\"/>\n"); out.write("\n"); out.write("<br/>\n"); out.write("</form>\n"); out.write("<form name=\"myform\" method=\"post\" id=\"myform\" style=\"display: none\">\n"); } else { out.write("\n"); out.write("<form name=\"myform\" method=\"post\" id=\"myform\" >\n"); } out.write("\n"); out.write("\t<table style=\"width: 100%;\">\n"); out.write("\t\t<tr style=\"width: 100%;\">\n"); out.write( "\t\t\t<td align=\"center\" colspan=3><b><font color=\"blue\"> A</font>ll Customers List       \n"); out.write( "\t\t\t<input type=\"CheckBox\" name=\"chckall\" accesskey=\"a\" onClick=\"funEnabled();\"></td>\n"); out.write("\t\t</tr>\t\t\n"); out.write("\t\t<tr style=\"width: 100%;\">\n"); out.write("\t\t\t<td colspan=3>\n"); out.write("\t\t\t<div id=\"div4\" style=\"width: 100%;\" >\n"); out.write("\t\t\t\t<table>\t\t\t\t\n"); out.write("\t\t\t\t\t<tr>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\">\n"); out.write("\t\t\t\t\t\t\t<b><font color=\"blue\">C</font>ustomer Code</b>\n"); out.write("\t\t\t\t\t\t</td>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write( "\t\t\t\t\t\t<td style=\"width: 29%;\"><input style=\"width: 97%;\" type=\"text\" name=\"custCode\" accesskey=\"c\"></td>\n"); out.write("\t\t\t\t\t\t"); if (call_type.equals("search_payment") || call_type.equals("communication")) { out.write("\n"); out.write("\t\t\t\t\t\t<td style=\"width: 8%;\" align=\"left\"></td>\n"); out.write("\t\t\t\t\t\t\n"); out.write("\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\">\n"); out.write("\t\t\t\t\t\t\t<b>O<font color=\"blue\">r</font>der Number</b>\n"); out.write("\t\t\t\t\t\t</td>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write( "\t\t\t\t\t\t<td style=\"width: 29%;\"><input style=\"width: 97%;\" type=\"text\" name=\"ordernumber\" accesskey=\"c\"></td>\n"); out.write("\t\t\t\t\t\t"); } out.write("\n"); out.write("\t\t\t\t\t</tr>\n"); out.write("\t\t\t\t\t<tr>\n"); out.write( "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>Customer <font color=\"blue\">N</font>ame</b></td>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write( "\t\t\t\t\t\t<td style=\"width: 29%;\"><input style=\"width: 97%;\" type=\"text\" name=\"custName\" align=\"right\" accesskey=\"n\"></td>\n"); out.write("\t\t\t\t\t\t\n"); out.write("\t\t\t\t\t\t<td style=\"width: 8%;\" align=\"left\"></td>\n"); out.write("\t\t\t\t\t\t\n"); out.write( "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b><font color=\"blue\">P</font>hone Number</b></td>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write( "\t\t\t\t\t\t<td style=\"width: 29%;\"><input style=\"width: 97%;\" type=\"text\" name=\"phonenumber\" size=\"22\" align=\"right\" colspan=\"2\" accesskey=\"p\"></td>\n"); out.write("\t\t\t\t\t\t\n"); out.write("\t\t\t\t\t</tr>\n"); out.write("\t\t\t\t\t<tr>\n"); out.write( "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>M<font color=\"blue\">o</font>bile Number</b></td>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write( "\t\t\t\t\t\t<td><input style=\"width: 97%;\" type=\"text\" name=\"mobilenumber\" size=\"22\" align=\"right\" colspan=\"2\" accesskey=\"o\"></td>\n"); out.write("\t\t\t\t\t\t\n"); out.write("\t\t\t\t\t\t<td style=\"width: 8%;\" align=\"left\"></td>\n"); out.write("\t\t\t\t\t\t\n"); out.write( "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>Na<font color=\"blue\">m</font>e String</b></td>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write( "\t\t\t\t\t\t<td><input style=\"width: 97%;\" style=\"width: 100%;\" type=\"text\" name=\"nameString\" size=\"22\" align=\"right\" accesskey=\"m\" colspan=\"2\"></td>\n"); out.write("\t\t\t\t\t</tr>\n"); out.write("\t\t\t\t\t<tr>\n"); out.write( "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b><font color=\"blue\">B</font>uilding</b></td>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write( "\t\t\t\t\t\t<td><input style=\"width: 97%;\" type=\"text\" name=\"Building\" accesskey=\"b\" align=\"right\"></b></td>\n"); out.write("\t\t\t\t\t\t\n"); out.write("\t\t\t\t\t\t<td style=\"width: 8%;\" align=\"left\"></td>\n"); out.write("\t\t\t\t\t\t\n"); out.write( "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>Building <font color=\"blue\">N</font>o.</b></td>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write( "\t\t\t\t\t\t<td><input style=\"width: 97%;\" type=\"text\" name=\"Building_no\" size=\"22\" accesskey=\"o\"></b></td>\n"); out.write("\t\t\t\t\t</tr>\n"); out.write("\t\t\t\t\t<tr>\n"); out.write( "\t\t\t\t\t <td style=\"width: 15%;\" align=\"left\"><b><font color=\"blue\">W</font>ing</b></td>\n"); out.write("\t\t\t\t\t <td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write( "\t\t\t\t\t <td><input style=\"width: 97%;\" type =\"text\" name=\"wing\" accesskey=\"w\" ></td>\n"); out.write("\t\t\t\t\t \n"); out.write("\t\t\t\t\t <td style=\"width: 8%;\" align=\"left\"></td>\n"); out.write("\t\t\t\t\t \n"); out.write( "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b><font color=\"blue\">F</font>lat No.</b></td>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write( "\t\t\t\t\t\t<td><input style=\"width: 97%;\" type =\"text\" name=\"block\" size=\"22\" accesskey=\"f\" align=\"right\">\n"); out.write("\t\t\t\t\t\t</tr>\n"); out.write("\t\t\t\t\t<tr>\n"); out.write( "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>Addr<font color=\"blue\">e</font>ss1</b></td>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write( "\t\t\t\t\t\t<td><input style=\"width: 97%;\" type =\"text\" accesskey=\"e\" name=\"add1\"></td>\n"); out.write("\t\t\t\t\t\t\n"); out.write("\t\t\t\t\t\t<td style=\"width: 8%;\" align=\"left\"></td>\n"); out.write("\t\t\t\t\t\t\n"); out.write( "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>A<font color=\"blue\">d</font>dress2</b></td>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write( "\t\t\t\t\t\t<td><input style=\"width: 97%;\" type =\"text\" accesskey=\"d\" name=\"add2\" size=\"22\"></td>\n"); out.write("\t\t\t\t\t</tr>\n"); out.write("\t\t\t\t\t<tr >\n"); out.write( "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>A<font color=\"blue\">r</font>ea</b></td>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write("\t\t\t\t\t\t<td>\n"); out.write("\t\t\t\t\t\t"); String name; try { Context initContext = new InitialContext(); Context envContext = (Context) initContext.lookup("java:/comp/env"); // DataSource ds = (DataSource)envContext.lookup("jdbc/js"); DataSource ds = (DataSource) envContext.lookup("jdbc/re"); Connection conn = ds.getConnection(); Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery( "select value from code_table where category='AREA' order by value asc"); out.write("\n"); out.write("\t\t\t\t\t\t\t<SELECT style=\"width: 97%;\" name=\"area\">\n"); out.write("\t\t\t\t\t\t\t\t<OPTION VALUE=\"\"> Select Area </OPTION>\n"); out.write("\t\t\t\t\t\t"); while (rs.next()) { name = rs.getString(1); out.write("\n"); out.write("\t\t\t\t\t\t\t\t<OPTION VALUE=\""); out.print(name); out.write('"'); out.write('>'); out.write(' '); out.print(name); out.write(" </OPTION>\n"); out.write("\t\t\t\t\t\t"); } out.write("\n"); out.write("\t\t\t\t\t\t\t</SELECT>\n"); out.write("\t\t\t\t\t\t</td>\t\n"); out.write("\t\t\t\t\t\t\n"); out.write("\t\t\t\t\t\t<td style=\"width: 8%;\" align=\"left\"></td>\n"); out.write("\t\t\t\n"); out.write( "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>Payment Type</b></td>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write("\t\t\t\t\t\t<td>\n"); out.write("\t\t\t\t\t\t\t<SELECT style=\"width: 97%;\" name=\"payment\" align=\"left\">\n"); out.write("\t\t\t\t\t\t\t\t<OPTION selected VALUE=\"\"> Select Type </OPTION>\n"); out.write("\t\t\t\t\t\t\t\t<OPTION VALUE=\"NoType\"> No Type </OPTION>\n"); out.write("\t\t\t\t\t\t"); ResultSet rs2 = stmt.executeQuery("SELECT payment_type_code, payment_type_desc FROM payment_type"); while (rs2.next()) { out.write("\t\n"); out.write("\t\t\t\t\t\t\t\t<OPTION VALUE=\""); out.print(rs2.getString(1)); out.write('"'); out.write('>'); out.write(' '); out.print(rs2.getString(2)); out.write(" </OPTION>\n"); out.write("\t\t\t\t\t\t"); } rs2.close(); stmt.close(); conn.close(); } catch (Exception e) { e.getMessage(); e.printStackTrace(); } out.write("\n"); out.write("\t\t\t\t\t\t\t</SELECT>\n"); out.write("\t\t\t\t\t\t</td>\n"); out.write("\t\t\t\t\t</tr>\n"); out.write("\t\t\t\t\t<tr>\n"); out.write( "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>Create<font color=\"blue\">D</font>ate</b></td>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write("\t\t\t\t\t\t<td>\n"); out.write( "\t\t\t\t\t\t\t<!-- <input type =\"text\" accesskey=\"d\" name=\"c_date1\" size=\"15\" style=\"width: 79%;\">\n"); out.write( "\t\t\t\t\t\t\t<input type=\"button\" onClick=\"c1.popup('c_date1');\" value=\"...\" style=\"width: 15%;\"/> -->\n"); out.write("\t\t\t\t\t\t\t<div id='createDate1'></div>\n"); out.write("\t\t\t\t\t\t</td>\n"); out.write("\t\t\t\t\t\t\t\n"); out.write("\t\t\t\t\t\t<td style=\"width: 8%;\" align=\"left\"></td>\n"); out.write("\t\t\t\t\t\t\t\n"); out.write("\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>And</b></td>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write("\t\t\t\t\t\t<td> \n"); out.write( "\t\t\t\t\t\t\t<!-- <input type =\"text\" name=\"c_date2\" size=\"15\" style=\"width: 79%;\">\n"); out.write( "\t\t\t\t\t\t\t<input type=\"button\" onClick=\"c1.popup('c_date2');\" value=\"...\" style=\"width: 15%;\"/> -->\n"); out.write("\t\t\t\t\t\t\t<div id='createDate2'></div>\n"); out.write("\t\t\t\t\t\t\t\n"); out.write("\t\t\t\t\t\t</td>\n"); out.write("\t\t\t\t\t</tr>\n"); out.write("\t\t\t\t\t<tr>\n"); out.write( "\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b><font color=\"blue\">U</font>pdate Date</b></td>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write("\t\t\t\t\t\t<td>\n"); out.write( "\t\t\t\t\t\t\t<!-- <input type =\"text\" accesskey=\"u\" name=\"u_date1\" size=\"15\" style=\"width: 79%;\"/>\n"); out.write( "\t\t\t\t\t\t\t<input type=\"button\" onClick=\"c1.popup('u_date1');\" value=\"...\" style=\"width: 15%;\"/> -->\n"); out.write("\t\t\t\t\t\t\t<div id=\"updateDate1\"></div>\n"); out.write("\t\t\t\t\t\t</td>\n"); out.write("\t\t\t\t\t\t\t\n"); out.write("\t\t\t\t\t\t<td style=\"width: 8%;\" align=\"left\"></td>\n"); out.write("\t\t\t\t\t\t\t\n"); out.write("\t\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>And</b></td>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write("\t\t\t\t\t\t<td> \n"); out.write( "\t\t\t\t\t\t\t<!-- <input type =\"text\" name=\"u_date2\" size=\"15\" style=\"width: 79%;\"/>\n"); out.write( "\t\t\t\t\t\t\t<input type=\"button\" onClick=\"c1.popup('u_date2');\" value=\"...\" style=\"width: 15%;\"/> -->\n"); out.write("\t\t\t\t\t\t\t<div id='updateDate2'></div>\n"); out.write("\t\t\t\t\t\t</td>\n"); out.write("\t\t\t\t\t</tr>\n"); out.write("\t\t\t\t\t<tr>\n"); out.write( "\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b><font color=\"blue\">S</font>tation</b></td>\n"); out.write("\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write( "\t\t\t\t\t<td><input style=\"width: 97%;\" type =\"text\" size=\"22\" accesskey=\"d\" name=\"station\"></td>\n"); out.write("\t\t\t\t\t\t\n"); out.write("\t\t\t\t\t<td style=\"width: 8%;\" align=\"left\"></td>\n"); out.write("\t\t\t\t\t\t\n"); out.write("\t\t\t\t\t<td style=\"width: 15%;\" align=\"left\"><b>Last Order Days</b></td>\n"); out.write("\t\t\t\t\t<td style=\"width: 1%;\" align=\"left\">:</td>\n"); out.write( "\t\t\t\t\t<td><input style=\"width: 97%;\" type=\"text\" name=\"selmonth\"/></td></tr>\n"); out.write("\t\t\t\t</table></div>\n"); out.write("\t\t\t</td>\n"); out.write("\t\t</tr>\n"); out.write("\t\t\t\n"); out.write("\t\t<tr>\n"); out.write("\t\t\t<td align=\"center\" colspan=4>\n"); out.write( "\t\t\t\t<input type=\"submit\" name=\"search\" title=\"Press <Enter>\" value=\"Search <Enter>\" accesskey=\"s\" onclick=\"checkField();return false;\"/>\n"); out.write( "\t\t\t\t<input type=\"reset\" name=\"clear\" title=\"Press <Alt+c>\" tabindex=\"1\" value=\"Clear <Alt+c>\" accesskey=\"c\" onclick=\"document.getElementById('txtHint').innerHTML='';\"/>\n"); out.write( "\t\t\t\t<INPUT type=BUTTON value=\"Cancel <Alt+c>\" accesskey=\"c\" onClick=\"showMsg();\"/></center>\n"); out.write("\t\t\t</td>\n"); out.write("\t\t</tr>\n"); out.write("\t</table>\n"); out.write("\t</fieldset>\n"); out.write("\t<input type=\"hidden\" name=\"hchckall\" value=\"1\">\n"); out.write("\t<input type=\"hidden\" name=\"call_type\" value=\""); out.print(call_type); out.write("\"/>\n"); out.write("<script>\n"); out.write("function funEnabled(){\n"); out.write("\t if (document.myform.chckall.checked==true){\n"); out.write("\t\t\tdocument.getElementById('div4').style.visibility=\"hidden\";\n"); out.write("\t\t\tdocument.myform.hchckall.value=1;\t\t\n"); out.write("\t\t\t$(\"#createDate2\").jqxDateTimeInput({disabled: true});\n"); out.write("\t\t\t$(\"#updateDate2\").jqxDateTimeInput({disabled: true});\n"); out.write("\t\t\t\n"); out.write("\t\t}\n"); out.write("\t\telse{\n"); out.write("\t\t\tdocument.getElementById('div4').style.visibility=\"visible\";\n"); out.write("\t\t\tdocument.myform.hchckall.value=0;\t\t\t\n"); out.write("\t\t}\n"); out.write("\t}\n"); out.write("window.onload =Clear;\n"); out.write("\n"); out.write("function ChangeCriteria(str){\n"); out.write("\tif(str == \"cust\"){\n"); out.write("\t\tdocument.getElementById(\"myform\").style.display='block';\n"); out.write("\t\tdocument.getElementById(\"myform1\").style.display='none';\n"); out.write("\t}else if(str == \"order\"){\n"); out.write("\t\tdocument.getElementById(\"myform\").style.display='none';\n"); out.write("\t\tdocument.getElementById(\"myform1\").style.display='block';\n"); out.write("\t\tdocument.getElementById(\"txtHint\").innerHTML=\"\";\n"); out.write("\t\tdocument.getElementById(\"order_number\").focus();\n"); out.write("\t\tdocument.getElementById(\"order_number\").value=\"\";\n"); out.write("\t}\n"); out.write("}\n"); out.write("function isNumberKey(evt) {\n"); out.write("\tvar charCode = (evt.which) ? evt.which : event.keyCode;\n"); out.write("\tif (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57))\n"); out.write("\t\treturn false;\n"); out.write("\telse\n"); out.write("\t\treturn true;\n"); out.write("}\n"); out.write("</script>\n"); out.write( "\t<hr><center><div id=\"txtHint\" class=\"ddm1\" style=\"background-color: white;width: 100%;max-height: 400px;overflow: auto;\"></div></center>\n"); out.write("\t<br><br>\n"); out.write( "\t<p><h1><center><div id=\"waitMessage\" style=\"cursor: sw-resize;\"></center></div></h1></p>\n"); String fromFromName = ""; if (request.getParameter("fromForm") != null) fromFromName = request.getParameter("fromForm"); // CustPmtHstry out.write("\n"); out.write("\t<input type=\"hidden\" name=\"fromForm\" value=\""); out.print(fromFromName); out.write("\">\n"); out.write("</form>\n"); out.write("\n"); out.write( "<div id=\"dispdiv\" align=\"center\" style=\"border:1px solid black; padding:25px; text-align:center; display:none; background-color:#FFF; overflow:auto; height:300px; width=200px;\"> </div>\n"); out.write("</body>\n"); out.write("</html>\n"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.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(); _jspx_out = out; out.write("\r\n"); out.write("<!DOCTYPE html>\r\n"); out.write("<html>\r\n"); out.write("<head>\r\n"); out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=Shift_JIS\">\r\n"); out.write("<title>検定管理システム</title>\r\n"); out.write("<link href=\""); out.print(request.getContextPath()); out.write("/view/css/style.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n"); out.write("<script src=\""); out.print(request.getContextPath()); out.write("/view/js/jquery-1.11.3.min.js\"></script>\r\n"); out.write("<script type=\"text/javascript\">\r\n"); out.write("$(function(){\r\n"); out.write(" $('a,a img,button').css({\r\n"); out.write(" opacity: 1.0,\r\n"); out.write(" filter: \"alpha(opacity=100)\"\r\n"); out.write(" }).hover(function(){\r\n"); out.write(" $(this).fadeTo(200,0.6);\r\n"); out.write(" },function(){\r\n"); out.write(" $(this).fadeTo(200,1.0);\r\n"); out.write(" })\r\n"); out.write("});\r\n"); out.write("</script>\r\n"); out.write("</head>\r\n"); out.write("<body>\r\n"); out.write("\r\n"); out.write("\r\n"); HttpSession examationsearchsession = request.getSession(false); ExamationInfoDto examationinfo = (ExamationInfoDto) examationsearchsession.getAttribute("examationinfo"); int i = Integer.parseInt(request.getParameter("forid")); out.write("\r\n"); out.write("\r\n"); out.write( "<header><h1><a href=\"/testmanagement/examationlist\">検定管理システム</a></h1></header>\r\n"); out.write("\r\n"); out.write("<div class=\"main\">\r\n"); out.write("\r\n"); out.write("\t<div class=\"info\">\r\n"); out.write("\t<h2>受験検定追加</h2>\r\n"); out.write("\t<p>受験検定の合否を選択してください。</p>\r\n"); out.write("\r\n"); out.write("\t<table class=\"list\">\r\n"); out.write("\t\t<tr>\r\n"); out.write("\t\t\t<td class=\"testadd\">実施日</td><td>"); out.print(examationinfo.getTestDay().get(i)); out.write("</td>\r\n"); out.write("\t\t</tr>\r\n"); out.write("\t\t<tr>\r\n"); out.write("\t\t\t<td class=\"testadd\">主催</td><td>"); out.print(examationinfo.getSponsor().get(i)); out.write("</td>\r\n"); out.write("\t\t</tr>\r\n"); out.write("\t\t<tr>\r\n"); out.write("\t\t\t<td class=\"testadd\">検定名</td><td>"); out.print(examationinfo.getTestName().get(i)); out.write("</td>\r\n"); out.write("\t\t</tr>\r\n"); out.write("\t</table>\r\n"); out.write("\r\n"); out.write("\t<form action=\""); out.print(request.getContextPath()); out.write("/view/examationaddchack.jsp\">\r\n"); out.write("\t\t<select name=\"gouhi\" class=\"drop\">\r\n"); out.write("\t\t<optgroup label=\"合否\">\r\n"); out.write("\t\t<option value=\"1\">合格</option>\r\n"); out.write("\t\t<option value=\"0\">不合格</option>\r\n"); out.write("\t\t</optgroup>\r\n"); out.write("\t\t</select>\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\t<table class=\"button\">\r\n"); out.write("\t\t<tr>\r\n"); out.write("\t\t\t<td class=\"button\">\r\n"); out.write("\t\t\t\t<button class=\"button1\" onClick=\"history.back()\">戻る</button>\r\n"); out.write("\t\t\t</td>\r\n"); out.write("\t\t\t<td class=\"button\">\r\n"); out.write("\r\n"); out.write("\t\t\t\t<button class=\"button1\" type=\"submit\" name=\"i\" value=\""); out.print(i); out.write("\">確認</button>\r\n"); out.write("\r\n"); out.write("\t\t\t</td>\r\n"); out.write("\t\t</tr>\r\n"); out.write("\t</table>\r\n"); out.write("\t</form>\r\n"); out.write("\t</div>\r\n"); out.write("\r\n"); out.write("\t<div class=\"side\">\r\n"); out.write("\t<form action=\""); out.print(request.getContextPath()); out.write("/logout\"><button class=\"menu\" type=\"submit\">ログアウト</button></form>\r\n"); out.write("\r\n"); out.write("\t<p><hr></p>\r\n"); out.write("\r\n"); out.write("\t<form action=\""); out.print(request.getContextPath()); out.write( "/examationlist\"><button class=\"menu\" type=\"submit\">受験検定一覧</button></form>\r\n"); out.write("\t<form action=\""); out.print(request.getContextPath()); out.write( "/view/examationadd1.jsp\" method=\"POST\"><button class=\"menu\" type=\"submit\">受験検定の追加</button></form>\r\n"); out.write("\t</div>\r\n"); out.write("\r\n"); out.write("</div>\r\n"); out.write("\r\n"); out.write("<footer>© 2016 WhiteCo.</footer>\r\n"); out.write("\r\n"); out.write("</body>\r\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html"); 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("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); String call_option = request.getParameter("call_option"); if (call_option.equals("analysis_list")) { String dateRange1 = request.getParameter("dateRange1").trim(); String dateRange2 = request.getParameter("dateRange2").trim(); System.out.println("dateRange1 " + dateRange1 + " dateRange2 " + dateRange2); // ManageSalesAnalysis manageSalesAnalysis = new ManageSalesAnalysis("jdbc/js"); ManageSalesAnalysis manageSalesAnalysis = new ManageSalesAnalysis("jdbc/re"); ArrayList outputList = new ArrayList(); ResultSet rs = null; rs = manageSalesAnalysis.getCompleteSalesAnalysis(dateRange1, dateRange2); if (rs.next()) { float count = 0; System.out.println("data available in breakdown header ..."); do { SalesAnalysisReportOutputBean analysisReportOutputBean = new SalesAnalysisReportOutputBean(); analysisReportOutputBean.setCustomerName(rs.getString(1)); analysisReportOutputBean.setBulding(rs.getString(2)); analysisReportOutputBean.setStation(rs.getString(3)); analysisReportOutputBean.setItemGroupDesc(rs.getString(4)); analysisReportOutputBean.setFMCG_IND(rs.getInt(5)); analysisReportOutputBean.setItemName(rs.getString(6)); // analysisReportOutputBean.setOrderNo("<a // href=\"javascript:passVar(\'"+rs.getString(7)+"\');\">"+rs.getString(7)+" </a>"); analysisReportOutputBean.setOrderNo(rs.getInt(7)); analysisReportOutputBean.setOrderNo1(rs.getInt(7)); analysisReportOutputBean.setOrderDate(rs.getString(8)); analysisReportOutputBean.setTotalValueDiscount(rs.getFloat(9)); analysisReportOutputBean.setQuantity(rs.getInt(10)); analysisReportOutputBean.setPrice(rs.getFloat(11)); analysisReportOutputBean.setItemDiscount(rs.getFloat(12)); count += Float.parseFloat(rs.getString(11)); analysisReportOutputBean.setSiteName(rs.getString(13)); // System.out.println("data available in breakdown header ..."+i); outputList.add(analysisReportOutputBean); } while (rs.next()); System.out.println("total price " + count); } else { System.out.println("no data available ..."); } manageSalesAnalysis.closeAll(); out.write("\n"); out.write("\t\t\t\n"); out.write("\t\t\t"); out.print(new Gson().toJson(outputList)); out.write('\n'); out.write(' '); out.write(' '); } else if (call_option.equals("brekdown_details")) { System.out.println("breakdown details block...."); int brekdown_number = Integer.parseInt(request.getParameter("bd_number")); // ManageBreakdown manageBreakdown = new ManageBreakdown("jdbc/js"); ManageBreakdown manageBreakdown = new ManageBreakdown("jdbc/re"); ResultSet rs = manageBreakdown.getBreakdownDetails(brekdown_number); System.out.print("afer result set of breakdown details.."); out.write("\n"); out.write("\t\t\t\n"); out.write("\t\t\t"); if (rs.next()) { out.write("\n"); out.write("\t\t\t\t<table style=\"border-collapse: collapse;\" border=1>\n"); out.write("\t\t\t\t<tr style=\"background-color: gray; color: white; \"> \n"); out.write("\t\t\t\t<!-- <th>Breakdown Number</th>\n"); out.write("\t\t\t\t<th>Item Code</th>\n"); out.write("\t\t\t\t <th>Price Version</th>\n"); out.write("\t\t\t\t<th>New Quantity</th> -->\n"); out.write("\t\t\t\t\n"); out.write("\t\t\t\t<th>Item Name</th>\n"); out.write("\t\t\t\t <th>Price Version</th>\n"); out.write("\t\t\t\t<th>New Quantity</th>\n"); out.write("\t\t\t\t\n"); out.write("\t\t\t\t</tr>\n"); out.write("\t\t\t\t"); do { out.write("\n"); out.write("\t\t\t\t\t<tr style=\"background-color: #D8D8D8;\"> \n"); out.write("\t\t\t\t\t\t<td style=\"width: 10%;\" align=\"center\">\n"); out.write("\t\t\t\t\t\t\t"); out.print(rs.getString(1)); out.write("\n"); out.write("\t\t\t\t\t\t</td>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 10%;\" align=\"center\">\n"); out.write("\t\t\t\t\t\t\t"); out.print(rs.getString(2)); out.write("\n"); out.write("\t\t\t\t\t\t</td>\n"); out.write("\t\t\t\t\t\t<td style=\"width: 10%;\" align=\"center\">\n"); out.write("\t\t\t\t\t\t\t"); out.print(rs.getString(3)); out.write("\n"); out.write("\t\t\t\t\t\t</td>\n"); out.write("\t\t\t\t\t\t"); out.write("\n"); out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n"); out.write("\t\t\t\t\t</tr>\n"); out.write("\t\t\t\t\t\n"); out.write("\t\t\t\t\n"); out.write("\t\t\t\t"); } while (rs.next()); manageBreakdown.closeAll(); out.write("\n"); out.write("\t\t\t\t</table>\n"); out.write("\t\t\t"); } else { System.out.println("else part of breakdown details "); } } else if (call_option.equals("suggestedOrderNumberList")) { ManageSalesAnalysis manageSalesAnalysis = new ManageSalesAnalysis("jdbc/re"); System.out.println(" suggested order list "); String orderNum = request.getParameter("orderNum"); ResultSet rs = manageSalesAnalysis.getSalesAnalysis(orderNum); ArrayList<SalesAnalysisReportOutputBean> outputList = new ArrayList(); while (rs.next()) { SalesAnalysisReportOutputBean analysisReportOutputBean = new SalesAnalysisReportOutputBean(); analysisReportOutputBean.setCustomerName(rs.getString(1)); analysisReportOutputBean.setBulding(rs.getString(2)); analysisReportOutputBean.setStation(rs.getString(3)); analysisReportOutputBean.setItemGroupDesc(rs.getString(4)); analysisReportOutputBean.setFMCG_IND(rs.getInt(5)); analysisReportOutputBean.setItemName(rs.getString(6)); // analysisReportOutputBean.setOrderNo("<a // href=\"javascript:passVar(\'"+rs.getString(7)+"\');\">"+rs.getString(7)+" </a>"); analysisReportOutputBean.setOrderNo(rs.getInt(7)); analysisReportOutputBean.setOrderNo1(rs.getInt(7)); analysisReportOutputBean.setOrderDate(rs.getString(8)); analysisReportOutputBean.setTotalValueDiscount(rs.getFloat(9)); analysisReportOutputBean.setQuantity(rs.getInt(10)); analysisReportOutputBean.setPrice(rs.getFloat(11)); analysisReportOutputBean.setItemDiscount(rs.getFloat(12)); analysisReportOutputBean.setSiteName(rs.getString(13)); // System.out.println("data available in breakdown header ..."+i); outputList.add(analysisReportOutputBean); } manageSalesAnalysis.closeAll(); JsonOutputBean jsonOutputBean = new JsonOutputBean(); jsonOutputBean.setOutputData(outputList); System.out.print(new Gson().toJson(outputList)); out.print(new Gson().toJson(outputList)); } out.write(" \n"); out.write("\t\t\n"); out.write("\t\t\n"); out.write("\t\t"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }