hjg
2024-03-18 8d48c59d5d3bcc4148ef97dc6f98e3a8cf9ca436
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?xml version="1.0" encoding="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"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition template="/template/nit/tmp_brief.xhtml">
    <ui:define name="acss">
        <style>
        .form-body span.text {
            line-height: 34px
        }
        </style>
    </ui:define>
    <ui:define name="acontent">
        <input type="hidden" value="#{param.mclientNo}" id="mclientNo"/>
        <input type="hidden" value="#{param.id}" id="id"/>
        <div class="col-md-5">
            <form class="form-horizontal" id="form">
                <div class="form-body">
                    <div class="form-group">
                        <label class="col-md-3 control-label">客户端编号</label>
                        <div class="col-md-9">
                            <span class="text" data-bind="text: o().mclientNo"></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">设备编号</label>
                        <div class="col-md-9">
                            <input type="text" class="form-control" data-bind="value: o().equipmentno" name="equipmentno" />
                            <span class="text-error"></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">设备类型</label>
                        <div class="col-md-9">
                            <select name="" id="type" class="form-control" data-bind="value: o().type, options: tList, event: {change: typeChange(o().type())}"></select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">设备型号</label>
                        <div class="col-md-9">
                            <select name="" id="" class="form-control" data-bind="value: o().stype, options: stList,optionsText: 'value', optionsValue: 'index'"></select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">设备名称</label>
                        <div class="col-md-9">
                            <input type="text" class="form-control" data-bind="value: o().eqname" name="eqname" />
                            <span class="text-error"></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">设备IP地址</label>
                        <div class="col-md-9">
                            <input type="text" class="form-control" data-bind="value: o().ip" />
                            <span class="text-error"></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">服务IP地址</label>
                        <div class="col-md-9">
                            <input type="text" class="form-control" data-bind="value: o().serviceIP" />
                            <span class="text-error"></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">设备端口</label>
                        <div class="col-md-9">
                            <input type="text" class="form-control" data-bind="value: o().port" />
                            <span class="text-error"></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">服务端口</label>
                        <div class="col-md-9">
                            <input type="text" class="form-control" data-bind="value: o().servicePort" />
                            <span class="text-error"></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">用户名</label>
                        <div class="col-md-9">
                            <input type="text" class="form-control" data-bind="value: o().aname" />
                            <span class="text-error"></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">密码</label>
                        <div class="col-md-9">
                            <input type="text" class="form-control" data-bind="value: o().password" />
                            <span class="text-error"></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">启用</label>
                        <div class="col-md-6" style="padding-top: 7px">
                            <input id="objUsed" type="checkbox" data-bind="checked: o().state" class="ace ace-switch ace-switch-4" />
                            <span class="lbl middle"></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">方向</label>
                        <div class="col-md-6" style="padding-top: 7px">
                            <select name="" id="" class="form-control" data-bind="value: o().aspect, options: asList, optionsText: 'value', optionsValue: 'index'"></select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">控制闸机</label>
                        <div class="col-md-6" style="padding-top: 7px">
                            <select name="" id="" class="form-control" data-bind="value: o().controlBarrier, options: cbList, optionsText: 'value', optionsValue: 'index'"></select>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-md-9 col-md-offset-3">
                            <button class="btn btn-sm btn-warning" type="button" id="back">
                                <i class="ace-icon fa fa-arrow-left bigger-110"></i>
                                取消
                            </button>
                            <button class="btn btn-sm btn-info" type="button" id="save">
                                <i class="ace-icon fa fa-save bigger-110"></i>
                                保存
                            </button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </ui:define>
    <ui:define name="myscript">
        <script src="js/gates_cequipmentEdit.js"></script>
    </ui:define>
</ui:composition>
</html>