songjun
2025-05-30 e5a31599aa8d58bc438096aaf761426a2163de08
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
@model sbcLabSystem.Models.Backstage.StandAnswerManagePageViewModel
@{
    ViewBag.Title = "答卷管理";
    Layout = "~/Views/Shared/Master.cshtml";
}
 
<script type="text/javascript">
    var viewModel;
    $(function () {
        viewModel = new myViewModel_Answer(@Html.Raw(Json.Encode(Model)));
        ko.applyBindings(viewModel, $(".container")[0]);
        InitDateTimePicker();
    });
 
    function myViewModel_Answer(data) {
        var self = this;
        self.lookAnswer = function (dataInfo) {
            window.location.href = "@Url.Action("AnswerList", "Backstage")"
                + "?qcDistributionId={0}".format(dataInfo.Id());
        }
        self.downloadStat = function (dataInfo) {
            window.location.href = "@Url.Action("downloadStat", "Backstage")"
                + "?qcDistributionId={0}".format(dataInfo.Id());
        } 
        ko.mapping.fromJS(data, {}, self);
    }
</script>
 
<div class="container"> 
    <div class="row">
        <div class="col-xs-12">
            <ol class="breadcrumb">
                <li class="active">答案管理</li>
            </ol>
        </div>
    </div>
    <div class="row" style="margin-top:10px;">
        <div class="col-xs-12">
            <table class="table table-bordered table-responsive table-condensed text-center">
                <thead>
                    <tr>
                        <th class="text-center">质评号</th>
                        <th class="text-center">发布时间</th>
                        <th class="text-center">结束时间</th>
                        <th class="text-center">备注</th>
                        <th class="text-center">参与实验室</th>
                        <th class="text-center">操作</th>
                    </tr>
                </thead>
                <tbody data-bind="foreach:QcDistributions">
                    <tr>
                        <td>
                            <span data-bind="text:DistNo"></span>
                        </td>
                        <td>
                            <span data-bind="text:IssuedDateString"></span>
                        </td>
                        <td>
                            <span data-bind="text:CloseDateString"></span>
                        </td>
                        <td>
                            <span data-bind="text:Remark"></span>
                        </td>
                        <td class="text-center">
                            <span data-bind="text:UsedLabCount"></span>
                        </td>
                        <td data-bind="visible:Id()>0"> 
                            <a href="javascript:void(0);" class="btn btn-primary"
                               data-bind="click:$root.lookAnswer">查看</a>
                            <a href="javascript:void(0);" class="btn btn-default"
                               data-bind="click:$root.downloadStat">下载结果统计</a>
                        </td>  
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>