【调度系统】广东民航医疗快线调度系统源代码
wanglizhong
2025-04-22 72c0df785d4838d35dc694071c61e3f9a54e7e81
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Session.CodePage=65001%>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
%>
<!--#include virtual="/weixin/OAuth2.gds"-->
<!--#include virtual="/inc/function.gds"-->
<!--#include virtual="/weixin/sha1.gds"-->
<!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" />
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, user-scalable=no">  
  <meta name="keywords" content="">
  <meta name="description" content="">
  <meta name="author" content="">
  <link rel="icon" href="assets/images/favicon.png" type="image/png">
  <title>个人核酸记录</title>
 
        <!-- BEGIN PAGE LEVEL STYLES -->
    <link href="assets/plugins/jquery-ui/jquery-ui.min.css" rel="stylesheet"/>
    <link href="assets/plugins/full-calendar/fullcalendar.css" rel="stylesheet" type="text/css" />
    <!-- END PAGE LEVEL STYLES -->
    
    <link href="assets/css/icons.css" rel="stylesheet">
    <link href="assets/css/bootstrap.min.css" rel="stylesheet">
    <link href="assets/plugins/bootstrap-datepicker/css/bootstrap-datepicker.min.css" rel="stylesheet">
    <link href="assets/css/style.css" rel="stylesheet">
    <link href="assets/css/responsive.css" rel="stylesheet">
    <link href="/css/sweetalert2.min.css" rel="stylesheet">
    
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
          <script src="js/html5shiv.min.js"></script>
          <script src="js/respond.min.js"></script>
    <![endif]-->
 
</head>
 
<body class="sticky-header">
 
 
    <!--Start left side Menu-->
    <div class="left-side sticky-left-side">
 
        <!--logo-->
        <div class="logo">
            <a href="/"><img src="assets/images/logo.png" alt=""></a>
        </div>
 
        <div class="logo-icon text-center">
            <a href="/"><img src="assets/images/logo-icon.png" alt=""></a>
        </div>
        <!--logo-->
 
        <div class="left-side-inner">
            <!--Sidebar nav-->
            <!--#include virtual="/menu_left_new.gds"-->
            <!--End sidebar nav-->
 
        </div>
    </div>
    <!--End left side menu-->
 
 
    
    <!-- main content start-->
    <div class="main-content" >
 
        <!-- header section start-->
        <div class="header-section">
 
            <a class="toggle-btn"><i class="fa fa-bars"></i></a>
 
            <form class="searchform">
                <input type="text" class="form-control" name="keyword" placeholder="Search here..." />
            </form>
 
            <!--notification menu start -->
            <div class="menu-right">
                <ul class="notification-menu"><li class="btn-default dropdown-toggle">个人核酸记录</li></ul>
            </div>
            <!--notification menu end -->
 
        </div>
        <!-- header section end-->
 
 
 
        <!--body wrapper start-->
        <div class="wrapper">
              
      
           
           
               <!-- Start row-->
                <div class="row">
                    <div class="calendar-layout clearfix">
                      <div class="col-md-9">
                          <div class="white-box">
                             <div id='calendar'></div>
                        </div>
                      </div>
                    </div>      
                 </div>
               <!-- End row-->  
                <div class="white-box">
                <%
                sql="select top 20 * from OA_NucleicAcid where NucleicAcid_OAID="&session("adminID")&" order by NucleicAcid_Time desc"
                rs.open sql,objConn,1,1
                if not rs.eof then%>
               <table class="table table-hover">
                    <thead>
                      <tr style="white-space: nowrap;">
                        <th>检测日期</th>
                      </tr>
                    </thead>
                    <tbody>
                        <%do while not rs.Eof
                            NucleicAcid_Time=rs("NucleicAcid_Time")
                            %>
                            <tr style="white-space: nowrap;">
                                <td><%=NucleicAcid_Time%>&nbsp;&nbsp;<%=Weekday_A(NucleicAcid_Time)%></td>
                            </tr>
                        <%rs.movenext
                          Loop%>
                    </tbody>
                  </table>
                  <%End If
                  rs.close()%>
                  <div class="form-group"><div class="col-md-10 col-md-offset-3" style="text-align: center;">
                            <button class="btn btn-primary NucleicAcidApp1" id="NucleicAcidApp1" type="submit" style="width: 80%;">核酸登记</button>
                        </div>
                        </div>
                  </div>
        </div>
        <!-- End Wrapper-->
 
 
 
       </div>
      <!--End main content -->
    
 
 
    <!--Begin core plugin -->
    <script src="assets/js/jquery.min.js"></script>
    <script src="assets/js/bootstrap.min.js"></script>
    <script src="assets/plugins/moment/moment.js"></script>
    <script  src="assets/js/jquery.slimscroll.js "></script>
    <script src="assets/js/jquery.nicescroll.js"></script>
    <script src="assets/js/functions.js"></script>
    <!-- End core plugin -->
 
    <!-- BEGIN PAGE LEVEL SCRIPTS -->
    <script type="text/javascript" src="assets/plugins/jquery-ui/jquery-ui.min.js"></script>
    <script type="text/javascript" src="assets/plugins/moment/moment.js"></script>
    <script type="text/javascript" src="assets/plugins/full-calendar/fullcalendar.js"></script>
    <script src="assets/plugins/sweetalert/sweet-alert.js"></script>
    <script src="/js/sweetalert2.min.js"></script>
    <script src="assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
    <script>
    
     $(document).ready(function() {
        
        $('#external-events .fc-event').each(function() {
          // store data so the calendar knows to render an event upon drop
          $(this).data('event', {
            title: $.trim($(this).text()), // use the element's text as the event title
            color: '#FFBD4A',
            stick: true // maintain when user navigates (see docs on the renderEvent method)
          });
    
          // make the event draggable using jQuery UI
          $(this).draggable({
            zIndex: 999,
            revert: true,      // will cause the event to go back to its
            revertDuration: 0  //  original position after the drag
          });
    
        });
    
    
        /* initialize the calendar
        -----------------------------------------------------------------*/
        $('#calendar').fullCalendar({
            defaultView: 'month',
          header: {
            left: 'prev,next today',
            center: 'title',
            right:''
          },
          monthNames: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],    
            monthNamesShort: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],    
            dayNames: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],    
            dayNamesShort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],    
            today: ["今天"],    
            firstDay: 7,    
            buttonText: {    
                today: '今天',    
                month: '月',    
                week: '周',    
                day: '日',    
                prev: '上一月',    
                next: '下一月'    
            },    
          defaultDate: '<%=date()%>',
          TrueDate: '<?php echo $DayDate;?>',
          editable: false,
          droppable: false,
          eventLimit: false, 
          eventLimitClick: 'week', 
          /*
          eventClick: function(event, jsEvent, view) {
            //点击删除事件
            console.log("点击 "+event.id);
            //"removeEvents",event.id
            if (confirm("是否删除"+event.title)) {
                $('#calendar').fullCalendar('removeEvents', event.id);
            }
          },
          eventAfterRender: function(event, jsEvent) {
            //事件移动拖动之后触发
            //console.log(event.title + "显示至 " + event.start.format());
          },
          eventDrop: function(event, delta, revertFunc) {
            //事件移动另一项目时
            console.log(event.id + "移动至 " + event.start.format());
                if (!confirm("是否移动?")) {
                    revertFunc();
                }
          },
          */
 
        <%
        sql="select top 200 CONVERT(varchar(10),NucleicAcid_Time,111) from OA_NucleicAcid where NucleicAcid_OAID="&session("adminID")&" GROUP BY CONVERT(varchar(10),NucleicAcid_Time,111) order by CONVERT(varchar(10),NucleicAcid_Time,111) desc"
        rs.open sql,objConn,1,1
        if not rs.eof then%>
          events: [
            <%i=0
            do while not rs.Eof
                i=i+1%>
            {
              id:<%=i%>,
              title: '检',
              start: '<%=year(rs(0)) & "-" & right("0"&month(rs(0)), 2) & "-" & right("0"&day(rs(0)), 2)%>',
              color: '#81c868'
            },
            <%rs.movenext
             Loop%>
          ]
        <%End If
        rs.close()%>
        });
        
      });
    
    //--按钮操作--BEGIN
