username@email.com
2021-06-03 904fb460b9359fe92e00ce25804d96c8a52bb513
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
@model DTO.ExpertOrderDipatchDTO
@using DTO;
@using zhengcaioa.Models;
@{
    List<ExpertDTO> listExpert = ViewData["experts"] as List<ExpertDTO>;
}
@{
    Layout = null;
}
 
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <title>@(SiteConfig.SiteName)</title>
    <link href="~/css/bootstrap.min.css" rel="stylesheet">
    <link href="~/css/font-awesome.min.css" rel="stylesheet">
    <link href="~/css/animate.min.css" rel="stylesheet">
 
    @*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@
    <link href="~/css/style.min.css" rel="stylesheet">
    <link href="~/css/plugins/chosen/chosen.css" rel="stylesheet">
    <link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">
    <link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
    <link href="~/layui/css/modules/laydate/default/laydate.css" rel="stylesheet" />
    <link href="~/css/style.min.css" rel="stylesheet">
    <link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" />
    <link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" />
 
    <style type="text/css">
        .webuploader-pick {
            position: relative;
            display: inline-block;
            cursor: pointer;
            background: #00b7ee;
            padding: 8px 14px 7px 14px;
            color: #fff;
            text-align: center;
            border-radius: 3px;
            overflow: hidden;
        }
 
        div.clearfix > label {
            padding-top: 8px;
        }
 
        .chosen-container {
            border-radius: 1px;
            border: 1px solid #e5e6e7;
        }
 
        .col-md-1.control-label {
            padding-right: 0px;
            font-weight: 400;
        }
 
        .data {
            width: 240px;
            padding-left: 8px;
        }
    </style>
 
    <!-- jqgrid-->
    <script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script>
    <script src="~/js/bootstrap.min.js"></script>
 
    <!--容器-->
    @*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@
    @*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@
    @*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@
    <script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script>
    @*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@
    <script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script>
    @*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@
    @*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@
    <script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script>
    <script src="~/js/plugins/webuploader/webuploader.min.js"></script>
 
    <script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script>
    <script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script>
    @*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@
    @*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@
    <script src="~/js/TUJS.js"></script>
</head>
<body class="gray-bg" style="overflow:auto;background:white;">
    <form id="formtest">
        <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;">
            <input type="hidden" id="OrderId" name="OrderId" value="@ViewBag.OrderId" />
            <table>
                <tr>
                    <td>
                        <label class="text-right control-label">专&nbsp;&nbsp;家</label>
                    </td>
                    <td class="data">
                        <select id="ExpertId" class="form-control" name="ExpertId" data-placeholder="选择 序列 ..." style="font-weight:normal;">
                            <option value="" hassubinfo="true" selected="selected">请选择</option>
                            @foreach (var item in listExpert)
                            {
                                <option value="@item.Id" hassubinfo="true" >
                                    @item.Name
                                </option>
 
                            }
 
                        </select>
 
 
                    </td>
                </tr>
                <tr style="height:80px">
                    <td>
                        <label class="text-right  control-label">劳务费</label>
                    </td>
                    <td class="data">
                        <input class="form-control" label="劳务费" name="Money" id="Money" labtype="txt" addvisible="true" value="0" editvisible="true" reg="" ismust="true" type="number"   oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
                    </td>
                </tr>
            </table>
        </div>
 
        <div class="wrapper wrapper-content" style="margin-top:0px"></div>
        <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px ">
            <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="功能按钮:“保存”,“删除”">
                <a class="btn btn-success" href="javascript:void(0)" onclick="SaveDispatch();" style="margin-left:4px; border-radius:4px;">
                    <i class="glyphicon glyphicon-ok"></i>&nbsp;&nbsp;<span class="bold">保存</span>
                </a>
            </div>
        </div>
 
    </form>
    <script type="text/javascript">
        var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 - 95;
        $("#div_content").height(hh);
 
        toastr.options = {
            "closeButton": true,
            "debug": false,
            "progressBar": true,
            "positionClass": "toast-bottom-right",
            "onclick": null,
            "showDuration": "300",
            "hideDuration": "600",
            "timeOut": "4500",
            "extendedTimeOut": "600",
            "showEasing": "swing",
            "hideEasing": "linear",
            "showMethod": "fadeIn",
            "hideMethod": "fadeOut"
        };
 
 
 
 
        var bUpload = false;
        var bAdd = false; // 新增操作
        var fileId = ""; // 上传文件生成的Id
        var bEditFile = false; // 编辑时,是否关联了附件
        var bDeleteFile = false; // 删除操作
        var attachment_id = 0; // 附件id
        var imgLoad = new Object();
 
 
 
 
 
        // 保存岗位信息
        var  SaveDispatch = function () {
            if ($("#Content").val() == '') {
                toastr.warning("推广内容不能为空");
                return;
            }
 
 
           
            $.ajax({
                type: "POST",
                url: "/Expert/SaveDispatch",
                dataType: "json",
                global: false,
                data: $('form').serializeArray(),
                success: function (data) {
                    if (data.Result) {
                        //  parent._afterSave(true);
                        parent.layer.msg('成功保存', { icon: 6 });
                        //window.location = "/Project/add?id=" + data.ReturnID;
 
 
                        try {
                            _pageAutoClose();//自动关闭页面方法
                        }
                        catch (err) {
                            parent._CloseTab1("/expert/dispatch/");
                        }
 
                    }
                    else {
                        // toastr.error("失败");
                        parent.layer.msg(data.Message, { icon: 5 });
                    }
 
                },
                error: function () {
 
 
                    parent.layer.msg('失败', { icon: 5 });
                }
            });
        }
 
 
 
        laydate({
            elem: '#PromoteDate', //对应id
            format: 'YYYY-MM-DD', //日期格式 // 分隔符可以任意定义,该例子表示只显示年月
            min: '2021-01-01', //设定最小日期为当前日期
            max: '2099-06-16', //最大日期
            festival: false, //显示节日
            istime: false,   //是否显示时分秒
            istoday: true, //是否是今天
            choose: function (datas) { //选择日期完毕的回调
                // console.log(this);
                // end.min = datas; //开始日选好后,重置结束日的最小日期
                // end.start = datas //将结束日的初始值设定为开始日
            }
        });
        function _pageAutoClose() {
            parent.window._reloadPageData();
            var index = parent.layer.getFrameIndex(window.name);
            parent.layer.isRefresh = true;
            parent.layer.closeAll('loading');
            parent.layer.close(index);
            return false;
        }
    </script>
</body>
</html>