| | |
| | | <option value="" hassubinfo="true">请选择</option> |
| | | @foreach (var item in AdmBreakPrecedentDTOs) |
| | | { |
| | | @if (!item.Id.Equals(Model.BreakPrecedentId)) |
| | | @if (!item.Id.Equals(Model.BreakPrecedentId)) |
| | | { |
| | | <option value="@item.Id" hassubinfo="true"> |
| | | @item.BreakThing |
| | | </option> |
| | | <option value="@item.Id" hassubinfo="true"> |
| | | @item.BreakThing |
| | | </option> |
| | | } |
| | | else |
| | | { |
| | | <option value="@item.Id" hassubinfo="true" selected="selected"> |
| | | @item.BreakThing |
| | | </option> |
| | | <option value="@item.Id" hassubinfo="true" selected="selected"> |
| | | @item.BreakThing |
| | | </option> |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | </select> |
| | | <input type="hidden" id="BreakPrecedentName" name="BreakPrecedentName" value="@Model.BreakPrecedentId" /> |
| | | </div> |
| | | </div> |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | |
| | | function saveSimCost(tongyi) { |
| | | |
| | | |
| | | if ($.trim($("#BreakPrecedentId").val()) == '') { |
| | | if ($.trim($("#BreakPrecedentName").val()) == '') { |
| | | toastr.warning("违纪信息不能为空"); |
| | | return; |
| | | } |
| | |
| | | $("#BreakPrecedentId").change(function () { |
| | | |
| | | var BreakPrecedentId = $("#BreakPrecedentId").val(); |
| | | $("#BreakPrecedentName").val(BreakPrecedentId); |
| | | |
| | | if (BreakPrecedentId != "") { |
| | | $.ajax({ |
| | | type: "GET", |
| | |
| | | |
| | | }); |
| | | |
| | | $("#BreakPrecedentId").trigger("change"); |
| | | |
| | | |
| | | function getBreakPrecedent() { |
| | | |
| | | var BreakPrecedentName = $("#BreakPrecedentName").val(); |
| | | |
| | | if (BreakPrecedentName != "") { |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: "/AdmBreakPrecedent/GetBreakPrecedent?id=" + BreakPrecedentName, |
| | | dataType: "json", |
| | | global: false, |
| | | data: "", |
| | | success: function (data) { |
| | | if (data.Result) { |
| | | var DataInfo = data.DataInfo; |
| | | |
| | | |
| | | $("#BreakTimeName").html(DataInfo.BreakTimeName); |
| | | $("#UserName").html(DataInfo.UserName); |
| | | $("#BreakPrecedent").html(DataInfo.BreakPrecedent); |
| | | $("#BreakThing").html(DataInfo.BreakThing); |
| | | $("#ChufajineName").html(DataInfo.ChufajineName); |
| | | $("#QianfaUserName").html(DataInfo.QianfaUserName); |
| | | |
| | | } else { |
| | | parent.layer.msg('失败', { icon: 5 }); |
| | | } |
| | | |
| | | |
| | | }, |
| | | error: function () { |
| | | |
| | | |
| | | parent.layer.msg('失败', { icon: 5 }); |
| | | } |
| | | }); |
| | | } else { |
| | | $("#BreakTimeName").html(""); |
| | | $("#UserName").html(""); |
| | | $("#BreakPrecedent").html(""); |
| | | $("#BreakThing").html(""); |
| | | $("#ChufajineName").html(""); |
| | | $("#QianfaUserName").html(""); |
| | | } |
| | | } |
| | | |
| | | getBreakPrecedent(); |
| | | |
| | | function _pageAutoClose() { |
| | | parent.window._reloadPageData(); |