$('.datepicker-multiple-date').click(function(){
    console.log("2");
});
    $('.NucleicAcidApp1').click(function(){
        console.log("1");
        Swal.fire({
            title: '请录入你的检测时间',
            html: '<input id="NucleicAcid_Time" type="text" class="form-control" value="<%=now()%>">',
            showCancelButton: true,
            confirmButtonText: '提交',
            cancelButtonText: "取消",
            confirmButtonColor: "#DD6B55",
            showLoaderOnConfirm: true
        }).then((result) => {
              /* Read more about isConfirmed, isDenied below */
              if (result.isConfirmed) {
                  console.log(document.getElementById('NucleicAcid_Time').value);
                  NucleicAcid_Time=document.getElementById('NucleicAcid_Time').value;
                    $.ajax({  
                        type: "POST",  
                        url: "admin_save.gds",//需要跳转到的界面 the page you want to post data  
                        data: {  
                            //要传给后台的数据 the data you should send to background  
                            admin_save:'135_json',
                            NucleicAcid_Time:NucleicAcid_Time
                        },
                        dataType:'json',
                        beforeSend: function() {},//在发送之前你可以进行相关操作 what you want to do before send  
                        success: function(data) {
                            //console.log(data);
                            if (data!='')
                            {
                                if (data.result==1)
                                {
                                    Swal.fire("登记完成","","success").then(function () {window.location.href="AdminUser_NucleicAcid.gds"});
        
                                }else{
                                    Swal.fire("保存失败", "代码:"+data.errcode, "error");
                                }
                            }else{Swal.fire("操作失败", "网络通信失败,请重试", "error");}
                        }
                    })
              }
        })
    });
 
    //新建任务单
    $('.NucleicAcidApp').click(function(){
        console.log("1");
        swal({   
            title: "确定核酸登记?",   
            text: "检测日期:<%=date()%>",   
            type: "warning",   
            showCancelButton: true,   
            confirmButtonColor: "#DD6B55",
            cancelButtonText: "取消",
            confirmButtonText: "确认",   
            closeOnConfirm: false 
        }, function(){
            $.ajax({  
                type: "POST",  
                url: "admin_save.gds",//需要跳转到的界面 the page you want to post data  
                data: {  
                    //要传给后台的数据 the data you should send to background  
                    admin_save:'135_json'
                },
                dataType:'json',
                beforeSend: function() {},//在发送之前你可以进行相关操作 what you want to do before send  
                success: function(data) {
                    //console.log(data);
                    if (data!='')
                    {
                        if (data.result==1)
                        {
                            swal({
                                title : "登记完成",
                                text : "",
                                type : "success",
                            }, function() {
                                window.location.href="AdminUser_NucleicAcid.gds"
                            });
                        }else{
                            swal("保存失败", "代码:"+data.errcode, "error");
                        }
                    }else{swal("操作失败", "网络通信失败,请重试", "error");}
                }
            })
        });
    });
    
    </script>
 
</body>
 
</html>