cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>table_universal</title>
    [#include "/business/pages/include/static.html" /]
    <script type="text/javascript">
        $(document).ready(function(){
            niceform('input[name=reminder]').create().on('click',function(){
                $.post('${base}/business/pages/wbfa/jkjc/saveReminder.html',{"item_id":$(this).val(),"checked":$(this).attr("checked"),"ci_id":'${RequestParameters.ciId}'},function(){
                    
                });
            });
            
        });
    
        var current_ele;
        
        function onTXadd(ele,ciid){
            current_ele = ele;
            window.top.openDialog("add_1","新增健康检查定制",
                {},
                {"width":"900px","height":"600px","mode":"pixel"},
                [{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
                "${base}/business/pages/ciadd/addHealthCustomization.html?checkciid=${RequestParameters.ciId}&ciid="+ciid);
        
        }
        
        function onDelReminder(eletem,id){   
            if(!confirm("确定要删除该定制提醒吗?")) return false;
            $.get("${base}/business/pages/wbfa/jkjc/delReminder.html",{"id":id,"ci_id":"${RequestParameters.ciId}","r":Math.random()},function(){
                var rowspans = $(eletem).parents("tr").prevAll(".tempClass").children("td[rowspan]");
                $(rowspans).each(function(){
                    var rowspan = $(this).attr("rowspan");
                    if(rowspan > 1){
                        $(this).attr("rowspan",rowspan-1);
                    }
                });
                var tr = $(eletem).parents("tr");
                tr.remove();
            });
        }
        
        function onSelectAllClick(id,name){
            $.dom.checkAll(id,name);
        }
        
        
        
        function _onFormSubmit() {
            if(!confirm("确定要提交吗?")) return false;
            document.getElementById("myform").submit();
        }
        function closeWin(index) {
            window.top.closeDialog(index);
        }
        function refresh(){
            window.location.reload();
        }
    </script>
  </head>
  
<body>
<div class="table_basic">
    <form action="" method="post" id="myform" name="myform">
    <div class="table_basic_info">
           <div class="tbi_ways">
               <em>配置名称:${info.CINAME}</em><span></span>配置编号:${info.SEACHCODE}/${info.MEMBERCODE}<span></span>存放位置:${info.POSITION}</em>
           </div>
           [#if readOnly=="false"]
           <div class="tbi_btn">
               <a class="common" onclick="return onTXadd(this,'${info.ID}');"><span>新增维保</span></a>
           </div>
           [/#if]
    </div>
    <table>
        <tr class="title">
          <td width="5%" align="center"></td>
          <td width="15%" align="center">巡检项名称</td>
          <td width="25%" align="center">检测标准及方法</td>
          <td width="10%" align="center">期望值</td>
          <td width="20%" align="center">说明</td>
          <td width="8%" align="center">优先级</td>
          <td width="8%" align="center">检查类型</td>
          <td width="10%" align="center"></td>
        </tr>
        [#if info.itemList??]
            [#list info.itemList as item]
            [#if item.CI_ID?? || readOnly=="false"]
            <tr>
            <td align="center">[#if readOnly=="false"]<input type="checkbox" name="reminder" value="${item.ID}"  [#if item.CI_ID??]checked[/#if]/>[/#if]</td>
              <td align="center" title="${item.ITEM_NAME}">${left(item.ITEM_NAME,20)}</td>
              <td title="${item.STEPS}">${left(item.STEPS,38)}</td>
              <td title="${item.EXPECT_VALUE}">${left(item.EXPECT_VALUE,12)}</td>
              <td title="${item.ITEM_NOTE}">${left(item.ITEM_NOTE,36)}</td>
              <td align="center">${item.PRIORITY_LEVEL_NAME}</td>
              <td align="center">${K_IfTrue(item.ITEM_TYPE==1,'通用','定制')}</td>
              <td align="center">
                  [#if readOnly=="false"]
                      [#if item.ITEM_TYPE==2]
                      <a class="button icon_del" onclick="return onDelReminder(this,'${item.ID}')">删除</a>
                      [/#if]
                  [/#if]
              </td>
            </tr>
            [/#if]
            [/#list]
       [#else]
        <tr>
            <td align="center" colspan="6">无健康检查项</td>
        </tr>   
       [/#if]
    </table>
    </form>
</div>
</body>
</html>