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

📄 object_editor.jsp

📁 Jbuilder2006开发的严格按MVC设计模式组织开发过程
💻 JSP
📖 第 1 页 / 共 2 页
字号:
  for(var i=1;i<tbl.rows.length;i++){
    tbl.rows[i].cells[0].innerHTML=i;
  }
}

function generatorModuleCode(){

}
</script>
  </head>
  <body>
  <p>
  <table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>
      <td width="70%" nowrap class="location">您的位置:持久化对象摘要编辑</td>
    </tr>
  </table>
  <span style="cursor:hand;" onclick="cancel_loadingDIV()">
    <div id="loading_div" style="z-Index:1000;overflow:auto;height:105;background:#eeeeee;border:solid 1px #666666;;position:absolute;width:380;filter:progid:dximagetransform.microsoft.dropshadow(color=#cccccc);padding:10px;display:none">
      <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
          <td height="80" align="center" width="99%">
          <center>
          数据处理中,请稍等...
          <marquee direction="right" scrollamount="9" scrolldelay="80">
            <span style="filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1,StartColorStr='#FFFFFF', EndColorStr='#7491DC')"></span>
            <span style="filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1,StartColorStr='#7491DC',EndColorStr='#FFFFFF')"></span>
          </marquee>
          </center>
          </td>
        </tr>
      </table>
    </div>
  </span>
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="7%" id="save" align="center" valign="middle" nowrap class="toolbar" onMouseOver="OMO()" onMouseOut="OMOU()" onClick="doSave()">
        <img src="<%=request.getContextPath()%>/_normal/toolbar_pic/page_save.gif" alt="保存">
        保存
      </td>
      <td width="1%" align="center" valign="middle" nowrap class="toolbar">|</td>
      <td width="7%" id="addNew" align="center" valign="middle" nowrap class="toolbar" onMouseOver="OMO()" onMouseOut="OMOU()" onClick="addNew()">
        <img src="<%=request.getContextPath()%>/_normal/toolbar_pic/page_add.gif" alt="增加字段">
        增加字段
      </td>
      <td width="1%" align="center" valign="middle" nowrap class="toolbar">|</td>
      <td width="7%" id="addNew" align="center" valign="middle" nowrap class="toolbar" onMouseOver="OMO()" onMouseOut="OMOU()" onClick="generatorModuleCode()">
      <%
       String webParam1="";
       com.tops.j2ee.object.model.ActfrmTopsJ2eeObj curObj=(com.tops.j2ee.object.model.ActfrmTopsJ2eeObj)request.getAttribute("actfrmTopsJ2eeObj");
       if(curObj.getId()!=null){
         java.util.List curFieldList=curObj.getFields();
         for(int mi=0;mi<curFieldList.size();mi++){
           com.tops.j2ee.object.model.ActfrmTopsJ2eeObjField curField=
           (com.tops.j2ee.object.model.ActfrmTopsJ2eeObjField)curFieldList.get(mi);
           if(curObj.getId().equals(curField.getRefObjId())){
             webParam1=curField.getFieldCode();
             break;
           }
         }
       }
       if(!webParam1.equals("")){
         out.println("<input checked type=\"checkbox\" name=\"isTreeObj\" style=\"cursor:hand;border:0\""
                    +" onclick=\"if(document.all.isTreeObj.checked) "
                    +"  document.all.ButtonJ2EECodeGeneratorXControl1.webParam1='"+webParam1+"'; else "
                    +"  document.all.ButtonJ2EECodeGeneratorXControl1.webParam1=''; alert('ddd');\" title=\"树形结构\"/>树形结构");
       }
    %>
        <OBJECT
  ID="ButtonJ2EECodeGeneratorXControl1" CLASSID="CLSID:4E6EB30D-B445-4B02-8F95-4F3E170EBCE6" CODEBASE="<%=request.getContextPath()%>/ocx/ButtonJ2EECodeGeneratorXControl1.ocx">
    <param name="Caption" value="代码生成"/>
    <param name="webMethod" value="model"/>
    <param name="webObjId" value="<bean:write name="actfrmTopsJ2eeObj" property="id"/>"/>

    <param name="webParam1" value="<%=webParam1%>"/>
    <param name="webParam2" value="<bean:write name="actfrmTopsJ2eeObj" property="javaPackage"/>.<bean:write name="actfrmTopsJ2eeObj" property="javaClassName"/>"/>
    <param name="webParam3" value="<bean:write name="actfrmTopsJ2eeObj" property="javaPackage"/>.<bean:write name="actfrmTopsJ2eeObj" property="daoClassName"/>"/>
    <%
      String webParam5="http://"+request.getLocalAddr()+":"+request.getLocalPort();
      if(request.getContextPath()!=null&&!request.getContextPath().trim().equals(""))
         webParam5=webParam5+request.getContextPath();
    %>
    <param name="webParam5" value="<%=webParam5%>"/>
   </OBJECT>
      </td>
      <td width="1%" align="center" valign="middle" nowrap class="toolbar">|</td>
      <td width="7%" align="center" valign="middle" nowrap class="toolbar" onMouseOver="OMO()" onMouseOut="OMOU()" onClick="javascript:history.go(-1)">
        <img src="<%=request.getContextPath()%>/_normal/toolbar_pic/arrow_undo.gif" alt="返回">
        返回
      </td>
      <td width="74%" align="center" valign="middle" nowrap class="toolbar">      </td>
    </tr>
  </table>
  <html:form action="/actTopsJ2eeObj" method="POST">
  <tops:requestUUID/>

    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr>
        <td width="100%" align="center">
          <table border="0" cellpadding="0" cellspacing="1" width="90%">
            <html:hidden property="id"/>
            <tr>
              <td align="center" width="20%">数据库表名</td>
              <td width="30%">
                <html:text property="objCode" readonly="false" style="width:100%" styleClass="inputBackGround"/>
              </td>
              <td align="center" width="20%">对象名称</td>
              <td width="30%">
                <html:text property="objName" readonly="false" style="width:100%" styleClass="inputBackGround"/>
              </td>
            </tr>
            <tr>
              <td align="center">类名</td>
              <td >
                <html:text property="javaClassName" readonly="true" style="width:100%" styleClass="inputBackGround"/>
              </td>
              <td align="center">Struts-config中Bean名称</td>
              <td >
                <html:text property="beanName" readonly="true" style="width:100%" styleClass="inputBackGround"/>
              </td>
            </tr>
            <tr>
              <td align="center">是否支持软删除</td>
              <td>
                <html:select property="isSoftDelete" styleClass="inputBackGround">
                <html:option value="否">否
                </html:option>
                <html:option value="是">是
                </html:option>
                </html:select>
              </td>
              <td align="center">是否写入Struts-Config文件</td>
              <td>
                <html:select property="inStrutsConfig" styleClass="inputBackGround">
                <html:option value="是">是
                </html:option>
                <html:option value="否">否
                </html:option>
                </html:select>
              </td>
            </tr>
            <tr>
              <td align="center">是否支持多状态</td>
              <td>
                <html:select property="hasMutilState" styleClass="inputBackGround">
                <html:option value="否">否
                </html:option>
                <html:option value="是">是
                </html:option>
                </html:select>
              </td>
              <td align="center">是否保存状态转换日志</td>
              <td>
                <html:select property="hasStateLogTable" styleClass="inputBackGround">
                <html:option value="否">否
                </html:option>
                <html:option value="是">是
                </html:option>
                </html:select>
              </td>
            </tr>
            <tr>
              <td align="center">类所在包名</td>
              <td colspan="3">
                <html:text property="javaPackage" readonly="false" style="width:100%" styleClass="inputBackGround" onkeyup="searchSuggest(this)"/>
                <div id="search_suggest" style="z-Index:1000;overflow:auto;background:#ffffff;border:solid 1px #666666;;position:absolute;width:450;height:200;filter:progid:dximagetransform.microsoft.dropshadow(color=#cccccc);padding:1px;display:none"></div>
              </td>
            </tr>
            <tr>
              <td align="center">数据访问类名</td>
              <td colspan="3">
                <html:text property="daoClassName" readonly="true" style="width:100%" styleClass="inputBackGround"/>
              </td>
            </tr>
            <tr>
              <td align="center">数据表创建时间</td>
              <td>
                <html:text property="fd_ZzCreateDate" readonly="true" style="width:100%" styleClass="inputBackGround"/>
              </td>
              <td align="center">数据表创建人</td>
              <td>
                <html:text property="zzCreateUser" readonly="true" style="width:100%" styleClass="inputBackGround"/>
              </td>
            </tr>
            <tr>
            <td align="center">备注</td>
            <td colspan="3">
            <html:textarea property="remark" rows="4" style="width:100%" styleClass="inputBackGround">
            </html:textarea>
            </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
    <html:hidden property="objGroupId"/>
    <html:hidden property="logClassName"/>
    <html:hidden property="logDaoClassName"/>
    <html:hidden property="dbViewId"/>
    <html:hidden property="viewJavaClassName"/>
    <html:hidden property="viewDaoClassName"/>
    <html:hidden property="zzCurState"/>
    <html:hidden property="fd_ZzCurStateSetDate"/>
    <html:hidden property="zzRemoveUser"/>
    <html:hidden property="fd_ZzRemoveDate"/>
    <html:hidden property="recentModifyUser"/>
    <html:hidden property="fd_RecentModifyDate"/>
    <html:hidden property="method"/>
    <hr />
    <br />
     <table border="0" cellpadding="0" cellspacing="1" width="98%" id="fieldList_tbl">
       <tr align="center">
         <td class="subTitle" width="5%">序号</td>
         <td class="subTitle" width="15%">属性名称</td>
         <td class="subTitle" width="10%">代码</td>
         <td class="subTitle" width="10%">数据类型</td>
         <td class="subTitle" width="8%">数据长度</td>
         <td class="subTitle" width="4%">必填</td>
         <td class="subTitle" width="7%">默认值</td>
         <td class="subTitle" width="4%">唯一</td>
         <td class="subTitle" width="9%">字段生成时间</td>

         <td class="subTitle" width="8%">删除</td>
         <td class="subTitle" width="20%">操作</td>
       </tr>
       <logic:notEmpty name="actfrmTopsJ2eeObj" property="fields" scope="request">
         <logic:iterate id="field" name="actfrmTopsJ2eeObj" property="fields" indexId="index">
           <tr align="center">
             <td height="20"><%=index.intValue()+1%></td>
             <td><bean:write name="field" property="fieldName"/><input type="hidden" value="<bean:write name="field" property="id"/>"></td>
             <td><html:link action="/actTopsJ2eeObjField.do?method=modify" paramId="id" paramName="field" paramProperty="id"><bean:write name="field" property="fieldCode"/></html:link></td>
             <td><bean:write name="field" property="fieldType"/></td>
             <td><bean:write name="field" property="fieldLen"/></td>
             <td><bean:write name="field" property="fieldRequired"/></td>
             <td><bean:write name="field" property="defaultVal"/></td>
             <td><bean:write name="field" property="isUnique"/></td>
             <td><bean:write name="field" property="sd_CodeGenDate"/></td>
             <td><a onclick="deleteField(this,'<bean:write name="field" property="id"/>')" style="cursor:hand" title="删除属性">删除</a></td>
             <td><a onclick="up(this)" style="cursor:hand" title="向上移动">[向上]</a><a onclick="down(this)" style="cursor:hand" title="向下移动">[向下]</a></td>
           </tr>
         </logic:iterate>
       </logic:notEmpty>
       <logic:empty name="actfrmTopsJ2eeObj" property="fields" scope="request">
         <tr>
           <td align="center" height="20" colspan="11">没有属性定义</td>
         </tr>
       </logic:empty>
     </table>
     <input type="hidden" name="tempStr" id="tempStr" value=""/>
  </html:form>
  </body>
</html:html>

⌨️ 快捷键说明

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