You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
2.4 KiB
Plaintext
57 lines
2.4 KiB
Plaintext
3 years ago
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/MvcShipping/Views/Shared/MP.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
|
||
|
|
||
|
<asp:Content ID="Content1" ContentPlaceHolderID="Body" runat="server">
|
||
|
<header class='demos-header'>
|
||
|
<h2 class="demos-title">转单</h2>
|
||
|
</header>
|
||
|
|
||
|
<div class="weui-cells weui-cells_radio" id="divRadioGroup">
|
||
|
</div>
|
||
|
|
||
|
<div class="weui-btn-area">
|
||
|
<a class="weui-btn weui-btn_primary" href="javascript:" id="btnTransfer">确定</a>
|
||
|
</div>
|
||
|
</asp:Content>
|
||
|
<asp:Content ID="Content2" ContentPlaceHolderID="FooterScript" runat="server">
|
||
|
<script>
|
||
|
$(function () {
|
||
|
$.ajax({
|
||
|
type: "GET",
|
||
|
url: "/CommMng/BasicDataRef/GetUserLinkRefListRm",
|
||
|
dataType: "json",
|
||
|
success: function (data) {
|
||
|
$("#divRadioGroup").empty();
|
||
|
for (var idx = 0; idx < data.data.length; idx++) {
|
||
|
var html = '<label class="weui-cell weui-check__label">'
|
||
|
+ ' <div class="weui-cell__bd">'
|
||
|
+ ' <p>' + data.data[idx].UserName + '</p>'
|
||
|
+ ' </div>'
|
||
|
+ ' <div class="weui-cell__ft">'
|
||
|
+ ' <input type="radio" class="weui-check" name="radio1" ' + (idx == 0 ? 'checked="checked"' : '') + ' data-id="' + data.data[idx].GID + '" data-name="' + data.data[idx].UserName + '">'
|
||
|
+ ' <span class="weui-icon-checked"></span>'
|
||
|
+ ' </div>'
|
||
|
+ '</label>';
|
||
|
|
||
|
$("#divRadioGroup").append(html);
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
$("#btnTransfer").on('click', function () {
|
||
|
var radio = $("#divRadioGroup :radio:checked:first");
|
||
|
var uid = radio.data('id');
|
||
|
var uname = radio.data('name');
|
||
|
|
||
|
$.ajax({
|
||
|
type: "POST",
|
||
|
url: "/MvcShipping/MsOpSeaeRunBill/ChangeDispatch?strGID=<%=ViewData["gid"] %>&userid=" + uid + "&username=" + uname,
|
||
|
dataType: "json",
|
||
|
success: function (data) {
|
||
|
$.alert(data.Message, "提示", function () { history.back(); });
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
})
|
||
|
</script>
|
||
|
</asp:Content>
|