You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
117 lines
3.5 KiB
117 lines
3.5 KiB
|
|
@{
|
|
ViewBag.Title = "Index";
|
|
Layout = "~/Views/Shared/_Form.cshtml";
|
|
}
|
|
<link href="~/Content/js/select2/select2.min.css" rel="stylesheet" />
|
|
<link href="~/Content/css/bootstrap/bootstrap-select.css" rel="stylesheet" />
|
|
<script src="~/Content/js/datepicker/WdatePicker.js"></script>
|
|
<script src="~/Content/js/bootstrap/bootstrap-select.js"></script>
|
|
<script src="~/Content/js/select2/select2.min.js"></script>
|
|
<script src="~/Content/js/layer/layer.js"></script>
|
|
<style>
|
|
#Additem {
|
|
margin-left: 45%;
|
|
}
|
|
|
|
#AddTemitem {
|
|
margin-right: 45%;
|
|
}
|
|
|
|
.ui-jqgrid .ui-jqgrid-btable tbody tr.jqgrow td {
|
|
overflow: inherit;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.ui-jqgrid tr.jqgrow td {
|
|
white-space: normal !important;
|
|
height: auto;
|
|
}
|
|
</style>
|
|
<script>
|
|
debugger;
|
|
var MOCodes = $.request("MOCodes");
|
|
var RoleEnCode = '@NFine.Code.OperatorProvider.Provider.GetCurrent().UserCode'
|
|
var WorkPoint = '@NFine.Code.OperatorProvider.Provider.GetCurrent().Location'
|
|
$(function () {
|
|
InitControl();
|
|
$("#txtMUSER").val(RoleEnCode);
|
|
})
|
|
|
|
|
|
|
|
|
|
function submitForm() {
|
|
debugger;
|
|
if (!$('#form1').formValid()) {
|
|
return false;
|
|
}
|
|
var PrintTemplate = $("#sel_CodeType").val();//单据类型
|
|
|
|
$.submitForm({
|
|
url: "/HGWMS/WMSCreateItemLot/PrintViewByLot",
|
|
param: { MOCodes: JSON.stringify(MOCodes), PrintTemplate: PrintTemplate },
|
|
success: function (data) {
|
|
if (data.state == "success") {
|
|
$.currentWindow().$("#gridList").trigger("reloadGrid");
|
|
}
|
|
else {
|
|
alert(data.messages);
|
|
}
|
|
|
|
}
|
|
})
|
|
|
|
}
|
|
|
|
function InitControl() {
|
|
var $CodeType = $("#sel_CodeType");
|
|
$CodeType.select2({
|
|
allowClear: true,
|
|
escapeMarkup: function (m) {
|
|
return m;
|
|
}
|
|
});
|
|
$.ajax({
|
|
url: "/HGWMS/WMSCreateItemLot/GetPrintTemplate?"+ Math.random(),
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
$.each(data, function (index, item) {
|
|
$CodeType.append("<option value='" + item.Code + "'> " + item.Name + "</option>");
|
|
});
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
<form id="form1">
|
|
<div class="topPanel" style="height:10px">
|
|
<div class="btn-group">
|
|
@*<a id="AddItemLot" style="margin-left:3px;" class="btn btn-primary" onclick="btnCreate()"><i class="fa fa-pencil-square-o"></i>添加明细</a>
|
|
<a id="refresh" class="btn btn-primary" style="margin-left:3px;" onclick="reloadData()"><span class="glyphicon glyphicon-refresh"></span></a>*@
|
|
</div>
|
|
</div>
|
|
<div style="margin-right: 20px;">
|
|
<table class="form">
|
|
<tr>
|
|
<th class="formTitle">维护人:</th>
|
|
<td class="formValue">
|
|
<input id="txtMUSER" type="text" readonly="readonly" class="form-control" />
|
|
</td>
|
|
<th class="formTitle">模板类型:</th>
|
|
<td class="formValue">
|
|
<select id="sel_CodeType" name="sel_CodeType" class="form-control select2 required" style="width: 230px" placeholder="请选择模板类型..."></select>
|
|
<input type="hidden" id="hidetext" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
</div>
|
|
</form>
|
|
|
|
|
|
|