username@email.com
2023-02-28 67a0042c5f29e4bb0e0b82f6190f2bc51480b45c
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
@{
    ViewBag.Title = "RemindMessage";
    Layout = "~/Views/Shared/_Layout_Search.cshtml";
}
@{PltUser user = (PltUser)ViewData["curentuser"];}
@section headerStyle{
    <script type="text/javascript">
        var rtype = [{ code: "", label: "全部" }, { code: "1", label: "同事提醒" }, { code: "2", label: "我的备忘录" }];
        dataCol = [
            { label: 'id', name: 'Id', labtype: 'txt', hidden: true },
            {
                label: '创建时间', name: 'Createtime', labtype: 'txt', width: 30, hidden: false,
                formatter: function (cellvalue, options, rowObject) {
                    return new Date(cellvalue).Format("yyyy-MM-dd");
                }
            },
            {
                label: '要求完成时间', width: 30, name: 'TimeName', labtype: 'txt', hidden: false 
            },
            { label: '工作类型', name: 'RtypeName', labtype: 'txt', width: 100, hidden: false },
            { label: '工作内容',   name: 'Context', labtype: 'txt', hidden: false },
            { label: '提醒人', width: 30, name: 'Creater', labtype: 'txt', hidden: false },
            
            {
                label: '操作', width: 20,  name: 'RecStatus',   align: "center", sortable: false, labtype: 'txt',
                formatter: function (cellvalue, options, rowObject) {
                   return ' <a href="javascript:void(0)" onclick="haveRead(\'' + rowObject.Id + '\');">  <span style="background: #ECF3FF;">办理</span></a>'
                }
            },
 
            { label: '状态', name: 'RecStatus', labtype: 'txt', hidden: true },
            { label: '创建人', name: 'Creater', labtype: 'txt', hidden: true },
            //{ label: '创建时间', name: 'Createtime', labtype: 'txt', hidden: true },
            { label: '修改人', name: 'Modifier', labtype: 'txt', hidden: true },
            { label: '修改时间', name: 'Modifytime', labtype: 'txt', hidden: true }
 
        ];
        dataUrl = "/DailyManagement/GetMomeBookList/?unread=1&&ToUserId=" + "@user.Id";
        searchCol = [
 
 
        ];
 
       
 
        function haveRead(id) {
            let caption;
            caption = "工作办理";
            OpenWindow(caption, "500px", "600px", "/DailyManagement/EditWorkBanLi/?id=" + id);
        }
 
        var _afterSave = function (result) {
            if (result) {
                toastr.success("保存成功");
            } else {
                toastr.error("保存失败");
            }
 
        }
 
        var _afterDel = function (result) {
            if (result) {
                toastr.success("删除成功");
            } else {
                /**/
                toastr.error("删除成功");
                /**/
            }
        }
 
 
 
    </script>
}