zoukankan      html  css  js  c++  java
  • 软件需求---河北省重大需求进度报告08

    今日完成任务

    树的回显,分页查询

    遇到的问题

    重定向时候不能发送消息

    截图

    分页

    代码

    修改页面

    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ page import="xiao.bean.User" %><%--
      Created by IntelliJ IDEA.
      User: MACHENIKE
      Date: 2020/10/3
      Time: 7:57
      To change this template use File | Settings | File Templates.
    --%>
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <html>
    <head>
        <title>添加公司信息页面</title>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery,所以必须放在前边) -->
        <script src="${pageContext.request.contextPath}/bootstrap/js/jquery-3.3.1.js"></script>
        <link href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.min.css" rel="stylesheet">
        <link href="${pageContext.request.contextPath}/bootstrap/css/awesome-bootstrap-checkbox.css" rel="stylesheet">
        <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
        <script src="${pageContext.request.contextPath}/bootstrap/js/bootstrap.min.js"></script>
        <link rel="stylesheet" href="../css/zTreeStyle/zTreeStyle.css" type="text/css">
        <script type="text/javascript" src="../js/jquery-1.4.4.min.js"></script>
        <script type="text/javascript" src="../js/jquery.ztree.core.js"></script>
        <script type="text/javascript" src="../js/jquery.ztree.excheck.js"></script>
    </head>
    <body>
        <div class="alert alert-info">
            <table class="table table-bordered" style=" 100%;TABLE-LAYOUT: fixed; WORD-BREAK: break-all;" >
                <caption style="text-align: center"><h2 style="color: red;font-family: 楷体;font-weight: bold">河北省重大技术需求征集表</h2></caption>
                <tr align="left">
                    <td>*机构全称</td>
                    <td colspan="3"><input type="text" class="form-control" style=" 100%" id="compName" name="compName" placeholder="请输入单位全称" value="${orgName}" readonly></td>
                    <td>归口管理部门</td>
                    <td colspan="3"><input type="text" class="form-control" style=" 100%" id="management" name="management" value="${t.GKGLBM}" readonly></td>
                </tr>
                <tr align="left">
                    <td>*通讯地址</td>
                    <td colspan="3"><input type="text" class="form-control" style=" 100%" id="phoneAddress" name="phoneAddress" value="${t.phoneAddress}" readonly></td>
                    <td>*所在地域</td>
                    <td colspan="3">
                        <input type="text" class="form-control" style=" 100%" id="diyu" name="diyu" readonly>
                    </td>
                </tr>
                <tr align="left">
                    <td>网址</td>
                    <td colspan="3"><input type="text" class="form-control" style=" 100%" id="netAddress" name="netAddress" value="${t.netAddress}" readonly></td>
                    <td>*电子信箱</td>
                    <td colspan="3"><input type="text" class="form-control" style=" 100%" id="email" name="email" value="${t.email}" readonly></td>
                </tr>
                <tr align="left">
                    <td>*法人代表</td>
                    <td colspan="3"><input type="text" class="form-control" style=" 100%" id="legal" name="legal" value="${t.legal}" readonly></td>
                    <td>邮政编码</td>
                    <td colspan="3"><input type="number" class="form-control" style=" 100%" id="postCode" name="postCode" value="${t.postCode}" readonly></td>
                </tr>
                <tr align="left">
                    <td>*联系人</td>
                    <td colspan="3"><input type="text" class="form-control" style=" 100%" id="contact" name="contact" value="${t.contact}" readonly></td>
                    <td>固定电话</td>
                    <td colspan="3"><input type="number" class="form-control" style=" 100%" id="tell" name="tell" value="${t.tell}" readonly></td>
                </tr>
                <tr>
                    <td>*手机</td>
                    <td colspan="3"><input type="number" class="form-control" style=" 100%" id="mobile" name="mobile" value="${t.mobile}" readonly></td>
                    <td>传真</td>
                    <td colspan="3"><input type="text" class="form-control" style=" 100%" id="fax" name="fax" value="${t.fax}" readonly></td>
                </tr>
                <tr align="left">
                    <td>机构属性</td>
                    <td colspan="7">
                        <input type="text" class="form-control" name="type" id="type" readonly>
                    </td>
                </tr>
                <tr align="left">
                    <td colspan="8">
                        <textarea name="introduction" id="introduction" class="form-control" rows="16" readonly>${t.introduction}</textarea>
                    </td>
                </tr>
    
    
                <tr align="left">
                    <td>*技术需求名称</td>
                    <td colspan="7"><input type="text" class="form-control" style=" 100%" id="techName" name="techName" value="${t.name}" readonly></td>
                </tr>
                <tr align="left">
                    <td colspan="8">
                        <textarea name="summarization" id="summarization1" class="form-control" rows="12" readonly>
                            ${t.ZYWT}
                        </textarea>
                        <textarea name="summarization" id="summarization2" class="form-control" rows="12" readonly>
                            ${t.JSGJ}
                        </textarea>
                        <textarea name="summarization" id="summarization3" class="form-control" rows="12" readonly>
                            ${t.YQMB}
                        </textarea>
                    </td>
                </tr>
                <tr align="left">
                    <td>*关键字</td>
                    <td colspan="8"><input type="text" class="form-control" style=" 100%" id="keyWord" name="keyWord" value="${t.keyWord}" readonly></td>
                </tr>
                <tr align="left">
                    <td>资金需求总额</td>
                    <td colspan="7">
                        <input type="number" class="form-control" style="  100%" name="total" id="total" value="${t.total}" readonly>
                    </td>
                </tr>
                <tr align="left">
                    <td>*技术需求解决方式</td>
                    <td colspan="7">
                        <input type="text"  name="coomode" class="form-control" id="coomode" readonly>
                    </td>
                </tr>
    
                <tr>
                    <td>*起始年份:</td>
                    <td colspan="3"><input type="number" class="form-control" style=" 100%" name="start" id="start" value="${t.start}" readonly></td>
                    <td>*终止年份:</td>
                    <td colspan="3"><input type="number" class="form-control" style=" 100%" name="end" id="end" value="${t.end}" readonly></td>
                </tr>
                <tr align="left">
                    <td>*科技活动类型</td>
                    <td colspan="7">
                        <input type="text" class="form-control" id="research" name="research" readonly>
                    </td>
                </tr>
                <tr align="left" id="subject" style=" 100%">
                    <td>*学科分类</td>
                    <td colspan="7">
                        <input type="text" class="form-control" id="subject1" name="subject"  value="${t.subject}" readonly>
                    </td>
    
                </tr>
                <tr align="left" id="field" style=" 100%;display: none">
                    <td>*需求技术所属领域</td>
                    <td colspan="7">
                        <input type="text" class="form-control"  id="field1" name="field" value=" " readonly>
                    </td>
                </tr>
                <tr align="left" id="classification" style="  100%;display: none">
                    <td>*需求技术应用行业</td>
                    <td colspan="7">
                        <input type="text" class="form-control" id="classification1" name="classification" value="${t.classification}" readonly>
                    </td>
                </tr>
                <tr align="left" style="  100%">
                    <td>形式审核是否通过</td>
                    <td>
                        <c:if test="${t.XSSHTG==0}">
                            不通过
                        </c:if>
                        <c:if test="${t.XSSHTG==1}">
                            通过
                        </c:if>
                    </td>
                    <td>形式审核意见</td>
                    <td colspan="5">
                        <textarea class="form-control" rows="12"  readonly>${t.XSSHYJ}</textarea>
                    </td>
                </tr>
                <tr align="left" style="  100%">
                    <td>管理部门</td>
                    <td id="GLBM"></td>
                    <td>部门审核是否通过</td>
                    <td>
                        <c:if test="${t.BMSHTG==0}">
                            不通过
                        </c:if>
                        <c:if test="${t.BMSHTG==1}">
                            通过
                        </c:if>
                    </td>
                    <td>部门审核意见</td>
                    <td colspan="3">
                        <textarea class="form-control" rows="12" readonly>${t.BMSHYJ}</textarea>
                    </td>
                </tr>
            </table>
        </div>
    </body>
    <script type="text/javascript">
        $(function () {
            // 获取所有的地域
            $.ajax({
                url:"${pageContext.request.contextPath}/getAllRegion",
                method:"post",
                async:true,
                error:function(){
                    alert("请求失败")
                },
                success:function(data){
                    for(let i=0;i<data.length;i++){
                        if(data[i].id==${t.diyu}){
                            $("#diyu").val(data[i].name);
                        }
                    }
                },
                dataType:"json"
            });
            // 回写属性
            if (${t.type==1}){
                $("#type").val("企业");
            }else if (${t.type==2}){
                $("#type").val("高等院校");
            }else if (${t.type==3}){
                $("#type").val("研究机构");
            }else if (${t.type==4}){
                $("#type").val("其它");
            }
    
            //回写技术需求解决方式
            if (${t.coomode==1}){
                $("#coomode").val("独立研发");
            }else if (${t.coomode==2}){
                $("#coomode").val("委托研发");
            }else if (${t.coomode==3}){
                $("#coomode").val("合作研发");
            }else if (${t.coomode==4}){
                $("#coomode").val("其它");
            }
            //回写科技活动类型
            if (${t.research==1}){
                $("#research").val("基础研究");
            }else if (${t.research==2}){
                $("#research").val("应用研究");
            }else if (${t.research==3}){
                $("#research").val("试验发展");
            }else if (${t.research==4}){
                $("#research").val("研究发展与成果应用");
            }else if (${t.research==5}){
                $("#research").val("技术推广与科技服务");
            }else if (${t.research==6}){
                $("#research").val("生产性活动");
            }
    
            if (${t.research==1}){
                document.getElementById("subject").style.display="table-row";
                document.getElementById("classification").style.display="none";
                document.getElementById("field").style.display="none";
            }else {
                document.getElementById("subject").style.display="none";
                document.getElementById("classification").style.display="table-row";
                document.getElementById("field").style.display="table-row";
                let field = "${t.field}";
                let strs = field.split(" ");
                // 获取所有的领域
                $.ajax({
                    url:"${pageContext.request.contextPath}/getAllField",
                    method:"post",
                    async:true,
                    error:function(){
                        alert("领域请求失败")
                    },
                    success:function(data){
                        for (let j=0;j<strs.length;j++){
                            for(let i=0;i<data.length;i++){
                                if(data[i].id==parseInt(strs[j])){
                                    var text = document.getElementById("field1").value+data[i].name+";";
                                    document.getElementById("field1").value = text;
                                }
                            }
                        }
    
                    },
                    dataType:"json"
                });
            }
            // 回写管理部门
            if (${not empty t.GLBM}){
                // 获得所有的管理部门
                $.ajax({
                    url:"${pageContext.request.contextPath}/getAllManagement",
                    method:"post",
                    async:true,
                    error:function(){
                        alert("部门请求失败");
                    },
                    success:function(data){
                        for(let i=0;i<data.length;i++){
                            let a = ${t.GLBM}
                            if(a==data[i].id){
                                $("#GLBM").text(data[i].name);
                            }
                        }
    
                    },
                    dataType:"json"
                });
            }
    
        });
    </script>
    </html>
    
  • 相关阅读:
    SQL Server 阻止了对组件 'Ole Automation Procedures' 的 过程'sys.sp_OACreate' 的访问
    谷歌浏览器扩展程序manifest.json参数详解
    获取天气api
    UVA 10385 Duathlon
    UVA 10668 Expanding Rods
    UVALIVE 3891 The Teacher's Side of Math
    UVA 11149 Power of Matrix
    UVA 10655 Contemplation! Algebra
    UVA 11210 Chinese Mahjong
    UVA 11384 Help is needed for Dexter
  • 原文地址:https://www.cnblogs.com/yangxiao-/p/13888082.html
Copyright © 2011-2022 走看看