123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- <%@page contentType="text/html" pageEncoding="UTF-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title></title>
- <%@include file="../../../../include.jsp" %>
- <!--引用资源文件,JS CSS-->
- <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/business/he/common/common.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
- <link href="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.css" rel="stylesheet" type="text/css" />
- <link href="/nwyj/scripts/qui/libs/skins/flatBlue/style1.css"
- rel="stylesheet" type="text/css" id="theme" themeColor="flatBlue"
- positionTarget="positionContent" selInputHeight="32"
- selButtonWidth="35" defaultSelWidth="200" fileBtnWidth="60"
- defaultFileInputWidth="200" defaultGridHeaderHeight="34"
- defaultGridRowHeight="38" defaultFontSize="12" defaultPageSelWidth="55"
- defaultFilterItemHeight="32" dialogWidthFix="0"
- defaultSelItemHeight="32" defaultFontFamily="宋体" />
-
- <script type="text/javascript" src="<%=path%>/scripts/business/em/evaluate/score/Score_addEdit.js"></script>
- <script type="text/javascript">
- var fd_id = "<%=request.getParameter("fd_id")%>";
- $(function(){
- //取得用户真实名字
- var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
- //部门id
- var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- //部门名称
- var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_names();
- //父部门id
- var parentId = getCorpParentId(deptId);
-
- //页面初始化
- $(function(){
- if(fd_id.length>0 ){//修改表单
- $(".titleShow").text("修改评估");
- $("#editReset").show();
- $("#editSave").show();
- //评价单位
- var deptUrl = $.pathname() + '/ws/dept/DeptService/getDepartTree';
- $.post(deptUrl,{id:parentId,name:''},function(data){
- $("#COMPANY_ID_375").data("data",data);
- $("#COMPANY_ID_375").render();
- }, "json");
- //评价体系
- var trunkUrl = $.pathname() + '/ws/targetManage/TargetManageService/getTrunkAllTree';
- $.post(trunkUrl,{id:parentId,name:'',dept:'CORP'},function(data){
- $("#TRUNK_ID_375").data("data",data);
- $("#TRUNK_ID_375").render();
- }, "json");
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '375',
- objectID : fd_id
- };
- $.request.query(url,params,function(data){
- $('#editForm').ajaxWrite({data:data});
- $('#editForm input[name="classid"]').val('375');
- });
- }else{//新增
- $(".titleShow").text("新增评估");
- $("#addReset").show();
- $("#addSave").show();
-
- //填报人
- $("#WRITER_375").val(realName);
- //填报部门
- //$("#WRITE_DEPT_375").val(deptId);//15CC8A55C3DE0ED0E0530113960A6CC1
- $("#WRITE_DEPT_375").val(deptName);//广电信息中心
- //填报时间
- $("#WRITE_TIME_375").val(getDateTime());
- //评价单位
- var deptUrl = $.pathname() + '/ws/dept/DeptService/getDepartTree';
- $.post(deptUrl,{id:parentId,name:'',dept:'1'},function(data){
- $("#COMPANY_ID_375").data("data",data);
- $("#COMPANY_ID_375").render();
- }, "json");
- //$("#DEPT_375").initYewuSelect("800","Dept_Id","DEPT_NAME");
- //评价体系
- //$("#TRUNKLD_375").initYewuSelect("372","FD_OBJECTID","NAME","is_del=0");
- var trunkUrl = $.pathname() + '/ws/targetManage/TargetManageService/getTrunkAllTree';
- $.post(trunkUrl,{id:parentId,name:''},function(data){
- $("#TRUNK_ID_375").data("data",data);
- $("#TRUNK_ID_375").render();
- }, "json");
- //状态(0未完成/1已完成)
- $("#STATUS_375").val(0);
- }
- });
-
- });
- //获得当前系统时间
- function getDateTime(){
- var s="";
- var d = allGetServerTime();
- var vYear = d.getFullYear();
- var vMon = d.getMonth() + 1;
- var vDay = d.getDate();
- var h = d.getHours();
- var m = d.getMinutes();
- var se = d.getSeconds();
- s=vYear+"-"+(vMon<10 ? "0" + vMon : vMon)+"-"+(vDay<10 ? "0"+ vDay : vDay)+" "+(h<10 ? "0"+ h : h)+":"+(m<10 ? "0" + m : m)+":"+(se<10 ? "0" +se : se);
- return s;
- }
- function formReset(){//新增重置方法
- document.getElementById("editForm").reset();
- $("#NAME_375").resetValue();//评价名称
- $("#TRUNKLD_375").resetValue();//评价体系
- $("#DEPT_375").resetValue();//评价单位
- }
- function getCorpParentId(corpId){
- var parentId = corpId;
- $.ajax({
- url : $.pathname() + '/ws/crud/CRUDService/getParentCorpIdByCorpid/',
- type : 'post',
- timeout : 15000,
- data : {corpId:corpId},
- dataType : 'text',
- async:false,
- success : function(data) {
- parentId = data;
- },
- error : function(e) {
- $.messager.alert('访问服务失败!');
- }
- });
- return parentId;
- }
- </script>
- </head>
- <body>
- <div class="box1" id="formContent" style="border: 1px solid #E4E4E4;background: #F8F8F8;">
- <div style="height: 50px;background: #F8F8F8;" align="center"><a href="javascript:;"><img id="back" align="left" alt="返回" title="返回" src="/nwyj/images/temp/back.png" /></a><font style="font-weight: bold;font-size: 20px;line-height: 45px;" class="titleShow"></font></div>
- <form id="editForm" method="post" >
- <input name="classid" value="375" type="hidden"/>
- <input type="hidden" name="FD_OBJECTID375" id="FD_OBJECTID375" value=""/>
- <input id="STATUS_375" name="STATUS_375" value="0" type="hidden"/>
- <input id="WRITER_375" name="WRITER_375" type="hidden"/>
- <input id="WRITE_DEPT_375" name="WRITE_DEPT_375" type="hidden"/>
- <input id="WRITE_TIME_375" name="WRITE_TIME_375" type="hidden"/>
- <input id="TRUNK_NAME_375" name="TRUNK_NAME_375" type="hidden"/>
- <input id="COMPANY_NAME_375" name="COMPANY_NAME_375" type="hidden"/>
- <!-- 保存和重置 -->
- <br/>
- <div style="float:left">
- <font class="titleShow1"></font>
- </div>
- <div style="float:right">
- <input value="保存" type="button" id="add"/>
- <input value="去评分" type="button" id="goScore"/>
- <input value="重置" onclick="formReset();" type="button"/><!-- 新增重置 -->
- </div><br/>
- <div align="center"><!-- <font style="font-weight: bold;font-size: 30px;line-height: 45px;" color="red" id="" class="titleShow"></font> --></div><br/>
- <!-- 正文表格 -->
- <table class="tableStyle" style="width: 100%;" align="center" id="contentTable">
- <tr>
- <td width="25%" align="right"><span>评价名称:</span></td><!-- <span class="star">*</span> -->
- <td width="75%"><input id="NAME_375" name="NAME_375" type="text" style="width: 97%;" maxlength="50"/></td>
- </tr>
- <tr>
- <td width="25%" align="right"><span>评估单位:</span></td>
- <td width="75%">
- <div title="" swidth="97%" class="selectTree validate[required] selectWidth" id="COMPANY_ID_375" name="COMPANY_ID_375" multiMode="true" selWidth="940"></div>
- <!-- <select id="DEPT_375" name="DEPT_375" editable=false prompt="请选择" selWidth="940"></select> --></td>
- </tr>
- <tr>
- <td width="25%" align="right"><span>评价体系:</span></td>
- <td width="75%">
- <div title="" swidth="97%" class="selectTree validate[required] selectWidth" id="TRUNK_ID_375" name="TRUNK_ID_375" multiMode="true" ></div>
- <!-- <select id="TRUNKLD_375" name="TRUNKLD_375" editable=false prompt="请选择" selWidth="940"></select> -->
- </td>
- </tr>
- <tr>
- <td width="25%" align="right"><span>开始时间:</span></td>
- <td width="75%"><input id="START_DATE_375" name="START_DATE_375" type="text" class="date" style="width: 97%;" readonly="readonly"></select></td>
- </tr>
- <tr>
- <td width="25%" align="right"><span>结束时间:</span></td>
- <td width="75%"><input id="END_DATE_375" name="END_DATE_375" type="text" class="date" style="width: 97%;" readonly="readonly"></select></td>
- </tr>
- </table>
- </form>
- </div>
- </body>
- </html>
|