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.
130 lines
5.1 KiB
130 lines
5.1 KiB
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.FIS.DashBoardPlanModel>" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
更新仪表板计划顺序号
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|
<%
|
|
var editable = true;
|
|
%>
|
|
<table id="editTable" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td>
|
|
<table>
|
|
<tr>
|
|
<th align="right">
|
|
<span style="color: #FF0000">*</span>顺序号
|
|
</th>
|
|
<td>
|
|
<input class="easyui-validatebox" type="text" id="PLAN_SEQ" name="PLAN_SEQ" value="<%=Model.PLAN_SEQ %>"
|
|
<%=editable?"data-options=\"required:true,validType:['number','length[3,3]']\"":"readonly =\"readonly\""%> />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table id="QDateGrid"></table>
|
|
<%=Html.QPEnd() %>
|
|
<%=Html.Hidden("PIDList")%>
|
|
<%=Html.Hidden("ORDER_TYPE")%>
|
|
<script language="javascript" type="text/javascript">
|
|
|
|
$(function () {
|
|
$('#QDateGrid').datagrid({
|
|
// width: 350,
|
|
// height: 300,
|
|
fit: true,
|
|
nowrap: false,
|
|
striped: true,
|
|
collapsible: false,
|
|
pagination: true,
|
|
rownumbers: false,
|
|
remoteSort: false,
|
|
idField: 'PLAN_NO',
|
|
columns: [[
|
|
{ field: 'PLAN_NO', title: '计划单号', align: 'center', width: 150 },
|
|
{ field: 'PLAN_SEQ', title: '计划顺序号', align: 'center', width: 180 },
|
|
{ field: 'MATERIAL_CODE', title: '物料号', align: 'center', width: 150 },
|
|
{ field: 'MATERIAL_NAME', title: '物料名称', align: 'center', width: 180 }
|
|
]]
|
|
});
|
|
//******************datagrid画完****************************
|
|
|
|
|
|
|
|
$('#QDateGrid').datagrid("loadData", new Array());
|
|
var dataInfo = $('#QDateGrid').datagrid('getData');
|
|
var type = document.getElementById("ORDER_TYPE").value;
|
|
var pids = document.getElementById("PIDList").value;
|
|
$.ajax({
|
|
url: "/DashBoardPlan/GetDashBoardPlanList?PIDList=" + pids + "&ORDER_TYPE=" + type,
|
|
type: "POST",
|
|
cache: false,
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
if (data == null || data == '') {
|
|
//alert("!");
|
|
MSI("提示", "未查到数据!")
|
|
}
|
|
else {
|
|
for (var i = 0; i < data.total; i++) {
|
|
var insertInfo = {
|
|
PLAN_NO: data.rows[i].PLAN_NO,
|
|
PLAN_SEQ: data.rows[i].PLAN_SEQ,
|
|
MATERIAL_CODE: data.rows[i].MATERIAL_CODE,
|
|
MATERIAL_NAME: data.rows[i].MATERIAL_NAME
|
|
};
|
|
dataInfo.rows.push(insertInfo);
|
|
}
|
|
$('#QDateGrid').datagrid('loadData', dataInfo);
|
|
}
|
|
}
|
|
});
|
|
//******************填充grid结束**************************
|
|
});
|
|
//****************function ()结束****************************
|
|
|
|
|
|
|
|
//******************保存更新****************************
|
|
function SaveDashBoardPlanSeq() {
|
|
if (isValidate() == false) {
|
|
return false;
|
|
}
|
|
//当前页面中,有无条码
|
|
var seq = document.getElementById("PLAN_SEQ").value;
|
|
if (seq == "") {
|
|
MSI("提示", "请填写新的计划顺序号!");
|
|
return false;
|
|
};
|
|
var reg = /^[0-9]+$/;
|
|
var netId = $("#PLAN_SEQ").val();
|
|
if (!reg.test(netId)) {
|
|
MSI("提示", "计划顺序号只能输入数字!");
|
|
return;
|
|
}
|
|
var pids = document.getElementById("PIDList").value;
|
|
submitByButton("DashBoardPlanSeqSave");
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
|
|
<table width="100%" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td>
|
|
<%=Html.QTButtonSave("User", "Save", "return SaveDashBoardPlanSeq();")%>
|
|
<%=Html.QTButtonBack("close", "List", "parent.List(1);parent.closeAppWindow1();return false;")%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</asp:Content>
|
|
|