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

📄 updateentity.jsp

📁 java阿里巴巴代码
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>

<%@ page import="java.util.*"%>

<%@ page contentType="text/html;charset=GBK"%>

<%@ page import="com.saas.biz.entitypropMgr.EntitypropInfo"%>

<jsp:useBean id="bean" class="com.saas.biz.commen.ParamethodMgr" scope="page" />

<%

	ArrayList list=bean.getCompareInfoByAttr("46");

	String attr_code="",cust_id="",attr_desc="",remark="",default_value="",attr_name="",entity_type="";

	EntitypropInfo entity=new EntitypropInfo();

	HttpSession httpSess=request.getSession();

	cust_id=(String)httpSess.getAttribute("SESSION_CUST_ID");

	attr_code=request.getParameter("attr_code");

	ArrayList entityList=entity.getEntityInfoByCode(cust_id,attr_code);

	if(entityList !=null && entityList.size()>0){

	  HashMap map=(HashMap)entityList.get(0);

	  if(map.get("attr_name")!=null){

	    attr_name=map.get("attr_name").toString();

	  }

	  if(map.get("attr_desc")!=null){

	    attr_desc=map.get("attr_desc").toString();

	  }

	  if(map.get("remark")!=null){

	    remark=map.get("remark").toString();

	  }

	  if(map.get("default_value")!=null){

	    default_value=map.get("default_value").toString();

	  }

	  if(map.get("attr_code")!=null){

	    attr_code=map.get("attr_code").toString();

	  }

	  if(map.get("entity_type")!=null){

	    entity_type=map.get("entity_type").toString();

	  }

	}

%>

<html>

	<head>

		<title>XSaaS-实体属性管理</title>
		    <link href="/style/layout.css" rel="stylesheet" type="text/css">
		<script language="javascript" src="/js/Calendar_Ly.js"></script>

		<script src="/www/fuction/calendar.js" type="text/javascript"></script>

		<script language="JavaScript" src="/www/fuction/public.js"></script>

		<script language="JavaScript">

    function Check_Value()

	{

	    if(document.getElementById("attr_name").value==""){

	      alert("属性名称不能为空!");

	      document.getElementById("attr_name").focus();

	      return false;

	    }

 	    return true;

	}

    function check_none(current_obj)

    {

        if (current_obj.advshow.checked)

        {

      	    current_obj.submit1.disabled=false;        	     

      	}

      	else

      	{

      	    current_obj.submit1.disabled=true;

      	}

  	 }

    	function confirmsub(formobj)

    	{

    	    if(window.confirm('你确定要提交吗?')) 

    	    {  	    	

    	        if (Check_Value())

    	        {

    	            formobj.submit();   	

    	        }

    	    }

    	    else

    	    {

    	        return;

    	    }

    	}

    function setSize(){

    window.resizeTo(800,550);

   }

</script>

	</head>

	<body >

		<form name=resumeForm action=/doTradeReg.do method=post>

			<table width="100%" border="0" cellspacing="0" cellpadding="0">

				<tr>

					<td height="2"></td>

				</tr>

				<tr>

					<td valign="top">

						<table width=100% border=0 cellpadding=5 cellspacing=1 align=center

							bgcolor="#dddddd">

							<tr>

								<td

									style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:12px;"

									align=right width=15%>

									属性名称:								</td>

								<td

									style="background-color:#ffffff; color:#000000;  font-size:12px; padding:3px 5px;"

									align=left width=85%>

									<div class="ping"><input name="attr_name" type="text" id="attr_name" size=25

										maxlength=50 value="<%=attr_name %>"></div>

								</td>

							</tr>

							<input name="attr_code" id="attr_code" type="hidden" value="<%=attr_code%>">

							<tr>

								<td

									style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:12px; padding:3px 5px;"

									align=right>

									实体类型:

								</td>

								<td

									style="background-color:#ffffff; color:#000000;  font-size:12px; padding:3px 5px;"

									align=left>

                                  <div class="ping"> <select name="entity_type" id="entity_type">

                                   <%

                                     if(list!=null && list.size()>0){

                                       for(int i=0;i<list.size();i++){

                                         HashMap map=(HashMap)list.get(i);

                                         String id=map.get("para_code1").toString();

                                         String name=map.get("para_code2").toString();

                                         if(id==entity_type || id.equals(entity_type)){

                                          %>

                                         <option value="<%=id%>" selected><%=name%></option>

                                         <%

                                         }else{

                                         %>

                                         <option value="<%=id%>"><%=name%></option>

                                         <%

                                         }

                                       }

                                     }

                                   %>

                                   </select></div>

								</td>

							</tr>

							<tr>

								<td

									style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:12px;"

									align=right>

									属性描述:

								</td>

								<td

									style="background-color:#ffffff; color:#000000;  font-size:12px; padding:3px 5px;"

									align=left>

									<textarea name="attr_desc" id="attr_desc" cols="50" rows="6"><%=attr_desc%></textarea>

								</td>

							</tr>

							<tr>

								<td

									style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:12px;"

									align=right>

									是否有效:

								</td>

								<td

									style="background-color:#ffffff; color:#000000;  font-size:12px; padding:3px 5px;"

									align=left>

									<select name="enable_tag" id="enable_tag">

										<option value="0">

											有效

										</option>

										<option value="1">

											无效

										</option>

									</select>

								</td>

							</tr>

							<tr>

								<td

									style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:12px;"

									align=right>

									默认值:

								</td>

								<td

									style="background-color:#ffffff; color:#000000;  font-size:12px; padding:3px 5px;"

									align=left>

									<input name="default_value" id="default_value" type="text" size=5

										maxlength="10" onkeyup="if(isNaN(value))execCommand('undo')" value=<%=default_value%>>

								</td>

							</tr>

							<tr>

								<td

									style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:12px;"

									align=right>

									备注:

								</td>

								<td

									style="background-color:#ffffff; color:#000000;  font-size:12px; padding:3px 5px;"

									align=left>

									<input name="remark" id="remark" type="text" size=52

										maxlength="50" value="<%=remark%>" />

								</td>

							</tr>

							<input name="trade_type_code" type="hidden" value="1042"/>

							<tr>

								<td

									style="background-color:#ffffff; color:#000000;  font-size:12px; padding:3px 5px;"

									colspan=2 align="center">

									<INPUT name="advshow" type="checkbox" value="0"

										onclick="check_none(resumeForm)">

									以上资料正确无误。

								</td>

							</tr>

							<tr>

								<td

									style="background-color:#f6f6f6; color:#000000;  font-weight:bold; font-size:12px;padding-top:10px;padding-bottom:10px;"

									align="center" colspan=2>

									<input class="tjan" name="submit1" type="button" value="" disabled="true" onclick="confirmsub(resumeForm)">
&nbsp;&nbsp;
									<input class="qxan" name="cancel" type="button" value="" onclick="javascrip:window.close();">

								</td>

							</tr>

						</table>

					</td>

				</tr>

				<tr>

					<td height="13"></td>

				</tr>

			</table>

		</form>

	</body>

</html>

⌨️ 快捷键说明

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