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

📄 form_column_edit_frame.jsp

📁 java开发的办公系统 1.系统管理 (地区管理,部门管理,菜单管理,用户管理,角色管理,权限) 2.工作流管理 (流程类别,流程) 3.字典管理 (国家,省份,城市,公共数据字典) 4.项目
💻 JSP
📖 第 1 页 / 共 2 页
字号:
							out.println("<option value='" + Constants.T_FORM_FIELD_VALIDATE[i] + "' selected>" + Constants.T_FORM_FIELD_VALIDATE_NAME[i] + "</option>");
						else
							out.println("<option value='" + Constants.T_FORM_FIELD_VALIDATE[i] + "' >" + Constants.T_FORM_FIELD_VALIDATE_NAME[i] + "</option>");
					}
				%>
            </select>
            <input style="display:none;" name="field_validate_button"  onClick="field_validate_button_change()"  id="field_validate_button" type="button" class="button" value="设置">
            <script language="javascript">
			function field_validate_change(obj)
			{
				var form=form1;
				//如果是类别隐藏添加列按钮,否则显示
				if(obj.options[obj.selectedIndex].value=='custom')
				{
					document.all("field_validate_button").style.display="";
				}
				else
				{
					document.all("field_validate_button").style.display="none";
				}
			}
			function field_validate_button_change()
			{
					document.all("field_validate_button_div").style.display="";
			}
		    </script>
            <div id="field_validate_button_div" style="display:none; position:absolute; z-index:1000px;LEFT: 5px; TOP: 20px;">
              <div style="text-align:right"><a href="javascript:closediv('field_validate_button_div')"><font class="close">关闭</font></a></div>
              <iframe style="position:absolute; visibility:inherit; top:0px; left:0px; width:380px; height:400px; z-index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';"></iframe>
              <div>
                <textarea name="javascript" cols="50" rows="20" id="textarea"><%=item.getJavascript()%></textarea>
              </div>
            </div></td>
        </tr>
        
        <tr >
          <td > 查  询:  
            <input type="checkbox" name="is_query" value="1"  <% if(item.getIs_query().equals("1")) out.print("checked"); %> ></td>
          <td >显  示:
            <input type="checkbox" name="is_show" value="2"  <% if(item.getIs_show().equals("2")) out.print("checked"); %> ></td>
        </tr>
		<tr >
          <td >控件类型:
            <select name="com_type"  onChange="com_type_change(this)"  id="com_type" style="width:100px;">
              <%
					for(int i=0;i<Constants.T_FORM_COM_TYPE.length;i++){
						if(item.getCom_type().equals(Constants.T_FORM_COM_TYPE[i]))
							out.println("<option value='" + Constants.T_FORM_COM_TYPE[i] + "' selected>" + Constants.T_FORM_COM_TYPE_NAME[i] + "</option>");
						else
							out.println("<option value='" + Constants.T_FORM_COM_TYPE[i] + "' >" + Constants.T_FORM_COM_TYPE_NAME[i] + "</option>");
					}
				%>
            </select>
			<script language="javascript">
			function com_type_change(obj)
			{
				var form=form1;
				
				if(obj.options[obj.selectedIndex].value=='text')
				{
					document.all("com_width").value="120";
					document.all("com_height").value="21";
				}
				if(obj.options[obj.selectedIndex].value=='textarea')
				{
					document.all("com_width").value="70";
					document.all("com_height").value="10";
				}
				if(obj.options[obj.selectedIndex].value=='editor')
				{
					document.all("com_width").value="0";
					document.all("com_height").value="300";
				}
				if(obj.options[obj.selectedIndex].value=='file')
				{
					document.all("com_width").value="360";
					document.all("com_height").value="21";
				}
				if(obj.options[obj.selectedIndex].value=='files')
				{
					document.all("com_width").value="70";
					document.all("com_height").value="5";
				}
				if(obj.options[obj.selectedIndex].value=='calendar')
				{
					document.all("com_width").value="80";
					document.all("com_height").value="21";
				}
				if(obj.options[obj.selectedIndex].value=='password')
				{
					document.all("com_width").value="120";
					document.all("com_height").value="21";
				}
				if(obj.options[obj.selectedIndex].value=='dropdownlist')
				{
					document.all("com_width").value="0";
					document.all("com_height").value="0";
				}
				if(obj.options[obj.selectedIndex].value=='radio')
				{
					document.all("com_width").value="0";
					document.all("com_height").value="0";
				}
				if(obj.options[obj.selectedIndex].value=='checkbox')
				{
					document.all("com_width").value="0";
					document.all("com_height").value="0";
				}
				
			}
		
		    </script>
			</td>
          <td >&nbsp;</td>
        </tr>
        <tr >
          <td >控件宽度:
            <input name="com_width" type="text" id="com_width"  style="width:100px;" value="<%=item.getCom_width()%>" maxlength="4"></td>
          <td >控件高度:
            <input name="com_height" type="text" id="com_height" style="width:100px;" value="<%=item.getCom_height()%>" maxlength="3"></td>
        </tr>
        
        <tr >
          <td >取值类型:
            <select name="get_value_type" id="get_value_type"  style="width:100px;" onChange="get_value_type_change(this)" >
              <%
					for(int i=0;i<Constants.T_FORM_GET_VALUE_TYPE.length;i++){
						if(item.getGet_value_type().equals(Integer.toString(i)))
							out.println("<option value=" + i+ " selected>" + Constants.T_FORM_GET_VALUE_TYPE[i] + "</option>");
						else
							out.println("<option value=" +i + " >" + Constants.T_FORM_GET_VALUE_TYPE[i] + "</option>");
					}
				%>
            </select>
			<script language="javascript">
			function get_value_type_change(obj)
			{
				var form=form1;
				//固定字典
				if(obj.options[obj.selectedIndex].value==1)
				{
					document.all("fix_div").style.display="";
				}
				else
				{
					document.all("fix_div").style.display="none";
				}
				//从表取值
				if(obj.options[obj.selectedIndex].value==2)
				{
					document.all("table_div").style.display="";
				}
				else
				{
					document.all("table_div").style.display="none";
				}
				//自动生成
				if(obj.options[obj.selectedIndex].value==3)
				{
					document.all("auto_value_div").style.display="";
				}
				else
				{
					document.all("auto_value_div").style.display="none";
				}
				//计算字段
				if(obj.options[obj.selectedIndex].value==4)
				{
					document.all("formula_div").style.display="";
				}
				else
				{
					document.all("formula_div").style.display="none";
				}
			}
			
		    </script>			</td>
          <td >&nbsp;</td>
        </tr>
        <tr >
          <td colspan="2" >
		  <div id="fix_div"  style="display:none;" >字典代码:
            <input type="text" name="fix_value" style=" width:50px;" value="<%=item.getFix_value()%>">
          </div>
		  <div id="table_div"  style="display:none;" >取 值 表:
            <select name="fix_table" id="fix_table" onChange="get_table_column(this)"   style="width:120px;">
			<option value=""></option>
            <%
				Form_tableBean form_tableBean=new Form_tableBean();
				List form_tableList=form_tableBean.findDadabaseTable();
				for(int i=0;i<form_tableList.size();i++)
				{
					String tablename=form_tableList.get(i).toString();
					if(tablename.equals(item.getFix_table()))
						out.println("<option selected value='"+tablename+"'>"+tablename+"</option>");
					else
						out.println("<option value='"+tablename+"'>"+tablename+"</option>");
				}
			%>
			</select>
            取值列值:
		  <select name="fix_column_value" id="fix_column_value"  style="width:120px;">
		  	<% 
				out.println("<option selected value='"+item.getFix_column_value()+"'>"+item.getFix_column_value()+"</option>"); 
			%>
		  </select>
          </div>
		   <div id="auto_value_div"  style="display:none;" >生成来源:
            <select name="auto_value" id="auto_value"   style="width:120px;">
            <%
				for(int i=0;i<Constants.T_FORM_AUTO_VALUE.length;i++){
					if(item.getAuto_value().equals(Integer.toString(i)))
						out.println("<option value=" + i+ " selected>" + Constants.T_FORM_AUTO_VALUE[i] + "</option>");
					else
						out.println("<option value=" +i + " >" + Constants.T_FORM_AUTO_VALUE[i] + "</option>");
				}
			%>    
			</select>
          </div>
		  <div id="formula_div"  style="display:none;" >
           	            <input  name="row_button"  onClick="row_button_change()"  id="row_button" type="button" class="button" value="设置行公式"> 
						<input  name="column_button"  onClick="column_button_change()"  id="column_button" type="button" class="button" value="设置列公式">
          </div>
		  <script language="javascript">
			
			
			function row_button_change()
			{
					document.all("row_button_div").style.display="";
			}
			function column_button_change()
			{
					document.all("column_button_div").style.display="";
			}
		    </script>
            <div id="row_button_div" style="display:none; position:absolute; z-index:1000px;LEFT: 5px; TOP: 20px;">
              <div style="text-align:right"><a href="javascript:closediv('row_button_div')"><font class="close">关闭</font></a></div>
			  <iframe style="position:absolute; visibility:inherit; top:0px; left:0px; width:380px; height:400px; z-index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';"></iframe>
              <div><textarea name="row_formula" cols="50" rows="20" id="javascript"><%=item.getRow_formula()%></textarea></div>
            </div>
			 <div id="column_button_div" style="display:none; position:absolute; z-index:1000px;LEFT: 5px; TOP: 20px;">
              <div style="text-align:right"><a href="javascript:closediv('column_button_div')"><font class="close">关闭</font></a></div>
			  <iframe style="position:absolute; visibility:inherit; top:0px; left:0px; width:380px; height:400px; z-index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';"></iframe>
              <div><textarea name="column_formula" cols="50" rows="20" id="javascript"><%=item.getColumn_formula()%></textarea></div>
            </div>		  </td>
          </tr>
		  <tr >
          <td >对  齐:
            <select name="direct_type" id="direct_type"  style="width:100px; ">
              <%
					for(int i=0;i<Constants.T_FORM_DIRECT_TYPE.length;i++){
						if(item.getDirect_type().equals(Constants.T_FORM_DIRECT_TYPE[i]))
							out.println("<option value='" + Constants.T_FORM_DIRECT_TYPE[i] + "' selected>" + Constants.T_FORM_DIRECT_TYPE_NAME[i] + "</option>");
						else
							out.println("<option value='" + Constants.T_FORM_DIRECT_TYPE[i] + "' >" + Constants.T_FORM_DIRECT_TYPE_NAME[i] + "</option>");
					}
				%>
            </select></td>
          <td >编辑类型:
            <select name="edit_type" id="edit_type"  style="width:100px; " >
              <%
					for(int i=0;i<Constants.T_FORM_EDIT_TYPE.length;i++){
						if(item.getEdit_type().equals(Integer.toString(i)))
							out.println("<option value=" + i + " selected>" + Constants.T_FORM_EDIT_TYPE[i] + "</option>");
						else
							out.println("<option value=" + i + " >" + Constants.T_FORM_EDIT_TYPE[i] + "</option>");
					}
				%>
            </select></td>
        </tr>
        <tr >
          <td colspan="2" align="center" ><input name="Button" type="button" class="button" onClick="Check()" value="修改"></td>
          </tr>
        <tr >
          <td >&nbsp;</td>
          <td >&nbsp;</td>
        </tr>
        <tr >
        <td >&nbsp;</td>
        <td >&nbsp;</td>
      </tr>
      



    </table></td>
  </tr>
</table>
<input type="hidden" name="status" >
<input type="hidden" name="message" >
</form>
</body>
</html>

⌨️ 快捷键说明

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