<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="java.util.*" %>
<%@ page import="net.sz600.basicdata.*" %>
<%@ page import="net.sz600.tool.SzConvert" %>
<%@ page import="net.sz600.tool.SzDateHelp" %>
<%@ page import="net.sz600.system.*" %>
<%@ page import="net.sz600.formEngine.*" %>
<%@ page import="net.sz600.formEngine2.*" %>
<%@ page import="net.sz600.formCreate.*" %>
<%@ include file="/xml/formEngine2/sessionInfo2.jsp"%>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<%=strSkin_SESSION%>/css2007.css" rel="stylesheet" type="text/css">
</head>
<%
    //获取提交的参数
    String name = SzConvert.toSpaceStr(request.getParameter("name"));
    String readonly = "";
    String sOPERATOR = SzConvert.toSpaceStr(request.getParameter("OPERATOR"));
	  BdJsFunc bdJsFunc = new BdJsFunc();
    String str[] = bdJsFunc.getInfo(name);
    
		if (sOPERATOR.equals("add")) {

		} else if (sOPERATOR.equals("update")) {

		}
   	
%>
<body>

<!-----上面的工具栏------>
<form name="formUpdate" method="post">
  <input type="hidden" name="OPERATOR" value="<%=sOPERATOR%>">
<%@ include file="/xml/formEngine2/title.jsp"%>
<table width="100%">
  <tr>
    <td>
      <%=SzPageHelp.saveButton()%>
      <%=SzPageHelp.backButton()%>
    </td>
  </tr>
</table>

<!-----信息维护------>
<table width="750" border="1" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" class="tableClass" cellpadding="3" cellspacing="0">
  <tr>
    <td class="tdClassTitle">名称</td>
    <td><input type="text" name="name" value="<%=str[0]%>" size="10" <%if (sOPERATOR.equals("update")){%> readonly class="txtClass1R"<%}else {%>class="txtClass1"<%} %>><font color="red">*</font>(可用字母、数字、下划线的组合，10个字以内) </td>
  </tr>
  <tr>
    <td class="tdClassTitle">中文名称</td>
    <td><input type="text" name="desc" class="txtClass2" value="<%=str[1]%>"><font color="red">*</font></td>
  </tr> 
  <tr>
    <td class="tdClassTitle">函数调用模板</td>
    <td><input type="text" name="funcCallTemp" class="txtClass2" value="<%=str[3]%>"><font color="red">*</font></td>
  </tr>  
  <tr>
    <td class="tdClassTitle">函数名称</td>
    <td><input type="text" name="funcName" class="txtClass2" value="<%=str[2]%>"><font color="red">*</font></td>
  </tr>   
  <tr>
    <td class="tdClassTitle">函数功能说明</td>
    <td><input type="text" name="funcDesc" class="txtClass2" value="<%=str[4]%>"></td>
  </tr>
  <tr>
    <td class="tdClassTitle">函数内容</td>
    <td>请到share/js/formTool.js增加对应的函数</td>
  </tr>  
</table>

</form>

<!-----这里包含要提交的内容--->
<form name="formHidden" method="post">
</form>
<script language="javascript" src="../../../share/js/commonTool.js"></script>
<script language="javascript" src="../../../share/js/selectTool.js"></script>
<script language="javascript">

  function FormSave(formName, url) {
    if (!notSpace(formName.name, "名称")) {
      return false;
    }  
    if (!notSpace(formName.desc, "中文名称")) {
      return false;
    } 
    if (!notSpace(formName.funcName, "函数名称")) {
      return false;
    }           
    if (!notSpace(formName.funcCallTemp, "函数调用模板")) {
      return false;
    }    
    formName.action = "control.jsp";
    formName.submit();
  }
 
   function SelectWin(vType,  vObject, vTableObject, vModuleNameObject, vFormNameObject) {

    var moduleName1 = formUpdate.moduleName1.value;
    var formName1 = formUpdate.formName1.value;
    var moduleName2 = formUpdate.moduleName2.value;
    var formName2 = formUpdate.formName2.value;    
    
    var url = "../field_select.jsp?type=" + vType + "&object=" + vObject + "&tableobject=" + vTableObject
            + "&moduleName1=" + moduleName1 + "&formName1=" + formName1
            + "&moduleName2=" + moduleName2 + "&formName2=" + formName2
            + "&moduleNameObject=" + vModuleNameObject + "&formNameObject=" + vFormNameObject;
    window.showModalDialog(url,window,"status=no;dialogWidth=300px;dialogHeight=370px");  
  } 

</script>
</body>
