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

📄 register_module.java

📁 ERO系统.针对生产型、分销型、服务型企业等不同的行业特点
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<script>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function msgView(){\r\n");
      out.write("var win=document.getElementById('window_id_1');\r\n");
      out.write("win.style.top=(document.body.clientHeight-parseInt(win.style.height))+'px';\r\n");
      out.write("win.style.left=(document.body.clientWidth-parseInt(win.style.width))+'px';\r\n");
      out.write("win.style.display='block';\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function msgViewClose(){\r\n");
      out.write("var win=document.getElementById('window_id_1');\r\n");
      out.write("win.style.display='none';\r\n");
      out.write("}\r\n");
      out.write("function open_msg(){\r\n");
      out.write("document.getElementById('msm_cont1').value='';\r\n");
      out.write("\r\n");
      out.write("var xmlhttp3;\r\n");
      out.write("if (window.XMLHttpRequest){xmlhttp3=new XMLHttpRequest();}else if (window.ActiveXObject){\r\n");
      out.write("xmlhttp3=new ActiveXObject(\"Microsoft.XMLHTTP\");}if(xmlhttp3) {xmlhttp3.onreadystatechange = function() {\r\n");
      out.write("if (xmlhttp3.readyState==4){try {if(xmlhttp3.status==200) {\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("var xm=xmlhttp3.responseText.replace(/(^\\s*)|(\\s*$)/g, \"\").split(',');\r\n");
      out.write("var input_html=\"\";\r\n");
      out.write("for(var i=0;i<xm.length;i++){\r\n");
      out.write("input_html+=\"<INPUT TYPE=\\\"checkbox\\\" NAME=\\\"human_msg_name\\\" value=\"+xm[i].split(\"⊙\")[0]+\" ><A HREF=javascript:winopen(\\'");
      out.print(url_temp);
      out.write("hr/file/query.jsp?human_ID=\"+xm[i].split(\"⊙\")[1]+\"\\')>\"+xm[i].split(\"⊙\")[0]+\"</A>\";\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("document.getElementById('human_msg').innerHTML=input_html;\r\n");
      out.write("Reply(false);\r\n");
      out.write("}else {\r\n");
      out.write("alert( xmlhttp3.status + '=' + xmlhttp3.statusText);}} catch(exception) {alert(exception);}}};\r\n");
      out.write("xmlhttp3.open(\"POST\", \"");
      out.print(url_temp);
      out.write("include/ajax_query.jsp\", true);\r\n");
      out.write("xmlhttp3.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\t\r\n");
      out.write("xmlhttp3.send();\t\t\t\t\r\n");
      out.write("} else {alert('Can not create XMLHttpRequest object, please check your web browser.');}\r\n");
      out.write("}\r\n");
      out.write("function Reply(msg_tag){\r\n");
      out.write("document.getElementById('msm_cont1').value='';\r\n");
      out.write("if(msg_tag)document.getElementById('human_msg').innerHTML='';\r\n");
      out.write("var msm=document.getElementById('msm1');\r\n");
      out.write("msm.style.display='block';\r\n");
      out.write("var w=(parseInt(document.body.clientWidth)-parseInt(msm.style.width))/2+\"px\";\r\n");
      out.write("var h=(document.body.clientHeight-parseInt(msm.style.height))/2+\"px\";\r\n");
      out.write("msm.style.position='absolute';\r\n");
      out.write("msm.style.top=h;\r\n");
      out.write("msm.style.left=w;\r\n");
      out.write("}\r\n");
      out.write("function send_msm(filename){\r\n");
      out.write("var from_name='';\r\n");
      out.write("var name='");
      out.print(uname1);
      out.write("';\r\n");
      out.write("var cont=document.getElementById('msm_cont1').value;\r\n");
      out.write("cont=cont.replace(/[&]/g,'◎');\r\n");
      out.write("\r\n");
      out.write("if(document.getElementById('human_msg').innerHTML==''){\r\n");
      out.write("from_name=window.frames['ssg_ifr'].document.getElementById('from_name').innerHTML+',';//给谁发送\r\n");
      out.write("}else{\r\n");
      out.write("\r\n");
      out.write("var human_msg_name=document.getElementsByName('human_msg_name');\r\n");
      out.write("\r\n");
      out.write("for(var i=0;i<human_msg_name.length;i++){\r\n");
      out.write("if(human_msg_name[i].checked){\r\n");
      out.write("\r\n");
      out.write("from_name+=human_msg_name[i].value+',';\r\n");
      out.write("}\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("if(from_name==null||from_name==''||from_name==','){\r\n");
      out.write("\r\n");
      out.write("alert('您没有选择目标用户');\r\n");
      out.write("\r\n");
      out.write("return false;\r\n");
      out.write("\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("if(filename==null||filename==''||filename=='undefined') filename='⊙';\r\n");
      out.write("if(cont==null||cont==''||cont=='undefined')cont='⊙';\r\n");
      out.write("var xmlhttp3;\r\n");
      out.write("if (window.XMLHttpRequest){xmlhttp3=new XMLHttpRequest();}else if (window.ActiveXObject){\r\n");
      out.write("xmlhttp3=new ActiveXObject(\"Microsoft.XMLHTTP\");}if(xmlhttp3) {xmlhttp3.onreadystatechange = function() {\r\n");
      out.write("if (xmlhttp3.readyState==4){\r\n");
      out.write("try {\r\n");
      out.write("if(xmlhttp3.status==200) {\r\n");
      out.write("if(filename=='⊙')n_A.divShow('发送成功');\r\n");
      out.write("\r\n");
      out.write("document.getElementById('msm1').style.display='none';\r\n");
      out.write("\r\n");
      out.write("}else {\r\n");
      out.write("alert( xmlhttp3.status + '=' + xmlhttp3.statusText);}\r\n");
      out.write("} catch(exception) {alert(exception);}\r\n");
      out.write("}\r\n");
      out.write("};\r\n");
      out.write("xmlhttp3.open(\"POST\", \"");
      out.print(url_temp);
      out.write("/include/createMsgXml.jsp\", true);\r\n");
      out.write("xmlhttp3.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\t\r\n");
      out.write("xmlhttp3.send('name='+name+'&&cont='+cont+'&&from_name='+from_name+'&&filename='+filename);\t\t\t\t\r\n");
      out.write("} else {alert('Can not create XMLHttpRequest object, please check your web browser.');}\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("</script>\r\n");
      out.write("\r\n");
      out.write("<DIV class=dialog id=\"msm1\" nseerDef=\"dragAble\" style=\"display:none;FILTER: ;WIDTH: 502px; HEIGHT: 400px;z-index:5\" >\r\n");
      out.write("<iframe src=\"javascript:false\" style=\"position:absolute;visibility:inherit;top:0px;left:0px;width:100%;height:100%;z-index:-1;filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';\"></iframe>\r\n");
      out.write("<DIV class=mac_os_x_minimize id=\"collapse\" onclick=\"n_D.minDiv(40)\"  onmouseover=\"n_D.mmcMouseStyle(this);\"></DIV>\r\n");
      out.write("<DIV class=mac_os_x_maximize id=\"expand\" onclick=\"n_D.maxDiv()\"  onmouseover=\"n_D.mmcMouseStyle(this);\"></DIV>\r\n");
      out.write("<DIV class=mac_os_x_close id=window_id_1_close onclick=\"n_D.closeDiv('hidden')\"  onmouseover=\"n_D.mmcMouseStyle(this);\"></DIV>\r\n");
      out.write("<TABLE class=\"top table_window\" id=window_id_1_row1 >\r\n");
      out.write("<TBODY  height=\"100%\">\r\n");
      out.write("<TR>\r\n");
      out.write("<TD class=\"mac_os_x_nw top_draggable\"></TD>\r\n");
      out.write("<TD class=mac_os_x_n>\r\n");
      out.write("<DIV class=\"mac_os_x_title title_window top_draggable\" id=window_id_1_top style=\"text-align:left\">恩信科技即时通讯</DIV></TD>\r\n");
      out.write("<TD class=\"mac_os_x_ne top_draggable\"></TD></TR></TBODY></TABLE>\r\n");
      out.write("<TABLE class=\"mid table_window\" id=window_id_1_row2_a  height=\"80%\">\r\n");
      out.write("<TBODY>\r\n");
      out.write("<TR>\r\n");
      out.write("<TD class=mac_os_x_w></TD>\r\n");
      out.write("<TD class=mac_os_x_content id=window_id_1_table_content vAlign=top>\r\n");
      out.write("<DIV class=mac_os_x_content id=window_id_1_content style=\"WIDTH: 100%; HEIGHT: 100% ;background:#66CCFF;overflow:auto\">\r\n");
      out.write("<table width=\"100%\" height=\"100%\">\r\n");
      out.write("<tr>\r\n");
      out.write("<td>\r\n");
      out.write("<div id=\"human_msg\">\r\n");
      out.write("</div></td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr style=\"width:100%\">\r\n");
      out.write("<td style=\"width:100%;height:100%\" colspan=\"2\">\r\n");
      out.write("<textarea  rows=10  style=\"width:100%;height:100%;\" name=\"msm_cont1\"></textarea>\r\n");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("<td  colspan=\"2\" align=\"right\">\r\n");
      out.write("<input type=button ");
      out.print(SUBMIT_STYLE1);
      out.write(" class=\"SUBMIT_STYLE1\" onclick=\"send_msm()\" value=\"发送\">\r\n");
      out.write("</td>\r\n");
      out.write("\r\n");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("<div id=\"file_status\"></div>\r\n");
      out.write("</DIV></TD>\r\n");
      out.write("<TD class=mac_os_x_e></TD></TR></TBODY></TABLE>\r\n");
      out.write("<TABLE class=\"bot table_window\" id=window_id_1_row3 width=\"100%\">\r\n");
      out.write("<TBODY>\r\n");
      out.write("<TR>\r\n");
      out.write("<TD class=\"mac_os_x_sw bottom_draggable\"></TD>\r\n");
      out.write("<TD class=\"mac_os_x_s bottom_draggable\">\r\n");
      out.write("<DIV class=status_bar id=window_id_1_bottom><SPAN style=\"FLOAT: left; WIDTH: 1px; HEIGHT: 1px\"></SPAN></DIV></TD>\r\n");
      out.write("<TD class=\"mac_os_x_sizer bottom_draggable\" id=window_id_1_sizer></TD></TR></TBODY></TABLE></DIV>\r\n");
      out.write('\r');
      out.write('\n');
      out.write('\r');
      out.write('\n');
      include.tree_index.businessComment demo = null;
      synchronized (pageContext) {
        demo = (include.tree_index.businessComment) pageContext.getAttribute("demo", PageContext.PAGE_SCOPE);
        if (demo == null){
          demo = new include.tree_index.businessComment();
          pageContext.setAttribute("demo", demo, PageContext.PAGE_SCOPE);
        }
      }
      out.write('\r');
      out.write('\n');
      include.nseer_cookie.ReadXmlLength xml = null;
      synchronized (pageContext) {
        xml = (include.nseer_cookie.ReadXmlLength) pageContext.getAttribute("xml", PageContext.PAGE_SCOPE);
        if (xml == null){
          xml = new include.nseer_cookie.ReadXmlLength();
          pageContext.setAttribute("xml", xml, PageContext.PAGE_SCOPE);
        }
      }
      out.write('\r');
      out.write('\n');
 DealWithString DealWithString=new DealWithString(application);
	 demo.setPath(request);
	 String handbook=demo.businessComment(mod,"您正在做的业务是:","document_main","reason","value");
      out.write('\r');
      out.write('\n');

String dbase="";
String module="";
nseer_db db = new nseer_db((String)session.getAttribute("unit_db_name"));
nseer_db db1 = new nseer_db((String)session.getAttribute("unit_db_name"));
Nseer n=new Nseer();
String human_name=exchange.unURL(request.getParameter("human_name"));
String human_ID=request.getParameter("human_ID");
String choose_value_group=exchange.unURL(request.getParameter("choose_value_group"));
String choose_value=request.getParameter("choose_value");
MaxKind max=new MaxKind((String)session.getAttribute("unit_db_name"),choose_value.split("/")[0]+"_tree","file_id");
ServletContext context=session.getServletContext();
String path=context.getRealPath("/");
path=path+"xml\\hr\\config\\file\\tree-config.xml";
int first_length=2;
int step_length=2;
int kind_rows=KindDeep.getDeep(max.maxValue("file_id"),first_length,step_length);
kind_rows=kind_rows-1;
max.close();

StringTokenizer tokenTO = new StringTokenizer(choose_value,"/"); 
	while(tokenTO.hasMoreTokens()) {
 dbase = tokenTO.nextToken();
		module = tokenTO.nextToken();
		}
if(choose_value_group==null) choose_value_group="";
int a=choose_value_group.indexOf(dbase);
if(a==-1){
	try{

      out.write("\r\n");
      out.write("<form method=\"post\" id=\"keyRegister\" name=\"selectList\" action=\"security_license_register_module_ok\">  \r\n");
      out.write("<table ");
      out.print(TABLE_STYLE2);
      out.write(" class=\"TABLE_STYLE2\">\r\n");
      out.write(" <tr ");
      out.print(TR_STYLE1);
      out.write(" class=\"TR_STYLE1\">\r\n");
      out.write(" <td ");
      out.print(TD_HANDBOOK_STYLE1);
      out.write(" class=\"TD_HANDBOOK_STYLE1\"><div class=\"div_handbook\">");
      out.print(handbook);
      out.write("</div></td>\r\n");
      out.write(" </tr>\r\n");
      out.write("</table>      \r\n");
      out.write("<table ");
      out.print(TABLE_STYLE2);
      out.write(" class=\"TABLE_STYLE2\">\r\n");
      out.write("\t<tr ");
      out.print(TR_STYLE1);
      out.write(" class=\"TR_STYLE1\">\r\n");
      out.write(" <td ");
      out.print(TD_STYLE3);
      out.write(" class=\"TD_STYLE3\">\r\n");
      out.write(" <div ");

⌨️ 快捷键说明

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